From d3f4689bded2a6f5b589fe79c3f8b6082d553d9e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 31 May 2022 14:18:41 +0200 Subject: Add live autostart/messages in embed --- client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client/src/assets/player/shared') diff --git a/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts index b48203148..83b483d87 100644 --- a/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts +++ b/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts @@ -430,6 +430,11 @@ class WebTorrentPlugin extends Plugin { private initializePlayer () { this.buildQualities() + if (this.videoFiles.length === 0) { + this.player.addClass('disabled') + return + } + if (this.autoplay) { this.player.posterImage.hide() -- cgit v1.2.3