0

在浏览器中从用户的网络摄像头捕获图片的最简单(对于编码人员和用户)和最向后兼容/牢不可破的方法是什么?

更多问题:是否有这样做的事实上的标准网络服务?是否有任何相关标准,如“最佳实践”指示的微格式或其他可选代码?

4

1 回答 1

0

So you have a couple of options on this...

  1. getUserMedia() which is the new HTML5 method for accessing a users webcam and doing things with the image data. This is ONLY for modern browsers and currently is supported in Chrome, but I expect you will see it soon in the others. The method works great and is SUPER easy to use once you read through the docs.

  2. Flash. Flash has always been good at this stuff and you can easily create a method for snapping a photo and sending the data to javascript or php for processing.

于 2012-11-13T02:53:07.997 回答