Skip to content

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

Merged
magic-peach merged 1 commit into
magic-peach:mainfrom
MehtabSandhu11:fix/metadata-timeout-too-aggressive
May 21, 2026
Merged

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

Conversation

@MehtabSandhu11
Copy link
Copy Markdown
Contributor

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.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
reframe Ready Ready Preview, Comment May 20, 2026 4:16pm

@magic-peach magic-peach added gssoc:approved Approved for GSSoC'26 quality:clean Well-implemented, clean code labels May 20, 2026
@sriharshitha128
Copy link
Copy Markdown

Hey can i work on this issue if it is available to work under GSSOC'26.Can you assign this to me

@magic-peach magic-peach merged commit 830b93f into magic-peach:main May 21, 2026
10 of 12 checks passed
Ayush-kathil pushed a commit to Ayush-kathil/reframe that referenced this pull request May 21, 2026
Raises the metadata load timeout to 5 s for large/slow-device compatibility and improves the error message. Closes magic-peach#729.
Pravallika21-nama pushed a commit to Pravallika21-nama/reframe that referenced this pull request May 22, 2026
Raises the metadata load timeout to 5 s for large/slow-device compatibility and improves the error message. Closes magic-peach#729.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved Approved for GSSoC'26 gssoc'26 GirlScript Summer of Code 2026 level:beginner Beginner level - 20 pts quality:clean Well-implemented, clean code 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

3 participants