You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 13, 2024. It is now read-only.
// Listen for changes to media devices and update the list accordinglynavigator.mediaDevices.addEventListener('devicechange',event=>{constnewCameraList=getConnectedDevices('video');updateCameraList(newCameraList);});
it should be:
// Listen for changes to media devices and update the list accordinglynavigator.mediaDevices.addEventListener('devicechange',asyncevent=>{constnewCameraList=awaitgetConnectedDevices('videoinput');updateCameraList(newCameraList);});
(Added async and await, and replaced 'video' with 'videoinput'.)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I couldn't find the code for the page https://webrtc.org/getting-started/media-devices in this repo, but in the code block for "Listening for devices changes" instead of the following:
it should be:
(Added
async
andawait
, and replaced'video'
with'videoinput'
.)The text was updated successfully, but these errors were encountered: