Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.5.0, 3.6.0
-
None
-
None
-
iOS, all versions
Description
Before the initiation of the recording process in iOS, the media API ensures that the application is recording-capable, by setting the category of the AVAudioSession to "AVAudioSessionCategoryRecord". This behavior is incorrect in the case that the category is already set to the value of "AVAudioSessionCategoryPlayAndRecord". Obviously in this case, the application already has recording capabilities, and changing the category to record-only deprives the app of being able to play video at the same time.
The only possible workaround to this, is setting the AVAudioSession category to play-and-record after the recording has started, and then initiate video play. However, this may be unacceptable in various scenarios. Thus, the Media plugin should first check if the audio session is already configured for play-and-record, and if not, then set the session category to record-only.