Esempio n. 1
0
 private void Current_MediaFinished(object sender, Plugin.MediaManager.Abstractions.EventArguments.MediaFinishedEventArgs e)
 {
     if (GlobalMemory.ActualPlaylistSongs == null)
     {
         seekBar.Progress = 0;
         actualTime.Text  = "00:00";
         CrossMediaManager.Current.Seek(TimeSpan.FromSeconds(0));
     }
     else
     {
         switchSongs(1);
     }
 }
Esempio n. 2
0
        async void AudioPlayer_MediaFinished(object sender, Plugin.MediaManager.Abstractions.EventArguments.MediaFinishedEventArgs e)
        {
            HasEnded = true;


            await AudioPlayer?.Stop();


            if (IsLoading || InBackground)
            {
                return;
            }

            if (Device.RuntimePlatform == Device.iOS && AudioPlayer.Position.Ticks != 0)
            {
                return;
            }

            IsLoading = true;

            EndMeditation();
        }
Esempio n. 3
0
 private async void Current_MediaFinished(object sender, Plugin.MediaManager.Abstractions.EventArguments.MediaFinishedEventArgs e)
 {
     await CrossMediaManager.Current.Stop();
 }