简体   繁体   中英

Capturing pictures from webcam in html5 to upload on server

I am trying to create an app using an HTML5 form in which user can take picture using webcam and upload to server. I searched on the internet and tried several plugins and read a couple of posts and here is the summary of my research during which I found these plugins useful. 在此处输入图片说明

But the problem is that, none of the plugin works in all browsers, meaning Firefox, Opera, Chrome, Safari and IE.

So this is my question: Is there any method using jQuery or Javascript or without them in HTML5 to use webcam to take pictures?

Webrtc is a good one, but it's not working in IE and Safari. How can I make this function in all browsers?

PS: Target Browsers are IE, Firefox, Google Chrome, Opera and Safari.

Please advise.

Besides HTML5, you can try using some webcam JavaScript library to meet your requirements. Check out this demo application of image capture & upload and see if this is what you need. (ps. I work for the company)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM