Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

videojs-hls-source-selector

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

videojs-hls-source-selector - npm Package Compare versions

Comparing version 0.0.7 to 1.0.0

dist/videojs-http-source-selector.cjs.js

2

CONTRIBUTING.md

@@ -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

{
"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 &lt;Justin@pivotshare.com&gt;
[videojs]: http://videojs.com/

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc