I am searching a way to get the bitrate and duration from a audio stream in C# on Windows Phone 7 platform.
First, I, tried to get it by calculate using formula (let's say that i can have duration of stream, that i am going to download as number)
bitrate = ((((filesize)/duration)/1024)*8)
The only solution seems to be, a well written class that i had made whitch reads the bytes of the song's header (mp3 container) and extracts details like duration and bitrate.
An another elegant solution i found whitch that does not meet my requirement is to be played first and use the AudioBackroundAgent to take theese details, then we can do the math with filesize and duration of track to get the bitrate!