From 6df6ab53c9721e44f3ced7a35b0e09d082099d75 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 14 Feb 2025 12:23:43 -0600 Subject: [PATCH] also check 404 --- web/src/components/player/GenericVideoPlayer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/player/GenericVideoPlayer.tsx b/web/src/components/player/GenericVideoPlayer.tsx index cd6757f71..62092bc03 100644 --- a/web/src/components/player/GenericVideoPlayer.tsx +++ b/web/src/components/player/GenericVideoPlayer.tsx @@ -27,7 +27,7 @@ export function GenericVideoPlayer({ const response = await fetch(url, { method: "HEAD" }); // nginx vod module returns 502 for non existent media // https://github.com/kaltura/nginx-vod-module/issues/468 - setSourceExists(response.status !== 502); + setSourceExists(response.status !== 502 && response.status !== 404); } catch (error) { setSourceExists(false); }