Detect audio playing inside my app

时间:2016-08-31 17:19:42

标签: ios audio avfoundation

in my iOS app I have an Audio that is played beyond my control (imported framework). All I want do to is detect that sound and duck (lower the volume of) my background song.

I tested with AVAudioSession's otherAudioPlaying and it, correctly, returns false. Because no other app is playing but mine.

Is there a way to accomplish that?

0 个答案:

没有答案