Browse Source

Fixed issue where song would keep pausing and resuming.

KrisVos130 8 years ago
parent
commit
10ac061b65
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frontend/components/Station/Station.vue

+ 1 - 1
frontend/components/Station/Station.vue

@@ -163,7 +163,7 @@
 									local.player.seekTo(local.timeBeforePause / 1000, true);
 									local.player.pauseVideo();
 								}
-								if (event.data === 2 && !local.paused && !local.noSong) {
+								if (event.data === 2 && !local.paused && !local.noSong && local.getTimeElapsed() < local.currentSong.duration) {
 									local.player.seekTo(local.getTimeElapsed() / 1000 + local.currentSong.skipDuration, true);
 									local.player.playVideo();
 								}