From 133d9c112a19720eccc20def0c01aa0ec009c27a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 26 Feb 2020 15:01:22 +0100 Subject: Fix IOS embed player --- client/src/standalone/videos/embed.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client/src/standalone') diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index c91ae08b9..5213443fc 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() -- cgit v1.2.3