aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-21 09:46:55 +0200
committerChocobozzz <me@florianbigard.com>2021-04-21 15:18:22 +0200
commite8bb5b6b3a1e4c2aeab368f01cc5092d8478b893 (patch)
tree5cb81a909d6789f8803d35e902f6fc7fa822284a /client/src/app/+videos
parentb7a27f2860982db2322048441d85b7143862d3b7 (diff)
downloadPeerTube-e8bb5b6b3a1e4c2aeab368f01cc5092d8478b893.tar.gz
PeerTube-e8bb5b6b3a1e4c2aeab368f01cc5092d8478b893.tar.zst
PeerTube-e8bb5b6b3a1e4c2aeab368f01cc5092d8478b893.zip
Fix context menu when watching a playlist
Diffstat (limited to 'client/src/app/+videos')
-rw-r--r--client/src/app/+videos/+video-watch/video-watch.component.ts17
1 files changed, 16 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 366e9bb57..2216bdd4a 100644
--- a/client/src/app/+videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/+videos/+video-watch/video-watch.component.ts
@@ -795,6 +795,19 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
795 src: environment.apiUrl + c.captionPath 795 src: environment.apiUrl + c.captionPath
796 })) 796 }))
797 797
798 const playlistOptions = this.playlist
799 ? {
800 createComponent: false,
801
802 playlist: this.playlist,
803
804 getCurrentPosition: () => this.playlistPosition,
805
806 embedUrl: this.playlist.embedUrl,
807 embedTitle: this.playlist.displayName
808 }
809 : undefined
810
798 const options: PeertubePlayerManagerOptions = { 811 const options: PeertubePlayerManagerOptions = {
799 common: { 812 common: {
800 autoplay: this.isAutoplay(), 813 autoplay: this.isAutoplay(),
@@ -839,7 +852,9 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
839 852
840 videoCaptions: playerCaptions, 853 videoCaptions: playerCaptions,
841 854
842 videoUUID: video.uuid 855 videoUUID: video.uuid,
856
857 playlist: playlistOptions
843 }, 858 },
844 859
845 webtorrent: { 860 webtorrent: {