15.听筒和扬声器打开方式

2020-11-13  本文已影响0人  bytebytebyte
//听筒打开
        [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayAndRecord error:nil];

   

//扬声器打开
        [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayAndRecord withOptions:AVAudioSessionCategoryOptionDefaultToSpeaker error:nil]; 
上一篇 下一篇

猜你喜欢

热点阅读