fix(player.js): set client side XHR timeout
Some checks failed
Build and release container directly from master / release (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.12.1, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.13.2, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.14.0, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (1.15.0, true) (push) Has been cancelled
Invidious CI / build - crystal: ${{ matrix.crystal }}, stable: ${{ matrix.stable }} (nightly, false) (push) Has been cancelled
Invidious CI / build-docker (push) Has been cancelled
Invidious CI / build-docker-arm64 (push) Has been cancelled
Invidious CI / lint (push) Has been cancelled

This commit is contained in:
Fijxu 2025-02-16 19:21:24 -03:00
parent d75d860888
commit aff5fbb1aa
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4

View File

@ -47,6 +47,8 @@ videojs.Vhs.xhr.beforeRequest = function(options) {
if (!options.uri.includes('local=true'))
options.uri += '?local=true';
}
// Set XHR timeout because the default is 0
options.timeout = 30000;
return options;
};