/// <summary> /// Instantiates class which receives events and translates them to <see cref="VlcPlayerControl"/> instance. /// </summary> /// <param name="control"></param> public VlcPlayerControlEventsReceiver(VlcPlayerControl control) { if (control == null) { throw new ArgumentNullException("control"); } this.control = control; }
/// <summary> /// Ths function allows the running thread to setup the video display and perform /// the neccissary form size adjustments /// </summary> private void SetupVideoWindow() { // // vlcPlayerControl // this.vlcPlayerControl = new VlcPlayerControl(); this.vlcPlayerControl.Location = gb_VideoBox.Location; this.vlcPlayerControl.Name = "vlcPlayerControl"; this.vlcPlayerControl.Position = 0; this.vlcPlayerControl.Size = gb_VideoBox.Size; this.vlcPlayerControl.TabIndex = 9; this.vlcPlayerControl.Time = System.TimeSpan.Parse("00:00:00"); this.vlcPlayerControl.Volume = 50; this.Controls.Add(this.vlcPlayerControl); gb_VideoBox.Visible = false; }