Forms How to Load video without playing
Hello,
It seems that I need to call mediaPlayer.Play() in order to get the video loaded,
Is there any way to start buffering but not play on Appearing natively ? Without "Play" call, the video stay black, with no timer shown.
I'm currently using this code :
Core.Initialize();
Vlc = new LibVLC();
this.UrlVideoPiksel = new MediaPlayer(new Media(Vlc, FixVideoUrl(etablissementModel.UrlVideoPiksel), FromType.FromLocation)) { EnableHardwareDecoding = true };
this.UrlVideoPiksel.SetRole(MediaPlayerRole.Video);
this.UrlVideoPiksel.Play();
And this for the xaml
<vlc:MediaPlayerElement
x:Name="videoPlayer"
SizeChanged="Videoplayer_SizeChanged"
IsVisible="{Binding HasVideoPiksel}"
MediaPlayer="{Binding UrlVideoPiksel}"
LibVLC="{Binding Vlc}"
EnableRendererDiscovery="True">
</vlc:MediaPlayerElement>
Thanks !