ios - AVAudioPlay模拟器可以播放录音,但是真机不行
大家讲道理
大家讲道理 2017-04-18 09:38:12
0
1
264
  1. @property (strong, nonatomic) AVAudioPlayer *audioPlayer;

  2. [session setCategory:AVAudioSessionCategoryPlayAndRecord withOptions:AVAudioSessionCategoryOptionDefaultToSpeaker error:&sessionError];

  3. audioPlayerDidFinishPlaying:successfully: 可以进入,并且返回的flag是YES

  4. 使用caf文件

  5. 点击播放按钮时创建AVAudioPlayer对象

  6. 耳机同样无声音

  7. iOS10,Xcode8

求解,多谢!

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

Antworte allen(1)
PHPzhong

问题解决了,恢复出厂设置,重装App

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage