stopForwardStreamToRooms method

FutureOr<int> stopForwardStreamToRooms()

@detail api @author shenpengliang @brief Stops relaying media stream to all rooms after calling startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms}. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details. @note - Calling this method will trigger rtcRoom:onForwardStreamStateChanged:{@link #ByteRTCRoomDelegate#rtcRoom:onForwardStreamStateChanged}. - The other users in the room will receive callback of rtcRoom:onUserJoined:{@link #ByteRTCRoomDelegate#rtcRoom:onUserJoined} and rtcRoom:onUserJoined:{@link #ByteRTCRoomDelegate#rtcRoom:onUserJoined} when you stop relaying. - To stop relaying media stream to specific rooms, call updateForwardStreamToRooms:{@link #ByteRTCRoom#updateForwardStreamToRooms} instead. - To pause the relaying for a short time, call pauseForwardStreamToAllRooms{@link #ByteRTCRoom#pauseForwardStreamToAllRooms}, and then call resumeForwardStreamToAllRooms{@link #ByteRTCRoom#resumeForwardStreamToAllRooms} to recsume after that.

Implementation

FutureOr<int> stopForwardStreamToRooms() async {
  return await nativeCall('stopForwardStreamToRooms', []);
}