【问题标题】:Audio in Background not working on Simulator后台音频在模拟器上不起作用
【发布时间】:2018-11-17 03:14:19
【问题描述】:

后台音频在设备上完美运行,但在与工作设备具有相同 iOS 版本 (11.4) 的模拟器(不同机器)上无法正常运行。

设置:

 AKSettings.playbackWhileMuted = true
 do { try AudioKit.start() } ...

Info.plist:

必需的背景模式 -> 应用使用 AirPlay 播放音频或流式传输音频/视频

有什么想法吗?

【问题讨论】:

    标签: ios swift audio audiokit


    【解决方案1】:

    我的理解是模拟器基本上不支持后台模式。参考:

    Play music in the background using AVAudioplayer

    How to continue audio playback in background mode

    【讨论】:

      猜你喜欢
      • 2018-03-17
      • 2014-06-18
      • 2019-06-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-23
      相关资源
      最近更新 更多