From f1d9b2d6bf81c51f0921fab0ebc40de7c0837df6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 6 Nov 2019 09:14:18 +0100 Subject: [PATCH] Fix start/stop of first element when loading a playlist --- .../videos/+video-watch/video-watch-playlist.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/app/videos/+video-watch/video-watch-playlist.component.ts b/client/src/app/videos/+video-watch/video-watch-playlist.component.ts index 6e8d58cd8..524055ce2 100644 --- a/client/src/app/videos/+video-watch/video-watch-playlist.component.ts +++ b/client/src/app/videos/+video-watch/video-watch-playlist.component.ts @@ -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) -- 2.41.0