For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
ReferenceGuidesClick-to-Call
ReferenceGuidesClick-to-Call
  • Core
    • Overview
  • SignalWire Client
    • Overview
    • Notifications
    • Client
    • Utility functions
  • Video
    • Overview
    • LocalOverlay
    • RoomSession
    • RoomSessionDevice
    • RoomSessionPlayback
    • RoomSessionRecording
    • RoomSessionScreenShare
    • RoomSessionStream
    • RoomDevice
    • RoomScreenShare
  • Chat
    • Overview
    • Client
    • ChatMember
    • ChatMemberEntity
    • ChatMessage
    • ChatMessageEntity
  • PubSub
    • Overview
    • Client
    • PubSubMessage
  • WebRTC
    • Overview
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Properties
  • Methods
Video

RoomSessionDevice

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

audioMute

Next
Built with

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 addCamera, addMicrophone, and addDevice.

Properties

active
boolean

Whether the connection is currently active.

cameraId
string | null

The id of the video device, or null if not available.

cameraLabel
string | null

The label of the video device, or null if not available.

localAudioTrack
MediaStreamTrack | null

Provides access to the local audio MediaStreamTrack.

localStream
MediaStream | undefined

Provides access to the local MediaStream.

localVideoTrack
MediaStreamTrack | null

Provides access to the local video MediaStreamTrack.

memberId
string

The id of the current member within the room.

microphoneId
string | null

The id of the audio input device, or null if not available.

microphoneLabel
string | null

The label of the audio input device, or null if not available.

remoteStream
MediaStream | undefined

Provides access to the remote MediaStream.

roomId
string

The unique identifier for the room.

roomSessionId
string

The unique identifier for the room session.

Methods

join

Join the room session

leave

Leave the room session

audioMute

Mute the microphone

audioUnmute

Unmute the microphone

videoMute

Mute the video

videoUnmute

Unmute the video

updateCamera

Switch to a different camera

updateMicrophone

Switch to a different microphone

setInputVolume

Set the input volume level

setInputSensitivity

Set the input sensitivity level

setMicrophoneVolume

Set microphone volume (deprecated)