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

Offline player test

This commit is contained in:
DanieL 2022-07-11 15:06:08 -03:00
parent 44ed5e2f0c
commit 53dfc89fd2
9 changed files with 234 additions and 66 deletions

View file

@ -2816,8 +2816,13 @@ function fixAdSize() {
}
}
var videoJSRecreateSourcesTimeout;
function videoJSRecreateSources(defaultSource){
if(empty(player) || empty(player.options_) || empty(player.updateSrc)){
clearTimeout(videoJSRecreateSourcesTimeout);
videoJSRecreateSourcesTimeout = setTimeout(function(){
videoJSRecreateSources(defaultSource);
});
return false;
}
player.options_.sources = [];