Page 1 of 1

how to set the AVAudioSessionCategory to AVAudioSessionCategoryPlayback

Posted: Sun Oct 28, 2012 9:35 pm
by rammohan.acharyadasa

i downloaded app from tiggzi,
open tiggzi project,
export--xcode
to play audio in background in io6,
i need to do below

  1. UIBackgroundModes set to audio

  2. AVAudioSessionCategory to AVAudioSessionCategoryPlayback
    i did 1st one using .pslit in xcode
    but how to do 2nd one ( how to AVAudioSessionCategory to AVAudioSessionCategoryPlayback)

    some links i tried to do
    http://developer.apple.com/library/io...

    http://stackoverflow.com/questions/12...

    http://stackoverflow.com/questions/30...

    pls help me on this. i need this asap


how to set the AVAudioSessionCategory to AVAudioSessionCategoryPlayback

Posted: Sun Oct 28, 2012 11:44 pm
by maxkatz

Those links and solutions are your best sources. You could also ask PhoneGap directly.


how to set the AVAudioSessionCategory to AVAudioSessionCategoryPlayback

Posted: Mon Oct 29, 2012 12:44 am
by rammohan.acharyadasa

Max,
i could able to set it correctly..
It is working great.....
Before ios6 it was working without setting up avaudiosession.
But with ios6 we should set it explicitly to play audio.


how to set the AVAudioSessionCategory to AVAudioSessionCategoryPlayback

Posted: Mon Oct 29, 2012 3:07 am
by maxkatz

It might work with PhoneGap 2.1 or higher which supports iOS 6. The current version in Tiggzi is 2.0.