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

Capture audio should reset AVAudioSession when finished recording

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.9.0
    • Fix Version/s: 3.6.0
    • Labels:
      None
    • Environment:

      iOS

      Description

      After recording, the AVAudioSession is left in record mode. This prevents VoiceOver from working properly. Steps to reproduce:
      1) Turn on VoiceOver
      2) call captureAudio api to bring up the recording UI
      3) record something and click done
      4) WithOUT playing the recording, call the captureAudio api to bring up the recording UI again. Note that this time no information is spoken by VoiceOver. This is because the AVAudioSession category is left in record mode.

      The solution is to store the current AVAudioSession.category when the view is loaded and reset back to that category when recording is completed (the mode is set in the code to AVAudioSessionCategoryRecord in order to record).

      Becky has a fix for this it just may take me a bit to get my system set up to post a patch or check in a fix.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              becka11y Becky Gibson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: