private void btPlay_TouchUpInside(object sender, EventArgs e)
 {
     if (_isPaused)
     {
         _mediaPlayer.ResumeAsync();
     }
     else
     {
         _mediaPlayer.PlayAsync(new Uri(edURL.Text));
     }
 }
Example #2
0
        private async void btPause_Click(object sender, EventArgs e)
        {
            if (mediaPlayer == null)
            {
                return;
            }

            if (btPause.Text == "Pause")
            {
                await mediaPlayer.PauseAsync();

                btPause.Text = "Resume";
            }
            else
            {
                await mediaPlayer.ResumeAsync();

                btPause.Text = "Pause";
            }
        }
Example #3
0
 private async void btResume_Click(object sender, RoutedEventArgs e)
 {
     await _mediaPlayer.ResumeAsync();
 }
Example #4
0
 private async void btResume_OnClicked(object sender, EventArgs e)
 {
     await _mediaPlayer.ResumeAsync();
 }