Skip to content

Commit

Permalink
Add HLS support detection
Browse files Browse the repository at this point in the history
Chrome Android 4.4 -> "probably"
Safari iOS -> "probably"
Safari OSX -> "probably"

Fix typo in mime type for ogg video

Strip out some leading whitespace
  • Loading branch information
zeno committed Apr 25, 2014
1 parent 72616be commit 342f050
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions feature-detects/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ define(['Modernizr', 'createElement'], function( Modernizr, createElement ) {

bool.vp9 = elem.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,'');

bool.hls = elem.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,'');
}
} catch(e){}

Expand Down
2 changes: 1 addition & 1 deletion test/caniuse.html
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@

<div class="test_wrap"><h3>Interact</h3><div id="video1" class="interact"></div><video width="160" height="120" controls="">
<source src="video.mp4" type="video/mp4">
<source src="video.ogv" type="video/ogv">
<source src="video.ogv" type="video/ogg">
<source src="video.webm" type="video/webm">
</video><div class="info">Video with controls and all three formats available.</div></div>

Expand Down

0 comments on commit 342f050

Please sign in to comment.