Jelajahi Sumber

Fixed issue where preview wouldn't take skipDuration into account.

KrisVos130 9 tahun lalu
induk
melakukan
339f9b6b21
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      app/client/client.js

+ 2 - 2
app/client/client.js

@@ -1061,11 +1061,11 @@ Template.stations.events({
                 alert("The duration of the YouTube video is smaller than the duration.");
                 error = true;
             } else {
-                yt_player.seekTo(Session.get("song").duration - 10);
+                yt_player.seekTo(Session.get("song").skipDuration + Session.get("song").duration - 10);
             }
         }
         if (_sound !== undefined) {
-            _sound.seekTo((Session.get("song").duration - 10) * 1000);
+            _sound.seekTo((Session.get("song").skipDuration + Session.get("song").duration - 10) * 1000);
         }
         if (!error) {
             if (previewEndSongTimeout !== undefined) {