Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into caption-fix-rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed May 5, 2017
2 parents 2a51896 + e065694 commit 936c731
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ in a CommonJS app
```js
var videojs = require('video.js');
require('videojs-contrib-media-sources'); // increase browser support with MSE polyfill
require('videojs-contrib-hlsjs'); // auto attaches hlsjs handler
require('videojs-contrib-hls.js'); // auto attaches hlsjs handler

var player = videojs('#player');

Expand Down
2 changes: 1 addition & 1 deletion dist/videojs-contrib-hlsjs.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/videojs-contrib-hlsjs.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "videojs-contrib-hls.js",
"version": "3.0.0",
"version": "3.0.1",
"description": "hls.js plugin for videojs",
"main": "dist/videojs-contrib-hlsjs.min.js",
"directories": {
Expand Down
7 changes: 3 additions & 4 deletions src/videojs5.hlsjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ function Html5HlsJS(source, tech) {
hls.loadSource(source.src);
}

var hlsTypeRE = /^application\/(x-mpegURL|vnd\.apple\.mpegURL)$/i;
var hlsExtRE = /\.m3u8/i;

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

if (source.skipContribHlsJs) {
return '';
}
Expand All @@ -139,7 +139,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 936c731

Please sign in to comment.