private void button5_Click(object sender, EventArgs e)
 {
     myPlaylist.FilePlayStop(0);
     myPlaylist.FilePosSet(0, 0);
     trackBar2.Value = 0;
     label4.Width    = 10;
 }
예제 #2
0
 public void Play()
 {
     if (_mitem != null &&
         (this.Status == PreviewPlayerStatus.Paused || this.Status == PreviewPlayerStatus.Stopped))
     {
         if (this.Status == PreviewPlayerStatus.Stopped)
         {
             _mplaylist.FilePosSet(0.0, 0.0);
         }
         _mplaylist.FilePlayStart();
         this.Status = PreviewPlayerStatus.Running;
     }
 }
예제 #3
0
 internal void SetPosition(double pos)
 {
     if (_mitem != null && this.Status != PlayerStatus.Closed && this.Status != PlayerStatus.Stopped)
     {
         //_mplaylist.PlaylistPosSet(0, pos, 0.0);
         _mplaylist.FilePosSet(pos, 0.0);
     }
 }
예제 #4
0
 /// <summary>
 /// Rewinds to start
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonRewind_Click(object sender, EventArgs e)
 {
     m_objPlaylist.FilePosSet(0, 0);
 }