1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +02:00

Some updates regarding autoplay and loop

https://github.com/WWBN/AVideo/issues/3699
This commit is contained in:
DanielnetoDotCom 2020-09-24 10:46:01 -03:00
parent c1a3266604
commit 515fb52c75
4 changed files with 21 additions and 18 deletions

View file

@ -1,21 +1,3 @@
function setImageLoop() {
if (isPlayerLoop()) {
$('.loopButton').removeClass('opacityBtn');
$('.loopButton').addClass('fa-spin');
} else {
$('.loopButton').addClass('opacityBtn');
$('.loopButton').removeClass('fa-spin');
}
}
function toogleImageLoop(t) {
tooglePlayerLoop();
if (typeof setImageLoop === 'function') {
setImageLoop();
}
}
$(document).ready(function () {
var Button = videojs.getComponent('Button');