stopChannelMediaRelay method
Stops the media stream relay.
Once the relay stops, the broadcaster quits all the destination channels. After a successful method call, the SDK triggers the RtcChannelEventHandler.channelMediaRelayStateChanged callback. If the callback reports ChannelMediaRelayState.Idle and ChannelMediaRelayError.None, the broadcaster successfully stops the relay.
Note
- If the method call fails, the SDK triggers the RtcChannelEventHandler.channelMediaRelayStateChanged callback with the ChannelMediaRelayError.ServerNoResponse or ChannelMediaRelayError.ServerConnectionLost state code. You can leave the channel using RtcChannel.leaveChannel, and the media stream relay automatically stops.
Implementation
@override
Future<void> stopChannelMediaRelay() {
return _invokeMethod('stopChannelMediaRelay');
}