stopForwardStreamToRooms abstract method
Stops relaying media streams to all rooms after calling RTCRoom.startForwardStreamToRooms
Return value:
0
: Success.<0
: Failure. See ReturnStatus for the reason.
Notes:
- Calling this method will trigger RTCRoomEventHandler.onForwardStreamStateChanged locally.
- The other users in the room will receive RTCRoomEventHandler.onUserUnpublishStream/RTCRoomEventHandler.onUserUnpublishScreen and RTCRoomEventHandler.onUserLeave.
- If you need to change the target room, call RTCRoom.updateForwardStreamToRooms to update room information.
- To pause the relaying for a short time, call RTCRoom.pauseForwardStreamToAllRooms, then call RTCRoom.resumeForwardStreamToAllRooms to resume.
Implementation
Future<int?> stopForwardStreamToRooms();