Search code examples
c#windows-phone-8browserrtspbackground-audio

Set webbrowser audio to stream to media player so it can be used in background on windows phone 8


I am making a netradio app on windows phone, my problem is that netradio uses the RTSP audio format and native media player in Windows Phone does not support RTSP.

As a workaround, I have to navigate to a webpage that then handles the audio.

This works fine, and plays the radio, but the problem is that as soon as the app is put in the background the music stops.

Is there a way to keep the webbrowser audio playing?


Solution

  • You could use the BackgroundAudioPlayer within your solution as another project where you could go through a sample here.

    And also the sample from Codeplex you can try the Windows Phone Streaming Media.

    https://phonesm.codeplex.com/

    Hope it helps!