{"_id":"md-gum-polyfill","_rev":"3-836f597c94883306a54f73bf6ef4d307","name":"md-gum-polyfill","description":"A polyfill to use the Promise-flavoured, `mediaDevices` based version of getUserMedia, in browsers that support *some sort* of getUserMedia.","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"md-gum-polyfill","version":"1.0.0","description":"A polyfill to use the Promise-flavoured, `mediaDevices` based version of getUserMedia, in browsers that support *some sort* of getUserMedia.","main":"mediaDevices-getUserMedia-polyfill.js","directories":{"example":"example"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mozdevs/mediaDevices-getUserMedia-polyfill.git"},"keywords":["getUserMedia","streaming","polyfill"],"author":{"name":"sole"},"license":"MPL-2.0","bugs":{"url":"https://github.com/mozdevs/mediaDevices-getUserMedia-polyfill/issues"},"homepage":"https://github.com/mozdevs/mediaDevices-getUserMedia-polyfill#readme","gitHead":"50ae5ca412686da293630e500428ac30e672020a","_id":"md-gum-polyfill@1.0.0","_shasum":"829a512d25ed0318c0c49a961048b505f670a2db","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sole","email":"listas@soledadpenades.com"},"dist":{"shasum":"829a512d25ed0318c0c49a961048b505f670a2db","tarball":"https://registry.npmjs.org/md-gum-polyfill/-/md-gum-polyfill-1.0.0.tgz","integrity":"sha512-JbU1OQqvyxGWxv6xLP/K4I5NbNO/hkZPVa8FCm38CNGBGtwBgYHKJttzOWqXHmUT3sVje63sEBqGtci/mtdQqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDn457AH2NmKgIU0TAx8nVcx6V4i8jdOcwwAdlIZ0d7UAIhAOxD9tGrZ2QCZJQTSdGbCW3Mr6iItyreqB2Y1Sr2lxuY"}]},"maintainers":[{"name":"sole","email":"listas@soledadpenades.com"}]}},"readme":"# mediaDevices-getUserMedia-polyfill\n\n> A polyfill to use the Promise-flavoured, `mediaDevices` based version of getUserMedia, in browsers that support *some sort* of getUserMedia.\n\nWith this polyfill you can access getUserMedia like this:\n\n```javascript\nnavigator.mediaDevices.getUserMedia({ video: true, audio: true }).then(function(stream) {\n\n}, function(error) {\n\n});\n```\n\nversus the old version:\n\n```javascript\nnavigator.getUserMedia({ video: true, audio: true }, function(stream) {\n\n}, function(error) {\n\n});\n```\n\nLook at [index.html](example/index.html) and [main.js](./example/main.js) in the [example](./example) folder to see how to use the result of the stream to display a video on screen when successful, or how to detect errors and showing a message to the user.\n\nHere is a list of [browser support for WebRTC / getUserMedia](http://iswebrtcreadyyet.com/).\n","maintainers":[{"name":"sole","email":"listas@soledadpenades.com"}],"time":{"modified":"2022-06-19T17:12:12.494Z","created":"2015-12-18T15:03:34.838Z","1.0.0":"2015-12-18T15:03:34.838Z"},"homepage":"https://github.com/mozdevs/mediaDevices-getUserMedia-polyfill#readme","keywords":["getUserMedia","streaming","polyfill"],"repository":{"type":"git","url":"git+https://github.com/mozdevs/mediaDevices-getUserMedia-polyfill.git"},"author":{"name":"sole"},"bugs":{"url":"https://github.com/mozdevs/mediaDevices-getUserMedia-polyfill/issues"},"license":"MPL-2.0","readmeFilename":"README.md"}