mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
readded error-window and fixed player hiding on small when loading
This commit is contained in:
@@ -140,7 +140,7 @@ var Player = {
|
||||
Helper.css("#player", "visibility", "visible");
|
||||
}
|
||||
if(!embed && !client && window.location.pathname != "/") {
|
||||
resizePlaylistPlaying(newState.data == YT.PlayerState.PLAYING);
|
||||
resizePlaylistPlaying(newState.data == YT.PlayerState.PLAYING || newState.data == YT.PlayerState.BUFFERING);
|
||||
}
|
||||
if(embed && !autoplay) autoplay = true;
|
||||
if(!window.MSStream) {
|
||||
@@ -203,7 +203,7 @@ var Player = {
|
||||
if(window.location.pathname != "/") Playercontrols.play_pause_show();
|
||||
mobile_beginning = true;
|
||||
if(!embed && !client && window.location.pathname != "/") {
|
||||
resizePlaylistPlaying(newState.data == YT.PlayerState.PLAYING);
|
||||
resizePlaylistPlaying(newState.data == YT.PlayerState.PLAYING || newState.data == YT.PlayerState.BUFFERING);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -218,6 +218,7 @@ var Player = {
|
||||
case YT.PlayerState.BUFFERING:
|
||||
//was_stopped = false;
|
||||
buffering = true;
|
||||
resizePlaylistPlaying(newState.data == YT.PlayerState.PLAYING || newState.data == YT.PlayerState.BUFFERING);
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user