This represents unique ID of the participant who joined the meeting.
This indicates whether this participant is the local user.
true → Local participant (you)false → Remote participantThis represents participant's metadata provided while initializing the meeting
This indicates whether the participant’s microphone is currently enabled.
This represents the participant’s current mode.
This represents the current pin state of the participant.
This represents the current quality level of the participant’s video stream.
This indicates whether the participant’s screenshare audio is currently enabled.
This indicates whether the participant’s screenShare is currently enabled.
This represents the quality level of the participant’s screen-sharing stream.
This represents all media streams associated with the participant. Streams could be audio , video or share.
This indicates whether the participant’s webcam is currently enabled.
Optionaloptions: { height?: number; width?: number }Optionalheight?: numberDesired height of the captured image.
Optionalwidth?: numberDesired width of the captured image.
A Base64-encoded string representing the captured image, or null if
the image could not be captured.
Events associated with disableMic():
stream object.Events associated with disableWebcam():
stream object.Events associated with enableMic():
stream object.Events associated with enableWebcam():
The participant first receives a webcam-requested event. Once the request is accepted, the webcam is enabled.
All participants receive a stream-enabled event containing the corresponding stream object.
An array of objects containing the following metrics:
jitter – Represents variation in packet arrival time (stream instability).bitrate – The bitrate at which the audio stream is being transmitted.totalPackets – Total number of packets transmitted for the stream.packetsLost – Total number of packets lost during transmission.rtt – Round-trip time (in milliseconds) between the client and server.codec – Codec used for encoding the audio stream.network – Network type used for transmitting the stream.Info
If the
rttvalue exceeds 300ms, consider switching to a region closer to the user for improved performance. Learn more visit here.
An array of objects containing the following metrics:
jitter – Represents variation in packet arrival time (stream instability).bitrate – The bitrate at which the audio stream is being transmitted.totalPackets – Total number of packets transmitted for the stream.packetsLost – Total number of packets lost during transmission.rtt – Round-trip time (in milliseconds) between the client and server.codec – Codec used for encoding the audio stream.network – Network type used for transmitting the stream.Info
If the
rttvalue exceeds 300ms, consider switching to a region closer to the user for improved performance. Learn more visit here.
An array of objects containing the following metrics:
jitter – Represents variation in packet arrival time (stream instability).bitrate – The bitrate at which the video stream is being transmitted.totalPackets – Total number of packets transmitted for the stream.packetsLost – Total number of packets lost during transmission.rtt – Round-trip time (in milliseconds) between the client and server.codec – Codec used for encoding the video stream.network – Network type used for transmitting the stream.limitation – Indicates any limitations affecting stream quality.size – Resolution or size information related to the stream.Info
If the
rttvalue exceeds 300ms, consider switching to a region closer to the user for improved performance. Learn more visit here.
An array of objects containing the following metrics:
jitter – Represents variation in packet arrival time (stream instability).bitrate – The bitrate at which the video stream is being transmitted.totalPackets – Total number of packets transmitted for the stream.packetsLost – Total number of packets lost during transmission.rtt – Round-trip time (in milliseconds) between the client and server.codec – Codec used for encoding the video stream.network – Network type used for transmitting the stream.limitation – Indicates any limitations affecting stream quality.size – Resolution or size information related to the stream.Info
If the
rttvalue exceeds 300ms, consider switching to a region closer to the user for improved performance. Learn more visit here.
Removes an event listener that was previously registered.
Event name to which you want to unsubscribe.
Callback function which was passed while subscribing to the event.
To view the complete list of available events and their details, refer to ParticipantEvent.
Registers an event listener.
Event name to which you want to subscribe.
A callback function that is executed when the specified event is emitted.
To view the complete list of available events and their details, refer to ParticipantEvent.
This method can be used to pin the participant’s camera, screen share, or both.
Every participant receives a pin-state-changed event when the pin state is updated.
Specifies which stream to pin.
Allowed values:
"SHARE_AND_CAM" – Pins both screen share and camera streams."CAM" – Pins only the camera stream."SHARE" – Pins only the screen-share stream.HTMLAudioElement that can be used to play incoming audio streams in the DOM.Optionaloptions: { type?: "audio" | "shareAudio" }Optionaltype?: "audio" | "shareAudio"Type: "audio" | "shareAudio"
"audio" – Renders the participant’s microphone audio stream."shareAudio" – Renders the audio stream associated with screen sharing.An HTMLAudioElement that plays the requested audio stream.
<div> element that internally manages the rendering of the participant’s video or screen-share stream.Optionaloptions: {Optional configuration for rendering the stream.
OptionalcontainerStyle?: Partial<CSSStyleDeclaration>CSS styles applied to the outer container <div>.
OptionalmaxQuality?: "low" | "med" | "high" | "auto"Sets the preferred maximum quality for the rendered stream.
Allowed value:
"auto" – Automatically adapts quality based on network conditions (default)"high" – Highest available quality"med" – Medium quality"low" – Low quality for bandwidth-constrained scenariosOptionaltype?: "video" | "share"Specifies which stream to render.
Allowed value:
"video" – Camera video stream (default)"share" – Screen-share video streamOptionalvideostyle?: Partial<CSSStyleDeclaration>CSS styles applied directly to the internal <video> element.
An HTMLDivElement containing the rendered video or screen-share stream.
The width of the viewport used to determine the video quality.
The height of the viewport used to determine the video quality.
This method can be used to unpin the participant’s camera, screen share, or both.
Every participant receives a pin-state-changed event when the pin state is updated.
Specifies which stream to unpin.
Allowed values:
"SHARE_AND_CAM" – Unpins both screen share and camera streams."CAM" – Unpins only the camera stream."SHARE" – Unpins only the screen-share stream.
This represents display name of the participant.