From aff5fbb1aae42ce306c733428f37e5d1118144f4 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Sun, 16 Feb 2025 19:21:24 -0300 Subject: [PATCH] fix(player.js): set client side XHR timeout --- assets/js/player.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/js/player.js b/assets/js/player.js index e6d64a1e..69cd4125 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -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; };