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

Internal audio recording is not working #34

Open
ForgottenLight4415 opened this issue Aug 9, 2022 · 4 comments
Open

Internal audio recording is not working #34

ForgottenLight4415 opened this issue Aug 9, 2022 · 4 comments

Comments

@ForgottenLight4415
Copy link

No description provided.

@endmr11 endmr11 added the Feature label Aug 9, 2022
@ForgottenLight4415
Copy link
Author

Any update on this?

@danglu999
Copy link

danglu999 commented Jan 15, 2023

As I tested the latest version(0.0.12), internal audio recording can work on Android but IOS

@pmahala
Copy link

pmahala commented Feb 3, 2023

I am facing the same issue. How are you able to make it work @danglu999 ?

E/MediaRecorder( 6454): SurfaceMediaSource could not be initialized!
E/MediaRecorder( 6454): start called in an invalid state: 32
E/Video Error:( 6454): java.lang.RuntimeException: setAudioSource failed.
E/Video Error:( 6454): at android.media.MediaRecorder.setAudioSource(Native Method)
E/Video Error:( 6454): at com.hbisoft.hbrecorder.ScreenRecordService.initRecorder(ScreenRecordService.java:475)
E/Video Error:( 6454): at com.hbisoft.hbrecorder.ScreenRecordService.onStartCommand(ScreenRecordService.java:235)
E/Video Error:( 6454): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4326)
E/Video Error:( 6454): at android.app.ActivityThread.access$1800(ActivityThread.java:237)
E/Video Error:( 6454): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1951)
E/Video Error:( 6454): at android.os.Handler.dispatchMessage(Handler.java:106)
E/Video Error:( 6454): at android.os.Looper.loop(Looper.java:223)
E/Video Error:( 6454): at android.app.ActivityThread.main(ActivityThread.java:7656)
E/Video Error:( 6454): at java.lang.reflect.Method.invoke(Native Method)
E/Video Error:( 6454): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/Video Error:( 6454): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
E/Video Error:( 6454): java.lang.IllegalStateException: failed to get surface
E/Video Error:( 6454): at android.media.MediaRecorder.getSurface(Native Method)
E/Video Error:( 6454): at com.hbisoft.hbrecorder.ScreenRecordService.initVirtualDisplay(ScreenRecordService.java:535)
E/Video Error:( 6454): at com.hbisoft.hbrecorder.ScreenRecordService.onStartCommand(ScreenRecordService.java:259)
E/Video Error:( 6454): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4326)
E/Video Error:( 6454): at android.app.ActivityThread.access$1800(ActivityThread.java:237)
E/Video Error:( 6454): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1951)
E/Video Error:( 6454): at android.os.Handler.dispatchMessage(Handler.java:106)
E/Video Error:( 6454): at android.os.Looper.loop(Looper.java:223)
E/Video Error:( 6454): at android.app.ActivityThread.main(ActivityThread.java:7656)
E/Video Error:( 6454): at java.lang.reflect.Method.invoke(Native Method)
E/Video Error:( 6454): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/Video Error:( 6454): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
E/Video Error:( 6454): java.lang.IllegalStateException
E/Video Error:( 6454): at android.media.MediaRecorder.start(Native Method)
E/Video Error:( 6454): at com.hbisoft.hbrecorder.ScreenRecordService.onStartCommand(ScreenRecordService.java:305)
E/Video Error:( 6454): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4326)
E/Video Error:( 6454): at android.app.ActivityThread.access$1800(ActivityThread.java:237)
E/Video Error:( 6454): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1951)
E/Video Error:( 6454): at android.os.Handler.dispatchMessage(Handler.java:106)
E/Video Error:( 6454): at android.os.Looper.loop(Looper.java:223)
E/Video Error:( 6454): at android.app.ActivityThread.main(ActivityThread.java:7656)
E/Video Error:( 6454): at java.lang.reflect.Method.invoke(Native Method)
E/Video Error:( 6454): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/Video Error:( 6454): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

@danglu999
Copy link

I did not do anything special to test it on Android, but I would like to know how to fix the problem on IOS
@pmahala

@endmr11 endmr11 removed the Feature label Apr 27, 2024
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

No branches or pull requests

4 participants