//引入AVFoundation类库,设置播放模式就可以了

do {
      try AVAudioSession.sharedInstance().overrideOutputAudioPort(AVAudioSessionPortOverride.speaker)
} catch _ {

}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-11-17
  • 2021-10-20
  • 2021-11-17
猜你喜欢
  • 2022-12-23
  • 2021-11-17
  • 2021-07-31
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案