Last active
December 21, 2015 03:59
-
-
Save mynameisrufus/6246472 to your computer and use it in GitHub Desktop.
Detect m3u streaming support.
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
// Detect m3u support | |
// | |
// Mime type found here: | |
// http://developer.apple.com/library/ios/documentation/networkinginternet/conceptual/streamingmediaguide/DeployingHTTPLiveStreaming/DeployingHTTPLiveStreaming.html | |
// | |
var testEl = document.createElement('audio'), supported | |
supported = testEl.canPlayType('audio/x-mpegurl') != "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment