diff options
author | Poslovitch <poslovitch@bentobox.world> | 2021-04-18 08:40:04 +0000 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-04-26 10:54:02 +0200 |
commit | 33d21a9b47b983ee7a5c5ba6d8a416c35fe66cf9 (patch) | |
tree | d95990897fda7e2b49f5548e753e3f870d3f9176 /client/src/app/+videos/+video-watch/video-watch.component.ts | |
parent | c29ce24256e136eb45e0ccd6539009231a642d1c (diff) | |
download | PeerTube-33d21a9b47b983ee7a5c5ba6d8a416c35fe66cf9.tar.gz PeerTube-33d21a9b47b983ee7a5c5ba6d8a416c35fe66cf9.tar.zst PeerTube-33d21a9b47b983ee7a5c5ba6d8a416c35fe66cf9.zip |
Added a "previous" button on player when watching playlist
Implements https://github.com/Chocobozzz/PeerTube/issues/3485
Diffstat (limited to 'client/src/app/+videos/+video-watch/video-watch.component.ts')
-rw-r--r-- | client/src/app/+videos/+video-watch/video-watch.component.ts | 4 |
1 files changed, 4 insertions, 0 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 366e9bb57..1f24c898e 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.ts +++ b/client/src/app/+videos/+video-watch/video-watch.component.ts | |||
@@ -799,6 +799,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
799 | common: { | 799 | common: { |
800 | autoplay: this.isAutoplay(), | 800 | autoplay: this.isAutoplay(), |
801 | nextVideo: () => this.zone.run(() => this.autoplayNext()), | 801 | nextVideo: () => this.zone.run(() => this.autoplayNext()), |
802 | previousVideo: () => this.zone.run(() => { | ||
803 | // FIXME: Only show if this is a playlist | ||
804 | if (this.playlist) this.zone.run(() => this.videoWatchPlaylist.navigateToPreviousPlaylistVideo()) | ||
805 | }), | ||
802 | 806 | ||
803 | playerElement: this.playerElement, | 807 | playerElement: this.playerElement, |
804 | onPlayerElementChange: (element: HTMLVideoElement) => this.playerElement = element, | 808 | onPlayerElementChange: (element: HTMLVideoElement) => this.playerElement = element, |