IOS 5 No audio when playing a video with Silent mode on with a buzztouch app

前端 未结 3 1524
后悔当初
后悔当初 2021-01-06 06:37

I have done several apps with buzztouch for Iphone and Ipads, here is a free one as an example :

http://itunes.apple.com/us/app/lr-basics-free-edition/id497563707?mt

3条回答
  •  温柔的废话
    2021-01-06 06:53

    Right from documentation - iOS has 6 audio session categories out of that 3 affects the behavior of Slient switch:

    AVAudioSessionCategoryAmbient or the equivalent kAudioSessionCategory_AmbientSound— Using this category, your audio is silenced by the Ring/Silent switch and when the screen locks. Used when we want our app audio with built-in app audio

    AVAudioSessionCategorySoloAmbient or the equivalent kAudioSessionCategory_SoloAmbientSound—Use this category for an application whose audio you want silenced when the user switches the Ring/Silent switch to the “silent” position and when the screen locks. This is the default category

    AVAudioSessionCategoryPlayback or the equivalent kAudioSessionCategory_MediaPlayback—Use this category for an application whose audio playback is of primary importance. Your audio plays even with the screen locked and with the Ring/Silent switch set to silent.

提交回复
热议问题