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
        • audioMute
        • audioUnmute
        • join
        • leave
        • setInputSensitivity
        • setInputVolume
        • setMicrophoneVolume
        • updateCamera
        • updateMicrophone
        • videoMute
        • videoUnmute
    • 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
  • updateCamera
VideoRoomSessionDeviceMethods

updateCamera

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

updateMicrophone

Next
Built with

updateCamera

▸ updateCamera(constraints): Promise<void>

Replaces the current camera stream with the one coming from a different device.

Parameters

constraints
MediaTrackConstraintsRequired

Specify the constraints that the device should satisfy. See MediaTrackConstraints.

Returns

Promise<void>

Example

1await roomDevice.updateCamera({
2 deviceId: "/o4ZeWzroh+8q0Ds/CFfmn9XpqaHzmW3L/5ZBC22CRg=",
3});