我想为Windows Phone 7制作一个自定义媒体播放器,它可以在http://s2.voscast.com:8164播放shoutcast无线电频道。我已尝试使用此代码,但它不起作用。
有人能帮助我吗?
namespace MediaticPlayer
{
public partial class RadioPlayer : PhoneApplicationPage
{
public RadioPlayer()
{
InitializeComponent();
this.Loaded += new RoutedEventHandler(MainPage_Loaded);
}
void MainPage_Loaded(object sender, RoutedEventArgs e)
{
MediaPlayerLauncher mediaPlayerLauncher = new MediaPlayerLauncher() { Media = new Uri("http://s2.voscast.com:8164", UriKind.Absolute) };
mediaPlayerLauncher.Show();
}
}
}
答案 0 :(得分:0)
这是指向服务器摘要页面的链接。与Shoutcast 1不同,SC2服务器允许多个流/挂载点。由于这种能力,SC2流不像SC1流一样位于根中。了解如何使用您的实际流的网址:
http://198.178.123.5:8164/stream/1/