Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone SDK SDL_openAudio with Multitasking Support

I'm playing audio from a Online Live RTPS Stream with ffmpeg(because Apple doesn't support rtsp live streaming).

Now I would play my Stream in the background. I started a thread in the background and registered the music for Background support.

When the Application is entering in Background the NSThread is paused, and then Resuming after returning from background.

If I start playing a Music (MP3-Stream) in the Application which use official Apple Frameworks then when the App is entering Background both Streams are played.

What can I do to fix this?

like image 867
brokedid Avatar asked Sep 01 '26 11:09

brokedid


1 Answers

Well, by popular demand ;), here comes the answer;

This very much sounds like an audio-session issue. You should try and fiddle a little with the session attributes: AudioSessionProgrammingGuide

like image 97
Till Avatar answered Sep 04 '26 03:09

Till



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!