Make HLS support checking more robust (#61)
This commit is contained in:
parent
22910956db
commit
5de171b13a
@ -9,7 +9,7 @@
|
|||||||
var autoplay = oldVideo.classList.contains("hls_autoplay");
|
var autoplay = oldVideo.classList.contains("hls_autoplay");
|
||||||
|
|
||||||
// If HLS is supported natively then don't use hls.js
|
// If HLS is supported natively then don't use hls.js
|
||||||
if (oldVideo.canPlayType(source.type)) {
|
if (oldVideo.canPlayType(source.type) === "probably") {
|
||||||
if (autoplay) {
|
if (autoplay) {
|
||||||
oldVideo.play();
|
oldVideo.play();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user