-->

Audio is no longer working on iPad3 [closed]

2019-08-30 03:06发布

问题:

I've got two reports from users of my app, running iOS 5.1.1 on iPad 3 (iPad 1 & 2 are working fine), that the audio is no longer working.

I'm using the AVAudioPlayer from the AVFoundation library.

Is anybody else experiencing any similar problems.

What to do now?

回答1:

Also give this code for your audioPlayer

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

Hope it will solve your issue.