2012-08-17 55 views
0

我開始學習一些Silverlight編程爲Windows 8編寫一些東西,但還沒有用它做很多事情,或者用了音頻,但我試圖將播放列表使用MediaElement使用Silverlight MediaElement播放列表(.pls)

我想:

OutputMedia.Source=new Uri("http://provisioning.streamtheworld.com/pls/KISWFM.pls",UriKind.Absolute); 
OutputMedia.Play(); 

,但我什麼也沒聽到打,所以我必須承擔它不工作:)

誰能給我一些指點嗎?

+0

問題 *返回錯誤(!與否)的說明[閱讀PLS,提取文件名,播放它們](http://stackoverflow.com/a/8304270/266143)。 – CodeCaster 2012-08-17 12:10:45

+0

我也試過,如果我將URI更改爲其中一個URL(http://8283.live.streamtheworld.com:80/KISWFM_SC),我得到的結果相同,沒有任何反應...... – 2012-08-17 12:31:43

回答

0

嘗試https://shoutcastmss.codeplex.com/

Shoutcast的媒體流是一個媒體流 實施Shoutcast的協議的Silverlight。這個 MediaStreamSource允許Silverlight 4+ OOB和Windows Phone 7 應用程序使用MediaElement消費Shoutcast流。

目前,在Windows 手機上支持Mp3和AAC + Shoutcast流。但是,桌面Silverlight僅支持Mp3。

也支持有限的(即略微未測試的)M3u和PLS播放列表 支持。

請與下面的報告任何問題上發揮的Shoutcast流: * URI的問題流 *從Shoutcast的媒體流