onAudioPublishStateChanged property

void Function(String channel, StreamPublishState oldState, StreamPublishState newState, int elapseSinceLastState)? onAudioPublishStateChanged
final

Occurs when the audio publishing state changes.

  • channel The channel name.
  • oldState The previous subscribing status. See StreamPublishState .
  • newState The current subscribing status. See StreamPublishState.
  • elapseSinceLastState The time elapsed (ms) from the previous state to the current state.

Implementation

final void Function(
    String channel,
    StreamPublishState oldState,
    StreamPublishState newState,
    int elapseSinceLastState)? onAudioPublishStateChanged;