Skip to main content

Participant Events

Page change


void onParticipantsUpdated({
required DyteRoomParticipants participants,
required DyteGridPagesInfo gridPagesInfo,
}) {
// your code here to handle page updates.
}

DyteGridPagesInfo can be used for pagination purposes and contains following info:

  • pageCount: Total page that will contain all the participants.
  • currentPageNumber: Current page number that was returned (indexed from 0)
  • shouldShowPaginator: Should it show paginator or not. (dots at the bottom of the Video Views)
  • isNextPagePossible: Bool whether the next page is available or not.
  • isPreviousPagePossible: Bool whether the previous page is available or not.

Participant joined

Trigger an event when any participant joins the meeting.


void onParticipantUpdated(DyteMeetingParticipant participant) {
// your code here to handle new participant
}

Participant updated

Trigger an event when any participant update in meet.


void onParticipantUpdated(DyteMeetingParticipant participant) {
// your code here to handle new participant
}

Participant left

Trigger an event when any participant leaves the meeting.


void onParticipantLeave(DyteMeetingParticipant participant) {
// your code here to handle participant left from meeting
}

Video update

Trigger an event when any participant starts / stops video.


void videoUpdate({
required bool videoEnabled,
required DyteMeetingParticipant participant,
}) {
// your code here to handle participant video toggle update
}

Audio update

Trigger an event when any participant starts / stops audio.


void audioUpdate({
required bool audioEnabled,
required DyteMeetingParticipant participant,
}) {
// your code here to handle participant audio toggle update
}

Screen share update

Trigger an event when any participant starts / stops screen share.


void onScreenSharesUpdated() {
// all screenshare participants can be fetched via
// dyteClient.participants.screenshares
}

Participants updated

Triggers an event when participants are updated, and therefore return the new DyteGridPagesInfo


void onParticipantsUpdated({
required DyteRoomParticipants participants,
required DyteGridPagesInfo gridPagesInfo,
}){
// whenever participants are updated in the room
// it returns a updated `DyteRoomParticipants` and `DyteGridPagesInfo` with it.
}

Active Participants changed

Trigger when active participant changes, for ex. when you move to next page of participant, this state gives you the participants of this current page.


void onActiveParticipantsChanged({required List<DyteMeetingParticipant> activeParticipants}) {
/// these active participants return new page participants
}

Other callbacks:

  • onActiveSpeakerChanged(DyteMeetingParticipant participant): Triggered when active speaker is changed to participant.
  • onNoActiveSpeaker(): Triggered when there is no active participant.
  • onParticipantPinned(DyteMeetingParticipant participant): Triggered when the participant is pinned.
  • onParticipantUnpinned(): Trigerred when participant is unpinned.