Red banner comes and disappear suddenly when press home button during recording on going

后端 未结 1 1427
情书的邮戳
情书的邮戳 2021-01-06 23:50

I face one issue during recording is on going, if i press home button, i noticed \" Red banner comes and disappear suddenly\" and AVAudioRecorder can not cr

相关标签:
1条回答
  • 2021-01-07 00:19

    The "red banner" indicates that your application is currently using the microphone hardware. It is shown by applications that have active control over the main recording context, and hides when your application releases it's hold on the recording context (such as when the home button is pressed). Because you cannot predict when the home button will be pressed to exit your application, you will need to either support background recording to persist the banner (then gracefully release your context after a second or two to have the status bar animate back to black), or somehow terminate your context before the application closes.

    0 讨论(0)
提交回复
热议问题