I am using WPF mediaement to play video, so basically my app is downloading the video from server and stored in local system path. I will get a event then I will fetch the video using path and play in mediaement.
xaml
<MediaElement x:Name="MediaElementPlayer"/>
.cs code
System.Drawing.Rectangle resolution = System.Windows.Forms.Screen.PrimaryScreen.Bounds;
MediaElementPlayer.Width = resolution.Width;
MediaElementPlayer.Height = resolution.Height;
MediaElementPlayer.LoadedBehavior = MediaState.Play;
MediaElementPlayer.Source = new Uri(videoPlayerModel.videoSourcePath);
Here I am facing a lag issue when I use video resolution more then 8k , below 8k all video are working fine. Please let me know if something is going wrong here.