{"id":14384850,"url":"https://github.com/videojs/videojs-media-session","last_synced_at":"2025-08-23T18:30:49.610Z","repository":{"id":46562101,"uuid":"82262814","full_name":"videojs/videojs-media-session","owner":"videojs","description":"Media Session API plugin","archived":false,"fork":false,"pushed_at":"2021-10-06T11:27:42.000Z","size":222,"stargazers_count":8,"open_issues_count":2,"forks_count":8,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-08-29T18:36:05.546Z","etag":null,"topics":["media-session","media-session-api","playlist","videojs","videojs-playlist"],"latest_commit_sha":null,"homepage":"https://videojs.github.io/videojs-media-session/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/videojs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-17T06:00:16.000Z","updated_at":"2023-05-13T19:08:51.000Z","dependencies_parsed_at":"2022-09-01T19:11:42.749Z","dependency_job_id":null,"html_url":"https://github.com/videojs/videojs-media-session","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-media-session","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-media-session/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-media-session/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-media-session/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/videojs","download_url":"https://codeload.github.com/videojs/videojs-media-session/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230720927,"owners_count":18270478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["media-session","media-session-api","playlist","videojs","videojs-playlist"],"created_at":"2024-08-28T18:01:43.390Z","updated_at":"2024-12-21T13:30:21.688Z","avatar_url":"https://github.com/videojs.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"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\u003c!-- START doctoc --\u003e\n\u003c!-- END doctoc --\u003e\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### `\u003cscript\u003e` 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\u003cscript src=\"//path/to/video.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"//path/to/videojs-media-session.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  var player = videojs('my-video');\n\n  player.mediaSession();\n\u003c/script\u003e\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 \u0026lt;git@gkatsev.com\u0026gt;\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvideojs%2Fvideojs-media-session","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvideojs%2Fvideojs-media-session","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvideojs%2Fvideojs-media-session/lists"}