2

I am trying to make an application that would play an audio stream (mp3) from the following URL http://icecast6.play.cz/radio1-128.mp3. I am struggling to get it working. Is there any default support for cases like these? That the content is continuously streamed?

I have tried to use Background Audio Agent and set Media Element but none of that has been working for me. Would Background Audio Streamer be an option for me? I would be happy for any similar example that I would use to my advantage.

Thank you

Jakub Holovsky
  • 6,543
  • 10
  • 54
  • 98

3 Answers3

1

I found phonesm project on codeplex that provides great examples and functionality for implementing internet audio streaming.

Jakub Holovsky
  • 6,543
  • 10
  • 54
  • 98
0

You need to use BackgroundAudioPlayer by creating another project and adding its reference to your project.

Check this link:

http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202978%28v=vs.105%29.aspx

vITs
  • 1,651
  • 12
  • 30
  • Hey Vits, that was the first approach I took but it does not work by default for audio streaming (audio that is constantly streamed at one location). Or did I miss some setting that will enable this? – Jakub Holovsky May 08 '14 at 21:16
  • [Download Sample](http://code.msdn.microsoft.com/wpapps/Background-Audio-Player-b5f70b13/file/86859/2/Background%20Audio%20Player%20Sample.zip).it will clear your ideas.you just need to pass your url to create Uri for BAckgroundAudioPlayer. – vITs May 09 '14 at 05:49
  • Hello, it does not work for me. I changed the URL in the example. Please note that I am talking about AUDIO STREAMING, not audio file placed on remote server. If you open the file you will see that it is a continuous stream from a radio. Thank you – Jakub Holovsky May 09 '14 at 09:08
  • oh..oh..got your point.it is not a mp3 file.So in this case you need to use AudioStreamingAgent. check this sample it will definitely guide you [Download sample](http://code.msdn.microsoft.com/wpapps/Background-Audio-Streamer-e85b8deb/file/62717/12/Background%20Audio%20Streamer%20Sample.zip) – vITs May 09 '14 at 09:40
0

You can use Microsoft player framework.

For more details Player Framework

reza.cse08
  • 5,938
  • 48
  • 39