{"name":"videojs-contrib-media-sources","version":"4.6.0","description":"A Media Source Extensions plugin for video.js","main":"es5/videojs-contrib-media-sources.js","scripts":{"prebuild":"npm run clean","build":"npm-run-all -p build:*","build:js":"npm-run-all build:js:babel build:js:browserify build:js:bannerize build:js:collapse build:js:uglify","build:js:babel":"babel src -d es5","build:js:bannerize":"bannerize dist/videojs-contrib-media-sources.js --banner=scripts/banner.ejs","build:js:browserify":"browserify . -t browserify-shim -s videojs-contrib-media-sources -o dist/videojs-contrib-media-sources.js","build:test:browserify":"browserify test/browserify-test.js -o dist-test/browserify-test.js","build:test:webpack":"webpack test/webpack-test.js dist-test/webpack-test.js","build:test":"npm-run-all build:test:js build:test:browserify build:test:webpack","build:test:js":"node scripts/build-test.js","build:js:collapse":"bundle-collapser dist/videojs-contrib-media-sources.js -o dist/videojs-contrib-media-sources.min.js","build:js:uglify":"uglifyjs dist/videojs-contrib-media-sources.min.js --comments -m -c -o dist/videojs-contrib-media-sources.min.js","clean":"node -e \"var s=require('shelljs'),d=['dist','dist-test','es5'];s.rm('-rf',d);s.mkdir('-p',d);\"","docs":"npm-run-all docs:*","docs:api":"jsdoc src -r -d docs/api","docs:toc":"doctoc README.md","lint":"vjsstandard","prestart":"npm-run-all docs build","start":"npm-run-all -p start:* watch:*","start:serve":"babel-node scripts/server.js","pretest":"npm-run-all lint build","test":"karma start test/karma.conf.js","test:chrome":"npm run pretest && karma start test/karma.conf.js --browsers Chrome","test:firefox":"npm run pretest && karma start test/karma.conf.js --browsers Firefox","test:ie":"npm run pretest && karma start test/karma.conf.js --browsers IE","test:safari":"npm run pretest && karma start test/karma.conf.js --browsers Safari","preversion":"npm test","version":"npm run build","watch":"npm-run-all -p watch:*","watch:doc":"nodemon --watch src/ --exec npm run docs","watch:js":"npm-run-all -p watch:js:babel watch:js:browserify","watch:js:babel":"babel src --watch -d es5","watch:js:browserify":"watchify . -t browserify-shim -v -o dist/videojs-contrib-media-sources.js","watch:test:browserify":"watchify test/browserify-test.js -o dist-test/browserify-test.js","watch:test:webpack":"watchify test/webpack-test.js -o dist-test/webpack-test.js","watch:test":"npm-run-all watch:test:js watch:test:browserify watch:test:webpack","watch:test:js":"node scripts/watch-test.js","prepublish":"npm run build"},"keywords":["videojs","videojs-plugin"],"author":{"name":"Brightcove, Inc."},"license":"Apache-2.0","browserify-shim":{"qunit":"global:QUnit","sinon":"global:sinon","video.js":"global:videojs"},"vjsstandard":{"ignore":["dist","dist-test","docs","es5","scripts","test/karma.conf.js"]},"files":["CONTRIBUTING.md","dist-test/","dist/","docs/","es5/","index.html","scripts/","src/","test/"],"dependencies":{"global":"^4.3.0","mux.js":"4.3.0","video.js":"^5.17.0","webworkify":"1.0.2"},"devDependencies":{"babel":"^5.8.0","babelify":"^6.0.0","bannerize":"^1.0.0","browserify":"^11.0.0","browserify-shim":"^3.0.0","bundle-collapser":"^1.2.1","connect":"^3.4.0","cowsay":"^1.1.0","doctoc":"^0.15.0","glob":"^6.0.3","jsdoc":"^3.4.0","karma":"^0.13.0","karma-browserify":"^4.4.0","karma-chrome-launcher":"^2.2.0","karma-detect-browsers":"^2.0.0","karma-firefox-launcher":"^0.1.0","karma-ie-launcher":"^0.2.0","karma-qunit":"^0.1.0","karma-safari-launcher":"^0.1.0","lodash-compat":"^3.10.0","minimist":"^1.2.0","nodemon":"^1.9.1","npm-run-all":"^1.2.0","portscanner":"^1.0.0","qunitjs":"^1.18.0","serve-static":"^1.10.0","shelljs":"^0.5.3","sinon":"1.14.1","uglify-js":"^2.5.0","videojs-flash":"^1.0.0-RC.1","videojs-standard":"^4.0.3","watchify":"^3.6.0","webpack":"^1.13.2"},"gitHead":"fd7052ad5ad7242bd71a36491be2af3b617209a4","_id":"videojs-contrib-media-sources@4.6.0","_npmVersion":"5.4.2","_nodeVersion":"8.4.0","_npmUser":{"name":"mjneil","email":"mneilweb@gmail.com"},"dist":{"integrity":"sha512-XxIEbqbh3np5YuzjnJMgN6Ym5NhwSv2mYfFUantMihTp4aVdoYiVkuRJCsiB9rOuT/n/E1XLZn6KWyRYJDM3Yw==","shasum":"15783cc620781fec93a79a2c97c8ac91cc339605","tarball":"http://registry-npm.ywwl.com/videojs-contrib-media-sources/download/videojs-contrib-media-sources-4.6.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA0MWTzZnZKW+98Uq1hMKmztgz7bXi0rcJYu8W9AgbpjAiEAguw1YEShVDW3H5SQx+VlW+P+bPDBKFonMh+dlxNR7Uw="}],"size":1175161,"noattachment":false,"key":"/videojs-contrib-media-sources/-/videojs-contrib-media-sources-4.6.0.tgz"},"maintainers":[{"email":"mneilweb@gmail.com","name":"mjneil"},{"email":"joseph.a.forbes@gmail.com","name":"forbesjo"},{"email":"gesinger@gmail.com","name":"gesinger"},{"email":"jon.carlos.rivera@gmail.com","name":"imbcmdth"},{"email":"lwhitaker@brightcove.com","name":"bclwhitaker"},{"email":"dlapalomento@gmail.com","name":"dmlap"},{"email":"me@gkatsev.com","name":"gkatsev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/videojs-contrib-media-sources-4.6.0.tgz_1508264204822_0.5851558858994395"},"directories":{},"readme":"# videojs-media-sources\n\nA [Media Source Extensions](https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html) shim for video.js.\n\nMedia Source Extensions (MSE) is a W3C draft specification that makes it possible to feed data directly to a video element.\nMSE allows video developers to build functionality like adaptive streaming directly in javascript.\n\nLead Maintainer: Jon-Carlos Rivera [@imbcmdth](https://github.com/imbcmdth)\n\nMaintenance Status: Stable\n\n<!-- START doctoc generated TOC please keep comment here to allow auto update -->\n<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->\n**Table of Contents**  *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n- [Getting Started](#getting-started)\n- [Options](#options)\n  - [mode](#mode)\n- [Release History](#release-history)\n- [License](#license)\n\n<!-- END doctoc generated TOC please keep comment here to allow auto update -->\n\n\n## Getting Started\n\nOn browsers that natively support Media Source Extensions, the HTML implementation will be used.\nIf you're running in an environment without MSE, a Flash-backed polyfill will be used.\nCurrently, the Flash polyfill only supports video content encoded in the FLV file format.\nFor information on how FLVs are structured, Adobe hosts the [latest version of the spec](http://www.adobe.com/devnet/f4v.html) on their site.\n\nThe Flash polyfill attempts to balance throughput to the FLV with end-user responsiveness by asynchronously feeding bytes to the SWF at a fixed rate.\nBy default, that rate is capped at 4MB/s.\nIf you'd like to play higher bitrate content, you can adjust that setting:\n\n```javascript\n// 8MB/s at 60fps\nvideojs.MediaSource.BYTES_PER_SECOND_GOAL = 8 * 1024 * 1024;\n```\nSetting the `BYTES_PER_SECOND_GOAL` too high may lead to dropped frames during playback on slower computers.\n\nCheck out an example of the plugin in use in [example.html](example.html).\n\n## Options\nYou can configure some aspects of the MediaSource polyfill by\nspecifying a hash of options when you construct it:\n\n```js\nvar mediaSource = new videojs.MediaSource({ mode: 'html5' });\n```\n\n### mode\nType: `string`\nValues: `'auto'`, `'html5'`, `'flash'`\nDefault Value: `'auto'`\n\nHow to determine the MediaSources implementation to use. With the\ndefault value of `auto`, the presence of native MediaSources is\ndetected at construction time and they're used if available. Choosing\n`html5` or `flash` will force the use of that respective MediaSource\nimplementation, even if it does not appear the browser supports it.\n\n## Release History\n\n * 1.0.0: throw an error if appends are called during an update\n * 0.3.0: Delegate SourceBuffer.abort() calls to the SWF\n * 0.2.0: Improve interactivity by batching communication with Flash.\n * 0.1.0: Initial release\n\n## License\n\nSee [LICENSE-APACHE2](LICENSE-APACHE2).\n","publish_time":1508264206540,"_cnpm_publish_time":1508264206540,"dist-tags":{"latest":"4.7.2","qa":"4.6.3-rc-2"}}