RoomSessionDevice
A RoomSessionDevice represents a device (such as a microphone or a camera) that is at some point in its lifetime part of a RoomSession. You can obtain a RoomSessionDevice from the RoomSession methods RoomSession.addCamera, RoomSession.addMicrophone, and RoomSession.addDevice.
Properties
active
• Readonly
active: boolean
Whether the connection is currently active.
cameraId
• Readonly
cameraId: null
| string
The id of the video device, or null if not available.
cameraLabel
• Readonly
cameraLabel: null
| string
The label of the video device, or null if not available.
localAudioTrack
• Readonly
localAudioTrack: null
| MediaStreamTrack
Provides access to the local audio MediaStreamTrack.
localStream
• Readonly
localStream: undefined
| MediaStream
Provides access to the local MediaStream.
localVideoTrack
• Readonly
localVideoTrack: null
| MediaStreamTrack
Provides access to the local video MediaStreamTrack.