Reputation: 906
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!
Upvotes: 4
Views: 1980
Reputation: 65564
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.
Upvotes: 3