Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CB-13774: repair broken recording and playback functionality on Android #164

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

carcus88
Copy link

Revert back to plugins original use of DEFAULT as the audio encode and decoder.

Platforms affected

Android

What does this PR do?

Puts the media encoder/decoder back to DEFAULT

What testing has been done on this change?

I created a repo that shows the current media plugin failing. Applying the code in this pull request will show it passing.

https://github.com/medsurvey/cordova-media-bug

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.

Checklist

Could not complete these as I don't have access

  • Reported an issue in the JIRA database
  • Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
  • [] Added automated test coverage as appropriate for this change.

Revert back to plugins original use of DEFAULT as the audio encode and decoder.
CB-13774: (android) Fix bug with media encoding/decoding
@janpio janpio changed the title Fix for CB-13774 CB-13774: repair broken recording and playback functionality on Android Aug 18, 2018
@janpio
Copy link
Member

janpio commented Oct 1, 2018

Hey, I just fixed the problem that caused Android tests to fail in master. Could you rebase this PR please? This should get rid of the Android failures and possibly fix all test failures for this PR.

@janpio
Copy link
Member

janpio commented Oct 3, 2018

Closing and re-opening to trigger a new CI/test run with new PR merge.

@janpio janpio closed this Oct 3, 2018
@janpio janpio reopened this Oct 3, 2018
@Gerarddus
Copy link

I had the same problem, could not record and playback on Nexus 7, Android 4.4.4. It did work with version 2.4.1.
commit c6c59cc was the culprit.

Current version 5.0.2 works on
Huawai P10 Lite Android 8
Motorola MotoG Android 6.0.1
Nexus 5, Android 8.0.

The proposed PR does not break any of the above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants