mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 22:57:40 +03:00
Merge pull request #79 from ibs0d/claude/fix-video-stretching-preview-8xXtb
fix: prevent video stretching in timeline scrubbing preview
This commit is contained in:
commit
e6c6c077f4
@ -390,7 +390,7 @@ export default function HlsVideoPlayer({
|
||||
)}
|
||||
<video
|
||||
ref={videoRef}
|
||||
className={`size-full rounded-lg bg-black md:rounded-2xl ${loadedMetadata ? "" : "invisible"} cursor-pointer`}
|
||||
className={`size-full object-contain rounded-lg bg-black md:rounded-2xl ${loadedMetadata ? "" : "invisible"} cursor-pointer`}
|
||||
preload="auto"
|
||||
autoPlay
|
||||
controls={!frigateControls}
|
||||
|
||||
@ -849,7 +849,7 @@ function MSEPlayer({
|
||||
className={className}
|
||||
style={{
|
||||
objectFit:
|
||||
"var(--frigate-mse-object-fit, fill)" as CSSProperties["objectFit"],
|
||||
"var(--frigate-mse-object-fit, contain)" as CSSProperties["objectFit"],
|
||||
transform:
|
||||
"var(--frigate-mse-grid-rotation, none)" as CSSProperties["transform"],
|
||||
transformOrigin:
|
||||
|
||||
@ -303,7 +303,7 @@ function PreviewVideoPlayer({
|
||||
{isVisible && (
|
||||
<video
|
||||
ref={previewRef}
|
||||
className={`absolute size-full ${currentHourFrame ? "invisible" : "visible"}`}
|
||||
className={`absolute size-full object-contain ${currentHourFrame ? "invisible" : "visible"}`}
|
||||
preload="auto"
|
||||
autoPlay
|
||||
playsInline
|
||||
|
||||
Loading…
Reference in New Issue
Block a user