... | ... | @@ -553,9 +553,51 @@ Destination 选择 "Frameworks" -> |
|
|
*/
|
|
|
-(void)numberOfReceivedLines:(NSInteger)linesCount;
|
|
|
/**
|
|
|
* 接收到播放线路 例:videoArray元素个数 2 代表2条线路 changeLineWithPlayParameter传0或1
|
|
|
* @brief 接收到播放线路 (已废弃)
|
|
|
* 例:videoArray元素个数 2 代表2条线路 changeLineWithPlayParameter传0或1
|
|
|
*
|
|
|
* 废弃版本 3.13.0
|
|
|
* 兼容版本 2021年10月08日之后将不再维护
|
|
|
* 新方法 清晰度回调 - (void)HDReceivedVideoQuality:(NSDictionary *)dict;
|
|
|
* 线路回调 - (void)HDReceivedVideoAudioLines:(NSDictionary *)dict;
|
|
|
*
|
|
|
*/
|
|
|
-(void)numberOfReceivedLinesWithVideo:(NSArray *)videoArray audio:(NSArray *)audioArray;
|
|
|
/**
|
|
|
* The New Method (3.13.0)
|
|
|
* @brief 是否开启音频模式
|
|
|
* @param hasAudio HAVE_AUDIO_LINE_TURE 有音频 HAVE_AUDIO_LINE_FALSE 无音频
|
|
|
*
|
|
|
* 触发回调条件 1.初始化SDK登录成功后
|
|
|
*/
|
|
|
- (void)HDAudioMode:(HAVE_AUDIO_LINE)hasAudio;
|
|
|
/**
|
|
|
* The New Method (3.13.0)
|
|
|
* @brief 房间所包含的清晰度 (会多次回调)
|
|
|
* @param dict 清晰度数据
|
|
|
* 清晰度数据 key(包含的键值) type(数据类型) description(描述)
|
|
|
* qualityList(清晰度列表) array @[HDQualityModel(清晰度详情),HDQualityModel(清晰度详情)]
|
|
|
* currentQuality(当前清晰度) object HDQualityModel(清晰度详情)
|
|
|
*
|
|
|
* 触发回调条件 1.初始化SDK登录成功后
|
|
|
* 2.主动调用切换清晰度方法
|
|
|
* 3.主动调用切换视频模式回调
|
|
|
*/
|
|
|
- (void)HDReceivedVideoQuality:(NSDictionary *)dict;
|
|
|
/**
|
|
|
* The New Method (3.13.0)
|
|
|
* @brief 房间包含的音视频线路 (会多次回调)
|
|
|
* @param dict 线路数据
|
|
|
* 线路数据 key(包含的键值) type(数据类型) description(描述)
|
|
|
* lineList(线路列表) array @[@"line1",@"line2"]
|
|
|
* indexNum(当前线路下标) integer 0
|
|
|
*
|
|
|
* 触发回调条件 1.初始化SDK登录成功后
|
|
|
* 2.主动调用切换清晰度方法
|
|
|
* 3.主动调用切换线路方法
|
|
|
* 4.主动调用切换音视频模式回调
|
|
|
*/
|
|
|
- (void)HDReceivedVideoAudioLines:(NSDictionary *)dict;
|
|
|
```
|
|
|
|
|
|
3.2.2 主动方法(可选)
|
... | ... | @@ -632,16 +674,60 @@ Destination 选择 "Frameworks" -> |
|
|
*/
|
|
|
- (void)changeLineWithNum:(NSInteger)index completion:(void (^)(NSDictionary * results))completion;
|
|
|
/**
|
|
|
* @brief 切换线路
|
|
|
* @brief 切换线路 (已废弃)
|
|
|
* param
|
|
|
* disableVideo 视频传no,音频传yes(账号开启音频模式下才可以传yes)
|
|
|
* lineNum 线路 例:-(void)numberOfReceivedLinesWithVideo:(NSArray *)videoArray audio:(NSArray *)audioArray;中videoArray元素个数为2 则传0或1
|
|
|
* results:
|
|
|
success 0 切换成功 -1切换失败 -2 切换频繁
|
|
|
currentIndex 当前播放线路
|
|
|
*
|
|
|
* 废弃版本 3.13.0
|
|
|
* 兼容版本 2021年10月08日之后将不再维护
|
|
|
* 新方法 切换播放器类型 - (void)changePlayMode:(PLAY_MODE_TYEP)mode;
|
|
|
* 切换清晰度 - (void)changeQuality:(NSString *)quality completion:(void (^)(NSDictionary * results))completion;
|
|
|
* 切换线路 - (void)changeLine:(NSInteger)index completion:(void (^)(NSDictionary * results))completion;
|
|
|
*
|
|
|
*/
|
|
|
|
|
|
- (void)changeLineWithPlayParameter:(PlayParameter *)param completion:(void (^)(NSDictionary * results))completion;
|
|
|
/**
|
|
|
* The New Method (3.13.0)
|
|
|
* @brief 切换播放类型
|
|
|
* @param mode PLAY_MODE_TYEP_VIDEO 视频模式(默认)
|
|
|
* PLAY_MODE_TYEP_AUDIO 音频模式(当前回放包含音频线路)
|
|
|
* @param completion 切换结果
|
|
|
* { success 0 切换成功 -1切换失败 -2 切换频繁
|
|
|
* reason 错误原因 }
|
|
|
*
|
|
|
* 切换播放器类型 切换为音频,回调 - (void)HDReceivedVideoAudioLines:(NSDictionary *)dict;
|
|
|
* 切换为视频,回调 - (void)HDReceivedVideoQuality:(NSDictionary *)dict;
|
|
|
* - (void)HDReceivedVideoAudioLines:(NSDictionary *)dict;
|
|
|
*
|
|
|
*/
|
|
|
- (void)changePlayMode:(PLAY_MODE_TYEP)mode completion:(void (^)(NSDictionary * results))completion;
|
|
|
/**
|
|
|
* The New Method (3.13.0)
|
|
|
* @brief 切换清晰度
|
|
|
* @param quality 清晰度
|
|
|
* @param completion 切换结果
|
|
|
* { success 0 切换成功 -1切换失败 -2 切换频繁
|
|
|
* reason 错误原因 }
|
|
|
*
|
|
|
* 切换清晰度回调 - (void)HDReceivedVideoQuality:(NSDictionary *)dict;
|
|
|
* - (void)HDReceivedVideoAudioLines:(NSDictionary *)dict;
|
|
|
*/
|
|
|
- (void)changeQuality:(NSString *)quality completion:(void (^)(NSDictionary * results))completion;
|
|
|
/**
|
|
|
* The New Method (3.13.0)
|
|
|
* @brief 切换线路
|
|
|
* @param index 选择线路下标
|
|
|
* @param completion 切换结果
|
|
|
* { success 0 切换成功 -1切换失败 -2 切换频繁
|
|
|
* reason 错误原因 }
|
|
|
*
|
|
|
* 切换线路回调方法 - (void)HDReceivedVideoAudioLines:(NSDictionary *)dict;
|
|
|
*/
|
|
|
- (void)changeLine:(NSInteger)index completion:(void (^)(NSDictionary * results))completion;
|
|
|
|
|
|
```
|
|
|
|
... | ... | |