|
-
May 24th, 2013, 06:21 AM
#1
Thread Starter
Hyperactive Member
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
-
May 24th, 2013, 08:26 AM
#2
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
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
May 24th, 2013, 08:32 AM
#3
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
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
May 24th, 2013, 02:49 PM
#4
Thread Starter
Hyperactive Member
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
-
May 24th, 2013, 04:01 PM
#5
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
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
May 24th, 2013, 06:34 PM
#6
Thread Starter
Hyperactive Member
Re: Windows Media Player - Reading Media List/Songs
 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
-
May 24th, 2013, 08:38 PM
#7
Re: Windows Media Player - Reading Media List/Songs
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.
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
May 25th, 2013, 03:57 AM
#8
Thread Starter
Hyperactive Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|