aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/webtorrent/webtorrent-plugin.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-29 14:20:32 +0100
committerChocobozzz <me@florianbigard.com>2020-01-29 14:20:32 +0100
commitcf57794e9b104401884998c38b2dfa7cfe9638b0 (patch)
tree8fdccff10a2b718bd5e7c3426f0483cbb8733b6f /client/src/assets/player/webtorrent/webtorrent-plugin.ts
parentc910f667d29bf2ff1f1c954c6d8b5044cb54a1a6 (diff)
downloadPeerTube-cf57794e9b104401884998c38b2dfa7cfe9638b0.tar.gz
PeerTube-cf57794e9b104401884998c38b2dfa7cfe9638b0.tar.zst
PeerTube-cf57794e9b104401884998c38b2dfa7cfe9638b0.zip
Fix webtorrent resolution issue
Diffstat (limited to 'client/src/assets/player/webtorrent/webtorrent-plugin.ts')
-rw-r--r--client/src/assets/player/webtorrent/webtorrent-plugin.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/assets/player/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/webtorrent/webtorrent-plugin.ts
index 3d335acbc..d26fc38fa 100644
--- a/client/src/assets/player/webtorrent/webtorrent-plugin.ts
+++ b/client/src/assets/player/webtorrent/webtorrent-plugin.ts
@@ -650,8 +650,8 @@ class WebTorrentPlugin extends Plugin {
650 } 650 }
651 651
652 for (let i = 0; i < qualityLevels.length; i++) { 652 for (let i = 0; i < qualityLevels.length; i++) {
653 const q = this.player.qualityLevels[i] 653 const q = qualityLevels[i]
654 if (q.height === resolutionId) qualityLevels.selectedIndex = i 654 if (q.height === resolutionId) qualityLevels.selectedIndex_ = i
655 } 655 }
656 } 656 }
657} 657}