Nikos Nakas created CB-6820:
-------------------------------

             Summary: iOS Media plugin: cannot play video and record audio 
simultaneously
                 Key: CB-6820
                 URL: https://issues.apache.org/jira/browse/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
(v6.2#6252)

Reply via email to