You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's working fine with another emulator. My problem was the Android emulator used an API older than 24.
In case anyone else without Android experience have the same problem here it's what I found. The pause method for Android MediaRecorder was introduced in API 24. That means that , the Android SDK you are using to build the application and the phone(emulator) , both have to support that API level or newer. I guess, would need to check at runtime the version of Android in which the app is running, and then show the pause button only if supported.
ERROR Error: Uncaught (in promise): Error: java.lang.NoSuchMethodError: no non-static method "Landroid/media/MediaRecorder;.pause()V"
Any idea of what might be the problem ? Is it because that method was introduced in API level 24?
When I call
this.recorder.start
orthis.recorder.stop
It works. But withthis.recorder.pause
it throws that error.The text was updated successfully, but these errors were encountered: