Open mvaranda opened 2 years ago
Found that overlay shows up even when another windows is on foreground and cursor moves to the player control area.
Sorry, I forgot to update the library project in the samples to the latest version (find it HERE)
Anyway, now I lined up both sample projects to the latest lib version. It should work.
About Mint behaviour. I never tested anything under linux Mint (Kubuntu only). Once I have time, I'll prepare a VM with Mint and make my own tests there.
Tested on Linux Mint (MATE). It works perfectly.
Did u installed all the needed libs?
sudo apt-get install libx11-dev
sudo apt-get install libvlc-dev
sudo apt-get install vlc
chmod
777)Hi Roberto, thanks a lot. Latest main branch does not show anymore the overlay control panel (no play/stop buttons). I have to checkout 72340f8429b5daca8e8878b9ba085e5db40e12dc in order to get it back.
Suggested libs where all already installed. Note that audio was playing fine, so the libs access were good. I installed notnet 5.0.407 and still have black screen.
A GTK demo using libvlc works: https://raw.githubusercontent.com/videolan/vlc/master/doc/libvlc/gtk_player.c I just had to comment out the content of on_stop function.
I am wondering if OpenGL presence (or absence) has anything to do with this.
It effectively seems in Mint there is the issue on setting ZIndex and it needs topmost. This happens in Mint only (on Kubuntu and MacOS ZIndex works fine). But the video is playing fine even in Mint and with the latest lib, as you can see in the picture above. Check your environment and all the changes you eventually did to the sample code. I suggest to try from the beginning in a clean Mint OS (I used MATE) in a virtual machine.
The ZIndex vs Topmost settings will be reviewed as soon as possible, to allow the right behaviour in Mint too.
It seems Mint has stopped shipping with Kde, generating a lot of issues. In my Mint MATE, I installed Kde again. And ZIndex started to work again!
To install Kde in Mint MATE:
sudo apt update
sudo apt install kubuntu-desktop kde-plasma-desktop kscreen
Run the sample using the latest lib. The panel at the bottom should work fine without overlapping any other window.
Note that the video was playing successfully even without Kde installed, at least in my Mint MATE VM.
I was also experiencing transparency and ZIndex issues trying to get this working on a Raspberry Pi. So this is an FYI and for anyone else experiencing similar problems.
To fix the transparency issues (TLDR: make sure xcompmgr is running):
To fix the ZIndex:
Probably not the most ideal, but this worked for my purposes. Also this is my first time doing anything on Linux so I'm sure I'm missing something
Also this does not work with Avalonia 0.10.14 only version 0.10.13
I tried several times to get version 0.10.14 to work with an overlay, I don't think the right handle was getting passed and VLC just kept opening up in it's own window. I was able to get version 0.10.13 to work on both Windows 10 and the Raspberry Pi.
I have the same issue, running on a Ubuntu 22.04 in a Hyper-V VM.
I have run
sudo apt-get install libx11-dev sudo apt-get install libvlc-dev sudo apt-get install vlc
previously to make it build, but still see a black screen and the errors mentioned initially in this thread. I also don't see the buttons, so I changed SetPlayerHandle() to call viewModel.Play(); after the if().
I downloaded the software today.
Thanks a lot for this project. Works on Windows. Found that overlay shows up even when another windows is on foreground and cursor moves to the player control area.
On Mint, I get black screen with audio fine.
Logs:
A few things: I bumped up to use .NET6.0 as I do not have 5.0. It does not seems to be related.
just in case I forced the code to select X server:
About installed libvlc:
Any suggestion? Thanks in advance, Marcelo