*** id: 4aadc955-4215-4c9f-b950-e4a9c701eab3 title: updateCamera slug: /js/reference/video/room-session-device/update-camera description: updateCamera method for the RoomSessionDevice class. max-toc-depth: 3 ---------------- ### updateCamera ▸ **updateCamera**(`constraints`): `Promise` Replaces the current camera stream with the one coming from a different device. #### Parameters Specify the constraints that the device should satisfy. See [MediaTrackConstraints](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints). #### Returns `Promise` #### Example ```javascript await roomDevice.updateCamera({ deviceId: "/o4ZeWzroh+8q0Ds/CFfmn9XpqaHzmW3L/5ZBC22CRg=", }); ```