aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/assets/player/p2p-media-loader/hls-plugin.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/client/src/assets/player/p2p-media-loader/hls-plugin.ts b/client/src/assets/player/p2p-media-loader/hls-plugin.ts
index 672a85d0b..53969a5a5 100644
--- a/client/src/assets/player/p2p-media-loader/hls-plugin.ts
+++ b/client/src/assets/player/p2p-media-loader/hls-plugin.ts
@@ -259,13 +259,17 @@ class Html5Hlsjs {
259 const error: { message: string, code?: number } = { 259 const error: { message: string, code?: number } = {
260 message: `HLS.js error: ${data.type} - fatal: ${data.fatal} - ${data.details}` 260 message: `HLS.js error: ${data.type} - fatal: ${data.fatal} - ${data.details}`
261 } 261 }
262 console.error(error.message)
263 262
264 // increment/set error count 263 // increment/set error count
265 if (this.errorCounts[ data.type ]) this.errorCounts[ data.type ] += 1 264 if (this.errorCounts[ data.type ]) this.errorCounts[ data.type ] += 1
266 else this.errorCounts[ data.type ] = 1 265 else this.errorCounts[ data.type ] = 1
267 266
268 if (!data.fatal) return 267 if (!data.fatal) {
268 console.warn(error.message)
269 return
270 }
271
272 console.error(error.message)
269 273
270 if (data.type === Hlsjs.ErrorTypes.NETWORK_ERROR) { 274 if (data.type === Hlsjs.ErrorTypes.NETWORK_ERROR) {
271 error.code = 2 275 error.code = 2