mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Getting ready for offline video player
This commit is contained in:
parent
620bf45639
commit
89662dc5ac
1 changed files with 2 additions and 1 deletions
|
@ -25,6 +25,7 @@ function socketConnect() {
|
|||
//console.log('Trying to reconnect on socket... ');
|
||||
if(!isValidURL(url)){
|
||||
socketConnectRequested = 0;
|
||||
console.log("socketConnect: Invalid URL ", url);
|
||||
socketConnectTimeout = setTimeout(function () {
|
||||
socketConnect();
|
||||
}, 30000);
|
||||
|
@ -35,7 +36,7 @@ function socketConnect() {
|
|||
conn.onopen = function (e) {
|
||||
socketConnectRequested = 0;
|
||||
clearTimeout(socketConnectTimeout);
|
||||
console.log("Socket onopen");
|
||||
console.log("socketConnect: Socket onopen");
|
||||
onSocketOpen();
|
||||
return false;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue