Is there a way to detect whether a browser supports the HTML5 Media Capture API for a mobile website I'm building? I can only seem to find solutions for detecting getUserMedia()
support.
I would like to be able to present mobile users one of two scenarios:
- User's browser supports the API, so two upload buttons are displayed, one activating the camera and one activating the image gallery.
- User's browser doesn't support the API, so just one upload buttons is displayed, hopefully activating the gallery if their browser supports the accept parameter.
getUserMedia()
a different API to Media Capture? For example: Chrome supportsgetUserMedia()
and can display images and video from my webcam natively, but if I use the following HTML:<input type="file" accept="image/*;capture=camera">
, I can't capture an image from my webcam to upload to my web server. – SelestinagetUserMedia()
to trigger system dialogues in the same way as you could with the media capture API?getUserMedia()
seems to focus on embedding media capture into the web page. In an ideal world I'm trying to replicate the PhoneGap camera function: docs.phonegap.com/en/1.0.0/phonegap_camera_camera.md.html – Selestina