AVAudioSessionDelegate called at endInterruption, but beginInterruption not called

前端 未结 5 915
失恋的感觉
失恋的感觉 2020-12-29 10:06

I\'m setting up an AVAudioSession when the app launches and setting the delegate to the appDelegate. Everything seems to be working (playback, etc) except that beginInterrup

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-29 10:42

    I can confirm that using the C api, the interruption method is also not called when the interruption begins; only when it ends

    (AudioSessionInitialize (nil, nil, interruptionListenerCallback, (__bridge void *)(self));
    

    I've also filed a bug report with apple for the issue.

    Edit: This is fixed in iOS 6.1 (but not iOS 6.0.1)

提交回复
热议问题