Fix broken player on non MSE devices

This commit is contained in:
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

View File

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