aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/shared/webtorrent
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-05-31 14:18:41 +0200
committerChocobozzz <me@florianbigard.com>2022-05-31 14:24:07 +0200
commitd3f4689bded2a6f5b589fe79c3f8b6082d553d9e (patch)
tree94008e70583444cae96941b6d474f7b6bbd513d1 /client/src/assets/player/shared/webtorrent
parentf1a0f3b701e005a9533f09b7913c615376e42f32 (diff)
downloadPeerTube-d3f4689bded2a6f5b589fe79c3f8b6082d553d9e.tar.gz
PeerTube-d3f4689bded2a6f5b589fe79c3f8b6082d553d9e.tar.zst
PeerTube-d3f4689bded2a6f5b589fe79c3f8b6082d553d9e.zip
Add live autostart/messages in embed
Diffstat (limited to 'client/src/assets/player/shared/webtorrent')
-rw-r--r--client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts5
1 files changed, 5 insertions, 0 deletions
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 {
430 private initializePlayer () { 430 private initializePlayer () {
431 this.buildQualities() 431 this.buildQualities()
432 432
433 if (this.videoFiles.length === 0) {
434 this.player.addClass('disabled')
435 return
436 }
437
433 if (this.autoplay) { 438 if (this.autoplay) {
434 this.player.posterImage.hide() 439 this.player.posterImage.hide()
435 440