Exemple #1
0
 public Task Stop()
 {
     _audioStreamPlayer.Stop();
     _audioStreamPlayer.Dispose();
     _audioStream.Dispose();
     return(Task.Delay(0));
 }
Exemple #2
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;
        }
Exemple #3
0
 public void Dispose()
 {
     _player.Stop();
     _player.PlaybackEnded -= OnPlaybackEnded;
     _player.Dispose();
 }