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

Window cannot be shared in browser (firefox, chromium) in linux #2640

Open
2 tasks done
matthiasneuner opened this issue Sep 18, 2021 · 10 comments
Open
2 tasks done

Window cannot be shared in browser (firefox, chromium) in linux #2640

matthiasneuner opened this issue Sep 18, 2021 · 10 comments

Comments

@matthiasneuner
Copy link

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: Manjaro / Cinnamon
  • scrcpy version: 1.19
  • installation method: AUR
  • device model: all
  • Android version: 10

Describe the bug

In Manjaro with Cinnamon desktop, the window cannot be shared in video conferences both in firefox and chromium.
The window is simply not listed among the possible windows:
image

However, sharing the complete desktop works fine.

Sharing the window in video conferences would be great for using Android tablets with pen input devices for presentations, sketching, teaching purposes ...

I am not sure how much this is related to scrcpy. On the other hand, I have this issue with no other application.

@rom1v
Copy link
Collaborator

rom1v commented Sep 18, 2021

You could use V4L2 sink: https://github.com/Genymobile/scrcpy#v4l2loopback

(to expose the device screen as a webcam)

@rom1v
Copy link
Collaborator

rom1v commented Sep 18, 2021

(That's weird that the window is not listed though.)

@matthiasneuner
Copy link
Author

You could use V4L2 sink: https://github.com/Genymobile/scrcpy#v4l2loopback

(to expose the device screen as a webcam)

I already thought of that, but that means usually that I cannot use my real webcam in video conferences simultaneously :-) .

@diegofernandess
Copy link

diegofernandess commented Sep 26, 2021

I have the same problem on Debian Sid, Gnome 40.4, Xorg version 1.20.11, Android 11, Scrcpy 1.19 and Google Chrome 94.

@rom1v
Copy link
Collaborator

rom1v commented Sep 26, 2021

Could please you ask/report to SDL? (scrcpy just opens a SDL window)

@diegofernandess
Copy link

The problem seems indeed to be related to SDL. Using libsdl2-2.0-0 version 2.0.16 does not work, whereas the version 2.0.14 works.

@m1ga
Copy link
Contributor

m1ga commented Oct 4, 2021

should have looked here before my video call before 🤣 Shared the whole screen at the end but good to know it's not just my browser

@slash3g
Copy link

slash3g commented Nov 8, 2021

Apparently this bug is caused by a property (WM_NAME) that SDL is not setting on windows created using SDL_CreateWindow.
I've reported the bug in libsdl-org/SDL#4924, along with a workaround.

@jakob-grabner
Copy link

Looks like the linked issue (libsdl-org/SDL#4924) is fixed already, any chance getting this also fixed in scrcpy?

@rom1v
Copy link
Collaborator

rom1v commented Sep 16, 2022

I guess scrcpy has nothing to do, upgrade your SDL/distro if the fix is released.

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

No branches or pull requests

6 participants