示例#1
0
        private async void StopDelegateMethod1()
        {
            //timer1.Enabled = false;
            tbTimeline.Value = 0;

            MediaPlayer1.Hide();
            MediaPlayer2.Show();

            CurrentPlayer = MediaPlayer2;
            await MediaPlayer2.ResumeAsync();

            if (sourceFiles.Count > 0)
            {
                await this.PlayFileAsync(sourceFiles[0], MediaPlayer1);

                sourceFiles.RemoveAt(0);
                await MediaPlayer1.PauseAsync();
            }
        }
示例#2
0
 private async void btPause_Click(object sender, EventArgs e)
 {
     await MediaPlayer1.PauseAsync();
 }
示例#3
0
 private async void btPlayerPause_Click(object sender, EventArgs e)
 {
     //VideoCapture1.Test();
     await MediaPlayer1.PauseAsync();
 }