示例#1
0
 public async void AudioPlayerHelperTrackChanged(object sender, Song currentSong)
 {
     await DispatcherHelper.RunAsync(() =>
     {
         if (App.Locator.Player.IsPlayerActive && _isActive)
         {
             SetImage(currentSong);
             if (MainPivot.SelectedIndex == 1)
             {
                 PrepareLoad(currentSong);
             }
             else if (MainPivot.SelectedIndex == 2)
             {
                 LoadLyrics(currentSong);
             }
             ChangeSong.Begin();
             ShowVideo();
         }
     });
 }
示例#2
0
 void Start()
 {
     songChanger = GetComponent <ChangeSong>();
 }