onRemoteSpeakerStateUpdate property

(void Function(String streamID, ZegoRemoteDeviceState state)?) onRemoteSpeakerStateUpdate
getter/setter pair

The callback triggered when the state of the remote speaker changes.

Available since: 1.1.0 Description: The callback triggered when the state of the remote microphone changes. Use cases: Developers of 1v1 education scenarios or education small class scenarios and similar scenarios can use this callback notification to determine whether the speaker device of the remote publishing stream device is working normally, and preliminary understand the cause of the device problem according to the corresponding state. Trigger: When the state of the remote speaker device changes, such as switching the speaker, by monitoring this callback, you can get events related to the remote speaker. Caution: This callback will not be called back when the remote stream is play from the CDN.

  • streamID Stream ID.
  • state Remote speaker status.

Implementation

static void Function(String streamID, ZegoRemoteDeviceState state)?
    onRemoteSpeakerStateUpdate;