private void SetupPlayer() { player = new MpvPlayer("lib\\mpv-1.dll") { AutoPlay = true }; playerHost.Children.Add(player); player.MediaLoaded += PlayerOnMediaLoaded; player.MediaUnloaded += PlayerOnMediaUnloaded; player.PositionChanged += PlayerOnPositionChanged; player.EnableYouTubeDl(@"scripts\ytdl_hook.lua"); player.YouTubeDlVideoQuality = YouTubeDlVideoQuality.MediumHigh; player.Load(@"https://www.youtube.com/watch?v=E5ln4uR4TwQ"); player.Load(@"https://www.youtube.com/watch?v=SNoK5pyK73c"); }