Monkeypatch canPlayType on Android 4.0+ for HLS
Android devices starting with 4.0 can play HLS natively to some extent.
However, they do not say so in the canPlayType method. This commit
monkey patches canPlayType to respond with "maybe" for
"application/x-mpegURL" and "application/vnd.apple.mpegURL". Otherwise,
it'll fallback to the original canPlayType method.
be case insensitive
+ vjs.Html5.{patchCanPlayType,unpatchCanPlayType}
patchCanPlayType is called on load.
It patched video#canPlayType if needed.
unpatchCanPlayType will revert the patch and return the patch function.
There are also corresponding tests that test patchCanPlayType,
unpatchCanPlayType and also whether the patch functions themselves work
correctly.
fix up jshint errors
Switch HTMLVideoElement to constructor reference
Also, switch out HTMLVideoElement to constructor reference in tests
call unpatchCanPlayType after tests
Don't assume only mimetype available for matching
remove unused var
return the patched function from unpatchCanPlayType
update for IE8 and fixup stupid tests
add existence test for patch and unpatch methods
fix typo for unpatchCanPlayType
Always unpatch canPlayType.
Fix up tests to not ignore some if canPlayType is not available since
unpatch is no longer broken.
Merge branch 'monkeyhls' of git://github.com/gkatsev/video-js into gkatsev-monkeyhls
Switched to single quotes
Merge branch 'master' of github.com:videojs/video.js