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.
stateThe channel media relay state. See ChannelMediaRelayState.codeThe error code of the channel media relay. See ChannelMediaRelayError.
Implementation
final void Function(
ChannelMediaRelayState state, ChannelMediaRelayError code)?
onChannelMediaRelayStateChanged;