public PlayerController(AxAXVLC.AxVLCPlugin2 player)
 {
     InitializeComponent();
     this.player = new AxAXVLC.AxVLCPlugin2[1];
     this.player[0] = player;
     this.Location = new Point(0, 0);
 }
Exemple #2
0
 private void OnTimeChanged(object sender, AxAXVLC.DVLCEvents_MediaPlayerTimeChangedEvent e)
 {
     try
     {
         if (labelPosition.InvokeRequired)
         {
             labelPosition.Invoke(new UpdateTime(OnTimeChanged), new object[] { sender, e });
         }
         else
         {
             labelPosition.Text = "Current position: " + e.time.ToString() + " ms - total length: " + axVLCPlugin21.input.Length.ToString("f0") + " ms - position: " + axVLCPlugin21.input.Position.ToString("f2"); ;
             
             if (axVLCPlugin21.input.Length > 0)
             {
                 trackBarPosition.Maximum = 100;
                 trackBarPosition.Value = (int)(axVLCPlugin21.input.Position * 100.0);
             }
             update = true;
         }
     }
     catch (Exception)
     {
     }
 }
 private void axVLCPlugin21_MediaPlayerTimeChanged(object sender, AxAXVLC.DVLCEvents_MediaPlayerTimeChangedEvent e)
 {
     trackBar1.Value = e.time;
 }
 private void axVLCPlugin21_MediaPlayerPositionChanged(object sender, AxAXVLC.DVLCEvents_MediaPlayerPositionChangedEvent e)
 {
 }