feat(db): add custom migration to backfill totalFrames and startTimecode

This commit is contained in:
yiling
2026-06-29 11:27:32 +08:00
parent bb65c5a0d3
commit 95f91cd4de
48 changed files with 12450 additions and 26333 deletions
@@ -509,7 +509,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
// Frame-accurate hook and derived state
const metadata = data.media.metadata
const frameRate = metadata.frameRate || 30
const totalFrames = metadata.totalFrames || Math.round((metadata.duration || 0) * frameRate)
const totalFrames = metadata.totalFrames || 0
const { currentFrame, seekToFrame } = useFramePlayer(videoRef, frameRate, totalFrames)
const currentTime = currentFrame / frameRate