stopPushSingleStream method
@valid since 3.60. Since version 3.60, this interface replaces the stopPushStreamToCDN: method for stopping the push of single media streams to CDN. If you have upgraded to version 3.60 or later and are still using this method, please migrate to this interface.
@detail api
@author liujingchao
@brief Stops the task to push a single media stream to CDN.
@param taskId Task ID. Specifys the task you want to stop.
@return
- 0: Success
- < 0 : Failure. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details.
- To start pushing single stream to CDN, see startPushSingleStream:singleStream:{@link #ByteRTCEngine#startPushSingleStream:singleStream}.
- To start pushing mixed stream to CDN, see startPushMixedStream:withPushTargetConfig:withMixedConfig:{@link #ByteRTCEngine#startPushMixedStream:withPushTargetConfig:withMixedConfig}.
Implementation
FutureOr<int> stopPushSingleStream(NSString taskId) async {
return await nativeCall('stopPushSingleStream:', [taskId]);
}