GetMetaMap / metamap-android-sdk

MetaMap Android SDK | https://www.metamap.com/
16 stars 9 forks source link

"No se puede reproducir el video" - VoiceLivenessFragment.setUpMediaRecorder #9

Closed ccparram closed 3 years ago

ccparram commented 3 years ago

An user with an Asus ZenFone 4 Max gets this error after trying to record the Liveness Video.

He enters this step, the camera works and he can see himself. He presses the record button, the video on the screen stops. He presses the stop button and gets the crash.

image

image

Fatal Exception: java.lang.IllegalStateException

android.media.MediaRecorder._setVideoSource (MediaRecorder.java)
android.media.MediaRecorder.setVideoSource (MediaRecorder.java:540)
com.matilock.mati_kyc_sdk.kyc.voiceliveness.VoiceLivenessFragment.setUpMediaRecorder (VoiceLivenessFragment.kt:919)
com.matilock.mati_kyc_sdk.kyc.voiceliveness.VoiceLivenessFragment.startRecordingVideo (VoiceLivenessFragment.kt:974)
com.matilock.mati_kyc_sdk.kyc.voiceliveness.VoiceLivenessFragment.access$startRecordingVideo (VoiceLivenessFragment.kt:40)
com.matilock.mati_kyc_sdk.kyc.voiceliveness.VoiceLivenessFragment$showStartCountDown$1.onFinish (VoiceLivenessFragment.kt:728)
android.os.CountDownTimer$1.handleMessage (CountDownTimer.java:127)
android.os.Handler.dispatchMessage (Handler.java:106)
android.os.Looper.loop (Looper.java:169)
android.app.ActivityThread.main (ActivityThread.java:6521)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:438)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:807)

Crash on line: com.matilock.mati_kyc_sdk.kyc.voiceliveness.VoiceLivenessFragment.setUpMediaRecorder (VoiceLivenessFragment.kt:919)

Mati version: 2.9.17 Device: Asus - ZenFone 4 Max (ZC554KL) Orientation: Vertical RAM available: 1.37 GB Space in disk available: 2.92 GB SO Versión: 8.1.0

ccparram commented 3 years ago

This is happening still with Mati version: 2.9.18.

aposnovmati commented 3 years ago

Hello @ccparram please try latest 3.4.2 version