cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-6820) iOS Media plugin: cannot play video and record audio simultaneously
Date Tue, 26 Aug 2014 23:49:58 GMT

     [ https://issues.apache.org/jira/browse/CB-6820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shazron Abdullah updated CB-6820:
---------------------------------

    Component/s:     (was: iOS)

> 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: Plugin Media
>    Affects Versions: 3.5.0, 3.6.0
>         Environment: iOS, all versions
>            Reporter: Nikos Nakas
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> 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)

Mime
View raw message