startChannelMediaRelay method

  1. @override
Future<void> startChannelMediaRelay(
  1. ChannelMediaRelayConfiguration channelMediaRelayConfiguration
)

Starts to relay media streams across channels.

After a successful method call, the SDK triggers the RtcChannelEventHandler.channelMediaRelayStateChanged and RtcChannelEventHandler.channelMediaRelayEvent callbacks, and these callbacks report the state and events of the media stream relay.

See ChannelMediaRelayState.Failure

Note

Parameter channelMediaRelayConfiguration The configuration of the media stream relay.

Implementation

@override
Future<void> startChannelMediaRelay(
    ChannelMediaRelayConfiguration channelMediaRelayConfiguration) {
  return _invokeMethod('startChannelMediaRelay', {
    'channelMediaRelayConfiguration': channelMediaRelayConfiguration.toJson()
  });
}