UPDATE "endPoint" to "duration" in frontend to match backend

This commit is contained in:
2025-12-06 23:32:15 +00:00
parent d5017bb333
commit 08ef00c22e
6 changed files with 14 additions and 17 deletions

View File

@@ -15,6 +15,7 @@ export default function PlaybackSlider({videoRef,
sliderValue,
setSliderValue,
className}: Props) {
const updateVideo = (e: React.ChangeEvent<HTMLInputElement>) => {
if (!videoRef) return;
@@ -41,7 +42,7 @@ export default function PlaybackSlider({videoRef,
<input
type={"range"}
min={0}
max={videoMetadata.endPoint}
max={videoMetadata.duration}
value={sliderValue}
onChange={updateVideo}
step={0.1}