Cannot clear VideoView after playing video
Summary
I have a VideoView in my XAML 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. Even disposing and clearing the Player doesn't help. Frame stays there.
Minimal project and steps to reproduce
- Clone https://github.com/mtirion/VLCinUWPTest
- Switch to x64 or x86, compile and run the app.
- Press Play and after a few seconds press Stop. Last frame is visible
What is the current bug behavior?
Last frame is still visible when video is stopped and Media is cleared from the MediaPlayer. In the repo I dispose and null the Media in the MediaPlayer. I've tried to do that as well for the MediaPlayer with the same result.
What is the expected correct behavior?
VideoView should go to the defined Background color.
Environment
Windows 10 (1903 / 18362.476) Windows SDK (UWP) 17134 LibVLCSharp 3.3.1 x64 VideoLAN.LibVLC.UWP 3.1.1.1 x64