{"_rev":"12-ef85ff93bc36f2e280cbf79a8ec42b91","time":{"created":"2023-06-29T13:36:40.838Z","1.1.5-beta.0":"2023-06-28T07:18:10.838Z","modified":"2023-06-29T13:36:41.445Z","1.1.5-beta.1":"2023-06-28T08:02:22.509Z","1.1.5":"2023-06-28T08:26:15.453Z","1.1.5-beta-0":"2023-06-28T14:11:10.177Z","1.1.6":"2023-06-28T14:23:42.068Z","1.1.6-beta.0":"2023-06-29T12:37:28.133Z","1.2.0":"2023-06-29T13:36:41.159Z"},"_id":"@codevadmin/videojs-hls-quality-selector","name":"@codevadmin/videojs-hls-quality-selector","dist-tags":{"latest":"1.2.0"},"versions":{"1.2.0":{"name":"@codevadmin/videojs-hls-quality-selector","version":"1.2.0","description":"Adds a quality selector menu for HLS sources played in videojs.  Requires `videojs-contrib-hls` and videojs-contrib-quality-levels plugins.","main":"dist/videojs-hls-quality-selector.cjs.js","module":"dist/videojs-hls-quality-selector.es.js","generator-videojs-plugin":{"version":"5.0.3"},"repository":{"type":"git","url":"git+https://github.com/van-ninjas/videojs-hls-quality-selector.git"},"scripts":{"prebuild":"npm run clean","build":"npm-run-all -p build:*","build:css":"npm-run-all build:css:sass build:css:bannerize","build:css:bannerize":"bannerize dist/videojs-hls-quality-selector.css --banner=scripts/banner.ejs","build:css:sass":"node-sass src/plugin.scss dist/videojs-hls-quality-selector.css --output-style=compressed --linefeed=lf","build:js":"npm-run-all build:js:rollup-modules build:js:rollup-umd build:js:bannerize build:js:uglify","build:js:bannerize":"bannerize dist/videojs-hls-quality-selector.js --banner=scripts/banner.ejs","build:js:rollup-modules":"rollup -c scripts/modules.rollup.config.js","build:js:rollup-umd":"rollup -c scripts/umd.rollup.config.js","build:js:uglify":"uglifyjs dist/videojs-hls-quality-selector.js --comments --mangle --compress  -o dist/videojs-hls-quality-selector.min.js","build:test":"rollup -c scripts/test.rollup.config.js","clean":"rimraf dist test/dist","postclean":"mkdirp dist test/dist","docs":"npm-run-all docs:*","docs:api":"jsdoc src -r -c jsdoc.json -d docs/api","docs:toc":"doctoc README.md","lint":"vjsstandard","start":"npm-run-all -p start:server watch","start:server":"static -a 0.0.0.0 -p 9999 -H '{\"Cache-Control\": \"no-cache, must-revalidate\"}' .","pretest":"npm-run-all lint build","test":"karma start test/karma.conf.js","preversion":"npm test","version":"node scripts/version.js","watch":"npm-run-all -p watch:*","watch:css":"npm-run-all build:css:sass watch:css:sass","watch:css:sass":"node-sass src/plugin.scss dist/videojs-hls-quality-selector.css --output-style=compressed --linefeed=lf --watch src/**/*.scss","watch:js-modules":"rollup -c scripts/modules.rollup.config.js -w","watch:js-umd":"rollup -c scripts/umd.rollup.config.js -w","watch:test":"rollup -c scripts/test.rollup.config.js -w","prepublish":"npm run build","prepush":"npm run lint","precommit":"npm run docs:toc && git add README.md"},"keywords":["videojs","videojs-plugin"],"author":{"name":"Chris Boustead","url":"chris@forgemotion.com"},"license":"MIT","vjsstandard":{"ignore":["dist","docs","test/dist","test/karma.conf.js"]},"dependencies":{"global":"^4.3.2","karma-safaritechpreview-launcher":"0.0.6","video.js":"^7.5.5","videojs-contrib-quality-levels":"^2.0.9"},"devDependencies":{"babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-object-assign":"^6.8.0","babel-preset-es2015":"^6.14.0","bannerize":"^1.1.4","conventional-changelog-cli":"^1.3.1","conventional-changelog-videojs":"^3.0.0","doctoc":"^1.3.0","husky":"^0.13.3","jsdoc":"^3.6.3","karma":"^6.3.16","karma-chrome-launcher":"^2.1.1","karma-detect-browsers":"^2.2.5","karma-firefox-launcher":"^1.0.1","karma-ie-launcher":"^1.0.0","karma-qunit":"^1.2.1","karma-safari-launcher":"^1.0.0","mkdirp":"^0.5.1","node-sass":"^7.0.0","node-static":"^0.7.9","npm-run-all":"^4.0.2","qunitjs":"^2.3.2","rimraf":"^2.6.1","rollup":"^0.50.0","rollup-plugin-babel":"^2.7.1","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-json":"^2.1.1","rollup-plugin-multi-entry":"^2.0.1","rollup-plugin-node-resolve":"^3.0.0","rollup-watch":"^3.2.2","semver":"^5.3.0","sinon":"^2.2.0","uglify-js":"^3.0.7","videojs-standard":"^6.0.0"},"gitHead":"0d97aa8aacea41c574d6e3fb01a8c92ffb446bef","bugs":{"url":"https://github.com/van-ninjas/videojs-hls-quality-selector/issues"},"homepage":"https://github.com/van-ninjas/videojs-hls-quality-selector#readme","_id":"@codevadmin/videojs-hls-quality-selector@1.2.0","_nodeVersion":"18.16.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-IG4RRZUD8Dh3BIrleC7zlYfpBfe6osb+OeOwhLWSSP+xcaBCwRtuekQMZS+WXsR9qFPfmOFv0ucjhKtYAipFJw==","shasum":"2bcf8614dff0fcc1c1fb967e56ca121c13c71efe","tarball":"https://registry.npmjs.org/@codevadmin/videojs-hls-quality-selector/-/videojs-hls-quality-selector-1.2.0.tgz","fileCount":23,"unpackedSize":109775,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBQ0OPr7NSM+t5BwEVgvZlobHI1efM84c/l2MOB+VqhtAiB7RxdmM5hnIKuU7yMMDv5QrdGHXltnam8ne6BiapNccQ=="}]},"_npmUser":{"name":"codevadmin","email":"code@devadmin.com"},"directories":{},"maintainers":[{"name":"codevadmin","email":"code@devadmin.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/videojs-hls-quality-selector_1.2.0_1688045800975_0.6679005131585531"},"_hasShrinkwrap":false}},"maintainers":[{"name":"codevadmin","email":"code@devadmin.com"}],"description":"Adds a quality selector menu for HLS sources played in videojs.  Requires `videojs-contrib-hls` and videojs-contrib-quality-levels plugins.","homepage":"https://github.com/van-ninjas/videojs-hls-quality-selector#readme","keywords":["videojs","videojs-plugin"],"repository":{"type":"git","url":"git+https://github.com/van-ninjas/videojs-hls-quality-selector.git"},"author":{"name":"Chris Boustead","url":"chris@forgemotion.com"},"bugs":{"url":"https://github.com/van-ninjas/videojs-hls-quality-selector/issues"},"license":"MIT","readme":"# videojs-hls-quality-selector\n\n**Notes:** v1.x.x is Only compatible with VideoJS 7.x due to the move from `videojs-contrib-hls` to `videojs/http-streaming`.  For VideoJS v5 or v6 support please use a `v0.x.x` tag.\n\n## Description\nThis is a private fork of the public package [chrisboustead/videojs-hls-quality-selector](https://github.com/chrisboustead/videojs-hls-quality-selector).\n\nAdds a quality selector menu for HLS sources played in videojs. Requires `videojs-contrib-quality-levels` plugins.\n\nAny HLS manifest with multiple playlists/renditions should be selectable from within the added control.\n\n*NAME* master playlists attributes or pixels as quality labels are used in the added controls. \n\n**Native HLS**\n\nDoes not yet support browsers using native HLS (Safari, Edge, etc).  To enable plugin in browsers with native HLS, you must force non-native HLS playback:\n\n## Options\n\n**displayCurrentQuality** `boolean` - _false_\n\nSet to true to display the currently selected resolution in the menu button.  When not enabled, displayed an included VJS \"HD\" icon.\n\n**placementIndex** `integer`\n\nSet this to override the default positioning of the menu button in the control bar relative to the other components in the control bar.\n\n**vjsIconClass** `string` - _\"vjs-icon-hd\"_\n\nSet this to one of the custom VJS icons ([https://videojs.github.io/font/](https://videojs.github.io/font/)) to override the icon for the menu button. \n\n\n## Methods\n\n**getCurrentQuality** `string` - _'auto'__\n\nReturn the current set quality or 'auto'\n\n\n## Screenshots\n\nDefault setup - Menu selected:\n![Example](example.png)\n\n\nDisplay Current Quality option enabled:\n![Example](example-2.png)\n\n## Table of Contents\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## Installation\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [`<script>` Tag](#script-tag)\n  - [Browserify/CommonJS](#browserifycommonjs)\n  - [RequireJS/AMD](#requirejsamd)\n- [License](#license)\n\n<!-- END doctoc generated TOC please keep comment here to allow auto update -->\n## Installation\n\n```sh\nnpm install --save videojs-hls-quality-selector\n```\n\n## Usage\n\nTo include videojs-hls-quality-selector 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-contrib-quality-levels.min.js\"></script>\n<script src=\"//path/to/videojs-hls-quality-selector.min.js\"></script>\n<script>\n  var player = videojs('my-video');\n\n  player.hlsQualitySelector();\n</script>\n```\n\n### Browserify/CommonJS\n\nWhen using with Browserify, install videojs-hls-quality-selector 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-hls-quality-selector');\n\nvar player = videojs('my-video');\n\nplayer.hlsQualitySelector({\n    displayCurrentQuality: true,\n});\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-hls-quality-selector'], function(videojs) {\n  var player = videojs('my-video');\n\n  player.hlsQualitySelector({\n       displayCurrentQuality: true,\n    });\n});\n```\n\n## License\n\nMIT. Copyright (c) Chris Boustead (chris@forgemotion.com)\n\n\n[videojs]: http://videojs.com/\n","readmeFilename":"README.md"}