mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
4b0f62593f
commit
8d12419c5e
15 changed files with 63 additions and 31 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hls.js",
|
||||
"version": "0.5.27",
|
||||
"version": "0.5.29",
|
||||
"license": "Apache-2.0",
|
||||
"description": "Media Source Extension - HLS library, by/for Dailymotion",
|
||||
"homepage": "https://github.com/dailymotion/hls.js",
|
||||
|
@ -16,11 +16,11 @@
|
|||
"test",
|
||||
"tests"
|
||||
],
|
||||
"_release": "0.5.27",
|
||||
"_release": "0.5.29",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v0.5.27",
|
||||
"commit": "03ebf357648136a98a4b87023d3900a79a31aed2"
|
||||
"tag": "v0.5.29",
|
||||
"commit": "d787e32fed3a72930f4f94f08dce8692dcec0755"
|
||||
},
|
||||
"_source": "git://github.com/dailymotion/hls.js.git",
|
||||
"_target": "~0.5.7",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hls.js",
|
||||
"version": "0.5.27",
|
||||
"version": "0.5.29",
|
||||
"license": "Apache-2.0",
|
||||
"description": "Media Source Extension - HLS library, by/for Dailymotion",
|
||||
"homepage": "https://github.com/dailymotion/hls.js",
|
||||
|
|
18
dashboard-ui/bower_components/hls.js/dist/hls.js
vendored
18
dashboard-ui/bower_components/hls.js/dist/hls.js
vendored
|
@ -2562,7 +2562,7 @@ var StreamController = function (_EventHandler) {
|
|||
this.hls.trigger(_events2.default.ERROR, { type: _errors.ErrorTypes.MEDIA_ERROR, details: _errors.ErrorDetails.BUFFER_STALLED_ERROR, fatal: false });
|
||||
this.stalled = true;
|
||||
} else {
|
||||
this.seekHoleNudgeDuration += this.config.SeekHoleNudgeDuration;
|
||||
this.seekHoleNudgeDuration += this.config.seekHoleNudgeDuration;
|
||||
}
|
||||
}
|
||||
// if we are below threshold, try to jump if next buffer range is close
|
||||
|
@ -6342,6 +6342,17 @@ var PlaylistLoader = function (_EventHandler) {
|
|||
retry,
|
||||
timeout,
|
||||
retryDelay;
|
||||
|
||||
if (this.loading && this.loader) {
|
||||
if (this.url === url && this.id === id1 && this.id2 === id2) {
|
||||
// same request than last pending one, don't do anything
|
||||
return;
|
||||
} else {
|
||||
// one playlist load request is pending, but with different params, abort it before loading new playlist
|
||||
this.loader.abort();
|
||||
}
|
||||
}
|
||||
|
||||
this.url = url;
|
||||
this.id = id1;
|
||||
this.id2 = id2;
|
||||
|
@ -6355,6 +6366,7 @@ var PlaylistLoader = function (_EventHandler) {
|
|||
retryDelay = config.levelLoadingRetryDelay;
|
||||
}
|
||||
this.loader = typeof config.pLoader !== 'undefined' ? new config.pLoader(config) : new config.loader(config);
|
||||
this.loading = true;
|
||||
this.loader.load(url, '', this.loadsuccess.bind(this), this.loaderror.bind(this), this.loadtimeout.bind(this), timeout, retry, retryDelay);
|
||||
}
|
||||
}, {
|
||||
|
@ -6536,6 +6548,8 @@ var PlaylistLoader = function (_EventHandler) {
|
|||
id2 = this.id2,
|
||||
hls = this.hls,
|
||||
levels;
|
||||
|
||||
this.loading = false;
|
||||
// responseURL not supported on some browsers (it is used to detect URL redirection)
|
||||
if (url === undefined) {
|
||||
// fallback to initial URL
|
||||
|
@ -6582,6 +6596,7 @@ var PlaylistLoader = function (_EventHandler) {
|
|||
if (this.loader) {
|
||||
this.loader.abort();
|
||||
}
|
||||
this.loading = false;
|
||||
this.hls.trigger(_events2.default.ERROR, { type: _errors.ErrorTypes.NETWORK_ERROR, details: details, fatal: fatal, url: this.url, loader: this.loader, response: event.currentTarget, level: this.id, id: this.id2 });
|
||||
}
|
||||
}, {
|
||||
|
@ -6598,6 +6613,7 @@ var PlaylistLoader = function (_EventHandler) {
|
|||
if (this.loader) {
|
||||
this.loader.abort();
|
||||
}
|
||||
this.loading = false;
|
||||
this.hls.trigger(_events2.default.ERROR, { type: _errors.ErrorTypes.NETWORK_ERROR, details: details, fatal: fatal, url: this.url, loader: this.loader, level: this.id, id: this.id2 });
|
||||
}
|
||||
}]);
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hls.js",
|
||||
"version": "0.5.27",
|
||||
"version": "0.5.29",
|
||||
"license": "Apache-2.0",
|
||||
"description": "Media Source Extension - HLS library, by/for Dailymotion",
|
||||
"homepage": "https://github.com/dailymotion/hls.js",
|
||||
|
|
|
@ -1044,7 +1044,7 @@ _checkBuffer() {
|
|||
this.hls.trigger(Event.ERROR, {type: ErrorTypes.MEDIA_ERROR, details: ErrorDetails.BUFFER_STALLED_ERROR, fatal: false});
|
||||
this.stalled = true;
|
||||
} else {
|
||||
this.seekHoleNudgeDuration += this.config.SeekHoleNudgeDuration;
|
||||
this.seekHoleNudgeDuration += this.config.seekHoleNudgeDuration;
|
||||
}
|
||||
}
|
||||
// if we are below threshold, try to jump if next buffer range is close
|
||||
|
|
|
@ -39,6 +39,17 @@ class PlaylistLoader extends EventHandler {
|
|||
retry,
|
||||
timeout,
|
||||
retryDelay;
|
||||
|
||||
if (this.loading && this.loader) {
|
||||
if (this.url === url && this.id === id1 && this.id2 === id2) {
|
||||
// same request than last pending one, don't do anything
|
||||
return;
|
||||
} else {
|
||||
// one playlist load request is pending, but with different params, abort it before loading new playlist
|
||||
this.loader.abort();
|
||||
}
|
||||
}
|
||||
|
||||
this.url = url;
|
||||
this.id = id1;
|
||||
this.id2 = id2;
|
||||
|
@ -52,6 +63,7 @@ class PlaylistLoader extends EventHandler {
|
|||
retryDelay = config.levelLoadingRetryDelay;
|
||||
}
|
||||
this.loader = typeof(config.pLoader) !== 'undefined' ? new config.pLoader(config) : new config.loader(config);
|
||||
this.loading = true;
|
||||
this.loader.load(url, '', this.loadsuccess.bind(this), this.loaderror.bind(this), this.loadtimeout.bind(this), timeout, retry, retryDelay);
|
||||
}
|
||||
|
||||
|
@ -223,6 +235,8 @@ class PlaylistLoader extends EventHandler {
|
|||
id2 = this.id2,
|
||||
hls = this.hls,
|
||||
levels;
|
||||
|
||||
this.loading = false;
|
||||
// responseURL not supported on some browsers (it is used to detect URL redirection)
|
||||
if (url === undefined) {
|
||||
// fallback to initial URL
|
||||
|
@ -268,6 +282,7 @@ class PlaylistLoader extends EventHandler {
|
|||
if (this.loader) {
|
||||
this.loader.abort();
|
||||
}
|
||||
this.loading = false;
|
||||
this.hls.trigger(Event.ERROR, {type: ErrorTypes.NETWORK_ERROR, details: details, fatal: fatal, url: this.url, loader: this.loader, response: event.currentTarget, level: this.id, id: this.id2});
|
||||
}
|
||||
|
||||
|
@ -283,6 +298,7 @@ class PlaylistLoader extends EventHandler {
|
|||
if (this.loader) {
|
||||
this.loader.abort();
|
||||
}
|
||||
this.loading = false;
|
||||
this.hls.trigger(Event.ERROR, {type: ErrorTypes.NETWORK_ERROR, details: details, fatal: fatal, url: this.url, loader: this.loader, level: this.id, id: this.id2});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue