1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 02:09:22 +02:00
Oinktube/plugin/PlayLists/playerButton.js
DanielnetoDotCom 890a14d244 1. add seasons support that will group multiple series as part of a big serie.
2. update the netflix layout to display more details about the selected series.
2021-02-24 16:23:11 -03:00

33 lines
985 B
JavaScript

var Button = videojs.getComponent('Button');
var playListProgramButton = videojs.extend(Button, {
//constructor: function(player, options) {
constructor: function () {
Button.apply(this, arguments);
this.addClass('playListProgram-button');
this.controlText("playListProgram");
},
handleClick: function () {
console.log('playListProgramButton clicked');
$('#playListHolder').fadeToggle();
}
});
videojs.registerComponent('playListProgramButton', playListProgramButton);
player.getChild('controlBar').addChild('playListProgramButton', {}, getPlayerButtonIndex('fullscreenToggle') - 1);
function playListFadeIn() {
$('#playListHolder').fadeIn();
}
function playListFadeOut() {
$('#playListHolder').fadeOut();
}
function startTrackDisplayPlayListHolder() {
if ($(".vjs-text-track-display").length === 0) {
setTimeout(function () {
startTrackDisplayPlayListHolder();
}, 1000);
}
}