From e8bb5b6b3a1e4c2aeab368f01cc5092d8478b893 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 21 Apr 2021 09:46:55 +0200 Subject: Fix context menu when watching a playlist --- client/src/standalone/videos/embed.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'client/src/standalone/videos/embed.ts') diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index 103014bb0..9e5b2a655 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts @@ -492,6 +492,8 @@ export class PeerTubeEmbed { const playlistPlugin = this.currentPlaylistElement ? { + createComponent: true, + elements: this.playlistElements, playlist: this.playlist, @@ -502,7 +504,10 @@ export class PeerTubeEmbed { this.loadVideoAndBuildPlayer(this.currentPlaylistElement.video.uuid) .catch(err => console.error(err)) - } + }, + + embedTitle: this.playlist.displayName, + embedUrl: window.location.origin + this.playlist.embedPath } : undefined -- cgit v1.2.3