updateCamera

View as Markdown

updateCamera

  • updateCamera(constraints): Promise<void>

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

Parameters

constraints
MediaTrackConstraints

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

Returns

Promise<void>

Example

Replaces the current camera stream with the one coming from the specified deviceId:

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