How to query mediafile tag information with WMP object ? RRS feed

  • Question

  • I'm new to .NET and writing a simple application in VS 2005.

    I need to query for bitrate,artist,title, etc information of mediafile (mostly mp3)


    I look at Windows Media Player SDK documentation and see two ways:

    1. add my mediafile to WMP media library and after that query its attributes

    2. start playing my mediafile and immediately query attributes and stop playing


    All two ways are no good in my opinion:

    1. because we may do not have write access to user medialibrary (to perform cycle "add->query info->delete")

    2. because user workstation may haven't got any sound devices at all and playing will fail. Second it's be very funny - start playing file to query his properties Smile


    Is any other ways are exist? I.E.:





    Tuesday, May 29, 2007 9:34 AM


All replies