updatePushMixedStream method
- String taskId,
- MixedStreamPushTargetConfig pushTargetConfig,
- MixedStreamConfig mixedConfig
@valid since 3.60. Since version 3.60, this interface replaces the updatePushMixedStreamToCDN and updatePublicStreamParam methods for the functions described below. If you have upgraded to version 3.60 or later and are still using these two methods, please migrate to this interface.
@detail api
@hiddensdk(audiosdk)
@author lizheng
@brief Update the task configuration during the task started via startPushMixedStream{@link #RTCEngine#startPushMixedStream}. You will be informed of the change via the onMixedStreamEvent{@link #IRTCEngineEventHandler#onMixedStreamEvent} callback.
@param taskId Task ID. Specifys of the task to be updated.
When MixedStreamConfig{@link #MixedStreamConfig} is set to PushTargetType = 0, this ID is used to identify the task.
@param pushTargetConfig Push target config, such as the push url and WTN stream ID. See MixedStreamPushTargetConfig{@link #MixedStreamPushTargetConfig}.
@param mixedConfig Configurations that you want to update. See MixedStreamConfig{@link #MixedStreamConfig} for specific indications. You can update any property for the task unless it is specified as unavailable for updates.
If you left some properties blank, you can expect these properties to be set to their default values.
@return
- 0: Success.
- !0: Fail. See ReturnStatus{@link #ReturnStatus} for more details.
Implementation
FutureOr<int> updatePushMixedStream(
String taskId,
MixedStreamPushTargetConfig pushTargetConfig,
MixedStreamConfig mixedConfig) async {
return await nativeCall(
'updatePushMixedStream', [taskId, pushTargetConfig, mixedConfig]);
}