constraints): Promise<void>Replaces the current camera stream with the one coming from a different device.
Specify the constraints that the device should satisfy. See MediaTrackConstraints.
Promise<void>
Replaces the current camera stream with the one coming from the specified deviceId: