WPF LibVLC and overlay png with transparency or any control

This forum is about all development around libVLC.
manity
New Cone
New Cone
Posts: 7
Joined: 01 Feb 2019 03:14

WPF LibVLC and overlay png with transparency or any control

Postby manity » 26 Mar 2019 15:26

Hello,
I have been mucking around with LibVLCSharp.WPF and it works fine, i can load videos etc etc no problem.

I have created a user control with the videoview element.
I instantiate the user control in code behind and add it as a child to a a grid control.
This displays and works fine.
But i cant overlay anything over it.
any control i try or bitmap or png i try to have over the video image does not show because the video player is always in front.
the main window edges clip the video if i shrink it small enough.
It does not seem to work with a z-index adjustment.

Is this the same issue as the air gap issue with winforms controls hosted in wpf.
Or am i missing something.

I just want to overlay a png with transparency on top of the video but the video is always in front.

Can anyone please help.

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: WPF LibVLC and overlay png with transparency or any control

Postby mfkl » 26 Mar 2019 16:50

But i cant overlay anything over it.
Have a look at those samples https://code.videolan.org/videolan/LibV ... WPF.Sample
Is this the same issue as the air gap issue with winforms controls hosted in wpf.
Yes. We implemented a workaround for the airgap issue, but there will be limitations.
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 30 guests