I think because you install audioSession.activebefore tuning in MixWithOthers. Move audioSession.setActivebelow the if block as follows:
if audioSession.setCategory(AVAudioSessionCategoryPlayback, withOptions:AVAudioSessionCategoryOptions.MixWithOthers,
error: &audioSessionError) {
println("Successfully set the audio session")
} else {
println("Could not set the audio session")
}
audioSession.setActive(true, error: nil)
source
share