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 was 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'.)