A Participant represents a remote user that is connected to the
room. This object consists of a camera subscriber and a screen
subscriber object. When a new participant joins a room, the Room object
dispatches the participantJoined
event, which
emits the Participant
object corresponding to the
participant who joined. The client can subscribe to this event to
gain access to the participant's object.
Properties
Name | Description |
---|---|
(string)
id
|
The participant’s unique ID. |
(string)
name
|
The participant’s name. |
(CameraSubscriber)
camera
|
Includes methods and events related to the participant’s camera. |
(ScreenSubscriber)
screen
|
Includes methods and events related to the participant’s screen share. |
Events
Name | Description |
---|---|
cameraCreated
|
Dispatched when the participant’s camera subscriber is created. This event emits the CameraSubscriber object. |
cameraDestroyed
|
Dispatched when the camera subscriber is destroyed. This event doesn't emit anything. |
screenCreated
|
Dispatched when the participant’s screen subscriber is created. This event emits the ScreenSubscriber object. |
screenDestroyed
|
Dispatched when the screen subscriber is destroyed. This event doesn't emit anything. |