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(); } }
private async void btPause_Click(object sender, EventArgs e) { await MediaPlayer1.PauseAsync(); }
private async void btPlayerPause_Click(object sender, EventArgs e) { //VideoCapture1.Test(); await MediaPlayer1.PauseAsync(); }