public void Play(Lala.API.Song song) { Stop(); Lala.API.Instance.CurrentUser.Library.Playing.CurrentSong = song; NowPlaying = song; PlaySong(song.PlayLink); }
public bool SongByToken(Song s) { if (s.PlayToken == CurrentSong.PlayToken) return true; else return false; }
public Song GetPrevious(Song CurrentSong) { int CurrentIndex = Songs.FindIndex(SongByToken); Song NextSong = Songs[CurrentIndex - 1]; return NextSong; }
public Song GetNext(Song CurrentSong) { int CurrentIndex = Songs.FindIndex(SongByToken); Song NextSong = Songs[CurrentIndex + 1]; return NextSong; }
public void AddSongToQueue(Song song) { Lala.API.Instance.CurrentUser.Queue.Add(song); QueueModified(this, new EventArgs()); }
public Song GetNext() { Song NextSong = Songs[0]; return(NextSong); }