false for a person, true for an AI agent. Branch on this before treating a participant as either.true for the local participant.metaData on the RoomProvider config.Subscribes to this participant's own events.
These are the same events useParticipant surfaces as onStreamEnabled, onStreamDisabled, onMediaStatusChanged, onStreamPaused and onStreamResumed.
The event to subscribe to.
Called when the event fires.
Participantis one person in the room — the object useRoom'sparticipantsmap holds, and the one itsonParticipantJoinedandonParticipantLeftevents hand you.Prefer useParticipant in a component. It exposes the same state as tracked React state that re-renders on change, and the same 20 methods, so a component never has to reach into this object. This class documents what the raw object carries for the cases a hook cannot cover — reading a participant inside an event handler, say.
An agent participant is a different shape: useParticipant throws for one, and AgentParticipant documents it instead.