Skip to content

Instantly share code, notes, and snippets.

@cmalven
Created September 10, 2015 18:27
Show Gist options
  • Save cmalven/f65e3a0d23803ac2b7d8 to your computer and use it in GitHub Desktop.
Save cmalven/f65e3a0d23803ac2b7d8 to your computer and use it in GitHub Desktop.
Check for availability of User Camera
if (Modernizr.getUserMedia || Modernizr.flash ) {
// The user has either getUserMedia or Flash available, so we can show the button.
$('.js-use-webcam-btn').show();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment