public void Open(VlcMedia media, IntPtr hwnd) { Handle = LibVlc.libvlc_media_player_new_from_media(media.Handle); if (Handle == IntPtr.Zero) { throw new VlcException(); } Drawable = hwnd; }
public void Open(string path, IntPtr hwnd) { using (VlcMedia media = new VlcMedia(Core.Instance, path)) { Handle = LibVlc.libvlc_media_player_new_from_media(media.Handle); if (Handle == IntPtr.Zero) { throw new VlcException(); } } Drawable = hwnd; }
public VlcMediaPlayer(VlcMedia media) { string[] args = new string[] { "-I", "dummy", "--ignore-config", @"--plugin-path=\plugins" //,"--vout-filter=deinterlace", "--deinterlace-mode=blend" }; Core.Players++; Core.Instance = new VlcInstance(args); Handle = LibVlc.libvlc_media_player_new_from_media(media.Handle); if (Handle == IntPtr.Zero) { throw new VlcException(); } }