I use Vlc.DotNet.Wpf, and I need the player to load the video and display only the first frame, so that the control gets a proper size and the user can see what the video is talking about, how can this be done?
if I call _vlcPlayer.SourceProvider.MediaPlayer.SetMedia(stream) nothing happend, and if I call _vlcPlayer.SourceProvider.MediaPlayer.Play(stream) the video running more than one frame.
I tried _vlcPlayer.SourceProvider.MediaPlayer.Time = 1 nothing happend.
How can this be done?
You could parse the media and find its width and height from the first video track.
You could use the snapshot API to get a jpeg snapshot of the video that you could display. (That API will change in libvlc4)
You could also use play, and pause the video immediately after you get the Playing event (don't forget to switch threads).