Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix IOS embed player

Chocobozzz133d9c112a19
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts
index c91ae08b97..5213443fc5 100644
--- a/client/src/standalone/videos/embed.ts
+++ b/client/src/standalone/videos/embed.ts
@@ -262,6 +262,9 @@ export class PeerTubeEmbed {
private async buildDock (videoInfo: VideoDetails, configResponse: Response) {
if (this.controls) {
+ // On webtorrent fallback, player may have been disposed
+ if (!this.player.player_) return
+
const title = this.title ? videoInfo.name : undefined
const config: ServerConfig = await configResponse.json()