Search code examples
c#iphoneiosxamarin.iosaudio-streaming

Playing .m3u8 audio stream file through monotouch


I am currently developing an iPhone app that streams audio. The URL I wish to stream is an m3u8 file at the following link:

http://216.246.37.52:1935/highveld/highveld.stream/playlist.m3u8

I can load the NSRequest on a webview which will open the stream but this pushes my application to the background when it opens the stream and the only way to get back to the app is to close the stream.

I would prefer a play button on my view which will start playing the stream when it is clicked and the user should be able to switch tabs within the application without stopping the stream.

In essence, the stream should continue playing until the user deliberately stops it. If somebody can give me any idea as to how to do this within MonoTouch and C# for an iPhone application or point me to a tutorial, that would be great. I have scoured Google but with no avail.


Solution

  • @Joachim. I have also build a streaming solution and accomplished this in a different way. With a bit of poking around I found the actual Shoutcast stream at http://216.246.37.52:8028/. Not sure if this will help you in your situation. Perhaps you can generate your own playlist. Good luck!. Riaan