1
0
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:
Artem Suschev
2015-01-21 17:55:35 -08:00
committed by heff
parent 4bde5c8928
commit c8781cf51b
3 changed files with 5 additions and 1 deletions

View File

@ -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);