Code: Select all
string[] args = new string[] {
"-I", "dummy", "--ignore-config",
@"--plugin-path=C:\Program Files (x86)\VideoLAN\VLC\plugins",
"--vout-filter=deinterlace", "--deinterlace-mode=blend"
};
instance = new VlcInstance(args);
player = null;
using (VlcMedia media = new VlcMedia(instance, "https://www.youtube.com/watch?v=xCF19cBWb0I"))
{
if (player != null) player.Dispose();
player = new VlcMediaPlayer(media);
}
player.Drawable = panel1.Handle;
player.Play();