Start preview at correct time too

This commit is contained in:
Nicolas Mowen 2024-03-14 17:14:36 -06:00
parent 5b648e170a
commit e97c445fb9

View File

@ -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);
}} }}