aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/videos/embed.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-11-14 10:26:41 +0100
committerChocobozzz <me@florianbigard.com>2022-11-14 10:26:41 +0100
commitd91021548ed0dd3acec28722d0166bf38c67e0da (patch)
tree715774ced0b3a7c8c0f5624cbdd6550881a02a5f /client/src/standalone/videos/embed.ts
parent32f44a017c8037f212fc9a0a3f1c58a57eec1e4c (diff)
downloadPeerTube-d91021548ed0dd3acec28722d0166bf38c67e0da.tar.gz
PeerTube-d91021548ed0dd3acec28722d0166bf38c67e0da.tar.zst
PeerTube-d91021548ed0dd3acec28722d0166bf38c67e0da.zip
Fix embed api with playlists
Diffstat (limited to 'client/src/standalone/videos/embed.ts')
-rw-r--r--client/src/standalone/videos/embed.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts
index b89c901f1..356f149c0 100644
--- a/client/src/standalone/videos/embed.ts
+++ b/client/src/standalone/videos/embed.ts
@@ -117,6 +117,11 @@ export class PeerTubeEmbed {
117 117
118 private initializeApi () { 118 private initializeApi () {
119 if (this.playerManagerOptions.hasAPIEnabled()) { 119 if (this.playerManagerOptions.hasAPIEnabled()) {
120 if (this.api) {
121 this.api.reInit()
122 return
123 }
124
120 this.api = new PeerTubeEmbedApi(this) 125 this.api = new PeerTubeEmbedApi(this)
121 this.api.initialize() 126 this.api.initialize()
122 } 127 }