1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-06 06:50:51 +02:00

Don't assume only mimetype available for matching

This commit is contained in:
Gary Katsevman 2014-03-26 13:41:49 -04:00
parent 0c856ce9a4
commit f1d2aef048

View File

@ -269,8 +269,8 @@ vjs.Html5.canControlVolume = function(){
// HTML5 Feature detection and Device Fixes --------------------------------- //
(function() {
var canPlayType,
mpegurlRE = /^application\/(?:x-|vnd\.apple\.)mpegurl$/i,
mp4RE = /^video\/mp4$/i;
mpegurlRE = /^application\/(?:x-|vnd\.apple\.)mpegurl/i,
mp4RE = /^video\/mp4/i;
vjs.Html5.patchCanPlayType = function() {
// Android 4.0 and above can play HLS to some extent but it reports being unable to do so