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

@@ -81,11 +81,11 @@ export default function Playbar({ video, videoMetadata, className }: Props) {
>
{isPlaying ? <Pause size={24} /> : <Play size={24} />}
</button>
{videoMetadata.endPoint &&
<label>
{formatTime(video?.currentTime ?? 0)} / {formatTime(videoMetadata.endPoint)}
</label>
}
<label>
{formatTime(video?.currentTime ?? 0)} / {formatTime(videoMetadata.duration ?? 0)}
</label>
</div>
);
}