onChannelMediaRelayStateChanged property

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

Callback when the state of the channel media relay changes.

This callback is triggered by the SDK when the state of the channel media relay changes, reporting the current relay state and related error information.

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

Implementation

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