Fix broken player on non MSE devices

pull/5250/head
Chocobozzz 2022-09-08 11:10:01 +02:00
parent 6c4d6ec831
commit f2c29ced30
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,8 @@ class P2pMediaLoaderPlugin extends Plugin {
}
getCurrentLevel () {
if (!this.hlsjs) return undefined
return this.hlsjs.levels[this.hlsjs.currentLevel]
}