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(); } }); }
void Start() { songChanger = GetComponent <ChangeSong>(); }