AVAudioSession modes, categories and lock screen controls

Hi,


In our application we are using Spotify Audio Playback frame work (SpotifyAudioPlayback.framework) to play songs from that provider. Everything seems ok and when user lock his screen he can change music volume using device sound control buttons.


Sometimes we need to switch our AVAudioSessionMode to AVAudioSessionModeVideoChat because user need to record video and voice. And if in this mode user lock his screen he can't control sound volume anymore. Did mode changing affects lock screen sound controls? Can we have AVAudioSessionModeVideoChat mode on and ability to controlls sound volume during locked device?


Our AVAudioSession settings are :

Category : AVAudioSessionCategoryPlayAndRecord

Mode : AVAudioSessionModeVideoChat
Options : AVAudioSessionCategoryOptionDefaultToSpeaker, AVAudioSessionCategoryOptionAllowBluetoothA2DP

Thanks.

Replies

Did you get this working?