DDN wrote:
[Quoted Text] > Anybody hi there! > > I'm in frustration....I need to query for bitrate,artist,title, etc > information of mediafile (mostly mp3) in my .NET 2.0 application (winforms) > Looked at the 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 (and frustrating me): > > 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 > > > > Is any other ways are exist? I.E.: > > ........ > > AxMediaPlayer.URL="C:\\myfile.mp3"; > > AxMediaPlayer.currentMedia.getItemInfo("Bitrate"); > > ......... >
You want "Windows Media Format 11 SDK" http://msdn2.microsoft.com/en-us/windowsmedia/bb190309.aspx
You may have to wrap some stuff up using COM Interop, but there is some managed sample code.
Glyn
|