cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikos Nakas (JIRA)" <>
Subject [jira] [Created] (CB-6820) iOS Media plugin: cannot play video and record audio simultaneously
Date Fri, 30 May 2014 13:41:01 GMT
Nikos Nakas created CB-6820:

             Summary: iOS Media plugin: cannot play video and record audio simultaneously
                 Key: CB-6820
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS, Plugin Media
    Affects Versions: 3.5.0, 3.6.0
         Environment: iOS, all versions
            Reporter: Nikos Nakas

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.

This message was sent by Atlassian JIRA

View raw message