SimpleAudioPlayer icon indicating copy to clipboard operation
SimpleAudioPlayer copied to clipboard

Stops music from playing

Open MengTo opened this issue 11 years ago • 3 comments

It seems that the sound will stop music from playing in the background, such as from Spotify. Any way to fix this?

MengTo avatar May 26 '14 21:05 MengTo

thanks, I’m looking into it.  --  Pawel Maczewski Check out my newest FREE app Newborn Logbook: https://itunes.apple.com/us/app/newborn-logbook/id824561454?mt=8 Check Language Skill Builder: https://itunes.apple.com/us/app/language-skill-builder-central/id724915255?mt=8

On May 26, 2014 at 23:44:28 , Meng To ([email protected]) wrote:

It seems that the sound will stop music from playing in the background, such as from Spotify. Any way to fix this?

— Reply to this email directly or view it on GitHub.

owlcoding avatar May 26 '14 21:05 owlcoding

is this bug is still going?

pasevin avatar Jan 30 '15 09:01 pasevin

Oh, I found out you can fix it just by adding this to your AppDelegate:

#import <AVFoundation/AVAudioSession.h>

[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil];

pasevin avatar Jan 30 '15 13:01 pasevin