junjiexing / gitalk-repo

gitalk存储仓库
0 stars 0 forks source link

CEF49在网页上播放USB摄像头并截图 | 流水账 #6

Open junjiexing opened 4 years ago

junjiexing commented 4 years ago

https://laoxing.me/2020/07/17/CEF49%E5%9C%A8%E7%BD%91%E9%A1%B5%E4%B8%8A%E6%92%AD%E6%94%BEUSB%E6%91%84%E5%83%8F%E5%A4%B4%E5%B9%B6%E6%88%AA%E5%9B%BE/

chromium 52才开始支持navigator.mediaDevices.getUserMedia()这个API,49也没有navigator.getUserMedia()这个接口,但是有个navigator.webkitGetUserMedia(),可以参考这里。首先来枚举所有的音视频设备: 1navigator.mediaDevices.enumerateDevices().then(