-
Notifications
You must be signed in to change notification settings - Fork 959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add VideoFrame
to ExternalImageSource
enum
#6170
Conversation
I'm not sure what the policy is for unstable APIs, but this requires |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thanks!
I thought |
It was removed, but this PR doesn't invalidate that one, because |
### What * Fixes #7328 This is obviously a brittle hack, but allows us to move on without having to wait on a wgpu release containing gfx-rs/wgpu#6170 :) Tested using `pixi run rerun-web /Users/andreas/Desktop/sample\ videos/Big_Buck_Bunny_720_10s_30MB_av1.mp4` (insert video of your choice) and then running `http://localhost:9090/?url=ws%3A%2F%2Flocalhost%3A9877&renderer=webgl` in Chrome (on Mac. shouldn't matter much as long as the browser has webcodec support and draws video) ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested the web demo (if applicable): * Using examples from latest `main` build: [rerun.io/viewer](https://rerun.io/viewer/pr/7381?manifest_url=https://app.rerun.io/version/main/examples_manifest.json) * Using full set of examples from `nightly` build: [rerun.io/viewer](https://rerun.io/viewer/pr/7381?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json) * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG * [x] If applicable, add a new check to the [release checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)! * [x] If have noted any breaking changes to the log API in `CHANGELOG.md` and the migration guide - [PR Build Summary](https://build.rerun.io/pr/7381) - [Recent benchmark results](https://build.rerun.io/graphs/crates.html) - [Wasm size tracking](https://build.rerun.io/graphs/sizes.html) To run all checks from `main`, comment on the PR with `@rerun-bot full-check`.
Connections
ExternalImageSource::VideoFrame
#6167Description
Adds missing
VideoFrame
type as a possible external image source.The enum variant is gated behind
cfg(web_sys_unstable_apis)
, asweb_sys::VideoFrame
is unavailable without it.Testing
Tested manually by using it in place of this hack: https://github.com/rerun-io/rerun/pull/7261/files#diff-213f45076b49c7bbe3d7a1f0c7383b3b9e0edb4c02c21bab32709573155a2e63R403-R414
It would be nice to have a Wasm-only example that renders a media stream using
VideoDecoder
, but I'm not sure how adding such an example would work.Checklist
cargo fmt
.cargo clippy
. If applicable, add:--target wasm32-unknown-unknown
--target wasm32-unknown-emscripten
cargo xtask test
to run tests.CHANGELOG.md
. See simple instructions inside file.