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
#
ParametersNo parameters.
#
ReturnsJitsiMeetJS.JitsiConnection
#
connection:string
#
connectionState: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 (ifuseRoom
was not called)
Record<string, TrackRecord[]>
#
remoteTracks: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.