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

[linux] WebRTC - usb camera show #3225

Open
zhaojunliing opened this issue Jan 30, 2024 · 5 comments
Open

[linux] WebRTC - usb camera show #3225

zhaojunliing opened this issue Jan 30, 2024 · 5 comments
Labels
Enhancement New feature or request Upstream Issue

Comments

@zhaojunliing
Copy link

zhaojunliing commented Jan 30, 2024

Is your feature request related to a problem? Please describe.

I'm using linux and I want to use wails to show the live feed from the camera, but the various options are unsatisfactory
~~1, use navigator.getUserMedia to show ~~
~~2, use webrtc ~~
3、Use websocket transmission, already realized, but there is a 2s delay

Describe the solution you'd like

Wanted wails support

I see he's going to support CreateSharedBuffer.
#883 (reply in thread)
When is it available?

Describe alternatives you've considered

webrtc is in webkitgtk but it doesn't work, can you help?

Additional context

image

image

image

@zhaojunliing zhaojunliing added the Enhancement New feature or request label Jan 30, 2024
@marcio199226
Copy link
Contributor

marcio199226 commented Jan 30, 2024

Current version required by wails of webkit2gtk for linux does not support webrtc.
Webrtc should be available in v3 but I don't know if there will be a lot of breaking changes to upgrade seamlesly from v2 t v3

@zhaojunliing
Copy link
Author

Current version required by wails of webkit2gtk for linux does not supporto webrtc.
Webrtc should be available in v3 but I don't know if there will be a lot of breaking changes to upgrade seamlesly from v2 t v3

Is v3 supported now? Can I test it?

@marcio199226
Copy link
Contributor

I think v3 is in early alpha stage

@leaanthony
Copy link
Member

leaanthony commented Jan 31, 2024

Is v3 supported now? Can I test it?

Supported: No. Test it: Yes. Please follow our Feedback process if you have any feedback.

@stffabi
Copy link
Collaborator

stffabi commented Jan 31, 2024

I tried once to activate the setting enable_webrtc in our code, but it still didn't work on latest fedora (as of April 2023). It seemed like fedora did not compile in that support in their default package. The enable_webrtc option is currently also not enabled in v3, so it won't work there either.

I would not expect this to work until distros catch up and build in that support. For example if you take a look into the build log of your installed webkit2gtk 2.38.6-0ubuntu0.20.04.1 version, you will see that support has not been compiled into it.

-- Disabling USE_GSTREAMER_WEBRTC since ENABLE_WEB_RTC is disabled.

So this is mostly an upstream distros issue, which first need to be solved there.

@stffabi stffabi changed the title usb camera show [linux] WebRTC - usb camera show Jan 31, 2024
@stffabi stffabi added Upstream Issue Enhancement New feature or request and removed Enhancement New feature or request labels Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Upstream Issue
Projects
None yet
Development

No branches or pull requests

4 participants