{"_id":"videojs-media-session","_rev":"33-2ccd4a1154ab642282fca979e087a300","name":"videojs-media-session","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"videojs-media-session","version":"1.0.0","keywords":["videojs","videojs-plugin"],"author":{"name":"Gary Katsevman","email":"git@gkatsev.com"},"license":"MIT","_id":"videojs-media-session@1.0.0","maintainers":[{"name":"gkatsev","email":"me@gkatsev.com"}],"dist":{"shasum":"0e8190b58c31730aff23b23afa5d49f9fd3f866c","tarball":"https://registry.npmjs.org/videojs-media-session/-/videojs-media-session-1.0.0.tgz","integrity":"sha512-bv9+GP2GqU60qzcLj86sNSF/APFQX6vfBfAReFVvBmPEV7UIVk+BbMwyUVQ0+HuLmdJVMiCoy/SL1obZce5nyw==","signatures":[{"sig":"MEUCICmr3L9q+ecf+6lfCWddJ8DIVpWxcn2I2wlSI4146bymAiEAlnjPqtwgpS3sJSfVu2vsGB7DwiQf0ZeUWOQtQ/j6P5M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/es5/index.js","_from":".","files":["CHANGELOG.md","CONTRIBUTING.md","README.md","dist/browser","dist/docs","dist/es5","dist/lang","docs/","index.html","src/"],"_shasum":"0e8190b58c31730aff23b23afa5d49f9fd3f866c","engines":{"node":">=4.4.0"},"gitHead":"f1ff3d636bc8c948ca29febfd8c0cf854800a589","scripts":{"lint":"sb-lint","test":"sb-test","build":"sb-build","clean":"sb-clean","start":"sb-start","watch":"sb-watch","prepublish":"npm run build","postversion":"sb-release"},"_npmUser":{"name":"gkatsev","email":"me@gkatsev.com"},"spellbook":{"css":false},"_npmVersion":"2.15.11","description":"Media Sessions API","directories":{},"jsnext:main":"src/js/index.js","_nodeVersion":"4.7.2","dependencies":{"video.js":"^5.16.0"},"browserify-shim":"node_modules/videojs-spellbook/config/shim.config.js","devDependencies":{"videojs-playlist":"^3.0.2","videojs-spellbook":"^2.0.2","videojs-playlist-ui":"^2.3.2"},"_npmOperationalInternal":{"tmp":"tmp/videojs-media-session-1.0.0.tgz_1487312018423_0.3452757738996297","host":"packages-18-east.internal.npmjs.com"},"generator-videojs-plugin":{"version":"3.1.0"}}},"time":{"created":"2017-02-17T06:13:39.004Z","modified":"2026-09-09T18:49:44.227Z","1.0.0":"2017-02-17T06:13:39.004Z"},"author":{"name":"Gary Katsevman","email":"git@gkatsev.com"},"license":"MIT","keywords":["videojs","videojs-plugin"],"description":"Media Sessions API","maintainers":[{"email":"cpillsbury@mux.com","name":"cpillsburymux"},{"email":"alexander.barstow@gmail.com","name":"abarstow"},{"email":"awaldron@brightcove.com","name":"awaldron"},{"email":"brandonocasey@gmail.com","name":"brandonocasey"},{"email":"sarah@teaandbiscuits.net","name":"essk"},{"email":"gesinger@gmail.com","name":"gesinger"},{"email":"me@gkatsev.com","name":"gkatsev"},{"email":"npm@heff.me","name":"heff"},{"email":"hswaminathan@brightcove.com","name":"hswaminathan"},{"email":"jon.carlos.rivera@gmail.com","name":"imbcmdth"},{"email":"ldayananda@brightcove.com","name":"lday"},{"email":"npm@htbx.net","name":"mmcclure"},{"email":"usmanonazim@gmail.com","name":"usmanonazim"},{"email":"videojs@gkatsev.com","name":"videojs-user"},{"email":"ddashkevich@brightcove.com","name":"ddashkevich"},{"email":"phale@brightcove.com","name":"phale"},{"email":"de.cepulis@gmail.com","name":"decepulis"},{"email":"me@wesleyluyten.com","name":"luwes"}],"readme":"# videojs-media-session\n\nMedia Sessions API\n\nThis is an experimental videojs plugin that interfaces videojs, [videojs-playlist][], and Chrome's newly announced [Media Session API] [implementation][].\n\n## Table of Contents\n\n<!-- START doctoc -->\n<!-- END doctoc -->\n## Installation\n\n```sh\nnpm install --save videojs-media-session\n```\n\n## Usage\n\nTo include videojs-media-session on your website or web application, use any of the following methods.\n\n### `<script>` Tag\n\nThis is the simplest case. Get the script in whatever way you prefer and include the plugin _after_ you include [video.js][videojs], so that the `videojs` global is available.\n\n```html\n<script src=\"//path/to/video.min.js\"></script>\n<script src=\"//path/to/videojs-media-session.min.js\"></script>\n<script>\n  var player = videojs('my-video');\n\n  player.mediaSession();\n</script>\n```\n\n### Browserify\n\nWhen using with Browserify, install videojs-media-session via npm and `require` the plugin as you would any other module.\n\n```js\nvar videojs = require('video.js');\n\n// The actual plugin function is exported by this module, but it is also\n// attached to the `Player.prototype`; so, there is no need to assign it\n// to a variable.\nrequire('videojs-media-session');\n\nvar player = videojs('my-video');\n\nplayer.mediaSession();\n```\n\n### RequireJS/AMD\n\nWhen using with RequireJS (or another AMD library), get the script in whatever way you prefer and `require` the plugin as you normally would:\n\n```js\nrequire(['video.js', 'videojs-media-session'], function(videojs) {\n  var player = videojs('my-video');\n\n  player.mediaSession();\n});\n```\n\n## License\n\nMIT. Copyright (c) Gary Katsevman &lt;git@gkatsev.com&gt;\n\n\n[videojs]: http://videojs.com/\n[videojs-playlist]: https://github.com/brightcove/videojs-playlist\n[Media Session API]: https://wicg.github.io/mediasession/\n[implementation]: https://developers.google.com/web/updates/2017/02/media-session\n","readmeFilename":"README.md"}