开发者

Radio Streaming Windows Phone

开发者 https://www.devze.com 2023-04-01 02:00 出处:网络
I\'m interested in radio streaming for windows 开发者_运维知识库phone, .pls files to be exact. I tried the following methods :

I'm interested in radio streaming for windows 开发者_运维知识库phone, .pls files to be exact. I tried the following methods :

1)pass the pls url to the windows media player :

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

Note that I'm using the emulator and i also tried the stream url from the pls( opened it in notepad and tried all the urls )

I've also read that one solution was to read the continuous stream, pass it to a media stream source and to a media element. Has anyone tried this? Any help would be appreciated! Thanks!


Check that your stream is supported (both by the phone and the emulator).
If not you'll need to manage (and possibly convert) the stream yourself.

I don know someone who has used the ManagedMediaHelpers to play HLS audio streams on the phone but it is far from straight forward and unable to share examples - but it can be done.

0

精彩评论

暂无评论...
验证码 换一张
取 消