Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

反馈一个相机拍完照后,没有音频输入输出的坑 #725

Open
imbaTao opened this issue May 19, 2022 · 0 comments
Open

反馈一个相机拍完照后,没有音频输入输出的坑 #725

imbaTao opened this issue May 19, 2022 · 0 comments

Comments

@imbaTao
Copy link

imbaTao commented May 19, 2022

反馈一个BUG,避免其他兄嘚也采坑

ZLCustomCamera deinit 的时候调用了这行代码,会导致我的工程语音模块没有声音输入和输出,我内部用到了AVAudioSession相关的代码
try? AVAudioSession.sharedInstance().setActive(false, options: .notifyOthersOnDeactivation)

解决办法:
在自己的工程中调用
try? AVAudioSession.sharedInstance().setActive(true, options: .notifyOthersOnDeactivation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant