public void PlayIndex(int index) { position = 0; _playerState.SetPlayerState(PlayerState.Playing); timer.Start(); PlayingTrack = _nowPlaying.NowPlayingList[index]; }
public bool PlayPath(string path) { var match = _nowPlaying.NowPlayingList.Find(metadata => metadata._id == path); if (match == null) { return(false); } PlayingTrack = match; return(true); }