No AVAudioSessionCategory can handle video record button with start/stop sound & silence ring

Originator:raphael
Number:rdar://19685345 Date Originated:02-Feb-2015 06:48 PM
Status:Open Resolved:
Product:iOS SDK Product Version:8.1.3
Classification:Enhancement Reproducible:Always
 
Consider an app that has a shutter button to trigger video recording, shutter button emits a sound when starting / stopping.
This sound should be silenced when the silent ring is set to silent.

The only AVAudioSession that can handle simultaneous playback and recording is PlayAndRecord. However, this category does not honor the silence ring (will alway playback audio). Moreover, there is no API to determine if device is silenced (so that we could skip the sound ourselves). Hence, shutter sound will always play, even when device is silent. An alternative is to remove all start/stop sound from video recording apps, like Instagram does. But this is not a good UX. Apple's own camera app correctly handles that situation, possibly using private APIs.

Please consider providing an API that allows this *basic* behavior. Thanks.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!