LibVLCSharp is now available for WinUI, and its documentation can be found here.
This is great news, and thank you for sharing it.
I am experiencing an issue with memory usage. Whenever I start and stop the player, not all of the memory is released, and as a result, the memory usage keeps growing..
I tried disposing of the player and the library, but this is not working.
private void MovieWindow_Closed(object sender, WindowEventArgs args)
{
mp.Stopped += (s, e) =>
{
grid.Children.Remove(VideoView);
};
mp.Stop();
var toDispose = mp;
var toDispose2 = libvlc;
Task.Run(() =>
{
toDispose?.Dispose();
toDispose2?.Dispose();
});
}
I have a simple sample available here. Any suggestions on the best approach?