Esempio n. 1
0
        private async void Player_MediaAboutToEnd(object sender, MediaAboutToEndEventArgs e)
        {
            if (UpcomingSong == null)
            {
                UpcomingSong = await GetUpcomingSong(true);
            }

            NotificationManager.SendUpcomingSongNotification(UpcomingSong);
            await NotificationManager.ShowMessageAsync("Upcoming Song: " + UpcomingSong.Title + " by " + UpcomingSong.LeadArtist, 15);
        }
Esempio n. 2
0
 private async void Player_MediaAboutToEnd(object sender, MediaAboutToEndEventArgs e)
 {
     if (UpcomingSong == null)
     {
         UpcomingSong = await GetUpcomingSong(true);
     }
     if (Repeat != "Repeat Song" && UpcomingSong != null && SharedLogic.Instance.SettingsVm.CoreSettingsVM.UpcomingSongNotifcationsEnabled)
     {
         SharedLogic.Instance.NotificationManager.SendUpcomingSongNotification(UpcomingSong);
         await SharedLogic.Instance.NotificationManager.ShowMessageAsync("Upcoming Song: " + UpcomingSong.Title + " by " + UpcomingSong.LeadArtist, 15);
     }
 }