From 90d9c444c8cb714b1d437b198c68e301ddf95da4 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 20 Mar 2026 09:47:54 +0000 Subject: [PATCH] fix: prevent video stretching in timeline scrubbing preview - MsePlayer: change default object-fit fallback from fill to contain (grid layout keeps fill via --frigate-mse-object-fit:fill CSS variable) - PreviewPlayer: add object-contain class to video element - HlsVideoPlayer: add object-contain class to video element Recordings view and timeline preview now preserve aspect ratio, while live grid continues to stretch corridor cameras as before. --- web/src/components/player/HlsVideoPlayer.tsx | 2 +- web/src/components/player/MsePlayer.tsx | 2 +- web/src/components/player/PreviewPlayer.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/components/player/HlsVideoPlayer.tsx b/web/src/components/player/HlsVideoPlayer.tsx index b91efd84b..2e8e900a7 100644 --- a/web/src/components/player/HlsVideoPlayer.tsx +++ b/web/src/components/player/HlsVideoPlayer.tsx @@ -390,7 +390,7 @@ export default function HlsVideoPlayer({ )}