videojs-hls-source-selector
Advanced tools
Comparing version 0.0.7 to 1.0.0
@@ -7,3 +7,3 @@ # CONTRIBUTING | ||
Make sure you have NodeJS 0.10 or higher and npm installed. | ||
Make sure you have Node.js 4.8 or higher and npm installed. | ||
@@ -10,0 +10,0 @@ 1. Fork this repository and clone your fork |
110
package.json
{ | ||
"name": "videojs-hls-source-selector", | ||
"version": "0.0.7", | ||
"description": "VideoJS plugin that leverages videojs-contrib-quality-levels plugin to offer manual user-selectable level selection options for adaptive hls streams. ", | ||
"main": "build/es5/index.js", | ||
"jsnext:main": "src/js/index.js", | ||
"engines": { | ||
"node": ">=4.4.0" | ||
}, | ||
"version": "1.0.0", | ||
"description": "VideoJS plugin that leverages videojs-contrib-quality-levels plugin to offer manual user-selectable level selection options for adaptive http streams.", | ||
"main": "dist/videojs-http-source-selector.cjs.js", | ||
"module": "dist/videojs-http-source-selector.es.js", | ||
"generator-videojs-plugin": { | ||
"version": "4.0.2" | ||
"version": "5.2.1" | ||
}, | ||
"scripts": { | ||
"build": "sb-build", | ||
"clean": "sb-clean", | ||
"lint": "sb-lint", | ||
"start": "sb-start", | ||
"test": "sb-test", | ||
"watch": "sb-watch", | ||
"prepublish": "npm run build", | ||
"postversion": "sb-release" | ||
"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-http-source-selector.css --banner=scripts/banner.ejs", | ||
"build:css:sass": "node-sass src/plugin.scss dist/videojs-http-source-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-http-source-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-http-source-selector.js --comments --mangle --compress -o dist/videojs-http-source-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": "node scripts/server.js", | ||
"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-http-source-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": "not-in-install && npm run build || in-install" | ||
}, | ||
@@ -27,25 +46,62 @@ "keywords": [ | ||
], | ||
"author": "Justin Fujita <justin@pivotshare.com>", | ||
"author": "Justin Fujita <Justin@pivotshare.com>", | ||
"license": "MIT", | ||
"spellbook": { | ||
"lang": false | ||
"vjsstandard": { | ||
"ignore": [ | ||
"dist", | ||
"docs", | ||
"test/dist", | ||
"test/karma.conf.js" | ||
] | ||
}, | ||
"files": [ | ||
"CHANGELOG.md", | ||
"CONTRIBUTING.md", | ||
"README.md", | ||
"build/docs", | ||
"build/es5", | ||
"dist/", | ||
"docs/", | ||
"index.html", | ||
"src/" | ||
"scripts/", | ||
"src/", | ||
"test/" | ||
], | ||
"dependencies": { | ||
"global": "^4.3.2", | ||
"video.js": "^5.16.0" | ||
"video.js": "^7.0.0", | ||
"videojs-contrib-quality-levels": "^2.0.4" | ||
}, | ||
"devDependencies": { | ||
"videojs-spellbook": "^4.0.0" | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-plugin-transform-object-assign": "^6.22.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
"bannerize": "^1.1.3", | ||
"conventional-changelog-cli": "^1.3.5", | ||
"conventional-changelog-videojs": "^3.0.0", | ||
"doctoc": "^1.3.0", | ||
"in-publish": "^2.0.0", | ||
"jsdoc": "^3.4.3", | ||
"karma": "^1.7.1", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-detect-browsers": "^2.2.6", | ||
"karma-firefox-launcher": "^1.1.0", | ||
"karma-ie-launcher": "^1.0.0", | ||
"karma-qunit": "^1.2.1", | ||
"karma-safari-launcher": "^1.0.0", | ||
"mkdirp": "^0.5.1", | ||
"node-sass": "4.5.3", | ||
"node-static": "^0.7.10", | ||
"npm-run-all": "^4.1.2", | ||
"portscanner": "^2.1.1", | ||
"qunitjs": "^2.4.1", | ||
"rimraf": "^2.6.2", | ||
"rollup": "^0.53.4", | ||
"rollup-plugin-babel": "^2.7.1", | ||
"rollup-plugin-commonjs": "^8.2.6", | ||
"rollup-plugin-json": "^2.3.0", | ||
"rollup-plugin-multi-entry": "^2.0.2", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
"rollup-watch": "^3.2.2", | ||
"semver": "^5.4.1", | ||
"sinon": "^2.4.1", | ||
"uglify-js": "^3.3.5", | ||
"videojs-standard": "^6.0.1" | ||
} | ||
} | ||
} |
@@ -1,5 +0,27 @@ | ||
# videojs-hls-source-selector | ||
# ~~videojs-hls-source-selector~~ is now [videojs-http-source-selector](https://www.npmjs.com/package/videojs-http-source-selector) | ||
VideoJS plugin that leverages videojs-contrib-quality-levels plugin to offer manual user-selectable level selection options for adaptive hls streams. | ||
VideoJS plugin that leverages videojs-contrib-quality-levels plugin to offer manual user-selectable level selection options for adaptive http (hls+dash) streams. | ||
## Deprecated/New! | ||
This plugin should be compatible with both HTTP streaming protocols (HLS + DASH) and thus has been moved from videojs-hls-source-selector to videojs-**http**-source-selector. The latest version of this lib (0.0.8) has been brought up to coincide with the source maintained on the [videojs-http-source-selector](https://www.npmjs.com/package/videojs-http-source-selector) repo. Consider this repo deprecated in favor of updates that will be published to [videojs-http-source-selector](https://www.npmjs.com/package/videojs-http-source-selector). | ||
## Updating from an older version | ||
If you're using an older version of this plugin, please uninstall it and install the new [plugin](https://www.npmjs.com/package/videojs-http-source-selector) | ||
```sh | ||
npm uninstall videojs-hls-source-selector | ||
npm install -S videojs-http-source-selector | ||
``` | ||
don't forget to update your references from hls to http: | ||
```js | ||
//require('videojs-hls-source-selector'); //DEPRECATED | ||
require('videojs-http-source-selector'); | ||
var player = videojs('my-video'); | ||
//player.hlsSourceSelector(); //DEPRECATED | ||
player.httpSourceSelector(); | ||
``` | ||
## Table of Contents | ||
@@ -12,3 +34,3 @@ | ||
```sh | ||
npm install --save videojs-hls-source-selector | ||
npm install --save videojs-http-source-selector | ||
``` | ||
@@ -18,3 +40,3 @@ | ||
To include videojs-hls-source-selector on your website or web application, use any of the following methods. | ||
To include videojs-http-source-selector on your website or web application, use any of the following methods. | ||
@@ -27,13 +49,13 @@ ### `<script>` Tag | ||
<script src="//path/to/video.min.js"></script> | ||
<script src="//path/to/videojs-hls-source-selector.min.js"></script> | ||
<script src="//path/to/videojs-http-source-selector.min.js"></script> | ||
<script> | ||
var player = videojs('my-video'); | ||
player.hlsSourceSelector(); | ||
player.httpSourceSelector(); | ||
</script> | ||
``` | ||
### Browserify | ||
### Browserify/CommonJS | ||
When using with Browserify, install videojs-hls-source-selector via npm and `require` the plugin as you would any other module. | ||
When using with Browserify, install videojs-http-source-selector via npm and `require` the plugin as you would any other module. | ||
@@ -46,7 +68,7 @@ ```js | ||
// to a variable. | ||
require('videojs-hls-source-selector'); | ||
require('videojs-http-source-selector'); | ||
var player = videojs('my-video'); | ||
player.hlsSourceSelector(); | ||
player.httpSourceSelector(); | ||
``` | ||
@@ -59,6 +81,6 @@ | ||
```js | ||
require(['video.js', 'videojs-hls-source-selector'], function(videojs) { | ||
require(['video.js', 'videojs-http-source-selector'], function(videojs) { | ||
var player = videojs('my-video'); | ||
player.hlsSourceSelector(); | ||
player.httpSourceSelector(); | ||
}); | ||
@@ -69,5 +91,5 @@ ``` | ||
MIT. Copyright (c) Justin Fujita <justin@pivotshare.com> | ||
MIT. Copyright (c) Justin Fujita <Justin@pivotshare.com> | ||
[videojs]: http://videojs.com/ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 10 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
1517
2
90
1
3
73189
3
34
27
+ Added@babel/runtime@7.26.0(transitive)
+ Added@videojs/http-streaming@2.16.3(transitive)
+ Added@videojs/vhs-utils@3.0.5(transitive)
+ Added@videojs/xhr@2.6.0(transitive)
+ Added@xmldom/xmldom@0.8.10(transitive)
+ Addedaes-decrypter@3.1.3(transitive)
+ Addedkeycode@2.2.1(transitive)
+ Addedm3u8-parser@4.8.0(transitive)
+ Addedmpd-parser@0.22.1(transitive)
+ Addedmux.js@6.0.1(transitive)
+ Addedpkcs7@1.0.4(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addedurl-toolkit@2.2.5(transitive)
+ Addedvideo.js@7.21.6(transitive)
+ Addedvideojs-contrib-quality-levels@2.2.1(transitive)
+ Addedvideojs-font@3.2.0(transitive)
+ Addedvideojs-vtt.js@0.15.5(transitive)
- Removedbabel-runtime@6.26.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedes5-shim@4.6.7(transitive)
- Removedglobal@4.3.04.3.2(transitive)
- Removedparse-headers@2.0.5(transitive)
- Removedprocess@0.5.2(transitive)
- Removedregenerator-runtime@0.11.1(transitive)
- Removedtsml@1.0.1(transitive)
- Removedvideo.js@5.20.5(transitive)
- Removedvideojs-font@2.0.0(transitive)
- Removedvideojs-ie8@1.1.2(transitive)
- Removedvideojs-swf@5.4.1(transitive)
- Removedvideojs-vtt.js@0.12.6(transitive)
- Removedxhr@2.2.2(transitive)
- Removedxtend@4.0.2(transitive)
Updatedvideo.js@^7.0.0