pauseAllSubscribedStreamVideo method

Future<int?> pauseAllSubscribedStreamVideo()

@detail api @valid since 3.60. Since version 3.60, this interface replaces the pauseAllSubscribedStream method for the below functions. If you have upgraded to version 3.60 or later and are still using this method, please migrate to this interface. @author shenpengliang @brief Pauses receiving all remote video streams. @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details. @note - Calling this API does not change the capture state and the transmission state of the remote clients. - Calling this API does not cancel the subscription or change any subscription configuration. - To resume, call resumeAllSubscribedStreamVideo{@link #RTCRoom#resumeAllSubscribedStreamVideo}. - In a multi-room scenario, this API only pauses the reception of streams published in the current room.

Implementation

Future<int?> pauseAllSubscribedStreamVideo() async {
  $a() => ($instance as $p_a.RTCRoom).pauseAllSubscribedStreamVideo();
  $i() => ($instance as $p_i.ByteRTCRoom).pauseAllSubscribedStreamVideo();

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}