No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
libs
src
test
.gitignore
.jshintrc
Gruntfile.js
LICENSE-MIT
README.md
package.json

README.md

navigator.getUserMedia()

Reasonably normalization for navigator.getUserMedia. Inspired by Mike Taylr's gUM Shield

Compressed size: 480 bytes gzipped (778 bytes minified).

Getting Started

Download the production version or the development version.

In your web page:

<!--  You can optionally include Unprefix.js... -->
<!-- <script src="https://raw.github.com/rwldrn/unprefix.js/master/dist/unprefix.js.min.js"></script> -->

<script src="dist/navigator.getusermedia.min.js"></script>
<script>

navigator.getUserMedia({ video: true, audio: true }, function( raw, cooked ) {

  // "raw" is the stream as it was received by the host API
  // "cooked" is the normalized, URL.createObjectURL()-ified

});

</script>

Supported By These Fine Browsers:

  • Opera 12.02
  • Chrome (behind an about://flag)
  • Firefox Nightly 18+

Contributing

Style guide: idiomatic.js, Lint and test your code using grunt.

Also, please don't edit files in the "dist" subdirectory as they are generated via grunt. You'll find source code in the "src" subdirectory!

License

Copyright (c) 2012 Rick Waldron waldron.rick@gmail.com Licensed under the MIT license.