Fixed hlsjs import

This commit is contained in:
Cromefire_ 2020-07-22 20:27:36 +02:00
parent 159a7f55d3
commit 1829651565
No known key found for this signature in database
GPG key ID: D3D3DB179F435F0C

View file

@ -102,7 +102,7 @@ function supportsTextTracks() {
}
function requireHlsPlayer(callback) {
require(['hlsjs'], function (hls) {
import('hlsjs').then(({default: hls}) => {
window.Hls = hls;
callback();
});