stopPushMixedStream method

FutureOr<int> stopPushMixedStream(
  1. NSString taskId,
  2. ByteRTCMixedStreamPushTargetType pushTargetType
)

@valid since 3.60. @author lizheng @detail api @hiddensdk(audiosdk) @brief 停止 WTN 流或合流转推 CDN 任务。 @param taskId 转推直播任务 ID。指定想要更新参数设置的转推直播任务。 @param pushTargetType 参看 ByteRTCMixedStreamPushTargetType{@link #ByteRTCMixedStreamPushTargetType}。 @return + 0: 成功 + !0: 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 @note - 关于启动合流转推直播或 WTN 流,参看 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]);
}