Exemplo n.º 1
0
 private void Timer()
 {
     if (Player?.IsPlaying ?? false)
     {
         if (Player.CurrentPosition >= Lesson.Sentences[i].VocEd)
         {
             Player.Stop();
         }
     }
 }
Exemplo n.º 2
0
 public Task Stop()
 {
     _audioStreamPlayer.Stop();
     _audioStreamPlayer.Dispose();
     _audioStream.Dispose();
     return(Task.Delay(0));
 }
        partial void StopButton_PrimaryActionTriggered(UIButton sender)
        {
            player.Stop();

            isPlaying.Text = "Stopped";
        }