11

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)

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

5 Comments

This is still not implemented on desktop browsers ?
It's crazy how everyone is working on AIs to make software engineers obsolete and nobody is batting an eye at these types of obvious requirements.
It seems it has not yet been implemented. Or has it?
Oh - maybe this is why some KYC verification services force you to follow a link on your mobile to proceed rather than let you use your webcam.
@Mikustykus maybe they want to confirm/verify that you own the mobile phone number.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.