When using HttpWebRequest asynchronously in a Windows Phone 7 app, the console in Visual Studio was outputting: A first chance exception of type 'System.NotSupportedException' occurred in System.Windows.dll The fix was basically adding AllowReadStreamBuffering = true to the HttpWebRequest object. For example: var request = HttpWebRequest.CreateHttp(feed.Url); request.AllowReadStreamBuffering = true; This error didn’t cause my app to crash or any other problems other than the “first chanc…
All posts in windowsphone
Starting with the Microsoft example code for the Background Audio Player, it was less than obvious how to make it work with a Shoutcast stream. If you go to a Shoutcast stream with using a standard HTTP GET request (i.e. from a web browser), you’ll get a web page, giving some details on the stream. The trick to making it actually stream the audio is adding a slash then a semi-colon followed by a MP3 filename. Here is an example using a BassDrive.com stream (paste the full url without the quotes…