Update hls.js to 1.3.4
This commit is contained in:
parent
8a0e2f142d
commit
52363c59d9
5 changed files with 19 additions and 28 deletions
38
package-lock.json
generated
38
package-lock.json
generated
|
@ -30,7 +30,7 @@
|
||||||
"flv.js": "1.6.2",
|
"flv.js": "1.6.2",
|
||||||
"headroom.js": "0.12.0",
|
"headroom.js": "0.12.0",
|
||||||
"history": "5.3.0",
|
"history": "5.3.0",
|
||||||
"hls.js": "0.14.17",
|
"hls.js": "1.3.4",
|
||||||
"intersection-observer": "0.12.2",
|
"intersection-observer": "0.12.2",
|
||||||
"jellyfin-apiclient": "1.10.0",
|
"jellyfin-apiclient": "1.10.0",
|
||||||
"jquery": "3.6.3",
|
"jquery": "3.6.3",
|
||||||
|
@ -7301,7 +7301,8 @@
|
||||||
"node_modules/eventemitter3": {
|
"node_modules/eventemitter3": {
|
||||||
"version": "4.0.7",
|
"version": "4.0.7",
|
||||||
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
|
||||||
"integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw=="
|
"integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/events": {
|
"node_modules/events": {
|
||||||
"version": "3.3.0",
|
"version": "3.3.0",
|
||||||
|
@ -8467,13 +8468,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/hls.js": {
|
"node_modules/hls.js": {
|
||||||
"version": "0.14.17",
|
"version": "1.3.4",
|
||||||
"resolved": "https://registry.npmjs.org/hls.js/-/hls.js-0.14.17.tgz",
|
"resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.3.4.tgz",
|
||||||
"integrity": "sha512-25A7+m6qqp6UVkuzUQ//VVh2EEOPYlOBg32ypr34bcPO7liBMOkKFvbjbCBfiPAOTA/7BSx1Dujft3Th57WyFg==",
|
"integrity": "sha512-iFEwVqtEDk6sKotcTwtJ5OMo/nuDTk9PrpB8FI2J2WYf8EriTVfR4FaK0aNyYtwbYeRSWCXJKlz23xeREdlNYg=="
|
||||||
"dependencies": {
|
|
||||||
"eventemitter3": "^4.0.3",
|
|
||||||
"url-toolkit": "^2.1.6"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"node_modules/hoist-non-react-statics": {
|
"node_modules/hoist-non-react-statics": {
|
||||||
"version": "3.3.2",
|
"version": "3.3.2",
|
||||||
|
@ -18229,11 +18226,6 @@
|
||||||
"deprecated": "Please see https://github.com/lydell/urix#deprecated",
|
"deprecated": "Please see https://github.com/lydell/urix#deprecated",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/url-toolkit": {
|
|
||||||
"version": "2.2.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/url-toolkit/-/url-toolkit-2.2.3.tgz",
|
|
||||||
"integrity": "sha512-Da75SQoxsZ+2wXS56CZBrj2nukQ4nlGUZUP/dqUBG5E1su5GKThgT94Q00x81eVII7AyS1Pn+CtTTZ4Z0pLUtQ=="
|
|
||||||
},
|
|
||||||
"node_modules/use": {
|
"node_modules/use": {
|
||||||
"version": "3.1.1",
|
"version": "3.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz",
|
||||||
|
@ -24492,7 +24484,8 @@
|
||||||
"eventemitter3": {
|
"eventemitter3": {
|
||||||
"version": "4.0.7",
|
"version": "4.0.7",
|
||||||
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
|
||||||
"integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw=="
|
"integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==",
|
||||||
|
"dev": true
|
||||||
},
|
},
|
||||||
"events": {
|
"events": {
|
||||||
"version": "3.3.0",
|
"version": "3.3.0",
|
||||||
|
@ -25405,13 +25398,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"hls.js": {
|
"hls.js": {
|
||||||
"version": "0.14.17",
|
"version": "1.3.4",
|
||||||
"resolved": "https://registry.npmjs.org/hls.js/-/hls.js-0.14.17.tgz",
|
"resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.3.4.tgz",
|
||||||
"integrity": "sha512-25A7+m6qqp6UVkuzUQ//VVh2EEOPYlOBg32ypr34bcPO7liBMOkKFvbjbCBfiPAOTA/7BSx1Dujft3Th57WyFg==",
|
"integrity": "sha512-iFEwVqtEDk6sKotcTwtJ5OMo/nuDTk9PrpB8FI2J2WYf8EriTVfR4FaK0aNyYtwbYeRSWCXJKlz23xeREdlNYg=="
|
||||||
"requires": {
|
|
||||||
"eventemitter3": "^4.0.3",
|
|
||||||
"url-toolkit": "^2.1.6"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"hoist-non-react-statics": {
|
"hoist-non-react-statics": {
|
||||||
"version": "3.3.2",
|
"version": "3.3.2",
|
||||||
|
@ -32698,11 +32687,6 @@
|
||||||
"integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=",
|
"integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"url-toolkit": {
|
|
||||||
"version": "2.2.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/url-toolkit/-/url-toolkit-2.2.3.tgz",
|
|
||||||
"integrity": "sha512-Da75SQoxsZ+2wXS56CZBrj2nukQ4nlGUZUP/dqUBG5E1su5GKThgT94Q00x81eVII7AyS1Pn+CtTTZ4Z0pLUtQ=="
|
|
||||||
},
|
|
||||||
"use": {
|
"use": {
|
||||||
"version": "3.1.1",
|
"version": "3.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz",
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
"flv.js": "1.6.2",
|
"flv.js": "1.6.2",
|
||||||
"headroom.js": "0.12.0",
|
"headroom.js": "0.12.0",
|
||||||
"history": "5.3.0",
|
"history": "5.3.0",
|
||||||
"hls.js": "0.14.17",
|
"hls.js": "1.3.4",
|
||||||
"intersection-observer": "0.12.2",
|
"intersection-observer": "0.12.2",
|
||||||
"jellyfin-apiclient": "1.10.0",
|
"jellyfin-apiclient": "1.10.0",
|
||||||
"jquery": "3.6.3",
|
"jquery": "3.6.3",
|
||||||
|
|
|
@ -48,6 +48,9 @@ function supportsFade() {
|
||||||
|
|
||||||
function requireHlsPlayer(callback) {
|
function requireHlsPlayer(callback) {
|
||||||
import('hls.js').then(({ default: hls }) => {
|
import('hls.js').then(({ default: hls }) => {
|
||||||
|
hls.DefaultConfig.lowLatencyMode = false;
|
||||||
|
hls.DefaultConfig.backBufferLength = Infinity;
|
||||||
|
hls.DefaultConfig.liveBackBufferLength = 90;
|
||||||
window.Hls = hls;
|
window.Hls = hls;
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
|
|
|
@ -106,6 +106,9 @@ function tryRemoveElement(elem) {
|
||||||
|
|
||||||
function requireHlsPlayer(callback) {
|
function requireHlsPlayer(callback) {
|
||||||
import('hls.js').then(({default: hls}) => {
|
import('hls.js').then(({default: hls}) => {
|
||||||
|
hls.DefaultConfig.lowLatencyMode = false;
|
||||||
|
hls.DefaultConfig.backBufferLength = Infinity;
|
||||||
|
hls.DefaultConfig.liveBackBufferLength = 90;
|
||||||
window.Hls = hls;
|
window.Hls = hls;
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
|
|
|
@ -158,6 +158,7 @@ const config = {
|
||||||
path.resolve(__dirname, 'node_modules/dom7'),
|
path.resolve(__dirname, 'node_modules/dom7'),
|
||||||
path.resolve(__dirname, 'node_modules/epubjs'),
|
path.resolve(__dirname, 'node_modules/epubjs'),
|
||||||
path.resolve(__dirname, 'node_modules/flv.js'),
|
path.resolve(__dirname, 'node_modules/flv.js'),
|
||||||
|
path.resolve(__dirname, 'node_modules/hls.js'),
|
||||||
path.resolve(__dirname, 'node_modules/libarchive.js'),
|
path.resolve(__dirname, 'node_modules/libarchive.js'),
|
||||||
path.resolve(__dirname, 'node_modules/marked'),
|
path.resolve(__dirname, 'node_modules/marked'),
|
||||||
path.resolve(__dirname, 'node_modules/react-router'),
|
path.resolve(__dirname, 'node_modules/react-router'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue