Skip to content

NVR with realtime local object detection for IP cameras

save video dimensions in onLoadedData instead of onLoadedMetadata (#11545)

Josh Hawkins7a9ee63bd372
diff --git a/web/src/components/player/MsePlayer.tsx b/web/src/components/player/MsePlayer.tsx
index 6a41a93e6c..841b824dbe 100644
--- a/web/src/components/player/MsePlayer.tsx
+++ b/web/src/components/player/MsePlayer.tsx
@@ -303,8 +303,10 @@ function MSEPlayer({
className={className}
playsInline
preload="auto"
- onLoadedData={onPlaying}
- onLoadedMetadata={handleLoadedMetadata}
+ onLoadedData={() => {
+ handleLoadedMetadata?.();
+ onPlaying?.();
+ }}
muted={!audioEnabled}
onError={() => {
if (wsRef.current) {