{"name":"videojs-contrib-media-sources","version":"0.0.0","description":"A Media Source Extensions plugin for video.js","main":"videojs-media-sources.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git@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","dependencies":{"video.js":"~4.2.2"},"_id":"videojs-contrib-media-sources@0.0.0","dist":{"shasum":"4542ce22e827d9747e283a249297daee3eccc856","tarball":"http://registry-npm.ywwl.com/videojs-contrib-media-sources/download/videojs-contrib-media-sources-0.0.0.tgz","integrity":"sha512-iPZBK8wUQ+34psWZ3PbPw1Lv9eh9HX6C4BANwj5mzfvrCEcUJ/cpsQJdknDOIscMtiFO2/7qwDuWW4wMMTG04A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE7CgdXL/PbiLds8O2HXy7FcS8WPrWIlFzJOeSPusWY+AiEAoQe+x/gGSmTY97YD8QA45orah69QtcnjClYjSOotfpQ="}],"size":63255,"noattachment":false,"key":"/videojs-contrib-media-sources/-/videojs-contrib-media-sources-0.0.0.tgz"},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"bclwhitaker","email":"lwhitaker@brightcove.com"},"maintainers":[{"name":"bclwhitaker","email":"lwhitaker@brightcove.com"}],"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":1384875298811,"_cnpm_publish_time":1384875298811,"dist-tags":{"latest":"4.7.2","qa":"4.6.3-rc-2"}}