1

I have a VideoView and in the code behind I create the MediaPlayer and a Media object to play a video. When I stop in the middle or it stops at the end, the last frame stays visible. When I load the same or another video in the same player, you see a glitch of that last frame. I want to clear the video from the player.

I've tried to set the Media property to null, call Dispose() on it first, but no luck. Frame stays there. Any tips how to achieve this?

I'm working with LibVLCSharp 3.3.1 and VideoLAN.LibVLC.UWP 3.1.1.1 on UWP build 17134.

Martin Tirion
  • 1,246
  • 1
  • 7
  • 10
  • media.Dispose() can be called as soon as you don't need the media instance yourself, it just decrements a ref counter and can be called safely just after you have set the media on the player. – cube45 Nov 27 '19 at 22:44
  • That said, this sounds like a bug of the UWP implementation, can you report a proper bug on code.videolan.org 's libvlcsharp repo? – cube45 Nov 27 '19 at 22:45
  • Thanks. Created an issue. – Martin Tirion Nov 28 '19 at 12:30
  • Thanks, for future readers, the link is here : https://code.videolan.org/videolan/LibVLCSharp/issues/260 . – cube45 Nov 28 '19 at 12:50

1 Answers1

0

you can change the opacity value of the MediaPlayerElement of your xaml

<vlc:MediaPlayerELement x:Name="myvideo"

SpaceDogCS
  • 2,808
  • 3
  • 20
  • 49