From 1dc240a9488c66ad38205d08fcfdb32d35efceaa Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Thu, 19 Dec 2019 21:34:45 +0100 Subject: Add next video button to the player --- client/src/app/videos/+video-watch/video-watch.component.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'client/src/app') 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 134af751d..bad0144bf 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts @@ -642,6 +642,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { const options: PeertubePlayerManagerOptions = { common: { autoplay: this.isAutoplay(), + nextVideo: () => this.zone.run(() => this.autoplayNext()), playerElement: this.playerElement, onPlayerElementChange: (element: HTMLVideoElement) => this.playerElement = element, -- cgit v1.2.3