updatePublishMediaStream method
- {required String taskId,
- required TRTCPublishTarget target,
- TRTCStreamEncoderParam? encoderParam,
- TRTCStreamMixingConfig? mixingConfig}
修改发布参数,更新通过 startPublishMediaStream 启动的发布任务的参数
config
,云端混流设置
params
,编码设置
target
,发布目标
taskId
,通过 onStartPublishMediaStream
回调返回给您的任务 ID
不支持:
- web
- macOS
- Windows
Implementation
Future<void> updatePublishMediaStream({required String taskId,
required TRTCPublishTarget target,
TRTCStreamEncoderParam? encoderParam,
TRTCStreamMixingConfig? mixingConfig}) async {
return _cloudChannel.invokeMethod('updatePublishMediaStream', {'taskId': taskId,
'target': target.toJson(),
'encoderParam': encoderParam?.toJson(),
'mixingConfig': mixingConfig?.toJson()});
}