diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-21 09:46:55 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-04-21 15:18:22 +0200 |
commit | e8bb5b6b3a1e4c2aeab368f01cc5092d8478b893 (patch) | |
tree | 5cb81a909d6789f8803d35e902f6fc7fa822284a /client/src/standalone/videos | |
parent | b7a27f2860982db2322048441d85b7143862d3b7 (diff) | |
download | PeerTube-e8bb5b6b3a1e4c2aeab368f01cc5092d8478b893.tar.gz PeerTube-e8bb5b6b3a1e4c2aeab368f01cc5092d8478b893.tar.zst PeerTube-e8bb5b6b3a1e4c2aeab368f01cc5092d8478b893.zip |
Fix context menu when watching a playlist
Diffstat (limited to 'client/src/standalone/videos')
-rw-r--r-- | client/src/standalone/videos/embed.ts | 7 |
1 files changed, 6 insertions, 1 deletions
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 { | |||
492 | 492 | ||
493 | const playlistPlugin = this.currentPlaylistElement | 493 | const playlistPlugin = this.currentPlaylistElement |
494 | ? { | 494 | ? { |
495 | createComponent: true, | ||
496 | |||
495 | elements: this.playlistElements, | 497 | elements: this.playlistElements, |
496 | playlist: this.playlist, | 498 | playlist: this.playlist, |
497 | 499 | ||
@@ -502,7 +504,10 @@ export class PeerTubeEmbed { | |||
502 | 504 | ||
503 | this.loadVideoAndBuildPlayer(this.currentPlaylistElement.video.uuid) | 505 | this.loadVideoAndBuildPlayer(this.currentPlaylistElement.video.uuid) |
504 | .catch(err => console.error(err)) | 506 | .catch(err => console.error(err)) |
505 | } | 507 | }, |
508 | |||
509 | embedTitle: this.playlist.displayName, | ||
510 | embedUrl: window.location.origin + this.playlist.embedPath | ||
506 | } | 511 | } |
507 | : undefined | 512 | : undefined |
508 | 513 | ||