Example #1
0
        public VlcControl()
        {
            MediaPlayer = new Forms.VlcControl();
            MediaPlayer.HandleCreated += MediaPlayer_HandleCreated;

            // add the content
            this.Content = new VlcHost(MediaPlayer);
        }
Example #2
0
 protected override void DestroyWindowCore(HandleRef hwnd)
 {
     if (MediaPlayer == null)
         return;
     Win32Interops.SetParent(IntPtr.Zero, hwnd.Handle);
     MediaPlayer.Dispose();
     MediaPlayer = null;
 }
Example #3
0
 protected override void DestroyWindowCore(HandleRef hwnd)
 {
     if (MediaPlayer == null)
     {
         return;
     }
     Win32Interops.SetParent(IntPtr.Zero, hwnd.Handle);
     MediaPlayer.Dispose();
     MediaPlayer = null;
 }
Example #4
0
 public VlcControl()
 {
     MediaPlayer = new Forms.VlcControl();
     Child       = MediaPlayer;
 }
Example #5
0
 public VlcControl()
 {
     MediaPlayer = new Forms.VlcControl();
 }
Example #6
0
 public VlcHost(Forms.VlcControl mediaPlayer)
 {
     this.MediaPlayer = mediaPlayer;
 }
Example #7
0
 public VlcControl()
 {
     MediaPlayer = new Forms.VlcControl();
 }
Example #8
0
 public VlcControl()
 {
     MediaPlayer = new Forms.VlcControl();
     this.Child = MediaPlayer; 
 }