stopPushMixedStream method
- NSString taskId,
- ByteRTCMixedStreamPushTargetType pushTargetType
@valid since 3.60. Since version 3.60, this interface replaces the stopPushStreamToCDN: method for stopping the push of mixed streams to CDN. If you have upgraded to version 3.60 or later and are still using this method, please migrate to this interface.
@author lizheng
@detail api
@hiddensdk(audiosdk)
@brief Stops the task to push a mixing media stream to CDN or a WTN stream.
@param taskId Task ID. Specifys of which pushing task you want to update the parameters.
@param pushTargetType See ByteRTCMixedStreamPushTargetType{@link #ByteRTCMixedStreamPushTargetType}.
@return
+ 0: Success
+ !0: Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details.
@note
- To start pushing a mixing stream to CDN or a WTN stream, see startPushMixedStream:withPushTargetConfig:withMixedConfig:{@link #ByteRTCEngine#startPushMixedStream:withPushTargetConfig:withMixedConfig}.
@order 3
Implementation
FutureOr<int> stopPushMixedStream(
NSString taskId, ByteRTCMixedStreamPushTargetType pushTargetType) async {
return await nativeCall('stopPushMixedStream:withPushTargetType:',
[taskId, pushTargetType.$value]);
}