{"id":18666127,"url":"https://github.com/michioxd/videojs-quality-selector-prebuilt","last_synced_at":"2026-02-14T07:31:23.960Z","repository":{"id":204477361,"uuid":"711949326","full_name":"michioxd/videojs-quality-selector-prebuilt","owner":"michioxd","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-01T10:17:46.000Z","size":274,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T16:35:51.407Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/michioxd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-30T13:53:51.000Z","updated_at":"2024-10-09T08:09:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"b574b1cf-2ce7-495d-996e-4c64a1767043","html_url":"https://github.com/michioxd/videojs-quality-selector-prebuilt","commit_stats":null,"previous_names":["michioxd/videojs-quality-selector-prebuilt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/michioxd/videojs-quality-selector-prebuilt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michioxd%2Fvideojs-quality-selector-prebuilt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michioxd%2Fvideojs-quality-selector-prebuilt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michioxd%2Fvideojs-quality-selector-prebuilt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michioxd%2Fvideojs-quality-selector-prebuilt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michioxd","download_url":"https://codeload.github.com/michioxd/videojs-quality-selector-prebuilt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michioxd%2Fvideojs-quality-selector-prebuilt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29439491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T07:24:13.446Z","status":"ssl_error","status_checked_at":"2026-02-14T07:23:58.969Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-07T08:30:39.359Z","updated_at":"2026-02-14T07:31:23.942Z","avatar_url":"https://github.com/michioxd.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Silvermine VideoJS Quality/Resolution Selector\n\n[![Build Status](https://travis-ci.org/silvermine/videojs-quality-selector.svg?branch=master)](https://travis-ci.org/silvermine/videojs-quality-selector)\n[![Coverage Status](https://coveralls.io/repos/github/silvermine/videojs-quality-selector/badge.svg?branch=master)](https://coveralls.io/github/silvermine/videojs-quality-selector?branch=master)\n[![Dependency Status](https://david-dm.org/silvermine/videojs-quality-selector.svg)](https://david-dm.org/silvermine/videojs-quality-selector)\n[![Dev Dependency Status](https://david-dm.org/silvermine/videojs-quality-selector/dev-status.svg)](https://david-dm.org/silvermine/videojs-quality-selector?type=dev)\n\n\n## What is it?\n\nA plugin for [videojs](http://videojs.com/) versions 6+ that adds a button to the control\nbar which will allow the user to choose from available video qualities or resolutions.\n\n\n## How do I use it?\n\nThere are three primary steps to use this plug-in: [(1) including](#includingrequiring),\n[(2) providing sources](#providing-video-sources), and [(3) adding the component the to\n`controlBar`](#adding-to-the-player). Please see the following for information on each\nstep.\n\n### Including/Requiring\n\n#### Using `\u003cscript\u003e` tag\n\nThe minified JS file can come from a downloaded copy or a CDN. When including\nit, make sure that the `\u003cscript\u003e` tag for the plugin appears _after_ the\ninclude for [video.js](http://videojs.com/) (note that this plugin will look\nfor `videojs` at `window.videojs`).\n\nThere is an example of this in\n[`docs/demo/index.html`](./docs/demo/index.html).\n\n##### From local file\n\n```js\n\u003cscript src=\"./path/to/video.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"./path/to/silvermine-videojs-quality-selector.min.js\"\u003e\u003c/script\u003e\n```\n\n##### From [`unpkg`](https://unpkg.com/@silvermine/videojs-quality-selector/)\n\n```js\n\u003clink href=\"https://unpkg.com/@silvermine/videojs-quality-selector/dist/css/quality-selector.css\" rel=\"stylesheet\"\u003e\n\u003cscript src=\"./path/to/video.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/@silvermine/videojs-quality-selector/dist/js/silvermine-videojs-quality-selector.min.js\"\u003e\u003c/script\u003e\n```\n\n#### Using `require`\n\nWhen using NPM/Browserify, first install the plugin.\n\n```bash\nnpm install --save @silvermine/videojs-quality-selector\n```\n\nFor `videojs` to use the plug-in, the plugin needs to register itself with the instance of\n`videojs`. This can be accomplished by:\n\n```js\nvar videojs = require('videojs');\n\n// The following registers the plugin with `videojs`\nrequire('@silvermine/videojs-quality-selector')(videojs);\n```\n\nRemember to also add the CSS to your build. With most bundlers you can:\n\n```js\nrequire('@silvermine/videojs-quality-selector/dist/css/quality-selector.css')\n```\n\n### Providing video sources\n\nSources can be provided with either the `\u003csource\u003e` tag or via the `src` function on the\ninstance of a `video.js` player.\n\n#### Using `\u003csource\u003e`\n\n```html\n\u003cvideo id=\"video_1\" class=\"video-js vjs-default-skin\" controls preload=\"auto\" width=\"640\" height=\"268\"\u003e\n   \u003csource src=\"https://example.com/video_720.mp4\" type=\"video/mp4\" label=\"720P\"\u003e\n   \u003csource src=\"https://example.com/video_480.mp4\" type=\"video/mp4\" label=\"480P\" selected=\"true\"\u003e\n   \u003csource src=\"https://example.com/video_360.mp4\" type=\"video/mp4\" label=\"360P\"\u003e\n\u003c/video\u003e\n```\n\n#### Using `player.src()`\n\n```js\nplayer.src([\n   {\n      src: 'https://example.com/video_720.mp4',\n      type: 'video/mp4',\n      label: '720P',\n   },\n   {\n      src: 'https://example.com/video_480.mp4',\n      type: 'video/mp4',\n      label: '480P',\n      selected: true,\n   },\n   {\n      src: 'https://example.com/video_360.mp4',\n      type: 'video/mp4',\n      label: '360P',\n   },\n]);\n```\n\n### Adding to the player\n\nThere are at least two ways to add the quality selector control to the player's control\nbar. The first is directly adding it via `addChild`. For example:\n\n```js\nvideojs('video_1', {}, function() {\n   var player = this;\n\n   player.controlBar.addChild('QualitySelector');\n});\n```\n\nThe second option is to add the control via the player's options, for instance:\n\n```js\nvar options, player;\n\noptions = {\n   controlBar: {\n      children: [\n         'playToggle',\n         'progressControl',\n         'volumePanel',\n         'qualitySelector',\n         'fullscreenToggle',\n      ],\n   },\n};\n\nplayer = videojs('video_1', options);\n```\n\n## How do I contribute?\n\nWe genuinely appreciate external contributions. See [our extensive\ndocumentation](https://github.com/silvermine/silvermine-info#contributing) on how to\ncontribute.\n\n\n## License\n\nThis software is released under the MIT license. See [the license file](LICENSE) for more\ndetails.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichioxd%2Fvideojs-quality-selector-prebuilt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichioxd%2Fvideojs-quality-selector-prebuilt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichioxd%2Fvideojs-quality-selector-prebuilt/lists"}