Results 1 to 8 of 8

Thread: Windows Media Player - Reading Media List/Songs

  1. #1

    Thread Starter
    Hyperactive Member Pozzi's Avatar
    Join Date
    Feb 2001
    Location
    The Stones!
    Posts
    507

    Question 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
    VB.Net (VS 2010)

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,422

    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

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,422

    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

  4. #4

    Thread Starter
    Hyperactive Member Pozzi's Avatar
    Join Date
    Feb 2001
    Location
    The Stones!
    Posts
    507

    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
    VB.Net (VS 2010)

  5. #5
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    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!

  6. #6

    Thread Starter
    Hyperactive Member Pozzi's Avatar
    Join Date
    Feb 2001
    Location
    The Stones!
    Posts
    507

    Re: Windows Media Player - Reading Media List/Songs

    Quote Originally Posted by dunfiddlin View Post
    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
    VB.Net (VS 2010)

  7. #7
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    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!

  8. #8

    Thread Starter
    Hyperactive Member Pozzi's Avatar
    Join Date
    Feb 2001
    Location
    The Stones!
    Posts
    507

    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
    VB.Net (VS 2010)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width