startChannelMediaRelay method Null safety

Future<void> startChannelMediaRelay(
  1. ChannelMediaRelayConfiguration channelMediaRelayConfiguration
)

Starts to relay media streams across channels.

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

Note

Parameter channelMediaRelayConfiguration The configuration of the media stream relay.

Implementation

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