Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
关于双高红色录音状态栏有很多问题(here,here ),但是当应用程序退出到后台时,所有这些问题都参考闪烁。我正在闪光,我从AVCaptureSession设置中假设,而应用程序在前台。
AVCaptureSession
有谁之前经历过这个吗?
您必须从AVCaptureSession
[self.captureSession removeInput:audioIn];
其中 theaudioIn是AVCaptureDeviceInput在 init 方法中初始化的对象。
audioIn
AVCaptureDeviceInput
解释: 由于过渡,您会得到闪光。当您从视图 A 转到视图 B,并且在视图 A 中分配了对象时。您会得到一个闪光,因为当视图 B 出现时,视图 A 仍然没有释放对象。所以它仍然被视图A在“后台”使用。当你在通话时,在通话时打开一个应用程序是一样的。