*** id: 66346ab2-684d-410e-a35d-0d2b5801252f title: updateCamera slug: /js/reference/video/room-session/update-camera description: updateCamera method for the RoomSession 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 Replaces the current camera stream with the one coming from the specified deviceId: ```javascript await roomSession.updateCamera({ deviceId: "/o4ZeWzroh+8q0Ds/CFfmn9XpqaHzmW3L/5ZBC22CRg=", }); ```