Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
324 views
in Technique[技术] by (71.8m points)

javascript - getusermedia支持哪些设备(What devices is supported by getusermedia)

I am using getusermedia() to use webcams for an online application.

(我正在使用getusermedia()将网络摄像头用于在线应用程序。)

I am using a Logitech C615 webcam (plug and play) and it works great.

(我正在使用Logitech C615网络摄像头(即插即用),效果很好。)

Will getusermedia() only work with plug and play webcams or will it also work with webcams with drivers.

(getusermedia()仅适用于即插即用网络摄像头,或者也适用于具有驱动程序的网络摄像头。)

In my opinion webcams with drivers will have DLL files andyou will need to include DLL files in the code to work, so any webcam with driver will not be detected by getusermedia() .

(我认为带有驱动程序的网络摄像头将具有DLL文件,并且您需要在代码中包含DLL文件才能工作,因此getusermedia()不会检测到任何带有驱动程序的网络摄像头。)

Am I correct?

(我对么?)

  ask by CharlesWashington translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

getUserMedia works through your local web browser.

(getUserMedia通过本地Web浏览器工作。)

The browser code enumerates the video devices on your machine using the operating system's device enumeration API.

(浏览器代码使用操作系统的设备枚举API枚举计算机上的视频设备。)

Webcams that work with browsers, when their drivers are installed correctly, show up in that enumeration.

(如果正确安装了驱动程序,则可与浏览器一起使用的网络摄像头将显示在该枚举中。)

If the cam's driver requires the software using it to bind to a particular custom DLL, then it doesn't work with web browsers.

(如果cam的驱动程序要求使用它的软件绑定到特定的自定义DLL,则它不适用于Web浏览器。)

But then it's not much of a webcam, eh?

(但这不是网络摄像头,是吗?)

You may have a special purpose camera device, for machine vision or some such thing.

(您可能具有专用的摄像头设备,用于机器视觉或类似的东西。)

But it it doesn't have standalone driver, browsers cant't use it.

(但是它没有独立的驱动程序,浏览器无法使用它。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...