Web19 apr. 2024 · async updateInputOutputMediaDevices (): Promise { await navigator.mediaDevices.getUserMedia ( { audio: true, video: true }) const devices = await navigator.mediaDevices.enumerateDevices () await this.updateWebcams (devices) await this.updateAudioInputs (devices) await this.updateAudioOutputs (devices) return devices … Web30 mei 2024 · navigator.mediaDevices.enumerateDevices () will return an empty label attribute value in the media device info if the respective permissions are not granted. To make it work, I placed this function after all of the media permissions have been granted so it returns a label attribute value as well. Share Improve this answer Follow
MediaDeviceInfo - Web APIs - W3cubDocs
WebenumerateDevices返回一个promise,如果正确执行可以得到一个MediaDeviceInfo的数组,每项分别有4个属性(都是只读)。 TIPS: 如果页面未获取浏览器设备权限,则返回 … indian mistletoe flower
MediaDeviceInfo: label property - Web APIs MDN - Mozilla
Web21 jan. 2024 · new MediaDeviceInfo (); new MediaDeviceInfo ( { deviceId: 'Brad Test', groupId: 'Brad Test', kind: 'audioinput', label: 'Brad Test' }); Uncaught TypeError: Illegal constructor javascript webrtc mediadevices Share Improve this question Follow asked Jan 21 at 0:11 Brad 157k 51 345 523 Add a comment 1 Answer Sorted by: 3 Web25 feb. 2024 · Based on brief testing, it is certainly possible to override mediaDevices.enumerateDevices (). It's very unlikely it needs to be a MediaDeviceInfo Object. It's very unlikely the page JavaScript actually checks. A POJO, with appropriate properties, is nearly certain to be fine. Web11 sep. 2024 · New issue Angular : MediaDeviceInfo is not defined #246 Closed azurehari opened this issue on Sep 11, 2024 · 2 comments azurehari on Sep 11, 2024 odahcam added not a bug question labels on Sep 11, 2024 odahcam closed this as completed on Sep 11, 2024 zxing-js locked and limited conversation to collaborators on Sep 11, 2024 indian mix chatovod