user2512196
user2512196

Reputation: 11

Windows Phone 8 Shoutcast not playing

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

Answers (1)

Ali NGame
Ali NGame

Reputation: 464

see an example : http://shoutcastmss.codeplex.com/ ShoutCasts are not very easy to stream .

Upvotes: 1

Related Questions