Skip to main content
Version: Next

Participant Class Events - Flutter


streamEnabled

  • This event will be emitted when any participant starts consuming or producing stream of any type.

Example

room.localParticipant.on(Events.streamEnabled, (Stream stream){
// do something
});

streamDisabled

  • This event will be emitted when any participant stops consuming or producing stream of any type.

Example

room.localParticipant.on(Events.streamDisabled, (Stream stream){
// do something
});

streamPaused

  • This event will be emitted when any participant pauses consuming or producing stream of any type.

Example

room.localParticipant.on(Events.streamPaused, (Stream stream){
// do something
});

streamResumed

  • This event will be emitted when any participant resumes consuming or producing stream of any type.

Example

room.localParticipant.on(Events.streamResumed, (Stream stream){
// do something
});

videoQualityChanged

  • videoQualityChanged is a callback which gets triggered whenever a participant's video quality changes.

  • currentQuality and prevQuality can have values HIGH | MEDIUM | LOW.

Example

participant.on(Events.videoQualityChanged, (data) {
String currentQuality = data["currentQuality"];
String prevQuality = data["prevQuality"];
});

Got a Question? Ask us on discord