mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 09:04:28 +03:00
add comment
This commit is contained in:
parent
5d2fa76736
commit
74be520a54
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user