aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts4
1 files changed, 3 insertions, 1 deletions
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 {
541 } 541 }
542 542
543 private autoplayNext () { 543 private autoplayNext () {
544 if (this.nextVideoUuid) { 544 if (this.playlist) {
545 this.zone.run(() => this.videoWatchPlaylist.navigateToNextPlaylistVideo())
546 } else if (this.nextVideoUuid) {
545 this.router.navigate([ '/videos/watch', this.nextVideoUuid ]) 547 this.router.navigate([ '/videos/watch', this.nextVideoUuid ])
546 } 548 }
547 } 549 }