useRoomState
Use conference start. Usefull for:
- Get incoming tracks from participants
- Know the connection state
- Participant tracks
- Connection state
/src/App.js
/src/App.js
Parameters#
No parameters.
Returns#
connection:JitsiMeetJS.JitsiConnection#
connectionState:string#
The state of the conference connection. Can be :
"connected": the conference is connected"failure": the conference had trouble connectingundefined: the conference connection is pending, or inactive (ifuseRoomwas not called)
remoteTracks:Record<string, TrackRecord[]>#
A key-value pair where the key is the participant unique identifier, and the value the tracks they streams.
The streamed track is a TrackRecord:
_id:string โ The device id.jitsi:JitsiTrack โ The jitsi track record. See JitsiTracktype:string โ "audio" or "video"isMuted:boolean โ if the track is muted. Same as.jitsi.isMuted()function.isStopped:boolean โ if the track is in a stopped state.