Windows Media Player - Reading Media List/Songs
Good Afternoon,
I wonder if anyone has had experience with using Windows Media Player?
I'm trying to put together a simple 'Jukebox' using VB.Net & Windows Media Player.
What I'd like to do is retrieve a list of all the songs I currently have in my Music Library, but I'm not 100% sure where to get this from or how?
Is it also possible to retrieve the album artwork that is also shown in Windows Media?
Any pointers in the right direction or assistance would be gratefully received.
Many Thanks & Regards
Re: Windows Media Player - Reading Media List/Songs
I haven't tried this but it works (apparently):
http://www.youtube.com/watch?v=ZKhc5G-vUYU
Re: Windows Media Player - Reading Media List/Songs
Code:
Dim allMusic() As String = My.Computer.FileSystem.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.MyMusic), FileIO.SearchOption.SearchAllSubDirectories, "*.mp3", "*.wma").ToArray
Re: Windows Media Player - Reading Media List/Songs
Hi Paul,
Thanks for your replies.
The first one is a usefull one to know, but I'd like to get the artwork from the PC rather than having to rely on the internet.
I presume the artwork associated to the track is either on the PC or is it part of the attributes to the track media information?
The second one is spot on, many thanks.
Regards
Re: Windows Media Player - Reading Media List/Songs
Artwork is in hidden files in the folder for each 'album'
AlbumArt_[serial no]_large.jpg
AlbumArt_[serial no]_small.jpg
AlbumArtSmall.jpg
Re: Windows Media Player - Reading Media List/Songs
Quote:
Originally Posted by
dunfiddlin
Artwork is in hidden files in the folder for each 'album'
AlbumArt_[serial no]_large.jpg
AlbumArt_[serial no]_small.jpg
AlbumArtSmall.jpg
Hi & Thanks for the reply.
This doesn't appear to be the case on my PC.
I've checked my folder options and I've got 'Show Hidden Files, Folders & Drives' enabled but I don't have any artwork in the folders containing either the Album or Songs.
I've got my music stored in "C:\Users\####\Music"
Thanks & Regards,
Andrew
Re: Windows Media Player - Reading Media List/Songs
Quote:
I've got my music stored in "C:\Users\####\Music"
Which Windows version are you using?
Try a general search for AlbumArt*.jpg on your Documents folder to start with and then further afield if that doesn't yield anything. It must be there somewhere if you're seeing it in Media Player.
Re: Windows Media Player - Reading Media List/Songs
Hi,
I found them and you were correct in your first reply.
Even though I had the option 'Show Hidden Files, Folders or Drives' enabled, I had to disable the option 'Hide Protected Operating System Files (Recommended)'.
Once I'd unticked this they were visible in the Albums folder.
Thanks & Regards,
Andrew