onChannelMediaRelayStateChanged property

(void Function(ChannelMediaRelayState state, ChannelMediaRelayError code)?) onChannelMediaRelayStateChanged
final

Occurs when the state of the media stream relay changes. The SDK returns the state of the current media relay with any error message.

  • state The state code. See ChannelMediaRelayState .
  • code The error code of the channel media relay. See ChannelMediaRelayError .

Implementation

final void Function(
        ChannelMediaRelayState state, ChannelMediaRelayError code)?
    onChannelMediaRelayStateChanged;