Reputation: 11
I am making an app which plays a Shoutcast stream but I cannot get the stream to play. I know the code works for other streams.
How do I get the Shoutcast stream to work?
Here's the code from the audio playback agent:
private void play(BackgroundAudioPlayer player)
{
if (player.Track == null)
{
player.Track = new AudioTrack(new Uri(streamURL, UriKind.Absolute), "Show", "Station", "", null);
}
player.Volume = 1;
if (player.PlayerState != PlayState.Playing)
{
player.Play();
}
}
Upvotes: 1
Views: 794
Reputation: 464
see an example : http://shoutcastmss.codeplex.com/ ShoutCasts are not very easy to stream .
Upvotes: 1