HTML and CSS Reference
In-Depth Information
The method signature for getUserMedia() is shown in the first listing. It follows
the pattern of accepting an array of options along with callback functions, similar to the
Geolocation API (see chapter 3 ).
Listing I.1. getUserMedia() method signature
The following shows practical code for making getUserMedia work in Opera and
Chrome. It will grab a video stream from the camera and pipe the output directly into
a video element. The annotations indicate where this code fits in the finished code (in-
dex-8.html) from chapter 8 .
Search WWH ::

Custom Search