Bassdrive Windows Phone 7 Mango (WP7) App

When I got my Windows 7 Phone a few months ago, I started playing around with a few things to see what it could do and what the SDK was like. A little while later I was listening to Bassdrive and I thought I’d see how quickly I could make an app similar to the iOS version I use on my iPhone. I spent an evening on it at first, a few months ago now and tonight I’ve just got around to finishing it. Don’t expect anything too good, as I did it for fun in a…

Read More

HttpWebRequest causes System.NotSupportedException' occurred in System.Windows.dll.

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…

Read More

Making BackgroundAudioPlayer on Windows Phone 7 work with a Shoutcast stream

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…

Read More