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

Camera/Microphone not functional on Linux #42

Open
calejvaldez opened this issue Nov 17, 2024 · 2 comments
Open

Camera/Microphone not functional on Linux #42

calejvaldez opened this issue Nov 17, 2024 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed research

Comments

@calejvaldez
Copy link
Member

calejvaldez commented Nov 17, 2024

Summary

Tauri has a lot of issues when it comes to camera permissions.

It's possible that this is only a Linux-related issue, but this is still a Linux-first program, so we should figure this out.

Edit: webkitgtk doesn't support webrtc. This is a Linux-only issue. Read my comment below.

What is the expected correct behavior?

The camera to properly load and record.

Steps to reproduce

  1. Ensure you're in the recordings branch
  2. Run npm i; cargo tauri dev or equivalent
  3. Open the Video page
  4. The camera won't start

Relevant logs and/or screenshots

Screenshot from the console

Operating System

Linux

@calejvaldez calejvaldez added bug Something isn't working help wanted Extra attention is needed frontend (React/NextJS) labels Nov 17, 2024
@calejvaldez calejvaldez changed the title Ask for Camera/Microphone permissions Camera/Microphone permissions not requested Nov 17, 2024
@calejvaldez calejvaldez changed the title Camera/Microphone permissions not requested Camera/Microphone not functional on Linux Nov 17, 2024
@calejvaldez
Copy link
Member Author

calejvaldez commented Nov 17, 2024

webkitgtk doesn't support webrtc, meaning camera and microphone support for Linux isn't functional. (source)

There are some solutions out there, but it's worth to research more.

The plan will now be to continue implementing #19 for Windows/macOS but continue researching solutions to this. This is a Linux-first program, so ensuring this is functional is critical.

Another thread to follow: tauri-apps/wry#85

@calejvaldez
Copy link
Member Author

Idea: Since Palliaview is meant to be an embedded system, we could make Palliaview use NixOS, but this would be more of a last resort.

Another idea was that when they select Video, it'll open a new tab on their browser and start a call. This would require us to figure out server video calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed research
Projects
None yet
Development

No branches or pull requests

1 participant