{"id":21565385,"url":"https://github.com/fatelei/videojs-quality-selector","last_synced_at":"2025-07-15T19:37:07.172Z","repository":{"id":147147458,"uuid":"146543971","full_name":"fatelei/videojs-quality-selector","owner":"fatelei","description":"Video quality selector","archived":false,"fork":false,"pushed_at":"2019-01-18T09:09:33.000Z","size":118,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T11:44:50.977Z","etag":null,"topics":["videojs","videojs-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fatelei.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-29T04:14:40.000Z","updated_at":"2019-01-18T09:09:35.000Z","dependencies_parsed_at":"2023-06-09T15:45:21.782Z","dependency_job_id":null,"html_url":"https://github.com/fatelei/videojs-quality-selector","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/fatelei%2Fvideojs-quality-selector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatelei%2Fvideojs-quality-selector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatelei%2Fvideojs-quality-selector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatelei%2Fvideojs-quality-selector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fatelei","download_url":"https://codeload.github.com/fatelei/videojs-quality-selector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244160057,"owners_count":20408021,"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":["videojs","videojs-plugin"],"created_at":"2024-11-24T10:19:28.175Z","updated_at":"2025-03-18T05:18:03.817Z","avatar_url":"https://github.com/fatelei.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# videojs-quality-selector\n\nVideo quality selector plugin\n\n## Table of Contents\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n## Installation\n\n- [Installation](#installation)\n- [Config](#config)\n- [Usage](#usage)\n  - [`\u003cscript\u003e` Tag](#script-tag)\n  - [Browserify/CommonJS](#browserifycommonjs)\n  - [RequireJS/AMD](#requirejsamd)\n- [License](#license)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n## Installation\n\n```sh\nnpm install --save videojs-quality-selector-plugin\n```\n\n## Config\n\n```\nqualityLevels = [{\n  label: 'auto',\n  identify: 'foo',\n  src: 'bar'\n}, {\n  label: 'hd',\n  identify: 'hd',\n  src: 'bar1'\n}]\n```\n\n\n## Usage\n\nTo include videojs-quality-selector 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-quality-selector-plugin.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  var player = videojs('my-video', {\n    qualityLevels: [\n      {\n        label: 'auto',\n        identify: 'foo',\n        src: 'bar'\n      }, {\n        label: 'hd',\n        identify: 'hd',\n        src: 'bar1'\n      }\n    ]\n  });\n\n  player.qualitySelector();\n\u003c/script\u003e\n```\n\n### Browserify/CommonJS\n\nWhen using with Browserify, install videojs-quality-selector-plugin 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-quality-selector-plugin');\n\nvar player = videojs('my-video',{\n  qualityLevels: [\n    {\n      label: 'auto',\n      identify: 'foo',\n      src: 'bar'\n    }, {\n      label: 'hd',\n      identify: 'hd',\n      src: 'bar1'\n    }\n  ]\n});\n\nplayer.qualitySelector();\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-quality-selector-plugin'], function(videojs) {\n  var player = videojs('my-video', {\n    qualityLevels: [\n      {\n        label: 'auto',\n        identify: 'foo',\n        src: 'bar'\n      }, {\n        label: 'hd',\n        identify: 'hd',\n        src: 'bar1'\n      }\n    ]\n  });\n\n  player.qualitySelector();\n});\n```\n\n## License\n\nApache-2.0. Copyright (c) fatelei \u0026lt;fatelei@gmail.com\u0026gt;\n\n\n[videojs]: http://videojs.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatelei%2Fvideojs-quality-selector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffatelei%2Fvideojs-quality-selector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatelei%2Fvideojs-quality-selector/lists"}