Skip to content

feat: context bridge support VideoFrame - #47316

Merged
jkleinsc merged 2 commits into
electron:mainfrom
reitowo:main-video-frame-bridge
Aug 7, 2025
Merged

jkleinsc merged 2 commits into
electron:mainfrom
reitowo:main-video-frame-bridge

Conversation

@reitowo

@reitowo reitowo commented May 30, 2025

Copy link
Copy Markdown
Member

Description of Change

Add VideoFrame support for contextBridge. Split from #46811

Release Notes

Notes: none

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label May 30, 2025
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Jun 6, 2025
@velentZ

velentZ commented Jun 17, 2025 •

Copy link
Copy Markdown

I also have a feature request about VideoFrame which has been supported called copy-video-frame when right click the context menu on a video player in chrome. However, I don`t know how to start.
Please give me a guidence, thanks

@josefhernandez

Copy link
Copy Markdown

How efficient is video frame serialization? I previously experimented with transmitting the ArrayBuffer between the front-end and back-end, but the performance was very poor.

@reitowo
reitowo force-pushed the main-video-frame-bridge branch from 9882369 to 79faf4a Compare July 6, 2025 16:21
@reitowo
reitowo marked this pull request as ready for review July 6, 2025 16:21
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Jul 6, 2025
@reitowo
reitowo force-pushed the main-video-frame-bridge branch from 79faf4a to 5467352 Compare July 6, 2025 17:53
@reitowo

reitowo commented Jul 9, 2025

Copy link
Copy Markdown
Member Author

It has nothing to do with serialization

@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Jul 13, 2025
@reitowo
reitowo force-pushed the main-video-frame-bridge branch from 5467352 to 10daa77 Compare July 14, 2025 14:29
@reitowo

reitowo commented Jul 21, 2025

Copy link
Copy Markdown
Member Author

@codebytere @MarshallOfSound @VerteDinde Hi guys! Sorry for ping, but this and #47317 are ready for review! Could you spare some time review these two parts?

@erickzhao erickzhao added the semver/minor backwards-compatible functionality label Jul 24, 2025

@erickzhao erickzhao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

@reitowo

reitowo commented Jul 31, 2025

Copy link
Copy Markdown
Member Author

Ah 💩, here we go again.

@reitowo
reitowo force-pushed the main-video-frame-bridge branch from b4e8d6a to c181aab Compare July 31, 2025 19:29
@reitowo

reitowo commented Aug 5, 2025

Copy link
Copy Markdown
Member Author

@erickzhao Hey Erick, could you rerun flaky checks or just directly merge this? Thank you!

@jkleinsc jkleinsc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

@itsananderson itsananderson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

@jkleinsc
jkleinsc merged commit 095e622 into electron:main Aug 7, 2025
@release-clerk

release-clerk Bot commented Aug 7, 2025

Copy link
Copy Markdown

No Release Notes

kigh-ota pushed a commit to kigh-ota/electron that referenced this pull request Sep 30, 2025
* feat: context bridge support VideoFrame

* docs: add VideoFrame to docs
@huntercaron

huntercaron commented Oct 26, 2025 •

Copy link
Copy Markdown

Hi! Do you know if this is included in any published versions yet? I am trying in v39.0.0-beta.5 but am having some troubles

Or do you have an example of how it can be used?

Edit: I just needed to dig into electron releases a bit more. The shared texture end-to-end flow works in [email protected] 🎉

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants