updatePushMixedStream method
- String taskId,
- MixedStreamPushTargetConfig pushTargetConfig,
- MixedStreamConfig mixedConfig
@valid since 3.60. 自 3.60 起,该接口替代了 updatePushMixedStreamToCDN 和 updatePublicStreamParam 方法用于实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用这两个方法,请迁移到此接口。
@detail api
@hiddensdk(audiosdk)
@author lizheng
@brief 更新由 startPushMixedStream{@link #RTCEngine#startPushMixedStream} 启动的任务参数,会收到 onMixedStreamEvent{@link #IRTCEngineEventHandler#onMixedStreamEvent} 回调。
@param taskId 转推直播任务 ID。指定想要更新参数设置的转推直播任务。仅当 MixedStreamConfig{@link #MixedStreamConfig} 中的 PushTargetType = 0 时有效。
@param pushTargetConfig 推流目标配置参数,比如设置推流地址、WTN 流 ID。参看 MixedStreamPushTargetConfig{@link #MixedStreamPushTargetConfig}。
@param mixedConfig 转推直播配置参数,参看 MixedStreamConfig{@link #MixedStreamConfig}。除特殊说明外,均支持过程中更新。
调用时,结构体中没有传入值的属性,会被更新为默认值。
@return
- 0: 成功。
- !0: 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。
Implementation
FutureOr<int> updatePushMixedStream(
String taskId,
MixedStreamPushTargetConfig pushTargetConfig,
MixedStreamConfig mixedConfig) async {
return await nativeCall(
'updatePushMixedStream', [taskId, pushTargetConfig, mixedConfig]);
}