I have a UIWebview which play video from the web .
I would like it to work in background,so you hear the audio .
I have set the background mode in info
to play audio and airplay
.
I have set the session with :
//allow music app delegate
NSError *sessionError = nil;
NSError *activationError = nil;
[[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryPlayback error:&sessionError];
[[AVAudioSession sharedInstance] setActive: YES error: &activationError];
I have read : Continue playing audio from html5 player when in iOS background mode
and i read UIWebView: HTML5 audio pauses in iOS 6 when app enters background
Which offers the same thing . But still , when i go to background, it stops playing the video/ audio.(iPhone 4, iOS7,Xcode 6 ).
Is there something else i can do ?
thank you .