mirror of
https://gitea.invidious.io/iv-org/videojs-quality-selector.git
synced 2024-08-15 00:43:13 +00:00
Initial commit
This commit is contained in:
commit
f261cc04a2
12 changed files with 178 additions and 0 deletions
5
.eslintrc.json
Normal file
5
.eslintrc.json
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
|
||||||
|
"extends": "eslint-config-silvermine/node"
|
||||||
|
|
||||||
|
}
|
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
.DS_Store
|
||||||
|
node_modules
|
||||||
|
coverage
|
4
.npmignore
Normal file
4
.npmignore
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
.eslintrc.json
|
||||||
|
.travis.yml
|
||||||
|
Gruntfile.js
|
||||||
|
tests/**
|
15
.travis.yml
Normal file
15
.travis.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
language: node_js
|
||||||
|
# 4.3.2 is what AWS Lambda currently uses
|
||||||
|
node_js:
|
||||||
|
- "5"
|
||||||
|
- "4.3.2"
|
||||||
|
|
||||||
|
before_install: if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
|
||||||
|
|
||||||
|
script:
|
||||||
|
- grunt standards
|
||||||
|
- npm test
|
||||||
|
|
||||||
|
# For code coverage:
|
||||||
|
after_success:
|
||||||
|
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
|
33
Gruntfile.js
Normal file
33
Gruntfile.js
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2017 Jeremy Thomerson
|
||||||
|
* Licensed under the MIT license.
|
||||||
|
*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = function(grunt) {
|
||||||
|
|
||||||
|
var config;
|
||||||
|
|
||||||
|
config = {
|
||||||
|
js: {
|
||||||
|
all: [ 'Gruntfile.js', 'src/**/*.js', 'tests/**/*.js' ],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
grunt.initConfig({
|
||||||
|
|
||||||
|
pkg: grunt.file.readJSON('package.json'),
|
||||||
|
|
||||||
|
eslint: {
|
||||||
|
target: config.js.all,
|
||||||
|
},
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
grunt.loadNpmTasks('grunt-eslint');
|
||||||
|
|
||||||
|
grunt.registerTask('standards', [ 'eslint' ]);
|
||||||
|
grunt.registerTask('default', [ 'standards' ]);
|
||||||
|
|
||||||
|
};
|
20
LICENSE
Normal file
20
LICENSE
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
The MIT License (MIT)
|
||||||
|
Copyright (c) 2017 Jeremy Thomerson
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
the Software without restriction, including without limitation the rights to
|
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||||
|
of the Software, and to permit persons to whom the Software is furnished to do
|
||||||
|
so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
33
README.md
Normal file
33
README.md
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
# Silvermine VideoJS Quality/Resolution Selector
|
||||||
|
|
||||||
|
[![Build Status](https://travis-ci.org/silvermine/videojs-quality-selector.png?branch=master)](https://travis-ci.org/silvermine/videojs-quality-selector)
|
||||||
|
[![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)
|
||||||
|
[![Dependency Status](https://david-dm.org/silvermine/videojs-quality-selector.png)](https://david-dm.org/silvermine/videojs-quality-selector)
|
||||||
|
[![Dev Dependency Status](https://david-dm.org/silvermine/videojs-quality-selector/dev-status.png)](https://david-dm.org/silvermine/videojs-quality-selector#info=devDependencies&view=table)
|
||||||
|
|
||||||
|
|
||||||
|
## What is it?
|
||||||
|
|
||||||
|
A plugin for [videojs](http://videojs.com/) versions 6+ that adds a button to the control
|
||||||
|
bar which will allow the user to choose from available video qualities or resolutions.
|
||||||
|
|
||||||
|
|
||||||
|
## How do I use it?
|
||||||
|
|
||||||
|
Here's an example of how you can use this library:
|
||||||
|
|
||||||
|
```js
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## How do I contribute?
|
||||||
|
|
||||||
|
We genuinely appreciate external contributions. See [our extensive
|
||||||
|
documentation](https://github.com/silvermine/silvermine-info#contributing) on how to
|
||||||
|
contribute.
|
||||||
|
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
This software is released under the MIT license. See [the license file](LICENSE) for more
|
||||||
|
details.
|
41
package.json
Normal file
41
package.json
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{
|
||||||
|
"name": "silvermine-videojs-quality-selector",
|
||||||
|
"version": "0.9.0",
|
||||||
|
"description": "video.js plugin for selecting a video quality or resolution",
|
||||||
|
"main": "src/index.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- -R spec 'tests/**/*.test.js'"
|
||||||
|
},
|
||||||
|
"author": "Jeremy Thomerson",
|
||||||
|
"license": "MIT",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/silvermine/videojs-quality-selector.git"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"video.js",
|
||||||
|
"videojs",
|
||||||
|
"plugin",
|
||||||
|
"resolution",
|
||||||
|
"quality"
|
||||||
|
],
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/silvermine/videojs-quality-selector/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/silvermine/videojs-quality-selector#readme",
|
||||||
|
"devDependencies": {
|
||||||
|
"class.extend": "0.9.2",
|
||||||
|
"coveralls": "2.13.1",
|
||||||
|
"eslint": "4.0.0",
|
||||||
|
"eslint-config-silvermine": "1.3.0",
|
||||||
|
"expect.js": "0.3.1",
|
||||||
|
"grunt": "1.0.1",
|
||||||
|
"grunt-eslint": "20.0.0",
|
||||||
|
"istanbul": "0.4.5",
|
||||||
|
"mocha": "3.4.2",
|
||||||
|
"mocha-lcov-reporter": "1.3.0",
|
||||||
|
"rewire": "2.5.2",
|
||||||
|
"sinon": "2.3.5",
|
||||||
|
"underscore": "1.8.3"
|
||||||
|
}
|
||||||
|
}
|
5
src/.eslintrc.json
Normal file
5
src/.eslintrc.json
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
|
||||||
|
"extends": "eslint-config-silvermine/browser"
|
||||||
|
|
||||||
|
}
|
3
src/index.js
Normal file
3
src/index.js
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = {};
|
5
tests/.eslintrc.json
Normal file
5
tests/.eslintrc.json
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
|
||||||
|
"extends": "eslint-config-silvermine/node-tests"
|
||||||
|
|
||||||
|
}
|
11
tests/Placeholder.test.js
Normal file
11
tests/Placeholder.test.js
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var expect = require('expect.js');
|
||||||
|
|
||||||
|
describe('Everything', function() {
|
||||||
|
|
||||||
|
it('needs to be tested', function() {
|
||||||
|
expect(true).to.be(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
Loading…
Reference in a new issue