我很感興趣的電臺流的Windows Phone,.pls文件是確切的。我嘗試以下方法:無線電流Windows電話
1)請URL傳遞到Windows媒體播放器:
MediaPlayerLauncher mediaPlayerLauncher = new MediaPlayerLauncher();
mediaPlayerLauncher.Media = new Uri(@"http://.....pls", UriKind.Absolute);
mediaPlayerLauncher.Controls = MediaPlaybackControls.All;
mediaPlayerLauncher.Location = MediaLocationType.Data;
mediaPlayerLauncher.Show();
2)Smooth Streaming的
注意,我使用模擬器,我也嘗試了來自pls的流url(在記事本中打開它並嘗試所有的url)
我也讀過一種解決方案是讀取連續流,將它傳遞給媒體流源和媒體元素。有沒有人試過這個?任何幫助,將不勝感激!謝謝!
當你嘗試這些方法時發生了什麼?你有沒有得到一些例外?什麼沒有用? – Ran
媒體播放器說,它無法播放文件,流暢的流媒體沒有發生,當我檢查控制檯3 System.Xml.XmlException。當我嘗試連續流時,SmoothStreamingMediaElement的多個部分停止工作。 –