javascript - HTML Media Capture API vs. getUserMedia() -


currently, i'm trying simple thing (well, thought simple...): i want take photo web-cam in web-application.

i stumbled on 2 possibilities:

1. html media capture api looks easy:

<input type="file" accept="image/*" capture="camera"> 

2. javascript media streams, pretty easy:

navigator.getusermedia() 

and here comes question:

the html media capture api not working in desktop browsers , javascript media streams not working on ios. 1 should take? both? 1 developed in future? 1 preferred way? 1 prefer? there drawbacks in 1 solutions don't see fare (except of compatibility?).

thanks.

btw: i'm not experienced html/javascript developer, please kind ;)

here example http://html5.by/blog/demo/image-capture-getusermedia/ , here article can http://html5.by/blog/html5-image-capture-getusermedia-stream-api-mirror/ sorry in russian, example working , can check code + google translate :)

hope help


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -