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

Getting ready for offline video player

This commit is contained in:
DanieL 2022-07-21 16:08:55 -03:00
parent 620bf45639
commit 89662dc5ac

View file

@ -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;
};