stopChannelMediaRelay method Null safety
Stops media stream relay across rooms.
If a host leaves the room, media stream replay across rooms automatically stops. You can also call stopChannelMediaRelay. In this case, the host leaves all destination rooms.
If you call this method, the SDK triggers the onMediaRelayStatesChange callback. If NERtcChannelMediaRelayState.idle is returned, media stream relay stops.
Implementation
// /- If the operation fails, the SDK triggers [onMediaRelayStatesChange] that returns the status code [NERtcChannelMediaRelayState.failure].
Future<int> stopChannelMediaRelay() async {
IntValue reply = await _api.stopChannelMediaRelay();
return reply.value ?? -1;
}