Skip to main content
Version: 0.0.x

Participant Class Events - Javascript

stream-enabled

  • stream-enabled is a callback which gets triggered whenever a participant's video, audio or screen share stream is enabled.

Example

participant.on("stream-enabled", (stream) => {
//
});

stream-disabled

  • stream-disabled is a callback which gets triggered whenever a participant's video, audio or screen share stream is disabled.

Example

participant.on("stream-disabled", (stream) => {
//
});

media-status-changed

  • media-status-changed is a callback which gets triggered whenever a participant's video, audio is disabled or enabled.

Example

participant.on("media-status-changed", (data) => {
const { kind, newStatus } = data;
//
});

video-quality-changed

  • video-quality-changed 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("video-quality-changed", (data) => {
const { currentQuality, prevQuality } = data;
//
});

Got a Question? Ask us on discord