mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed error where player sometimes won't load video
This commit is contained in:
@@ -239,9 +239,9 @@ function errorHandler(newState)
|
||||
{
|
||||
var failsafe = ytplayer.getVideoUrl().split("https://www.youtube.com/watch");
|
||||
if(newState.data == 5 || newState.data == 100 || newState.data == 101 || newState.data == 150)
|
||||
{
|
||||
socket.emit("skip", newState.data);
|
||||
}
|
||||
else
|
||||
ytplayer.loadVideoById(video_id);
|
||||
}
|
||||
|
||||
function onPlayerReady(event) {
|
||||
|
||||
Reference in New Issue
Block a user