From: Chocobozzz Date: Wed, 26 Feb 2020 14:01:22 +0000 (+0100) Subject: Fix IOS embed player X-Git-Tag: v2.1.1~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=133d9c112a19720eccc20def0c01aa0ec009c27a;p=oweals%2Fpeertube.git Fix IOS embed player --- 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()