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

Next Button and seek button plugin

https://github.com/DanielnetoDotCom/YouPHPTube/issues/359
This commit is contained in:
daniel 2018-02-15 13:36:33 -03:00
parent 0ae73ee97d
commit af4fa60ac1
12 changed files with 645 additions and 5 deletions

View file

@ -256,4 +256,14 @@ function addView(videos_id){
console.log(response);
}
});
}
function getPlayerButtonIndex(name){
var children = player.getChild('controlBar').children();
for(i=0;i<children.length;i++){
if(children[0].name_ === name){
return i;
}
}
return children.length;
}