[[AVAudioSession sharedInstance] setActive:NO withOptions:AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation error:nil]
s***@163.com
- 发布:2021-11-02 18:45
- 更新:2021-11-03 11:34
- 阅读:470
s***@163.com (作者)
已解决 setActivewithOptionserror('NO', 'AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation', null)
dafeizhu
这样子是错的,你查一下iOS的文档,'YES'/'NO'实际上就是true/false,而参数AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation代表的值是1,所以应该setActivewithOptionserror(false, 1, null)这样写才对
2022-10-24 14:32