Skip to content

Commit

Permalink
fix(hls): Use long URL to avoid 404 in source map for HLS.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rafa8626 committed Sep 21, 2018
1 parent d452517 commit f0685c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/openplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5879,7 +5879,7 @@ var HlsMedia = function (_native_1$default) {
_this.element = element;
_this.media = mediaSource;
_this.autoplay = autoplay;
_this.promise = typeof Hls === 'undefined' ? general_1.loadScript('https://cdn.jsdelivr.net/npm/hls.js@latest') : new Promise(function (resolve) {
_this.promise = typeof Hls === 'undefined' ? general_1.loadScript('https://cdn.jsdelivr.net/npm/hls.js@latest/dist/hls.min.js') : new Promise(function (resolve) {
return resolve();
});

Expand Down
2 changes: 1 addition & 1 deletion dist/openplayer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/media/hls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class HlsMedia extends Native {
this.autoplay = autoplay;
this.promise = (typeof Hls === 'undefined') ?
// Ever-green script
loadScript('https://cdn.jsdelivr.net/npm/hls.js@latest') :
loadScript('https://cdn.jsdelivr.net/npm/hls.js@latest/dist/hls.min.js') :
new Promise(resolve => resolve());

this.promise.then(this._create.bind(this));
Expand Down

0 comments on commit f0685c8

Please sign in to comment.