{"name":"videojs-contrib-media-sources","version":"2.4.6","description":"A Media Source Extensions plugin for video.js","main":"videojs-media-sources.js","scripts":{"test":"karma start test/karma.conf.js"},"repository":{"type":"git","url":"git+https://github.com/videojs/videojs-contrib-media-sources.git"},"keywords":["video.js","mse","media","source","extensions","video","html","flash","video"],"author":{"name":"Brightcove"},"license":"Apache 2","gitHead":"3374dc863816b74f90a62275c42ff3f1aca0a523","devDependencies":{"falafel":"^1.2.0","grunt":"^0.4.1","grunt-contrib-clean":"^0.6.0","grunt-contrib-concat":"^0.5.1","grunt-contrib-connect":"^0.7.1","grunt-contrib-jshint":"^0.11.3","grunt-contrib-uglify":"^0.9.1","grunt-contrib-watch":"^0.6.1","grunt-karma":"^0.12.0","karma":"^0.13.9","karma-chrome-launcher":"^0.2.0","karma-firefox-launcher":"^0.1.6","karma-qunit":"^0.1.5","qunitjs":"^1.14.0","video.js":"^5.1.0"},"dependencies":{"mux.js":"^1.0.0"},"bugs":{"url":"https://github.com/videojs/videojs-contrib-media-sources/issues"},"homepage":"https://github.com/videojs/videojs-contrib-media-sources#readme","_id":"videojs-contrib-media-sources@2.4.6","_shasum":"c12f39b8aaae3f690745e084c283a5ae0ca356ac","_from":".","_npmVersion":"2.14.15","_nodeVersion":"0.10.32","_npmUser":{"name":"imbcmdth","email":"jon.carlos.rivera@gmail.com"},"dist":{"shasum":"c12f39b8aaae3f690745e084c283a5ae0ca356ac","tarball":"http://registry-npm.ywwl.com/videojs-contrib-media-sources/download/videojs-contrib-media-sources-2.4.6.tgz","integrity":"sha512-ZGTXUTecIE2ooSxJ3taN8Rmey7kJqNWTn70/l/zOUiWQQfwqBOT7jdtL+hN4rtg3EBWdzWIHM8GvYA9Xif7h9Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPDa9R6D49DttqMecaJSu4co+SNk0bVvQ3315MLdSDFwIhAKSXQ7303UgtdiKvjqaijQlHYi+KAzCeE6yoaKisFwo1"}],"size":103879,"noattachment":false,"key":"/videojs-contrib-media-sources/-/videojs-contrib-media-sources-2.4.6.tgz"},"maintainers":[{"name":"bclwhitaker","email":"lwhitaker@brightcove.com"},{"name":"dmlap","email":"dlapalomento@gmail.com"},{"name":"gkatsev","email":"me@gkatsev.com"},{"name":"imbcmdth","email":"jon.carlos.rivera@gmail.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/videojs-contrib-media-sources-2.4.6.tgz_1455203845253_0.7284771085251123"},"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":1455203848737,"_cnpm_publish_time":1455203848737,"dist-tags":{"latest":"4.7.2","qa":"4.6.3-rc-2"}}