NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Fix hls not loading video in explore (#19625)
Nicolas Mowenec2543c23f81
diff --git a/web/src/components/player/GenericVideoPlayer.tsx b/web/src/components/player/GenericVideoPlayer.tsxindex d64d9a736b..4d6cb4ee5c 100644--- a/web/src/components/player/GenericVideoPlayer.tsx+++ b/web/src/components/player/GenericVideoPlayer.tsx@@ -1,4 +1,10 @@-import React, { useState, useRef, useEffect, useCallback } from "react";+import React, {+ useState,+ useRef,+ useEffect,+ useCallback,+ useMemo,+} from "react";import { useVideoDimensions } from "@/hooks/use-video-dimensions";import HlsVideoPlayer from "./HlsVideoPlayer";import ActivityIndicator from "../indicators/activity-indicator";@@ -89,6 +95,12 @@ export function GenericVideoPlayer({},);+ const hlsSource = useMemo(() => {+ return {+ playlist: source,+ };+ }, [source]);+return (<div ref={containerRef} className="relative flex h-full w-full flex-col"><div className="relative flex flex-grow items-center justify-center">@@ -107,9 +119,7 @@ export function GenericVideoPlayer({><HlsVideoPlayervideoRef={videoRef}- currentSource={{- playlist: source,- }}+ currentSource={hlsSource}hotKeysvisiblefrigateControls={false}