stopPushMixedStream method
@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.
@detail api
@hiddensdk(audiosdk)
@brief Stops the task started via startPushMixedStream{@link #RTCEngine#startPushMixedStream}.
@param taskId Task ID. Specifys of which pushing task you want to update the parameters.
@param targetType See MixedStreamPushTargetType{@link #MixedStreamPushTargetType}.
@return
- 0: Success
- !0: Fail. See ReturnStatus{@link #ReturnStatus} for more details.
Implementation
Future<int?> stopPushMixedStream(
string taskId, MixedStreamPushTargetType targetType) async {
$a() => ($instance as $p_a.RTCEngine).stopPushMixedStream(
taskId, t_MixedStreamPushTargetType.code_to_android(targetType));
$i() => ($instance as $p_i.ByteRTCEngine).stopPushMixedStream(
taskId, t_MixedStreamPushTargetType.code_to_ios(targetType));
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}