mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Getting ready for the Live Stream Multiple servers
This commit is contained in:
parent
945890ee14
commit
5c52709d6c
60 changed files with 1868 additions and 632 deletions
|
@ -214,14 +214,19 @@ $(document).ready(function () {
|
|||
},
|
||||
};
|
||||
})();
|
||||
$('[data-toggle="popover"]').popover();
|
||||
$('[data-toggle="tooltip"]').tooltip({container: 'body'});
|
||||
$('[data-toggle="tooltip"]').on('click', function () {
|
||||
var t = this;
|
||||
setTimeout(function () {
|
||||
$(t).tooltip('hide');
|
||||
}, 2000);
|
||||
});
|
||||
try {
|
||||
$('[data-toggle="popover"]').popover();
|
||||
$('[data-toggle="tooltip"]').tooltip({container: 'body'});
|
||||
$('[data-toggle="tooltip"]').on('click', function () {
|
||||
var t = this;
|
||||
setTimeout(function () {
|
||||
$(t).tooltip('hide');
|
||||
}, 2000);
|
||||
});
|
||||
} catch (e) {
|
||||
|
||||
}
|
||||
|
||||
$(".thumbsImage").on("mouseenter", function () {
|
||||
gifId = $(this).find(".thumbsGIF").attr('id');
|
||||
$(".thumbsGIF").fadeOut();
|
||||
|
@ -321,9 +326,9 @@ $(document).ready(function () {
|
|||
if (!response.error) {
|
||||
swal("Congratulations!", "File created!", "success");
|
||||
} else {
|
||||
if(response.msg){
|
||||
if (response.msg) {
|
||||
swal("Sorry!", response.msg, "error");
|
||||
}else{
|
||||
} else {
|
||||
swal("Sorry!", "File NOT created!", "error");
|
||||
}
|
||||
}
|
||||
|
@ -695,36 +700,45 @@ function alertHTMLText(title, text) {
|
|||
});
|
||||
}
|
||||
|
||||
function tooglePlayerLoop(){
|
||||
function tooglePlayerLoop() {
|
||||
setPlayerLoop(!isPlayerLoop());
|
||||
}
|
||||
|
||||
function setPlayerLoop(loop){
|
||||
if(loop){
|
||||
function setPlayerLoop(loop) {
|
||||
if (loop) {
|
||||
console.log("Loop ON");
|
||||
player.loop(1);
|
||||
$(".loop-button").removeClass('loop-disabled-button');
|
||||
$(".loop-button, .loopButton").addClass('fa-spin');
|
||||
}else{
|
||||
} else {
|
||||
$(".loop-button").addClass('loop-disabled-button');
|
||||
$(".loop-button, .loopButton").removeClass('fa-spin');
|
||||
console.log("Loop OFF");
|
||||
player.loop(0);
|
||||
}
|
||||
Cookies.set('playerLoop', loop, {
|
||||
path: '/',
|
||||
expires: 365
|
||||
});
|
||||
if(typeof setImageLoop === 'function'){
|
||||
path: '/',
|
||||
expires: 365
|
||||
});
|
||||
if (typeof setImageLoop === 'function') {
|
||||
setImageLoop();
|
||||
}
|
||||
}
|
||||
|
||||
function isPlayerLoop(){
|
||||
function isPlayerLoop() {
|
||||
var loop = Cookies.get('playerLoop');
|
||||
if(loop === "false"){
|
||||
if (loop === "false") {
|
||||
return false;
|
||||
}else{
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function isArray(what) {
|
||||
return Object.prototype.toString.call(what) === '[object Array]';
|
||||
}
|
||||
|
||||
function reloadVideoJS() {
|
||||
var src = player.currentSources();
|
||||
player.src(src);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue