The following forum(s) are migrating to a new home on Microsoft Q&A (Preview): Developing Universal Windows apps!

Ask new questions on Microsoft Q&A (Preview).
Interact with existing posts until December 13, 2019, after which content will be closed to all new and existing posts.

Learn More

Unable to retreieve album art from music files or folders in WP 8.1 RRS feed

  • Question

  • I am trying to access music metadata. I am able to get all other meta data except album art. How can I get album art?

    IReadOnlyList<StorageFolder> MusicFolders = 
        await KnownFolders.MusicLibrary.GetFoldersAsync(CommonFolderQuery.GroupByAlbum);
    foreach (var file in MusicFolderList)
        StorageFolder mFolder = (StorageFolder)file;
        MusicAlbums obj = new MusicAlbums();
        obj.album = mFolder.Name;
        ThumbnailMode thumbnailMode = ThumbnailMode.MusicView;
        uint size = 100;
        StorageItemThumbnail thumbnail = await file.GetThumbnailAsync(thumbnailMode, size);
        BitmapImage AlbumThumb = new BitmapImage();
        obj.folderArt = AlbumThumb;
        MusicProperties musicProperties = 
            await mFolder.Properties.GetMusicPropertiesAsync();
        obj.artist = musicProperties.Artist;                       
    public class MusicAlbums
        public BitmapImage folderArt { get; set; }
        public string album { get; set; }
        public string artist { get; set; }

    Friday, November 28, 2014 9:37 AM