From 74be520a54c7b1835014ef34415317c025b6d872 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 14 Feb 2025 12:23:01 -0600 Subject: [PATCH] add comment --- web/src/components/player/GenericVideoPlayer.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/components/player/GenericVideoPlayer.tsx b/web/src/components/player/GenericVideoPlayer.tsx index 6984b9270..cd6757f71 100644 --- a/web/src/components/player/GenericVideoPlayer.tsx +++ b/web/src/components/player/GenericVideoPlayer.tsx @@ -25,6 +25,8 @@ export function GenericVideoPlayer({ const checkSourceExists = async (url: string) => { try { 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); } catch (error) { setSourceExists(false);