0

this is my first question on stackoverflow.. i have some problem with libvlcsharp : when i put vlcsharp mediaElement into a popup (like below code) and run the application , vlcsharp will add 3 button on the top ,right corner of popup : minimize , maximize and close. minimize and maximize works fine but when i click on close button nothing happen. the actual code :

<popup>
<wpf:VideoView  x:Name="myVideoControl" MediaPlayer="{Binding MediaPlayer}"  />
</popup>

screenshot from popup : libvlcsharp popup screenshop

cube45
  • 3,429
  • 2
  • 24
  • 35
sajad
  • 87
  • 1
  • 5

1 Answers1

0

Make sure the Popup is visible before calling Play, otherwise VLC will create its own window (D3D11 window)

cube45
  • 3,429
  • 2
  • 24
  • 35
  • thanks for the answer . yes, the title of popup is "d3d11"( and i will try your advice) . but my question is that : "why close button of popup(wich created by vlc) does not work, should i handle any event or something ? or it's behave just like that ? – sajad Jun 26 '21 at 18:32
  • Might be a deadlock or something. That behavior shouldn't be used anyway as you can't really handle the window events – cube45 Jun 26 '21 at 22:05