mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 20:55:25 +03:00
Start preview at correct time too
This commit is contained in:
parent
5b648e170a
commit
e97c445fb9
@ -163,7 +163,7 @@ export default function DynamicVideoPlayer({
|
|||||||
className={`w-full relative ${isScrubbing || isLoading ? "hidden" : "visible"}`}
|
className={`w-full relative ${isScrubbing || isLoading ? "hidden" : "visible"}`}
|
||||||
>
|
>
|
||||||
<HlsVideoPlayer
|
<HlsVideoPlayer
|
||||||
className={` ${wideVideo ? "" : "aspect-video"}`}
|
className={`${wideVideo ? "" : "aspect-video"}`}
|
||||||
videoRef={playerRef}
|
videoRef={playerRef}
|
||||||
currentSource={source}
|
currentSource={source}
|
||||||
onTimeUpdate={onTimeUpdate}
|
onTimeUpdate={onTimeUpdate}
|
||||||
@ -184,6 +184,7 @@ export default function DynamicVideoPlayer({
|
|||||||
camera={camera}
|
camera={camera}
|
||||||
timeRange={timeRange}
|
timeRange={timeRange}
|
||||||
cameraPreviews={cameraPreviews}
|
cameraPreviews={cameraPreviews}
|
||||||
|
startTime={startTimestamp}
|
||||||
onControllerReady={(previewController) => {
|
onControllerReady={(previewController) => {
|
||||||
setPreviewController(previewController);
|
setPreviewController(previewController);
|
||||||
}}
|
}}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user