Martin Tirion
Martin Tirion

Reputation: 1236

How can I clear the media from the MediaPlayer when it has stopped

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.

Upvotes: 1

Views: 1230

Answers (1)

Eduardo
Eduardo

Reputation: 1

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

<vlc:MediaPlayerELement x:Name="myvideo"

Upvotes: 0

Related Questions