Skip to content
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

[Feature]: IPC streaming to the browser #4210

Open
thewh1teagle opened this issue Dec 1, 2023 · 3 comments
Open

[Feature]: IPC streaming to the browser #4210

thewh1teagle opened this issue Dec 1, 2023 · 3 comments
Assignees
Labels
feature request feature request

Comments

@thewh1teagle
Copy link

Describe the feature/enhancement you need

I would like to stream data like video frames from the process which manage webview2 to to the browser directly using IPC methods for high performance

The scenario/use case where you would use this feature

Video frames, Audio

How important is this request to you?

Critical. My app's basic functions wouldn't work without it.

Suggested implementation

A way to add listener in webview2 side (and in the end in JS)
and a way to stream into that from outside, cross platform.

What does your app do? Is there a pending deadline for this request?

My dream app would be RTSP viewer app based on webview2 which decode the frames in Python / Rust and stream it directly to the DOM

@victorhuangwq
Copy link
Collaborator

@vbryh-msft do you know if this is possible now? If not, is it a valid feature request for WebView2?

@vbryh-msft
Copy link
Contributor

vbryh-msft commented Dec 1, 2023

Could you look into shared buffer API? Spec is here.

@UltraWelfare
Copy link

I'd also like to suggest if there could be some kind of way to send byte array data instead of strings/json using postMessage? (or maybe another function that accepts uint8array

That way we can implement binary serialization methods (such as MsgPack)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request feature request
Projects
None yet
Development

No branches or pull requests

4 participants