aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets')
-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