1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 01:39:37 +02:00

Fix embed api with playlists

This commit is contained in:
Chocobozzz 2022-11-14 10:26:41 +01:00
parent 32f44a017c
commit d91021548e
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 44 additions and 7 deletions

View file

@ -117,6 +117,11 @@ export class PeerTubeEmbed {
private initializeApi () {
if (this.playerManagerOptions.hasAPIEnabled()) {
if (this.api) {
this.api.reInit()
return
}
this.api = new PeerTubeEmbedApi(this)
this.api.initialize()
}