updatePushMixedStream method
- NSString taskId,
- ByteRTCMixedStreamPushTargetConfig pushTargetConfig,
- ByteRTCMixedStreamConfig config
@valid since 3.60.
@hidden(Linux)
@detail api
@hiddensdk(audiosdk)
@author lizheng
@brief 更新推 CDN/WTN 流转推参数,会收到 rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:{@link #ByteRTCEngineDelegate#rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode} 回调。
使用 startPushMixedStream:withPushTargetConfig:withMixedConfig:{@link #ByteRTCEngine#startPushMixedStream:withPushTargetConfig:withMixedConfig} 启用转推直播功能后,使用此方法更新功能配置参数。
@param taskId 转推直播任务 ID。指定想要更新参数设置的转推直播任务。
@param pushTargetConfig 推流目标配置参数,比如设置推流地址、WTN流 ID。参看 ByteRTCMixedStreamPushTargetConfig{@link #ByteRTCMixedStreamPushTargetConfig}。
@param config 转推直播配置参数,参看 ByteRTCMixedStreamConfig{@link #ByteRTCMixedStreamConfig}。除特殊说明外,均支持过程中更新。
调用时,结构体中没有传入值的属性,会被更新为默认值。
@return
- 0: 成功。
- !0: 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。
@order 4
Implementation
FutureOr<int> updatePushMixedStream(
NSString taskId,
ByteRTCMixedStreamPushTargetConfig pushTargetConfig,
ByteRTCMixedStreamConfig config) async {
return await nativeCall(
'updatePushMixedStream:withPushTargetConfig:withMixedConfig:',
[taskId, pushTargetConfig, config]);
}