Skip to main content

getLocalVideoStream()

Get the video stream of the selected video input device or the default input device

This method returns the video stream of the default video input device or the selected video input device.

The video input device can be selected by calling the chooseVideoInputDevice(deviceId) method and passing the deviceId obtained from the listVideoInputDevices() method.

If no video input device is selected then the operating system's default video input device is returned.

JavaScript
var stream = await meeting.getLocalVideoStream();

here are currently no video input devices then an exception occurs.

info

Browser will request user to allow camera or screen