private void button5_Click(object sender, EventArgs e)
 {
     myPlaylist.FilePlayStop(0);
     myPlaylist.FilePosSet(0, 0);
     trackBar2.Value = 0;
     label4.Width    = 10;
 }
Exemple #2
0
 public void Stop()
 {
     if (_mitem != null &&
         (this.Status == PreviewPlayerStatus.Paused || this.Status == PreviewPlayerStatus.Running))
     {
         _mplaylist.FilePlayStop(0.0);
         //_mplaylist.FilePosSet(0.0, 0.0);
         this.Status = PreviewPlayerStatus.Stopped;
     }
 }
Exemple #3
0
        void MarshalAll()
        {
            SendMes("ReleaseAll");
            try
            {
                m_objMPlaylist.FilePlayStop(0);
                m_objMPlaylist.ObjectClose();
                Marshal.ReleaseComObject(m_objMPlaylist);
            }
            catch { }

            try
            {
                m_objMFile.FilePlayStop(0);
                m_objMFile.ObjectClose();
                Marshal.ReleaseComObject(m_objMFile);
            }
            catch { }
            try
            {
                m_objMixer.FilePlayStop(0);
                m_objMixer.ObjectClose();
                Marshal.ReleaseComObject(m_objMixer);
            }
            catch { }

            Thread.Sleep(200);
            GC.Collect();
            SendMes("----------------------------");
            SendMes("");
        }
Exemple #4
0
 private void Stop_btn_Click(object sender, EventArgs e)
 {
     //Thread.Sleep(2000);
     m_objWriter.ObjectClose();
     m_objPlaylist.FilePlayStop(0);
     count++;
 }
Exemple #5
0
        private void Reproduce_btn_Click(object sender, EventArgs e)
        {
            try
            {
                m_objPlaylist.FilePlayStop(0);
                Marshal.ReleaseComObject(m_objPlaylist);
            }
            catch
            { }
            m_objMFFactory = new MFFactoryClass();
            m_objMFFactory.PropsSet("gpu_pipeline", "true");

            OpenFile_btn_Click(null, null);
        }
 private void Stop_btn_Click(object sender, EventArgs e)
 {
     m_objMPLaylistSource.FilePlayStop(0);
     m_objMPLaylistRecordFile.FilePlayStop(0);
     m_objWriter.ObjectClose();
 }
Exemple #7
0
 /// <summary>
 /// Stops playback
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonStop_Click(object sender, EventArgs e)
 {
     m_objPlaylist.FilePlayStop(0);
 }