Trying to use the BackgroundAudioAgent just like a previous post: How do I stream an MP3 over HTTP in the background?
The answer says to just put the radioreference.relay.com URL in an AudioTrack object.
Here's my code:
// A playlist made up of AudioTrack items.
private static List<AudioTrack> _playList = new List<AudioTrack>
{
new AudioTrack(new Uri("Ring01.wma", UriKind.Relative),
"Ringtone 1",
"Windows Phone",
"Windows Phone Ringtones",
//new Uri("shared/media/Ring01.jpg", UriKind.Relative)),
null),
// A remote URI
new AudioTrack(new Uri("http://relay.radioreference.com:80/346246215", UriKind.RelativeOrAbsolute),
"Title",
"Artist",
"Album",
null),
// A remote URI
new AudioTrack(new Uri("http://traffic.libsyn.com/wpradio/WPRadio_29.mp3", UriKind.Absolute),
"Episode 29",
"Windows Phone Radio",
"Windows Phone Radio Podcast",
//new Uri("shared/media/Episode29.jpg", UriKind.Relative))
null)
};
From there it's just the sample code from Microsoft (http://go.microsoft.com/fwlink/?LinkId=226292).
The first and third track from the sample play, but the radioreference.com track doesn't work. I've tried removing the :80, changing the UriKind to Absolute, removing the http, etc. It winds up calling the OnError handler in the sample code and just bails out.
Any other ideas on this?