aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-09-08 11:10:01 +0200
committerChocobozzz <me@florianbigard.com>2022-09-08 11:10:01 +0200
commitf2c29ced30225f2926f7df2a66d3e69d08323994 (patch)
treefc8cb9342c35c7548aa7e6d03506aa16d90a7b5a
parent6c4d6ec83102c489b28a0018e73df8e0e576997d (diff)
downloadPeerTube-f2c29ced30225f2926f7df2a66d3e69d08323994.tar.gz
PeerTube-f2c29ced30225f2926f7df2a66d3e69d08323994.tar.zst
PeerTube-f2c29ced30225f2926f7df2a66d3e69d08323994.zip
Fix broken player on non MSE devices
-rw-r--r--client/src/assets/player/shared/p2p-media-loader/p2p-media-loader-plugin.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/assets/player/shared/p2p-media-loader/p2p-media-loader-plugin.ts b/client/src/assets/player/shared/p2p-media-loader/p2p-media-loader-plugin.ts
index 54d87aea5..56068e340 100644
--- a/client/src/assets/player/shared/p2p-media-loader/p2p-media-loader-plugin.ts
+++ b/client/src/assets/player/shared/p2p-media-loader/p2p-media-loader-plugin.ts
@@ -84,6 +84,8 @@ class P2pMediaLoaderPlugin extends Plugin {
84 } 84 }
85 85
86 getCurrentLevel () { 86 getCurrentLevel () {
87 if (!this.hlsjs) return undefined
88
87 return this.hlsjs.levels[this.hlsjs.currentLevel] 89 return this.hlsjs.levels[this.hlsjs.currentLevel]
88 } 90 }
89 91