hbisoft / hbrecorder Goto Github PK
View Code? Open in Web Editor NEWLightweight screen recording Android library
License: MIT License
Lightweight screen recording Android library
License: MIT License
Can I record the sound in the headset
Hi @HBiSoft ,
I executed the HBRecorder Example, on click of start button, the app crashes (irrespective of customSettings on/off).
So in logs I can see 2 exceptions:
Following are the logs:
2020-02-20 14:54:59.622 17493-17493/com.hbisoft.hbrecorderexample E/MediaRecorder: SurfaceMediaSource could not be initialized!
2020-02-20 14:54:59.623 17493-17493/com.hbisoft.hbrecorderexample E/MediaRecorder: start called in an invalid state: 4
2020-02-20 14:54:59.626 17493-17493/com.hbisoft.hbrecorderexample E/HBRecorderOnError: java.io.FileNotFoundException: /storage/emulated/0/Movies/HBRecorder/HD2020-02-20-14-54-59.mp4: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:485)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:288)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:151)
at android.media.MediaRecorder.prepare(MediaRecorder.java:959)
at com.hbisoft.hbrecorder.ScreenRecordService.initRecorder(ScreenRecordService.java:385)
at com.hbisoft.hbrecorder.ScreenRecordService.onStartCommand(ScreenRecordService.java:166)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3884)
at android.app.ActivityThread.access$1700(ActivityThread.java:213)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1847)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6923)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:870)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Linux.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:210)
at libcore.io.IoBridge.open(IoBridge.java:471)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:288)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:151)
at android.media.MediaRecorder.prepare(MediaRecorder.java:959)
at com.hbisoft.hbrecorder.ScreenRecordService.initRecorder(ScreenRecordService.java:385)
at com.hbisoft.hbrecorder.ScreenRecordService.onStartCommand(ScreenRecordService.java:166)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3884)
at android.app.ActivityThread.access$1700(ActivityThread.java:213)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1847)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6923)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:870)
2020-02-20 14:54:59.628 17493-17493/com.hbisoft.hbrecorderexample E/HBRecorderOnError: java.lang.IllegalStateException: failed to get surface
at android.media.MediaRecorder.getSurface(Native Method)
at com.hbisoft.hbrecorder.ScreenRecordService.initVirtualDisplay(ScreenRecordService.java:392)
at com.hbisoft.hbrecorder.ScreenRecordService.onStartCommand(ScreenRecordService.java:186)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3884)
at android.app.ActivityThread.access$1700(ActivityThread.java:213)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1847)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6923)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:870)
2020-02-20 14:54:59.629 17493-17493/com.hbisoft.hbrecorderexample E/HBRecorderOnError: java.lang.IllegalStateException
at android.media.MediaRecorder.start(Native Method)
at com.hbisoft.hbrecorder.ScreenRecordService.onStartCommand(ScreenRecordService.java:206)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3884)
at android.app.ActivityThread.access$1700(ActivityThread.java:213)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1847)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6923)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:870)
Like I want to pause the screen recording while it is recording and restart it again from there? How I can do it?
ScreenRecorderService crashed in production environment. Hope this crash can be avoided with a simple NULL check. I'd appreciate any help.
Describe the bug
ScreenRecorderService within the HBRecorder crashed on hbRecorder.stopScreenRecording()
Log
uncaughtException:
Unable to stop service com.hbisoft.hbrecorder.ScreenRecordService@bf716e7: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.projection.MediaProjection.stop()' on a null object reference
StackTrace:
java.lang.RuntimeException: Unable to stop service com.hbisoft.hbrecorder.ScreenRecordService@bf716e7: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.projection.MediaProjection.stop()' on a null object reference
StackTraceDetails:
java.lang.RuntimeException: Unable to stop service com.hbisoft.hbrecorder.ScreenRecordService@bf716e7: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.projection.MediaProjection.stop()' on a null object reference
at android.app.ActivityThread.handleStopService(ActivityThread.java:4583)
at android.app.ActivityThread.access$2100(ActivityThread.java:274)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2139)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8167)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.projection.MediaProjection.stop()' on a null object reference
at com.hbisoft.hbrecorder.ScreenRecordService.f(SourceFile:7)
at com.hbisoft.hbrecorder.ScreenRecordService.onDestroy(SourceFile:2)
at android.app.ActivityThread.handleStopService(ActivityThread.java:4563)
Can it be reproduced in demo app
This crash is reported in production environment.
HBRecorder version
HBRecorder:0.1.14
Device information
Samsung SM-A715F
SDK version 29
HBRecorder works fine on Android emulators and on my 3 physical devices. However, on one of my device the screen recorder stops immediately after I start recording. I am getting callback on HBRecorderOnError with errorCode: 100 and reason: 268435556
Both the "High Definition" and "Standard Definition" option is producing same error on the device.
Yes, this error is reproduced in demo app.
HBRecorder version
HBRecorder:0.1.14
Device information
LenovoTB3-X70L( LENOVO Lenovo TB3-X70L) Android 23
The demo app is showing toast HBRecorderOnError as soon as the start button is clicked.
.
I'd appreciate any help.
Does it support internal audio recording?
Description
The app is crashing from your library. The crashlog is from Firebase Crashlytics
Log
Fatal Exception: java.lang.RuntimeException: Unable to stop service com.hbisoft.hbrecorder.ScreenRecordService@bf32d6: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.projection.MediaProjection.stop()' on a null object reference
at android.app.ActivityThread.handleStopService(ActivityThread.java:4137)
at android.app.ActivityThread.access$1900(ActivityThread.java:220)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1897)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7397)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
It cannot be reproduced, because I don't have those devices.
HBRecorder version: 0.1.14
Device information
Nokia N9 - Android SDK 28
Hi,
First, I would like to say Awesome Thanks to the developper of this crazy simple library.
I just would like to know if there is a way to use the HBRecorder inside a service.
I know that the screen recording could only be asked from an activity but have you any idea about how to do that like a transparent activity or something similar?
Sincerely,
Charles
i want to record my video call but exception occurred that mic is already in use. any suggestion ?
Hi, I am working on API level 23 (Android version 6.0)
I have to record screen and also take screenshot on the same activity/screen (having exoplayer for playing video).
when I only record screen or only take screenshot then everything is working perfectly
but
when I start screen recording and while in screen recording I take screenshot then after that the screen recording stucks,
note that for screenshot I am using media projection with different instance and API level higher then 23 are working perfectly, I am facing issue only in 23 and less than 23.
Also, I am attaching screenshot for better understanding and if you still need more information then ask me..
In first screenshot I am just recording screen and everything is perfect
In second screenshot when I take screenshot then dialog appears and when I select start now then screen recording stucks as you can see in third screenshot
This happens when I set the outputPath = getFilesDir() + "/demoVideos"
java.lang.RuntimeException: Unable to start service com.hbisoft.hbrecorder.ScreenRecordService@72a1038 with Intent { cmp=com.app.guarddoor/com.hbisoft.hbrecorder.ScreenRecordService (has extras) }: java.lang.IllegalStateException: failed to get surface at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3713) at android.app.ActivityThread.access$1600(ActivityThread.java:202) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:198) at android.app.ActivityThread.main(ActivityThread.java:6729) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) Caused by: java.lang.IllegalStateException: failed to get surface at android.media.MediaRecorder.getSurface(Native Method) at com.hbisoft.hbrecorder.ScreenRecordService.createVirtualDisplay(ScreenRecordService.java:224) at com.hbisoft.hbrecorder.ScreenRecordService.onStartCommand(ScreenRecordService.java:146) at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3694) at android.app.ActivityThread.access$1600(ActivityThread.java:202) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:198) at android.app.ActivityThread.main(ActivityThread.java:6729) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Hey,
Great library!
There is an issue with:
getExternalStoragePublicDirectory()
is no longer supported starting Android Q and forward.
Can you add a way to do this? I suggest to use:
val resolver = context.contentResolver
val contentValues = ContentValues().apply {
put(MediaStore.MediaColumns.DISPLAY_NAME, "CuteKitten001")
put(MediaStore.MediaColumns.MIME_TYPE, "image/jpeg")
put(MediaStore.MediaColumns.RELATIVE_PATH, "DCIM/PerracoLabs")
}
val uri = resolver.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, contentValues)
resolver.openOutputStream(uri).use {
// TODO something with the stream
But probably with the props the user set.
The answer is from here:
https://stackoverflow.com/questions/20523658/how-to-create-application-specific-folder-in-android-gallery
Describe the bug
I am unable to import HBRecorder:0.1.15.
Log
Failed to resolve: com.github.HBiSoft:HBRecorder:0.1.15
Show in Project Structure dialog
Affected Modules: app
Can it be reproduced in demo app
no
HBRecorder version
0.1.15
Device information
defaultConfig
minSdkVersion 16
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
HBRecorderOnError: 268435556
When i pressing start button its automatically stop and toast message is showing HBRecorderOnError see log and log error is 268435556. I tested sample app but same error. In HBRecorder class there is a exception on startService method. My device is 1820 and version 8.1.0 API level 27
Hi, I was testing your very interesting library with a simple code provided in the README :
public class ScreenRecorder extends AppCompatActivity implements HBRecorderListener {
private static final int SCREEN_RECORD_REQUEST_CODE = 12345;
HBRecorder hbRecorder;
Button button10, button11;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.screen_recorder);
button10 = (Button) findViewById(R.id.button10);
button11 = (Button) findViewById(R.id.button11);
button10.setOnClickListener(new View.OnClickListener() {
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
@Override
public void onClick(View v) {
startRecordingScreen();
}
});
button11.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
hbRecorder.stopScreenRecording();
}
});
//Init HBRecorder
hbRecorder = new HBRecorder(this, this);
}
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
private void startRecordingScreen() {
MediaProjectionManager mediaProjectionManager = (MediaProjectionManager) getSystemService(Context.MEDIA_PROJECTION_SERVICE);
Intent permissionIntent = mediaProjectionManager != null ? mediaProjectionManager.createScreenCaptureIntent() : null;
startActivityForResult(permissionIntent, SCREEN_RECORD_REQUEST_CODE);
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == SCREEN_RECORD_REQUEST_CODE) {
if (resultCode == RESULT_OK) {
Toast.makeText(this, "Authorization granted", Toast.LENGTH_LONG).show();
//Start screen recording
hbRecorder.startScreenRecording(data, resultCode, this);
}
}
}
@Override
public void HBRecorderOnComplete() {
}
@Override
public void HBRecorderOnError(int errorCode, String reason) {
}
}
But when I try to start the recording, I see the Recording Prompt message from Android, I click on Start Now and the app crash.
On the Log I can see the following errors :
2020-05-03 22:26:19.854 23343-23343/fr.gooddev.totalspy E/MediaRecorder: SurfaceMediaSource could not be initialized!
2020-05-03 22:26:19.855 23343-23343/fr.gooddev.totalspy E/MediaRecorder: start called in an invalid state: 4
2020-05-03 22:26:19.902 23343-23343/fr.gooddev.totalspy D/AndroidRuntime: Shutting down VM
2020-05-03 22:26:19.903 23343-23343/fr.gooddev.totalspy E/AndroidRuntime: FATAL EXCEPTION: main
Process: fr.gooddev.totalspy, PID: 23343
java.lang.RuntimeException: Unable to stop service com.hbisoft.hbrecorder.ScreenRecordService@c2e5f75: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.projection.MediaProjection.stop()' on a null object reference
at android.app.ActivityThread.handleStopService(ActivityThread.java:4136)
at android.app.ActivityThread.access$1900(ActivityThread.java:219)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1896)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.projection.MediaProjection.stop()' on a null object reference
at com.hbisoft.hbrecorder.ScreenRecordService.resetAll(ScreenRecordService.java:421)
at com.hbisoft.hbrecorder.ScreenRecordService.onDestroy(ScreenRecordService.java:407)
at android.app.ActivityThread.handleStopService(ActivityThread.java:4116)
at android.app.ActivityThread.access$1900(ActivityThread.java:219)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1896)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
I am using the last version of your Library because I just downloaded it from Gradle.
I tried on an Android 10 SDK 29 on an emulator of a Google Pixel 3 XL.
If you need more infos, I can provide it.
Sincerely,
Charles BEL
Hi,
I am getting error while building app with android 28? Can you please assist.
Let me elaborate.
I Set the TargetSDK and CompileSDK to version 28
I clean the Project
Run the Rebuild
getting below errors
\app\build\intermediates\merged_manifests\debug\AndroidManifest.xml:16: AAPT: error: attribute android:requestLegacyExternalStorage not found.
app\build\intermediates\merged_manifests\debug\AndroidManifest.xml:34: AAPT: error: attribute android:foregroundServiceType not found.
let me know if still need to provide more details.
i have been recording screen using library but when i test this app in android emulator , video play in default android player in emulator video is not skippable. so is there any problem with the video codec or other problem ?
so please solve this problem.
thank you.
Hello Sir!
Could you please add the screenshot feature in your library?
Got HBRecorderOnError callback on first call to HBRecorder startScreenRecording on one device. This is a production issue and I don't know if any other recorder was active at that time (also don't know if that matters). Not sure if this a HBRecorder bug or, this needs to handled for retry. I'd appreciate any help.
Describe the bug
Got this error HBRecorderOnError:: errorCode: 100 reason: java.lang.IllegalStateException
on first hbRecorder.startScreenRecording
call after install.
Log
HBRecorderOnError:: errorCode: 100 reason: java.lang.IllegalStateException
at android.media.MediaRecorder.start(Native Method)
at com.hbisoft.hbrecorder.ScreenRecordService.onStartCommand(SourceFile:83)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3672)
at android.app.ActivityThread.-wrap21(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1825)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:232)
at android.app.ActivityThread.main(ActivityThread.java:6806)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1103)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
Can it be reproduced in demo app
This is a production issue - no access to the physical device.
HBRecorder version
HBRecorder:0.1.14
Device information
OPPO CPH1729
SDK version 25
hello i have device that running lineage os 17.1 i would like to replace the stock recorder app with this app i have magisk root and twrp if thats help the reason i would install it as system app are because theres some apps doesn't updated long time ago and you can't record them with internal audio if you installed the apk as user app
Error and Complete Listener not triggered
And let me know how to save the file in gallery?
Describe the bug
When click on start button show me force close error
Log
java.lang.RuntimeException: Unable to start service com.hbisoft.hbrecorder.ScreenRecordService@dc8478b with Intent { cmp=com.hbisoft.hbrecorderexample/com.hbisoft.hbrecorder.ScreenRecordService (has extras) }: java.lang.IllegalStateException: failed to get surface
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3045)
at android.app.ActivityThread.access$2200(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1454)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5530)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:733)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:623)
Caused by: java.lang.IllegalStateException: failed to get surface
at android.media.MediaRecorder.getSurface(Native Method)
at com.hbisoft.hbrecorder.ScreenRecordService.createVirtualDisplay(ScreenRecordService.java:226)
at com.hbisoft.hbrecorder.ScreenRecordService.onStartCommand(ScreenRecordService.java:148)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3028)
HBRecorder version
for example 1.0.1
Device information
Describe the bug
A clear and concise description of what the bug is.
Log
Please provide a well formatted bug report (by adding 4 spaces before the log)
Can it be reproduced in demo app
Yes or no
HBRecorder version
for example 1.0.1
Device information
Screenshots
If applicable, add screenshots to help explain your problem.
I'm wondering if there's any way to record a specific view or layout instead of recording the whole screen
i am trying to record a video in cropped screen but not able to do so far.
so is there any idea or code which can be implemented so that capture screen can be cropped while recording.
i have changed code as below
mMediaRecorder.setVideoSize(mScreenWidth, mScreenHeight);
but not get desirable output.
so if there any solution please tell me.
it just gives simple error while start recording in it.
HBRecorderOnError: 268435556
i come here from : https://morioh.com/p/11b23bb6f978
i am wondering can we use this lib to share screen to twitch for example ? (to stream video exactly)
as screen recording works perfectly thanks a lot ;)
Is it supported
Describe the bug
When zoom meeting is running if i start recording i am getting error
Log
2020-07-17 21:15:34.303 5997-5997/com.hbisoft.hbrecorderexample E/MediaRecorder: start failed: -38
2020-07-17 21:15:34.328 5997-5997/com.hbisoft.hbrecorderexample E/CALLED: CALLED
2020-07-17 21:15:34.369 5997-5997/com.hbisoft.hbrecorderexample E/HBRecorderOnError: java.lang.IllegalStateException
at android.media.MediaRecorder.start(Native Method)
at com.hbisoft.hbrecorder.ScreenRecordService.onStartCommand(ScreenRecordService.java:231)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3668)
at android.app.ActivityThread.access$1600(ActivityThread.java:200)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1682)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6692)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
2020-07-17 21:15:34.374 5997-5997/com.hbisoft.hbrecorderexample E/CALLED: CALLED
2020-07-17 21:15:34.384 5997-5997/com.hbisoft.hbrecorderexample E/HBRecorderOnError: 268435556
Can it be reproduced in demo app
Yes
HBRecorder version
for example 1.0
Device information
Screenshots
If applicable, add screenshots to help explain your problem.
Thanks
Ramesh
It is not possible to predict the cause of an error without a log, knowing your environment, understanding what you are trying to achieve or which steps you took.
So, please fill in the issue template when creating an issue.
Issues that do not fill out the issue template fields will be closed immediately until the fields are filled in.
I am trying to fix an issue where when I start recording it is giving me an error code 100 inside HBRecorderOnError
I am not able to get the as when it doesnt show anything in logs when I try to attach it to the app's process.
Yes it can be on my vivo v11
HBRecorder version
0.1.7
Device information
HBRecorderOnComplete is called twice for me
I am stopping the recording using 'stopScreenRecording()' api and not the 'Stop recording' button in the notification area. For some unknown reason, HBRecorderOnComplete is called twice. I tried tapping the button in the notification area and the behaviour is the same. HBRecorderOnComplete is called twice. Has anyone else seen the same issue?
Stack for first call is -
callback:308, HBRecorder
run:73, FileObserver$1
handleCallback:883, Handler
dispatchMessage:100, Handler
loop:214, Looper
main:7697, ActivityThread
Stack for second call is -
onReceiveResult:290, HBRecorder$1
run:50, ResultReceiver$MyRunnable
handleCallback:883, Handler
dispatchMessage:100, Handler
loop:214, Looper
main:7697, ActivityThread
I have followed the instructions to integrate the library from here.
Error occurred in some device called "Hbrecords: See Log" when click start button.:
Error log:
2020-07-20 13:22:52.884 10694-10694/com.myapp E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false
2020-07-20 13:22:55.377 10694-10694/com.myapp E/libc: Access denied finding property "camera.aux.packagelist"
2020-07-20 13:22:55.377 10694-10694/com.myapp E/libc: Access denied finding property "camera.aux.packagelist"
2020-07-20 13:22:55.380 10694-10694/com.myapp E/libc: Access denied finding property "camera.aux.packagelist"
2020-07-20 13:22:55.380 10694-10694/com.myapp E/libc: Access denied finding property "camera.aux.packagelist"
2020-07-20 13:22:55.468 10694-10694/com.myapp E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false
2020-07-20 13:22:56.174 10694-10694/com.myapp E/CALLED: CALLED
2020-07-20 13:22:56.200 10694-10694/com.myapp E/HBRecorderOnErrorr: 268435556
2020-07-20 13:22:56.261 10694-10694/com.myapp E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false
2020-07-20 13:23:53.522 10694-10694/.myapp E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false
I tried some steps by searching internet:
All above solution doesn't work. Please help.
I have an app that supports video chat; so technically its already using the camera. Recording screen when the video chat is up triggers HBRecorderOnError. Is this doable?
Describe the bug
A clear and concise description of what the bug is.
Log
Please provide a well formatted bug report (by adding 4 spaces before the log)
Can it be reproduced in demo app
Yes or no
HBRecorder version
for example 1.0.1
Device information
Screenshots
If applicable, add screenshots to help explain your problem.
Thanks @HBiSoft for this wonderful library.
During recording a notification is not shown despite me having provided the notification icon and the title as well as the Notification message. Where might I be going wrong.
NOTE: The app is recording the video and saving it to the gallery but not displaying the notification.
Could we record only specific running application screen?
Is your feature request related to a problem? Please describe.
I'm testing this app on android-x86 7.1 it's working good so far but i want to use the remote_submix as audio source so that i can record the internal audio. my custom android x86 build does support this feature but only app i can't find use this feature is ScreenCam Screen recorder but it's no longer under development & have many bugs with android x86.
Describe the solution you'd like
if you can add r_submix support like screencam it'll be great.
https://gitlab.com/vijai/screenrecorder
thanks
Describe the bug
A clear and concise description of what the bug is.
Log
Please provide a well formatted bug report (by adding 4 spaces before the log)
Can it be reproduced in demo app
Yes or no
HBRecorder version
for example 1.0.1
Device information
Screenshots
If applicable, add screenshots to help explain your problem.
Hello Sir!
Please can you add initial count down timer, orientation mode and pop-up window floating action buttons in this.
Thanks in Advance.
Description
The app is crashing from your library. The crashlog is from Firebase Crashlytics
Log
Fatal Exception: java.lang.RuntimeException: Unable to stop service com.hbisoft.hbrecorder.ScreenRecordService@bf32d6: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.projection.MediaProjection.stop()' on a null object reference
at android.app.ActivityThread.handleStopService(ActivityThread.java:4137)
at android.app.ActivityThread.access$1900(ActivityThread.java:220)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1897)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7397)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
It cannot be reproduced, because I don't have those devices.
HBRecorder version: 0.1.14
Device information
Nokia N9 - Android SDK 28
No screenshots
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.