mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Some more fix for the playlist in full screen
This commit is contained in:
parent
a21919d4ef
commit
5b96e07a53
1 changed files with 16 additions and 14 deletions
|
@ -153,22 +153,24 @@ function changeVideoSrc(vid_obj, source) {
|
|||
}
|
||||
}
|
||||
vid_obj.src(srcs);
|
||||
setTimeout(function(){
|
||||
vid_obj.load();
|
||||
vid_obj.ready(function () {
|
||||
var err = this.error();
|
||||
if (err && err.code) {
|
||||
setTimeout(function(){
|
||||
vid_obj.load();
|
||||
vid_obj.play();
|
||||
},2000);
|
||||
}else{
|
||||
vid_obj.play();
|
||||
}
|
||||
});
|
||||
},1000);
|
||||
changeVideoSrcLoad(vid_obj);
|
||||
}
|
||||
|
||||
function changeVideoSrcLoad(vid_obj) {
|
||||
vid_obj.load();
|
||||
vid_obj.ready(function () {
|
||||
var err = this.error();
|
||||
if (err && err.code) {
|
||||
setTimeout(function(){
|
||||
changeVideoSrcLoad(vid_obj);
|
||||
},500);
|
||||
}else{
|
||||
vid_obj.play();
|
||||
}
|
||||
});;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {String} str 00:00:00
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue