vlc opens new window, rather than embedding when run under wayland
Describe the bug
When running pympress under wayland (e.g. in Hyprland) vlc opens videos in a new window instead of embedding. Does work as expected when running under xwayland with: GDK_BACKEND=x11 pympress test.pdf (see https://github.com/Cimbali/pympress/issues/60#issuecomment-399748537). Would be nice to see full wayland support as more and more distros are shipping wayland by default now. If I hadn't stumbled across the comment in the closed issue I would have thought pympress was broken. I guess more users will run into this issue.
To Reproduce Steps to reproduce the behavior:
- Create test.pdf in beamer / pdflatex that includes .mp4 video
- Run
pympress test.pdf - Click on placeholder for embedded video
- -> black screen in presentation, new window with video opens
- When running
GDK_BACKEND=x11 pympress test.pdfeverything works as expected
Environment (please complete the following information):
- OS: Linux 6.9.3, NixOS
- Python version: 3.11.9
- Pympress version: 1.8.5
- Installation method: nix package manager
I don’t know if vlc supports embedding with wayland. Why not use gstreamer for video support?
(I don’t know off the top of my head which is default anymore, but I thought vlc was default only on Windows)
I just tried on arch and there it works with gstreamer. Found out that gstreamer playback is not supported by the current nixos downstream package but after a few tries I got it working. So I will make a PR in nixpkgs to fix the gstreamer support.
I can confirm that on wayland video playback works as expected with gstreamer but doesn't with vlc. Does that mean its an upstream issue of vlc?
Embedding in wayland is just not supported yet: https://code.videolan.org/videolan/vlc/-/issues/16106
There’s no activity on that issue in the last 4 years and I don’t know where the mentioned blocking get_window is tracked.