aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/assets/player/webtorrent/webtorrent-plugin.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/assets/player/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/webtorrent/webtorrent-plugin.ts
index 9beb04d10..c36362408 100644
--- a/client/src/assets/player/webtorrent/webtorrent-plugin.ts
+++ b/client/src/assets/player/webtorrent/webtorrent-plugin.ts
@@ -132,14 +132,14 @@ class WebTorrentPlugin extends Plugin {
132 done: () => void = () => { /* empty */ } 132 done: () => void = () => { /* empty */ }
133 ) { 133 ) {
134 // Automatically choose the adapted video file 134 // Automatically choose the adapted video file
135 if (videoFile === undefined) { 135 if (!videoFile) {
136 const savedAverageBandwidth = getAverageBandwidthInStore() 136 const savedAverageBandwidth = getAverageBandwidthInStore()
137 videoFile = savedAverageBandwidth 137 videoFile = savedAverageBandwidth
138 ? this.getAppropriateFile(savedAverageBandwidth) 138 ? this.getAppropriateFile(savedAverageBandwidth)
139 : this.pickAverageVideoFile() 139 : this.pickAverageVideoFile()
140 } 140 }
141 141
142 if (!!videoFile) { 142 if (!videoFile) {
143 throw Error(`Can't update video file since videoFile is undefined.`) 143 throw Error(`Can't update video file since videoFile is undefined.`)
144 } 144 }
145 145
@@ -149,7 +149,7 @@ class WebTorrentPlugin extends Plugin {
149 } 149 }
150 150
151 // Do not display error to user because we will have multiple fallback 151 // Do not display error to user because we will have multiple fallback
152 this.disableErrorDisplay(); 152 this.disableErrorDisplay()
153 153
154 // Hack to "simulate" src link in video.js >= 6 154 // Hack to "simulate" src link in video.js >= 6
155 // Without this, we can't play the video after pausing it 155 // Without this, we can't play the video after pausing it