From 342f0507b0e83d87f21d56e1b4caca3b1cc21fb6 Mon Sep 17 00:00:00 2001 From: Zeno Crivelli Date: Thu, 24 Apr 2014 11:08:28 +0200 Subject: [PATCH] Add HLS support detection Chrome Android 4.4 -> "probably" Safari iOS -> "probably" Safari OSX -> "probably" Fix typo in mime type for ogg video Strip out some leading whitespace --- feature-detects/video.js | 1 + test/caniuse.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/feature-detects/video.js b/feature-detects/video.js index 1d95f34959..462108dd1d 100644 --- a/feature-detects/video.js +++ b/feature-detects/video.js @@ -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){} diff --git a/test/caniuse.html b/test/caniuse.html index 19067d46f3..3bad7aaaf2 100644 --- a/test/caniuse.html +++ b/test/caniuse.html @@ -677,7 +677,7 @@

Interact

Video with controls and all three formats available.