updatePushMixedStream method
- NSString taskId,
- ByteRTCMixedStreamPushTargetConfig pushTargetConfig,
- ByteRTCMixedStreamConfig config
@valid since 3.60. Since version 3.60, this interface replaces the updatePushMixedStreamToCDN:mixedConfig: and updatePublicStreamParam:withLayout: 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.
@hidden(Linux)
@detail api
@hiddensdk(audiosdk)
@author lizheng
@brief Update parameters needed when pushing mixed media streams to CDN. You will be informed of the change via the rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode:{@link #ByteRTCEngineDelegate#rtcEngine:onMixedStreamEvent:withMixedStreamInfo:withErrorCode} callback.
After calling startPushMixedStream:withPushTargetConfig:withMixedConfig:{@link #ByteRTCEngine#startPushMixedStream:withPushTargetConfig:withMixedConfig} to enable the function of pushing streams to CDN, you can call this API to update the relevant configurations.
@param taskId Task ID. Specifys of which pushing task you want to update the parameters.
@param pushTargetConfig Push target config, such as the push url and WTN stream ID. See ByteRTCMixedStreamPushTargetConfig{@link #ByteRTCMixedStreamPushTargetConfig}.
@param config Configurations that you want to update. See ByteRTCMixedStreamConfig{@link #ByteRTCMixedStreamConfig} 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 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details.
@order 4
Implementation
FutureOr<int> updatePushMixedStream(
NSString taskId,
ByteRTCMixedStreamPushTargetConfig pushTargetConfig,
ByteRTCMixedStreamConfig config) async {
return await nativeCall(
'updatePushMixedStream:withPushTargetConfig:withMixedConfig:',
[taskId, pushTargetConfig, config]);
}