public Task Stop() { _audioStreamPlayer.Stop(); _audioStreamPlayer.Dispose(); _audioStream.Dispose(); return(Task.Delay(0)); }
// Returns to the previous page when an area outside the popup is clicked private async void CloseAllPopup() { player.Stop(); await PopupNavigation.Instance.PopAsync(); player.Dispose(); player = null; }
public void Dispose() { _player.Stop(); _player.PlaybackEnded -= OnPlaybackEnded; _player.Dispose(); }