我正在制作一个播放Shoutcast流的应用,但我无法播放流。我知道代码适用于其他流。
如何让Shoutcast流工作?
以下是音频播放代理的代码:
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();
}
}