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