update hls package and timeout

This commit is contained in:
Ivan Evans 2024-12-30 17:24:54 -07:00
parent 66f98e360e
commit b55c3e081e
4 changed files with 38 additions and 16 deletions

View file

@ -51,7 +51,7 @@
"focus-trap-react": "^10.3.0",
"fscreen": "^1.2.0",
"fuse.js": "^7.0.0",
"hls.js": "^1.5.15",
"hls.js": "^1.5.18",
"i18next": "^23.15.1",
"immer": "^10.1.1",
"jwt-decode": "^4.0.0",

View file

@ -85,8 +85,8 @@ importers:
specifier: ^7.0.0
version: 7.0.0
hls.js:
specifier: ^1.5.15
version: 1.5.15
specifier: ^1.5.18
version: 1.5.18
i18next:
specifier: ^23.15.1
version: 23.15.1
@ -2600,8 +2600,8 @@ packages:
resolution: {integrity: sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==}
engines: {node: '>= 0.4'}
es-abstract@1.23.7:
resolution: {integrity: sha512-OygGC8kIcDhXX+6yAZRGLqwi2CmEXCbLQixeGUgYeR+Qwlppqmo7DIDr8XibtEBZp+fJcoYpoatp5qwLMEdcqQ==}
es-abstract@1.23.8:
resolution: {integrity: sha512-lfab8IzDn6EpI1ibZakcgS6WsfEBiB+43cuJo+wgylx1xKXf+Sp+YR3vFuQwC/u3sxYwV8Cxe3B0DpVUu/WiJQ==}
engines: {node: '>= 0.4'}
es-define-property@1.0.0:
@ -3065,8 +3065,8 @@ packages:
hls-parser@0.13.3:
resolution: {integrity: sha512-DXqW7bwx9j2qFcAXS/LBJTDJWitxknb6oUnsnTvECHrecPvPbhRgIu45OgNDUU6gpwKxMJx40SHRRUUhdIM2gA==}
hls.js@1.5.15:
resolution: {integrity: sha512-6cD7xN6bycBHaXz2WyPIaHn/iXFizE5au2yvY5q9aC4wfihxAr16C9fUy4nxh2a3wOw0fEgLRa9dN6wsYjlpNg==}
hls.js@1.5.18:
resolution: {integrity: sha512-znxR+2jecWluu/0KOBqUcvVyAB5tLff10vjMGrpAlz1eFY+ZhF1bY3r82V+Bk7WJdk03iTjtja9KFFz5BrqjSA==}
hoist-non-react-statics@3.3.2:
resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==}
@ -3747,6 +3747,10 @@ packages:
resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}
engines: {node: '>= 0.8.0'}
own-keys@1.0.1:
resolution: {integrity: sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==}
engines: {node: '>= 0.4'}
p-limit@3.1.0:
resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}
engines: {node: '>=10'}
@ -4207,6 +4211,10 @@ packages:
safe-buffer@5.2.1:
resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
safe-push-apply@1.0.0:
resolution: {integrity: sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==}
engines: {node: '>= 0.4'}
safe-regex-test@1.0.3:
resolution: {integrity: sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==}
engines: {node: '>= 0.4'}
@ -7293,7 +7301,7 @@ snapshots:
array-buffer-byte-length: 1.0.2
call-bind: 1.0.8
define-properties: 1.2.1
es-abstract: 1.23.7
es-abstract: 1.23.8
es-errors: 1.3.0
get-intrinsic: 1.2.6
is-array-buffer: 3.0.5
@ -7844,7 +7852,7 @@ snapshots:
unbox-primitive: 1.0.2
which-typed-array: 1.1.15
es-abstract@1.23.7:
es-abstract@1.23.8:
dependencies:
array-buffer-byte-length: 1.0.2
arraybuffer.prototype.slice: 1.0.4
@ -7881,8 +7889,10 @@ snapshots:
object-inspect: 1.13.3
object-keys: 1.1.1
object.assign: 4.1.7
own-keys: 1.0.1
regexp.prototype.flags: 1.5.3
safe-array-concat: 1.1.3
safe-push-apply: 1.0.0
safe-regex-test: 1.1.0
string.prototype.trim: 1.2.10
string.prototype.trimend: 1.0.9
@ -8503,7 +8513,7 @@ snapshots:
hls-parser@0.13.3: {}
hls.js@1.5.15: {}
hls.js@1.5.18: {}
hoist-non-react-statics@3.3.2:
dependencies:
@ -9186,6 +9196,12 @@ snapshots:
type-check: 0.4.0
word-wrap: 1.2.5
own-keys@1.0.1:
dependencies:
get-intrinsic: 1.2.6
object-keys: 1.1.1
safe-push-apply: 1.0.0
p-limit@3.1.0:
dependencies:
yocto-queue: 0.1.0
@ -9449,7 +9465,7 @@ snapshots:
call-bind: 1.0.8
define-properties: 1.2.1
dunder-proto: 1.0.1
es-abstract: 1.23.7
es-abstract: 1.23.8
es-errors: 1.3.0
get-intrinsic: 1.2.6
gopd: 1.2.0
@ -9597,6 +9613,11 @@ snapshots:
safe-buffer@5.2.1: {}
safe-push-apply@1.0.0:
dependencies:
es-errors: 1.3.0
isarray: 2.0.5
safe-regex-test@1.0.3:
dependencies:
call-bind: 1.0.7
@ -9787,7 +9808,7 @@ snapshots:
call-bind: 1.0.8
call-bound: 1.0.3
define-properties: 1.2.1
es-abstract: 1.23.7
es-abstract: 1.23.8
es-errors: 1.3.0
es-object-atoms: 1.0.0
get-intrinsic: 1.2.6
@ -9804,7 +9825,7 @@ snapshots:
call-bound: 1.0.3
define-data-property: 1.1.4
define-properties: 1.2.1
es-abstract: 1.23.7
es-abstract: 1.23.8
es-object-atoms: 1.0.0
has-property-descriptors: 1.0.2

View file

@ -145,7 +145,8 @@ export function makeVideoElementDisplayInterface(): DisplayInterface {
return;
}
if (!Hls.isSupported()) throw new Error("HLS not supported");
if (!Hls.isSupported())
throw new Error("HLS not supported. Update your browser. 🤦‍♂️");
if (!hls) {
hls = new Hls({
maxBufferSize: 500 * 1000 * 1000, // 500 mb of buffering, should load more fragments at once
@ -156,7 +157,7 @@ export function makeVideoElementDisplayInterface(): DisplayInterface {
errorRetry: {
maxNumRetry: 10,
retryDelayMs: 1000,
maxRetryDelayMs: 8000,
maxRetryDelayMs: 10000,
},
timeoutRetry: {
maxNumRetry: 10,

View file

@ -58,7 +58,7 @@ export default function VideoTesterView() {
);
return (
<PlayerPart backUrl="/">
<PlayerPart backUrl="/dev">
{status === playerStatus.IDLE ? (
<div className="absolute inset-0 flex items-center justify-center">
<div className="w-full max-w-4xl rounded-xl bg-video-scraping-card p-10 m-4">