IPhone SDK SDL_openAudio with multitasking support

I play audio from streaming RTPS in real time using ffmpeg (because Apple does not support rtsp live streaming).

Now I will play in my stream in the background. I started the theme in the background and registered the music to support the background.

When the application enters the background, NSThread pauses and then resumes after returning from the background.

If I start playing music (MP3-Stream) in an application that uses the official Apple Framework, then when the application is included in Background, both streams are played.

What can I do to fix this?

+3
source share
1 answer

Well, by popular request;), here is the answer:

-. : AudioSessionProgrammingGuide

+2

Source: https://habr.com/ru/post/1785474/


All Articles