我正在制作一个播放 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();
}
}