#GumWrapper
==========
A wrapper for getUserMedia, enabling easy cross-browser support for webcam access.
- The latest Firefox, Opera or Chrome/Chromium. N.b. if using Firefox 18 or 19,
media.peerconnection.enabled
needs to be set totrue
inabout:config
- JavaScript turned on - note no other libraries required.
First, create a new instance of GumWrapper
, parsing the id of a video element. The success and error callback arguments are optional.
var gum = new GumWrapper({video: 'myVideo'}, showSuccess, showError);
Call the play method and you should be good to go!
gum.play();
Open example.html
to see it in action.
Licensed under the MIT license.