浏览代码

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

KrisVos130 9 年之前
父节点
当前提交
339f9b6b21
共有 1 个文件被更改,包括 2 次插入2 次删除
  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) {