Last active
February 7, 2019 00:17
-
-
Save ovlb/7396107426585fe163abfb32bccfd968 to your computer and use it in GitHub Desktop.
KS – Video format detection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static hlsSupported() { | |
const $vid = document.createElement('video') | |
return ( | |
$vid.canPlayType('application/x-mpegURL codecs="avc1.42E01E"') || | |
$vid.canPlayType('application/vnd.apple.mpegurl') | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment