Exemplo n.º 1
0
 public MediaState PlayAlbumArtist(AlbumArtist artist, bool enqueue)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 2
0
 public IEnumerable<Track> GetTracksByAlbumArtist(AlbumArtist artist)
 {
     return getTracksByArtist(artist.Name, true);
 }
Exemplo n.º 3
0
        private static void CacheAlbumArtists(WindowsMediaPlayer mediaPlayer)
        {
            // Get the album artists
            IWMPStringCollection artistNames = mediaPlayer.mediaCollection
                .getAttributeStringCollection(MediaAttributes.WMAlbumArtist, MediaType.Audio);

            for (int i = 0; i < artistNames.count; i++)
            {
                if (!_albumArtistCache.ContainsKey(artistNames.Item(i).ToLower()))
                {
                    string artistName = artistNames.Item(i);
                    if (artistName != null && !string.IsNullOrEmpty(artistName))
                    {
                        AlbumArtist artist = new AlbumArtist()
                        {
                            Name = artistName,
                            Albums = getAlbumsByArtist(mediaPlayer, artistNames.Item(i), true)
                        };

                        _albumArtistCache.Add(artist.Name.ToLower(), artist);
                    }
                }
            }
        }
Exemplo n.º 4
0
 public static AlbumArtist GetAlbumArtist(this IITFileOrCDTrack track)
 {
     AlbumArtist artist = new AlbumArtist();
     artist.Name = track.AlbumArtist;
     return artist;
 }
Exemplo n.º 5
0
 public MediaState PlayAlbumArtist(AlbumArtist artist, bool enqueue)
 {
     MediaLibraryService service = new MediaLibraryService();
     return PlayTracks(service.GetTracksByAlbumArtist(artist), enqueue);
 }
Exemplo n.º 6
0
 public IEnumerable<Track> GetTracksByAlbumArtist(AlbumArtist artist)
 {
     throw new NotImplementedException();
 }