Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

force laptop to open camera on HTML5 file input accept image/* capture

I need my HTML5 app to capture a picture in high-resolution - the video/getUserMedia/canvas combination is working but is not providing the required resolution.

Using the input type="file" accept="image/*" capture> (or capture="camera") works OK on mobile-devices (tablets or phones) - it offers opening the device's camera at least as one of the options (depending on device, browser)

But I want this to happen on my Windows laptop; I tried Firefox, IE and safari - they all open the file dialog, not the laptop's camera (embedded or attached)

like image 725
user1498707 Avatar asked Dec 13 '14 08:12

user1498707


1 Answers

The HTML Media Capture spec is not yet implemented by any desktop browser.

Surprisingly the spec does contain an image of how it would work on desktop/macOS:

enter image description here

like image 150
Octavian Naicu Avatar answered Nov 15 '22 16:11

Octavian Naicu