Browse Source

Always start at 0 for youtube videos

Thomas Dy 4 years ago
parent
commit
74c426e148
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/audio.ts

+ 1 - 0
src/audio.ts

@@ -200,6 +200,7 @@ namespace audio {
             if (!loaded) {
               loaded = true;
               this.player.pauseVideo();
+              this.player.seekTo(0);
               resolve();
             }
           } else if (data === YT.PlayerState.ENDED) {