pauseForwardStreamToAllRooms method

Future<int?> pauseForwardStreamToAllRooms()

@detail api @region Multi-room @author shenpengliang @brief Call this method to pause relaying media stream to all rooms after calling startForwardStreamToRooms{@link #RTCRoom#startForwardStreamToRooms}.
After that, call resumeForwardStreamToAllRooms{@link #RTCRoom#resumeForwardStreamToAllRooms} to resume. @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details. @note The other users in the room will receive callback of onUserJoined{@link #IRTCRoomEventHandler#onUserJoined}, onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}, onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} when you stop relaying.

Implementation

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

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