stopPushMixedStream method
@valid since 3.60. 自 3.60 起,该接口替代了 stopPushStreamToCDN 方法来停止合流转推任务。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此接口。
@detail api
@hiddensdk(audiosdk)
@brief 停止由 startPushMixedStream{@link #RTCEngine#startPushMixedStream} 启动的任务。
@param taskId 转推直播任务 ID。指定想要更新参数设置的转推直播任务。
@param targetType 参看 MixedStreamPushTargetType{@link #MixedStreamPushTargetType}。
@return
- 0: 成功
- !0: 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。
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}');
}
}