Meta.Vlc
Meta.Vlc copied to clipboard
Player only displays first video image
I'm using the player as described in your demo. If I remove instance of the control and load another one later, it does not display the image for the video (the video is playing, I can hear sound, but no visual on it).
<wpf:VlcPlayer x:Name="Player" VlcOption="{StaticResource VlcOptions}" LibVlcPath="libvlc" EndBehavior="Nothing" Stretch="Uniform"/>
This control is completely removed while the user does something else in the app, but when I recreate the UserControl to play another video, I have no visual.
I've tried many methods of disposing and releasing the player, loading through code instead of xaml, have tried RebuildPlayer(), have tried explicitly using the ThreadSeparatedImage, but nothing seems to work. I don't have partial success: every time, it will not load after the first time.
Is there some way I'm supposed to clear the internal VLC reference so I can play a different video at a later time? Thanks
I'm able to work around this by holding a single instance of the control and reusing it throughout the life of the app rather than recreating as needed.