Embed: on android <7, let videojs override native hls playback

This commit is contained in:
Cat 2020-01-23 12:50:44 +01:00 committed by Thulinma
parent b5fcc4647c
commit 01b957d136
6 changed files with 28 additions and 4 deletions

View file

@ -18,6 +18,14 @@ mistplayers.html5 = {
}
}
if (mimetype == "html5/application/vnd.apple.mpegurl") {
var android = MistUtil.getAndroid();
if (android && (parseFloat(android) < 7)) {
MistVideo.log("Skipping native HLS as videojs will do better");
return false;
}
}
var support = false;
var shortmime = mimetype.split("/");