project Websites / videos.bentasker.co.uk avatar

Websites / videos.bentasker.co.uk: 5f127baa




Remove M3U support for websites/videos.bentasker.co.uk#2

Remove M3U support for websites/videos.bentasker.co.uk#2

It's never been used in anger, so simply constitued bloat

Commit 5f127baa.

Authored 2022-03-09T19:17:31.000+00:00 by B Tasker in project Websites / videos.bentasker.co.uk

+7 lines -11462 lines

Commit Signature

Changes

diff --git a/resources/embed/embed.js b/resources/embed/embed.js
--- a/resources/embed/embed.js
+++ b/resources/embed/embed.js
# @@ -101,11 +101,6 @@ function guessMimeFromUrl(vidurl){
# return 'video/mp2t';
# break;
#
# - case 'm3u':
# - // videojs can't handle these. VID-5 implements support
# - return 'special/m3uplaylist';
# - break;
# -
# default:
# console.log("Calculating mimetime failed for " + vidurl + " ext: " + ext.toLowerCase());
# return 'video/mp4';
# @@ -250,24 +245,13 @@ function writePlayer(vidid,playerSettings){
# v.setAttribute('width',width);
#
# // now create the source
# - if (window.playerSettings['vidtype'] != "special/m3uplaylist"){
# - var src = cE('source');
# - src.setAttribute('src',playerSettings['vidurl']);
# - src.setAttribute('type',playerSettings['vidtype']);
# - v.appendChild(src);
# - }else{
# - pllist = cE('div');
# - pllist.className = "vjs-playlist"; // This will need changing later to allow multiple players on one page
# - v.appendChild(pllist);
# -
# - plliststl = cE('link');
# - plliststl.setAttribute('rel','stylesheet');
# - plliststl.setAttribute('href',window.BensPD +'resources/js/playlist-ui/videojs-playlist-ui.vertical.css');
# - document.getElementsByTagName('head')[0].appendChild(plliststl);
# - }
# -
# - d.appendChild(v);
# -
# + var src = cE('source');
# + src.setAttribute('src',playerSettings['vidurl']);
# + src.setAttribute('type',playerSettings['vidtype']);
# + v.appendChild(src);
# +
# + // Stitch everything together
# + d.appendChild(v);
# c.appendChild(d);
#
# var s = cE('script');
# @@ -279,59 +263,6 @@ function writePlayer(vidid,playerSettings){
#
# c.appendChild(s);
#
# - if (window.playerSettings['vidtype'] == "special/m3uplaylist"){
# -
# - /*
# - // Initialise the playlist-ui plugin against the player
# - var s = cE('script');
# - s.setAttribute('type','text/javascript');
# - ss = "window.player" + vidid +".playlistUi();";
# - c.appendChild(s);
# - */
# -
# -
# - // Add Next/Previous controls to the player's control bar
# - var s = cE('script');
# - s.innerHTML = 'var VjsButton = videojs.getComponent("Button"); \
# - var nextButton = videojs.extend(VjsButton, { \
# - constructor: function(player, options){ \
# - VjsButton.call(this, player, options); \
# - this.controlText("Next"); \
# - }, \
# - handleClick: function() { \
# - window.player'+ vidid + '.playlist.next(); \
# - }, \
# - buildCSSClass: function() { \
# - return "vjs-icon-next-item vjs-control vjs-button"; \
# - } \
# - }); \
# - var prevButton = videojs.extend(VjsButton, { \
# - constructor: function(player, options){ \
# - VjsButton.call(this, player, options); \
# - this.controlText("Previous"); \
# - }, \
# - handleClick: function() { \
# - window.player'+ vidid + '.playlist.previous(); \
# - }, \
# - buildCSSClass: function() { \
# - return "vjs-icon-previous-item vjs-control vjs-button"; \
# - } \
# - }); \
# - \
# - videojs.registerComponent("prevButton", prevButton); \
# - videojs.registerComponent("NextButton", nextButton); \
# - window.player'+ vidid + '.getChild("controlBar").addChild("prevButton", {}); \
# - window.player'+ vidid + '.getChild("controlBar").addChild("nextButton", {});';
# -
# - c.appendChild(s);
# -
# -
# - // The player now exists, so we need to build the playlist
# - fetchM3U(playerSettings['vidurl'],vidid);
# - }
# -
# -
# -
# // VID-9 check for metadata and write schema.org markup if it exists
# dirname = playerSettings['vidurl'].match(/.*\//);
# fetchPage(dirname + 'details.json',BenswriteSchemaOrg,function(e){},playerSettings);
# @@ -346,9 +277,6 @@ function loadVJS(vidid,playerSettings){
#
# if (window.playerSettings['vidtype'] == "application/x-mpegURL"){
# e.onload = function () { loadVJSHLS(vidid,playerSettings); };
# -
# - }else if (window.playerSettings['vidtype'] == "special/m3uplaylist"){
# - e.onload = function () { loadVJSM3U(vidid,playerSettings); };
# }else{
# e.onload = function () { writePlayer(vidid,playerSettings); };
# }
# @@ -357,27 +285,6 @@ function loadVJS(vidid,playerSettings){
# }
#
#
# -function loadVJSM3U(vidid,playerSettings){
# - var c = document.getElementById('BensplayerWrapper'+vidid);
# - var e = cE('script');
# - e.setAttribute('type','text/javascript');
# - e.setAttribute('src',window.BensPD + 'resources/js/playlist/videojs-playlist.js');
# - e.onload = function () {
# -
# - /* VID5 Playlist UI
# - *
# - * Disabled for now, because we lack the necessary information in most M3Us. Leaving here for reference later
# - plui = cE('script');
# - plui.setAttribute('type','text/javascript');
# - plui.setAttribute('src',window.BensPD +'resources/js/playlist-ui/videojs-playlist-ui.min.js');
# - document.getElementsByTagName('head')[0].appendChild(plui);
# - */
# - writePlayer(vidid,playerSettings);
# - };
# - c.appendChild(e);
# -}
# -
# -
# function loadVJSHLS(vidid,playerSettings){
# var c = document.getElementById('BensplayerWrapper'+vidid);
# var e = cE('script');
# @@ -412,63 +319,6 @@ function fetchPage(url,callback,errcallback,storage){
# xmlhttp.send();
# }
#
# -// VID-5 M3U support
# -function fetchM3U(vidurl,vidid){
# - window.videoListid = vidid; // This'll prevent multi-player support for M3Us, but that can be fixed later
# - var oReq = new XMLHttpRequest();
# - oReq.addEventListener("load", parseM3U);
# - oReq.open("GET", vidurl);
# - oReq.send();
# -}
# -
# -function parseM3U(){
# - window.videoList = [];
# - lines = this.responseText.split('\n');
# - domain = window.location.hostname;
# - var o;
# - for (var i=0; i<lines.length; i++){
# -
# - if (lines[i][0] == "#" || lines[i] == ""){
# - // It's a comment/metadata, skip
# - continue;
# - }
# -
# - segs = lines[i].split(".")
# - ext = segs[segs.length - 1].toLowerCase()
# -
# - // Don't include M3Us, the player will bork
# - if (ext != "m3u"){
# -
# - playpath = lines[i]
# - if (lines[i][0] == "/"){
# - // relative URL, prepend the current domain
# - // Todo: should really make this the domain of the playlist
# - playpath = 'https://'+domain+lines[i];
# - }
# -
# - o = {
# - sources : [
# - {
# - src: playpath,
# - type: guessMimeFromUrl(lines[i])
# - }
# - ]
# - }
# - window.videoList.push(o);
# - }
# - }
# -
# - vidid = window.videoListid;
# -
# - var s = cE('script');
# - s.setAttribute('type','text/javascript');
# - ss = "window.player" + vidid +".playlist(window.videoList); window.player" + vidid +".playlist.autoadvance(0);window.player" + vidid +".playlist.first();";
# - s.innerHTML = ss;
# -
# - var c = document.getElementById('BensVideo'+vidid);
# - c.appendChild(s);
# -}
# -
#
# function embedFailedNotif(vidid){
# s = cE('img');
#
diff --git a/resources/js/playlist-ui/lang/de.js b/resources/js/playlist-ui/lang/de.js
--- a/resources/js/playlist-ui/lang/de.js
+++ b/resources/js/playlist-ui/lang/de.js
# @@ -1,5 +0,0 @@
# -videojs.addLanguage('de', {
# - "Now Playing": "Aktuelle Wiedergabe",
# - "Up Next": "Als Nächstes",
# - "Untitled Video": "Video ohne Titel"
# -});
# \ No newline at end of file
#
diff --git a/resources/js/playlist-ui/lang/en.js b/resources/js/playlist-ui/lang/en.js
--- a/resources/js/playlist-ui/lang/en.js
+++ b/resources/js/playlist-ui/lang/en.js
# @@ -1,5 +0,0 @@
# -videojs.addLanguage('en', {
# - "Now Playing": "Now Playing",
# - "Up Next": "Up Next",
# - "Untitled Video": "Untitled Video"
# -});
# \ No newline at end of file
#
diff --git a/resources/js/playlist-ui/lang/es.js b/resources/js/playlist-ui/lang/es.js
--- a/resources/js/playlist-ui/lang/es.js
+++ b/resources/js/playlist-ui/lang/es.js
# @@ -1,5 +0,0 @@
# -videojs.addLanguage('es', {
# - "Now Playing": "Reproduciendo",
# - "Up Next": "A continuación:",
# - "Untitled Video": "Vídeo sin título"
# -});
# \ No newline at end of file
#
diff --git a/resources/js/playlist-ui/lang/fr.js b/resources/js/playlist-ui/lang/fr.js
--- a/resources/js/playlist-ui/lang/fr.js
+++ b/resources/js/playlist-ui/lang/fr.js
# @@ -1,5 +0,0 @@
# -videojs.addLanguage('fr', {
# - "Now Playing": "En cours de lecture",
# - "Up Next": "À suivre",
# - "Untitled Video": "Vidéo sans titre"
# -});
# \ No newline at end of file
#
diff --git a/resources/js/playlist-ui/lang/ja.js b/resources/js/playlist-ui/lang/ja.js
--- a/resources/js/playlist-ui/lang/ja.js
+++ b/resources/js/playlist-ui/lang/ja.js
# @@ -1,5 +0,0 @@
# -videojs.addLanguage('ja', {
# - "Now Playing": "現在再生中",
# - "Up Next": "次の動画",
# - "Untitled Video": "無題の動画"
# -});
# \ No newline at end of file
#
diff --git a/resources/js/playlist-ui/lang/ko.js b/resources/js/playlist-ui/lang/ko.js
--- a/resources/js/playlist-ui/lang/ko.js
+++ b/resources/js/playlist-ui/lang/ko.js
# @@ -1,5 +0,0 @@
# -videojs.addLanguage('ko', {
# - "Now Playing": "지금 재생 중",
# - "Up Next": "다음",
# - "Untitled Video": "제목 없는 비디오"
# -});
# \ No newline at end of file
#
diff --git a/resources/js/playlist-ui/lang/zh-Hans.js b/resources/js/playlist-ui/lang/zh-Hans.js
--- a/resources/js/playlist-ui/lang/zh-Hans.js
+++ b/resources/js/playlist-ui/lang/zh-Hans.js
# @@ -1,5 +0,0 @@
# -videojs.addLanguage('zh-Hans', {
# - "Now Playing": "正在播放",
# - "Up Next": "播放下一个",
# - "Untitled Video": "无标题视频"
# -});
# \ No newline at end of file
#
diff --git a/resources/js/playlist-ui/lang/zh-Hant.js b/resources/js/playlist-ui/lang/zh-Hant.js
--- a/resources/js/playlist-ui/lang/zh-Hant.js
+++ b/resources/js/playlist-ui/lang/zh-Hant.js
# @@ -1,5 +0,0 @@
# -videojs.addLanguage('zh-Hant', {
# - "Now Playing": "正在播放",
# - "Up Next": "播放下一個",
# - "Untitled Video": "未命名視訊"
# -});
# \ No newline at end of file
#
diff --git a/resources/js/playlist-ui/package/CHANGELOG.md b/resources/js/playlist-ui/package/CHANGELOG.md
--- a/resources/js/playlist-ui/package/CHANGELOG.md
+++ b/resources/js/playlist-ui/package/CHANGELOG.md
# @@ -1,183 +0,0 @@
# -<a name="3.6.0"></a>
# -# [3.6.0](https://github.com/brightcove/videojs-playlist-ui/compare/v3.5.2...v3.6.0) (2019-08-26)
# -
# -### Features
# -
# -* Add translations for localizable strings ([#107](https://github.com/brightcove/videojs-playlist-ui/issues/107)) ([96b5ef7](https://github.com/brightcove/videojs-playlist-ui/commit/96b5ef7))
# -
# -### Chores
# -
# -* **package:** Update dependencies to fix npm audit issues ([#106](https://github.com/brightcove/videojs-playlist-ui/issues/106)) ([ec20321](https://github.com/brightcove/videojs-playlist-ui/commit/ec20321))
# -* **package:** update lint-staged to version 8.1.0 ([#91](https://github.com/brightcove/videojs-playlist-ui/issues/91)) ([afd859e](https://github.com/brightcove/videojs-playlist-ui/commit/afd859e))
# -* **package:** update npm-run-all/videojs-generator-verify for security ([9c579e0](https://github.com/brightcove/videojs-playlist-ui/commit/9c579e0))
# -* **package:** update rollup to version 0.67.3 ([#89](https://github.com/brightcove/videojs-playlist-ui/issues/89)) ([d969e5d](https://github.com/brightcove/videojs-playlist-ui/commit/d969e5d))
# -* **package:** update videojs-generate-karma-config to version 5.0.0 ([#90](https://github.com/brightcove/videojs-playlist-ui/issues/90)) ([841cc2d](https://github.com/brightcove/videojs-playlist-ui/commit/841cc2d))
# -* **package:** update videojs-generate-rollup-config to version 2.3.1 ([#92](https://github.com/brightcove/videojs-playlist-ui/issues/92)) ([ee3a461](https://github.com/brightcove/videojs-playlist-ui/commit/ee3a461))
# -* **package:** update videojs-standard to version 8.0.2 ([#93](https://github.com/brightcove/videojs-playlist-ui/issues/93)) ([d9066ea](https://github.com/brightcove/videojs-playlist-ui/commit/d9066ea))
# -
# -<a name="3.5.2"></a>
# -## [3.5.2](https://github.com/brightcove/videojs-playlist-ui/compare/v3.5.1...v3.5.2) (2018-10-03)
# -
# -### Bug Fixes
# -
# -* Remove the playlist UI when the player is disposed. ([#81](https://github.com/brightcove/videojs-playlist-ui/issues/81)) ([c519585](https://github.com/brightcove/videojs-playlist-ui/commit/c519585))
# -* Remove the postinstall script to prevent install issues ([#76](https://github.com/brightcove/videojs-playlist-ui/issues/76)) ([fbe09e2](https://github.com/brightcove/videojs-playlist-ui/commit/fbe09e2))
# -
# -### Chores
# -
# -* update to generator-videojs-plugin[@7](https://github.com/7).2.0 ([0235fee](https://github.com/brightcove/videojs-playlist-ui/commit/0235fee))
# -* **package:** update rollup to version 0.66.0 ([#79](https://github.com/brightcove/videojs-playlist-ui/issues/79)) ([dc86980](https://github.com/brightcove/videojs-playlist-ui/commit/dc86980))
# -
# -<a name="3.5.1"></a>
# -## [3.5.1](https://github.com/brightcove/videojs-playlist-ui/compare/v3.5.0...v3.5.1) (2018-08-23)
# -
# -### Chores
# -
# -* generator v7 ([#72](https://github.com/brightcove/videojs-playlist-ui/issues/72)) ([c8cb58d](https://github.com/brightcove/videojs-playlist-ui/commit/c8cb58d))
# -
# -<a name="3.5.0"></a>
# -# [3.5.0](https://github.com/brightcove/videojs-playlist-ui/compare/v3.4.2...v3.5.0) (2018-08-20)
# -
# -### Features
# -
# -* set dataset attributes on playlist items when they have a data object ([#68](https://github.com/brightcove/videojs-playlist-ui/issues/68)) ([e16f2dd](https://github.com/brightcove/videojs-playlist-ui/commit/e16f2dd))
# -
# -<a name="3.4.2"></a>
# -## [3.4.2](https://github.com/brightcove/videojs-playlist-ui/compare/v3.4.1...v3.4.2) (2018-08-03)
# -
# -### Bug Fixes
# -
# -* babel the es dist, by updating the generator ([#65](https://github.com/brightcove/videojs-playlist-ui/issues/65)) ([f63f77b](https://github.com/brightcove/videojs-playlist-ui/commit/f63f77b))
# -
# -### Chores
# -
# -* **package:** update dependencies, enable greenkeeper ([#62](https://github.com/brightcove/videojs-playlist-ui/issues/62)) ([63a89a7](https://github.com/brightcove/videojs-playlist-ui/commit/63a89a7))
# -
# -<a name="3.4.1"></a>
# -## [3.4.1](https://github.com/brightcove/videojs-playlist-ui/compare/v3.0.7...v3.4.1) (2018-07-20)
# -
# -### Bug Fixes
# -
# -* css builds ([#63](https://github.com/brightcove/videojs-playlist-ui/issues/63)) ([603ec73](https://github.com/brightcove/videojs-playlist-ui/commit/603ec73))
# -
# -### Reverts
# -
# -* unintended pkg changes ([#64](https://github.com/brightcove/videojs-playlist-ui/issues/64)) ([be83683](https://github.com/brightcove/videojs-playlist-ui/commit/be83683))
# -
# -<a name="3.0.8"></a>
# -## [3.0.8](https://github.com/brightcove/videojs-playlist-ui/compare/v3.0.6...v3.0.8) (2018-07-20)
# -
# -### Bug Fixes
# -
# -* update rollup to fix test build ([d329710](https://github.com/brightcove/videojs-playlist-ui/commit/d329710))
# -* revert: generator update from 3.0.7
# -
# -<a name="3.0.7"></a>
# -## [3.0.7](https://github.com/brightcove/videojs-playlist-ui/compare/v3.4.0...v3.0.7) (2018-07-05)
# -
# -### Chores
# -
# -* generator v6 ([#58](https://github.com/brightcove/videojs-playlist-ui/issues/58)) ([e9c2b00](https://github.com/brightcove/videojs-playlist-ui/commit/e9c2b00))
# -
# -<a name="3.4.0"></a>
# -# [3.4.0](https://github.com/brightcove/videojs-playlist-ui/compare/v3.3.0...v3.4.0) (2018-03-29)
# -
# -### Features
# -
# -* Expose the version of the plugin at the `VERSION` property. ([#56](https://github.com/brightcove/videojs-playlist-ui/issues/56)) ([cb2da9d](https://github.com/brightcove/videojs-playlist-ui/commit/cb2da9d))
# -
# -### Bug Fixes
# -
# -* Truncate longer video titles with ellipses when they overflow ([#57](https://github.com/brightcove/videojs-playlist-ui/issues/57)) ([18d8a18](https://github.com/brightcove/videojs-playlist-ui/commit/18d8a18))
# -
# -### Chores
# -
# -* Update tooling via the plugin generator. ([#55](https://github.com/brightcove/videojs-playlist-ui/issues/55)) ([b753ab3](https://github.com/brightcove/videojs-playlist-ui/commit/b753ab3))
# -
# -<a name="3.3.0"></a>
# -# [3.3.0](https://github.com/brightcove/videojs-playlist-ui/compare/v3.2.1...v3.3.0) (2017-12-04)
# -
# -### Features
# -
# -* Support horizontal playlist display. ([#54](https://github.com/brightcove/videojs-playlist-ui/issues/54)) ([85965b6](https://github.com/brightcove/videojs-playlist-ui/commit/85965b6))
# -
# -<a name="3.2.1"></a>
# -## [3.2.1](https://github.com/brightcove/videojs-playlist-ui/compare/v3.2.0...v3.2.1) (2017-11-29)
# -
# -### Bug Fixes
# -
# -* Do not concatenate playlist items if the plugin is re-initialized. ([#53](https://github.com/brightcove/videojs-playlist-ui/issues/53)) ([7953ad6](https://github.com/brightcove/videojs-playlist-ui/commit/7953ad6))
# -
# -<a name="3.2.0"></a>
# -# [3.2.0](https://github.com/brightcove/videojs-playlist-ui/compare/v3.1.0...v3.2.0) (2017-11-29)
# -
# -### Features
# -
# -* Support the 'playlistsorted' event added in videojs-playlist 4.1.0. ([#52](https://github.com/brightcove/videojs-playlist-ui/issues/52)) ([6d79ac1](https://github.com/brightcove/videojs-playlist-ui/commit/6d79ac1))
# -
# -<a name="3.1.0"></a>
# -# [3.1.0](https://github.com/brightcove/videojs-playlist-ui/compare/v3.0.6...v3.1.0) (2017-11-15)
# -
# -### Features
# -
# -* Better support for multiple in-page players by more intelligently finding a player's associated playlist element. ([#50](https://github.com/brightcove/videojs-playlist-ui/issues/50)) ([50bd97c](https://github.com/brightcove/videojs-playlist-ui/commit/50bd97c))
# -
# -<a name="3.0.6"></a>
# -## [3.0.6](https://github.com/brightcove/videojs-playlist-ui/compare/v3.0.5...v3.0.6) (2017-09-05)
# -
# -### Bug Fixes
# -
# -* breaking changed caused by dist files being renamed ([#46](https://github.com/brightcove/videojs-playlist-ui/issues/46)) ([52140f4](https://github.com/brightcove/videojs-playlist-ui/commit/52140f4))
# -* simplify removal of vjs-ad-playing class ([#45](https://github.com/brightcove/videojs-playlist-ui/issues/45)) ([b49dc82](https://github.com/brightcove/videojs-playlist-ui/commit/b49dc82))
# -
# -<a name="3.0.5"></a>
# -## [3.0.5](https://github.com/brightcove/videojs-playlist-ui/compare/v3.0.3...v3.0.5) (2017-05-19)
# -
# -### Chores
# -
# -* Update tooling using generator v5 prerelease. ([#42](https://github.com/brightcove/videojs-playlist-ui/issues/42)) ([6153b64](https://github.com/brightcove/videojs-playlist-ui/commit/6153b64))
# -
# -# CHANGELOG
# -
# -## 3.0.4
# -
# -* @incompl Fix collision in CSS
# -* @incompl Fix accessibility for image thumbnails
# -
# -## 3.0.3
# -
# -* chore: @brandonocasey Fix Video.js 6 deprecation warnings
# -* chore: @brandonocasey Update unit tests to use karma
# -
# -## 3.0.2
# -
# -* @misteroneill More complete documentation and examples
# -
# -## 3.0.1
# -
# -* @misteroneill Update videojs-playlist to v3.0.0 [#24](https://github.com/brightcove/videojs-playlist-ui/pull/24)
# -* @diniscorreia Fix documentation for placeholder element [#30](https://github.com/brightcove/videojs-playlist-ui/pull/30)
# -* @diniscorreia Fix querySelector for list creation [#29](https://github.com/brightcove/videojs-playlist-ui/pull/29)
# -
# -## 3.0.0
# -
# -* Redesigned UI. Bigger thumbnails, more room for video titles, and more.
# -
# -## 2.3.1
# -
# -* @misteroneill More complete documentation and examples [#32](https://github.com/brightcove/videojs-playlist-ui/pull/32)
# -* @misteroneill Update to videojs-playlist 3.0.0 [#31](https://github.com/brightcove/videojs-playlist-ui/pull/31)
# -
# -## 2.3.0
# -
# -* Keep vjs-ad-playing class after postroll until ended event
# -
# -## 2.2.0
# -
# -* Fixup babelify and have a proper browserify endpoint
# -
# -...
# -
# -## 0.1.0
# -
# -* Initial release
#
diff --git a/resources/js/playlist-ui/package/CONTRIBUTING.md b/resources/js/playlist-ui/package/CONTRIBUTING.md
--- a/resources/js/playlist-ui/package/CONTRIBUTING.md
+++ b/resources/js/playlist-ui/package/CONTRIBUTING.md
# @@ -1,30 +0,0 @@
# -# CONTRIBUTING
# -
# -We welcome contributions from everyone!
# -
# -## Getting Started
# -
# -Make sure you have Node.js 4.8 or higher and npm installed.
# -
# -1. Fork this repository and clone your fork
# -1. Install dependencies: `npm install`
# -1. Run a development server: `npm start`
# -
# -### Making Changes
# -
# -Refer to the [video.js plugin conventions][conventions] for more detail on best practices and tooling for video.js plugin authorship.
# -
# -When you've made your changes, push your commit(s) to your fork and issue a pull request against the original repository.
# -
# -### Running Tests
# -
# -Testing is a crucial part of any software project. For all but the most trivial changes (typos, etc) test cases are expected. Tests are run in actual browsers using [Karma][karma].
# -
# -- In all available and supported browsers: `npm test`
# -- In a specific browser: `npm run test:chrome`, `npm run test:firefox`, etc.
# -- While development server is running (`npm start`), navigate to [`http://localhost:9999/test/`][local]
# -
# -
# -[karma]: http://karma-runner.github.io/
# -[local]: http://localhost:9999/test/
# -[conventions]: https://github.com/videojs/generator-videojs-plugin/blob/master/docs/conventions.md
#
diff --git a/resources/js/playlist-ui/package/LICENSE b/resources/js/playlist-ui/package/LICENSE
--- a/resources/js/playlist-ui/package/LICENSE
+++ b/resources/js/playlist-ui/package/LICENSE
# @@ -1,13 +0,0 @@
# -Copyright Brightcove, Inc.
# -
# -Licensed under the Apache License, Version 2.0 (the "License");
# -you may not use this file except in compliance with the License.
# -You may obtain a copy of the License at
# -
# - http://www.apache.org/licenses/LICENSE-2.0
# -
# -Unless required by applicable law or agreed to in writing, software
# -distributed under the License is distributed on an "AS IS" BASIS,
# -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# -See the License for the specific language governing permissions and
# -limitations under the License.
#
diff --git a/resources/js/playlist-ui/package/README.md b/resources/js/playlist-ui/package/README.md
--- a/resources/js/playlist-ui/package/README.md
+++ b/resources/js/playlist-ui/package/README.md
# @@ -1,110 +0,0 @@
# -# videojs-playlist-ui
# -
# -[![Build Status](https://travis-ci.org/brightcove/videojs-playlist-ui.svg?branch=master)](https://travis-ci.org/brightcove/videojs-playlist-ui)
# -[![Greenkeeper badge](https://badges.greenkeeper.io/brightcove/videojs-playlist-ui.svg)](https://greenkeeper.io/)
# -[![Slack Status](http://slack.videojs.com/badge.svg)](http://slack.videojs.com)
# -
# -[![NPM](https://nodei.co/npm/videojs-playlist-ui.png?downloads=true&downloadRank=true)](https://nodei.co/npm/videojs-playlist-ui/)
# -
# -A playlist video picker for video.js and videojs-playlist
# -
# -Maintenance Status: Stable
# -
# -<!-- START doctoc generated TOC please keep comment here to allow auto update -->
# -<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
# -
# -
# -- [Getting Started](#getting-started)
# -- [Root Element](#root-element)
# - - [Using Automatic Discovery (default, example)](#using-automatic-discovery-default-example)
# - - [Using a Custom Class (example)](#using-a-custom-class-example)
# - - [Using a Custom Element (example)](#using-a-custom-element-example)
# -- [Other Options](#other-options)
# - - [`className`](#classname)
# - - [playOnSelect](#playonselect)
# -- [Playlists and Advertisements](#playlists-and-advertisements)
# -
# -<!-- END doctoc generated TOC please keep comment here to allow auto update -->
# -
# -
# -## Getting Started
# -Include the plugin script in your page, and a placeholder list element with the class `vjs-playlist` to house the playlist menu:
# -
# -```html
# -<!-- Include the playlist menu styles somewhere in your page: -->
# -<link href="videojs-playlist-ui.vertical.css" rel="stylesheet">
# -
# -<!-- The playlist menu will be built automatically in here: -->
# -<div class="vjs-playlist"></div>
# -
# -<!-- Include video.js, the videojs-playlist plugin and this plugin: -->
# -<script src="video.js"></script>
# -<script src="videojs-playlist.js"></script>
# -<script src="videojs-playlist-ui.js"></script>
# -
# -<script>
# - // Initialize the plugin and build the playlist!
# - videojs(document.querySelector('video')).playlistUi();
# -</script>
# -```
# -
# -There's also a [working example](example.html) of the plugin you can check out if you're having trouble.
# -
# -## Root Element
# -Before this plugin will work at all, it needs an element in the DOM to which to attach itself. There are three ways to find or provide this element.
# -
# -> **NOTE:** In v2.x of this plugin, the root element was expected to be a list element (i.e., `<ol>` or `<ul>`). As of v3.x, the plugin creates a list; so, this root element _must_ be a non-list container element (e.g., `<div>`).
# -
# -### Using Automatic Discovery (default, [example](example.html))
# -By default, the plugin will search for the first element in the DOM with the `vjs-playlist` class.
# -
# -To defend against problems caused by multiple playlist players on a page, the plugin will only use an element with the `vjs-playlist` class if that element has not been used by another player's playlist.
# -
# -### Using a Custom Class ([example](example-custom-class.html))
# -A custom `className` option can be passed to override the class the plugin will search for to find the root element. The same defense against multiple playlist players is reused in this case.
# -
# -```js
# -player.playlistUi({
# - className: 'hello-world'
# -});
# -```
# -
# -### Using a Custom Element ([example](example-custom-element.html))
# -A custom element can be passed using the `el` option to explicitly define a specific root element.
# -
# -```js
# -player.playlistUi({
# - el: document.getElementById('hello-world')
# -});
# -```
# -
# -> **NOTE:** Previously, the plugin supported passing the element in lieu of passing options. That feature is deprecated and will be removed in 4.0. Please use the `el` option going forward.
# -
# -## Other Options
# -
# -The options passed to the plugin are passed to the internal `PlaylistMenu` [video.js Component][components]; so, you may pass in [any option][components-options] that is accepted by a component.
# -
# -In addition, the options object may contain the following specialized properties:
# -
# -#### `className`
# -Type: `string`
# -Default: `"vjs-playlist"`
# -
# -As mentioned [above](#using-a-custom-class), the name of the class to search for to populate the playlist menu.
# -
# -#### playOnSelect
# -Type: `boolean`
# -Default: `false`
# -
# -The default behavior is that the play state is expected to stay the same between videos. If the player is playing when switching playlist items, continue playing. If paused, stay paused.
# -
# -When this boolean is set to `true`, clicking on the playlist menu items will always play the video.
# -
# -## Playlists and Advertisements
# -
# -The `PlaylistMenu` automatically adapts to ad integrations based on [videojs-contrib-ads][contrib-ads]. When a linear ad is being played, the menu will darken and stop responding to click or touch events. If you'd prefer to allow your viewers to change videos during ad playback, you can override this behavior through CSS. You will also need to make sure that your ad integration is properly cancelled and cleaned up before switching -- consult the documentation for your ad library for details on how to do that.
# -
# -
# -[components]: https://github.com/videojs/video.js/blob/master/docs/guides/components.md
# -[components-options]: https://github.com/videojs/video.js/blob/master/docs/guides/options.md#component-options
# -[contrib-ads]: https://github.com/videojs/videojs-contrib-ads
#
diff --git a/resources/js/playlist-ui/package/dist/lang/de.js b/resources/js/playlist-ui/package/dist/lang/de.js
--- a/resources/js/playlist-ui/package/dist/lang/de.js
+++ b/resources/js/playlist-ui/package/dist/lang/de.js
# @@ -1,5 +0,0 @@
# -videojs.addLanguage('de', {
# - "Now Playing": "Aktuelle Wiedergabe",
# - "Up Next": "Als Nächstes",
# - "Untitled Video": "Video ohne Titel"
# -});
# \ No newline at end of file
#
diff --git a/resources/js/playlist-ui/package/dist/lang/en.js b/resources/js/playlist-ui/package/dist/lang/en.js
--- a/resources/js/playlist-ui/package/dist/lang/en.js
+++ b/resources/js/playlist-ui/package/dist/lang/en.js
# @@ -1,5 +0,0 @@
# -videojs.addLanguage('en', {
# - "Now Playing": "Now Playing",
# - "Up Next": "Up Next",
# - "Untitled Video": "Untitled Video"
# -});
# \ No newline at end of file
#
diff --git a/resources/js/playlist-ui/package/dist/lang/es.js b/resources/js/playlist-ui/package/dist/lang/es.js
--- a/resources/js/playlist-ui/package/dist/lang/es.js
+++ b/resources/js/playlist-ui/package/dist/lang/es.js
# @@ -1,5 +0,0 @@
# -videojs.addLanguage('es', {
# - "Now Playing": "Reproduciendo",
# - "Up Next": "A continuación:",
# - "Untitled Video": "Vídeo sin título"
# -});
# \ No newline at end of file
#
diff --git a/resources/js/playlist-ui/package/dist/lang/fr.js b/resources/js/playlist-ui/package/dist/lang/fr.js
--- a/resources/js/playlist-ui/package/dist/lang/fr.js
+++ b/resources/js/playlist-ui/package/dist/lang/fr.js
# @@ -1,5 +0,0 @@
# -videojs.addLanguage('fr', {
# - "Now Playing": "En cours de lecture",
# - "Up Next": "À suivre",
# - "Untitled Video": "Vidéo sans titre"
# -});
# \ No newline at end of file
#
diff --git a/resources/js/playlist-ui/package/dist/lang/ja.js b/resources/js/playlist-ui/package/dist/lang/ja.js
--- a/resources/js/playlist-ui/package/dist/lang/ja.js
+++ b/resources/js/playlist-ui/package/dist/lang/ja.js
# @@ -1,5 +0,0 @@
# -videojs.addLanguage('ja', {
# - "Now Playing": "現在再生中",
# - "Up Next": "次の動画",
# - "Untitled Video": "無題の動画"
# -});
# \ No newline at end of file
#
diff --git a/resources/js/playlist-ui/package/dist/lang/ko.js b/resources/js/playlist-ui/package/dist/lang/ko.js
--- a/resources/js/playlist-ui/package/dist/lang/ko.js
+++ b/resources/js/playlist-ui/package/dist/lang/ko.js
# @@ -1,5 +0,0 @@
# -videojs.addLanguage('ko', {
# - "Now Playing": "지금 재생 중",
# - "Up Next": "다음",
# - "Untitled Video": "제목 없는 비디오"
# -});
# \ No newline at end of file
#
diff --git a/resources/js/playlist-ui/package/dist/lang/zh-Hans.js b/resources/js/playlist-ui/package/dist/lang/zh-Hans.js
--- a/resources/js/playlist-ui/package/dist/lang/zh-Hans.js
+++ b/resources/js/playlist-ui/package/dist/lang/zh-Hans.js
# @@ -1,5 +0,0 @@
# -videojs.addLanguage('zh-Hans', {
# - "Now Playing": "正在播放",
# - "Up Next": "播放下一个",
# - "Untitled Video": "无标题视频"
# -});
# \ No newline at end of file
#