From 6dd873d6a9a75a99df6ee47b5a196653587a2f63 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Tue, 17 Mar 2020 15:05:28 +0100 Subject: [PATCH] Fix next video button to support playlist videos fixes #2523 --- client/src/app/videos/+video-watch/video-watch.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts index 9ba14316c..51e484275 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts @@ -541,7 +541,9 @@ export class VideoWatchComponent implements OnInit, OnDestroy { } private autoplayNext () { - if (this.nextVideoUuid) { + if (this.playlist) { + this.zone.run(() => this.videoWatchPlaylist.navigateToNextPlaylistVideo()) + } else if (this.nextVideoUuid) { this.router.navigate([ '/videos/watch', this.nextVideoUuid ]) } } -- 2.25.1