Commit ce4a3f3e authored by pete谢兆麟's avatar pete谢兆麟

启动app 其他音乐停止的问题

parent 8b864b3b
......@@ -337,7 +337,7 @@ extension AppDelegate {
// 确保 AVAudioSession 被正确配置,以便在静音模式下也能正常播放音频
do {
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.playback)
try AVAudioSession.sharedInstance().setCategory(.playback, mode: .moviePlayback, options: .mixWithOthers)
try AVAudioSession.sharedInstance().setActive(true)
} catch let error as NSError {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment