Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6820

iOS Media plugin: cannot play video and record audio simultaneously

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.5.0, 3.6.0
    • None
    • cordova-plugin-media
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nachos Nikos Nakas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified