开发者

iPhone SDK SDL_openAudio with Multitasking Support

开发者 https://www.devze.com 2023-02-04 22:37 出处:网络
I\'m playing audio from a Online Live RTPS Stream with ffmpeg(because Apple doesn\'t support rtsp live streaming).

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开发者_Go百科 when the App is entering Background both Streams are played.

What can I do to fix this?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消