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