Skip to content

Commit

Permalink
Merge pull request #23 from tmm1/patch-1
Browse files Browse the repository at this point in the history
Support alternative m3u8 content type
  • Loading branch information
mrbar42 committed May 4, 2017
2 parents f2979bf + 0f548c9 commit 8953fc6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/videojs5.hlsjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function Html5HlsJS(source, tech) {

var HlsSourceHandler = {
canHandleSource: function(source) {
var hlsTypeRE = /^application\/x-mpegURL$/i;
var hlsTypeRE = /^application\/(x-mpegURL|vnd\.apple\.mpegURL)$/i;
var hlsExtRE = /\.m3u8/i;

if (source.skipContribHlsJs) {
Expand All @@ -127,7 +127,6 @@ var HlsSourceHandler = {
return new Html5HlsJS(source, tech);
},
canPlayType: function(type) {
var hlsTypeRE = /^application\/x-mpegURL$/i;
if (hlsTypeRE.test(type)) {
return 'probably';
}
Expand Down

0 comments on commit 8953fc6

Please sign in to comment.