Fix next video button to support playlist videos

fixes #2523
This commit is contained in:
Rigel Kent 2020-03-17 15:05:28 +01:00
parent 79671021e2
commit 6dd873d6a9
No known key found for this signature in database
GPG Key ID: 5E53E96A494E452F
1 changed files with 3 additions and 1 deletions

View File

@ -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 ])
}
}