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

in android pause fail #144

Open
JXUnx1 opened this issue Dec 4, 2024 · 1 comment · Fixed by #145
Open

in android pause fail #144

JXUnx1 opened this issue Dec 4, 2024 · 1 comment · Fixed by #145

Comments

@JXUnx1
Copy link

JXUnx1 commented Dec 4, 2024

[Error: Error in pausing recording audio]

@JXUnx1
Copy link
Author

JXUnx1 commented Dec 4, 2024

AudioRecorder.kt

@RequiresApi(Build.VERSION_CODES.N)
fun pauseRecording(recorder: MediaRecorder?, promise: Promise) {
try {
Log.e("pause","pause fail"+recorder); --------- is ok
recorder?.pause()
promise.resolve(false)
} catch (e: IllegalStateException) {
Log.e(Constants.LOG_TAG, "Failed to pause recording")
}
}

@nilesh-simform nilesh-simform linked a pull request Dec 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant