diff --git a/Sources/PlayerBridge.swift b/Sources/PlayerBridge.swift index 203d060..94cd570 100644 --- a/Sources/PlayerBridge.swift +++ b/Sources/PlayerBridge.swift @@ -166,12 +166,11 @@ final class PlayerBridge: ObservableObject { private func configureAudioSession() { do { let session = AVAudioSession.sharedInstance() - // .moviePlayback 优化视频影音同步,同时兼容纯音频 - try session.setCategory(.playback, mode: .moviePlayback) + try session.setCategory(.playback, mode: .default) try session.setActive(true) let route = session.currentRoute let outputs = route.outputs.map { "\($0.portName)(\($0.portType.rawValue))" }.joined(separator: ", ") - NSLog("[MiniPlayer] AVAudioSession configured: playback+moviePlayback, outputs=[%@]", outputs) + NSLog("[MiniPlayer] AVAudioSession configured: playback, outputs=[%@]", outputs) } catch { NSLog("[MiniPlayer] AVAudioSession setup failed: %@", error.localizedDescription) }