我认为这可能取决于您为 AVAudioSession 指定的类别类型...在初始化会话时,请确保将其设置为 AVAudioSessionCategoryPlayback。
AVAudioSessionCategoryPlayback