Example #1
0
 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;
 }
Example #2
0
 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;
 }
Example #3
0
 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();
     }
 }