mirror of
https://github.com/videojs/video.js.git
synced 2025-07-03 00:57:02 +02:00
@H1D fixed an issue with file extension type detection. closes #1818
This commit is contained in:
@ -332,7 +332,7 @@ vjs.Html5.nativeSourceHandler.canHandleSource = function(source){
|
||||
return canPlayType(source.type);
|
||||
} else if (source.src) {
|
||||
// If no type, fall back to checking 'video/[EXTENSION]'
|
||||
match = source.src.match(/\.([^\/\?]+)(\?[^\/]+)?$/i);
|
||||
match = source.src.match(/\.([^.\/\?]+)(\?[^\/]+)?$/i);
|
||||
ext = match && match[1];
|
||||
|
||||
return canPlayType('video/'+ext);
|
||||
|
Reference in New Issue
Block a user