resumeForwardStreamToAllRooms method

Future<int?> resumeForwardStreamToAllRooms()

@detail api @author shenpengliang @brief 恢复跨房间媒体流转发。
调用 pauseForwardStreamToAllRooms{@link #RTCRoom#pauseForwardStreamToAllRooms} 暂停转发之后,调用本方法恢复向所有目标房间转发媒体流。 @return - 0: 调用成功。 - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。 @note 目标房间中的用户将接收到本地用户进房 onUserJoined{@link #IRTCRoomEventHandler#onUserJoined} 和发布 onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}、onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio} 回调 的回调。

Implementation

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

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