Giter VIP home page Giter VIP logo

Comments (7)

radiolondra avatar radiolondra commented on June 24, 2024

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.

from avavlccontrol.

radiolondra avatar radiolondra commented on June 24, 2024

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
  • Give the right permits to the files inside your deployed folder (I did a simple chmod 777)
  • Start AvaVLCWindow (or AvaVLCControl) as root or with sudo

AvaVLCMint

from avavlccontrol.

mvaranda avatar mvaranda commented on June 24, 2024

Hi Roberto, thanks a lot.
Latest main branch does not show anymore the overlay control panel (no play/stop buttons).
I have to checkout 72340f8 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.

from avavlccontrol.

radiolondra avatar radiolondra commented on June 24, 2024

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.

from avavlccontrol.

radiolondra avatar radiolondra commented on June 24, 2024

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
  • Reboot.
  • At the system login screen, there is an option to select the desktop environment, click it and set "Plasma".
  • Type your password and hit enter. And you are in Kde.

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.

from avavlccontrol.

oolong2 avatar oolong2 commented on June 24, 2024

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):

  • I had to use raspi-config under Advanced Options to enable a composition manager (xcompmgr). Which also apparently requires enabled GL support. After rebooting this still didn't work for some reason. I could see xcompmgr running in the list of processes, but transparency only started working when I ran xcompmgr manually from a terminal window. So I edited the cmstart.sh script under /usr/lib/raspi-config, because for whatever reason the exec command running xcompmgr wasn't working properly, and changed the line that runs xcompmgr to something like "xcompmgr -Cc -t1 -l1 -r3 -o0.25". Which I found online somewhere to enable drop shadows in the desktop. Although just "xcompmgr" would probably be fine since that worked in the terminal.

To fix the ZIndex:

  • I couldn't actually fix the ZIndex issue so I worked around it.... I also didn't want to install kde desktop since that is overkill for me and I didn't want to mess anything else up. So I modified the VideoViewer to add an event handler to the PositionChanged event of the containing window. Which fires once after the containing window is loaded. There I just call _floatingContent.Activate() to being the controls to the front.

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.

from avavlccontrol.

elveejay1 avatar elveejay1 commented on June 24, 2024

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.

from avavlccontrol.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.