Skip to content

fix(media): preserve zero end times#2542

Open
tianma-if wants to merge 1 commit into
heygen-com:mainfrom
tianma-if:codex/preserve-zero-media-end
Open

fix(media): preserve zero end times#2542
tianma-if wants to merge 1 commit into
heygen-com:mainfrom
tianma-if:codex/preserve-zero-media-end

Conversation

@tianma-if

Copy link
Copy Markdown

Summary

  • preserve data-end="0" in generated media synchronization code
  • apply the same finite-number handling to core generation and parser serialization
  • add regression assertions for both output paths

Why

The previous parseFloat(media.dataset.end) || Infinity fallback treated a valid zero as missing. Media with an explicit zero end time was therefore considered active indefinitely.

Validation

  • bunx oxfmt and bunx oxlint on all changed files
  • bun run --filter @hyperframes/core test -- hyperframes.test.ts (29 passed)
  • bun run --filter @hyperframes/parsers test -- gsapParser.test.ts (202 passed)
  • core and parser typechecks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant