Skip to content

fix: increase extractMetadata timeout from 500ms to 5s (#729)#737

Open
MehtabSandhu11 wants to merge 1 commit into
magic-peach:mainfrom
MehtabSandhu11:fix/metadata-timeout-too-aggressive
Open

fix: increase extractMetadata timeout from 500ms to 5s (#729)#737
MehtabSandhu11 wants to merge 1 commit into
magic-peach:mainfrom
MehtabSandhu11:fix/metadata-timeout-too-aggressive

Conversation

@MehtabSandhu11
Copy link
Copy Markdown

What

Increased the extractMetadata timeout from 500ms to 5000ms and
improved the timeout error message.

Why

500ms is too aggressive for large files (>200MB) on mid/low-end devices
or busy browser tabs. The browser can legitimately take a few seconds to
parse metadata headers, causing valid files to be rejected with a silent
Layer 4 error and no recovery path for the user.

5s was chosen over the issue's suggested 10–15s because onloadedmetadata
fires as soon as headers are parsed — not after the full file loads — so
anything beyond 5s is almost certainly a corrupt or unsupported file, not
a slow device.

Changes

  • Timeout: 5005000
  • Error: "Video metaData load timeout""Video metadata load timeout — the file may be too large or the device too slow. Please try again."

Closes #729

Please add the appropriate labels for GSSoC so I can get the points.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

@MehtabSandhu11 is attempting to deploy a commit to the magic-peach1's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown
Contributor

👋 Thanks for your PR, @MehtabSandhu11!

Welcome to Reframe — a browser-based video editor built for everyone 🎬

🟠 GSSoC'26 PR detected — thanks for contributing under GirlScript Summer of Code 2026!

What happens next

  1. 🤖 Automated checks — build & TypeScript typecheck will run automatically
  2. Vercel preview — a preview deployment will be created (requires maintainer authorization for fork PRs)
  3. 👀 Code review — a maintainer will review your changes
  4. 🚀 Merge — once approved, your PR will be merged!

Quick checklist

  • PR title follows Conventional Commits (e.g. feat: add dark mode)
  • Linked the issue this PR closes (e.g. Closes #123)
  • Tested the changes locally (bun run dev)
  • Build passes (bun run build)

Useful links

Happy coding! 🎉

@github-actions github-actions Bot added level:beginner Beginner level - 20 pts type:bug Bug fix type:performance Performance gssoc'26 GirlScript Summer of Code 2026 labels May 19, 2026
@github-actions
Copy link
Copy Markdown
Contributor

✅ PR Format Check Passed — @MehtabSandhu11

Basic format checks passed. A maintainer will review your code changes.

This does not mean the PR is approved — it just means the format is correct.

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

Labels

gssoc'26 GirlScript Summer of Code 2026 level:beginner Beginner level - 20 pts type:bug Bug fix type:performance Performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Video metadata extraction timeout of 500ms is too aggressive and causes false failures on large files or slow devices

1 participant