Fix start/stop of first element when loading a playlist
authorChocobozzz <me@florianbigard.com>
Wed, 6 Nov 2019 08:14:18 +0000 (09:14 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 6 Nov 2019 08:14:18 +0000 (09:14 +0100)
client/src/app/videos/+video-watch/video-watch-playlist.component.ts

index 6e8d58cd80d9bee8db2359443108abc12c82fac3..524055ce26a76d3696f395d65a9d087b6ae46d6f 100644 (file)
@@ -80,7 +80,11 @@ export class VideoWatchPlaylistComponent {
 
           if (redirectToFirst) {
             const extras = {
-              queryParams: { videoId: firstAvailableVideos.video.uuid },
+              queryParams: {
+                start: firstAvailableVideos.startTimestamp,
+                stop: firstAvailableVideos.stopTimestamp,
+                videoId: firstAvailableVideos.video.uuid
+              },
               replaceUrl: true
             }
             this.router.navigate([], extras)