Skip to content

fix(web-codecs): VideoFrame::timestamp returns f64 in web-sys 0.3.100 - #39

Merged
kixelated merged 1 commit into
mainfrom
web-codecs-websys-0.3.100
Jun 9, 2026
Merged

fix(web-codecs): VideoFrame::timestamp returns f64 in web-sys 0.3.100#39
kixelated merged 1 commit into
mainfrom
web-codecs-websys-0.3.100

Conversation

@kixelated

Copy link
Copy Markdown
Owner

web-sys 0.3.100 changed VideoFrame::timestamp() from Option<f64> to f64, so web-codecs/src/video/frame.rs no longer compiles:

error[E0599]: no method named `unwrap` found for type `f64`
  --> web-codecs/src/video/frame.rs:17

Fix is to drop the .unwrap().

Cargo.lock is gitignored (library convention), so CI resolves web-sys fresh to the latest on every run. That means this break blocks all PRs against the repo, not just one (same situation as the earlier "Update web-codecs for web-sys 0.3.91" change). Verified at web-sys 0.3.100: cargo build/clippy -D warnings/fmt --check all clean for web-codecs on wasm32-unknown-unknown.

🤖 Generated with Claude Code

web-sys 0.3.100 changed `VideoFrame::timestamp()` from `Option<f64>` to
`f64`, so the `.unwrap()` no longer compiles. Drop it. Cargo.lock is
gitignored, so CI resolves web-sys fresh to the latest and this breaks
every PR until updated (same as the earlier 0.3.91 bump).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kixelated
kixelated merged commit 5251388 into main Jun 9, 2026
1 check passed
@kixelated
kixelated deleted the web-codecs-websys-0.3.100 branch June 9, 2026 22:05
@github-actions github-actions Bot mentioned this pull request Jun 9, 2026
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