mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 10:49:36 +02:00
Offline player test
This commit is contained in:
parent
44ed5e2f0c
commit
53dfc89fd2
9 changed files with 234 additions and 66 deletions
|
@ -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 = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue