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

cordova-plugin-media broken recording and playback functionality

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • None
    • None
    • cordova-plugin-media
    • None
    • Android

    • Important

    Description

      The problem seems to be that somehow the encoder and decoder are set to different encoding types and are not compatible. Additionally its assuming an encoder is available on the platform and since the interface to the this object does not allow a way to specifying encoding I feel like the default may have been more appropriate.

      Currently the code is as follows

      this.recorder.setOutputFormat(MediaRecorder.OutputFormat.AAC_ADTS); // RAW_AMR);
      this.recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); //AMR_NB);
      

      But trying to play back the recorded audio fails with a decoder error

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mmitchell Mark Mitchell
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified