B4A Library [B4A] [B4XPages] ScreenRecorder/ScreenShots

DonManfred

Expert
Licensed User
Longtime User
and I got this error
What is the path to Android.jar you are using? It should point to [...]\Platform-30\Android.jar

Follow the installation instructions carefully:

 

CR95

Active Member
Licensed User
You are right.
I re-install the ANDROID package (I was using Platform-28).
Now it is Platform-30 and compilation is OK.
Thanks for your quick advice
 

moster67

Expert
Licensed User
Longtime User
why this error?
Please post the complete error output from the logs. You may need to need to disable filter logs in the IDE to do so.
Which android version are you using?
 

mehdipass

Member
this error:
android.media.MediaCodec$CodecException: Error 0xfffffc0e
    at android.media.MediaCodec.native_configure(Native Method)
    at android.media.MediaCodec.configure(MediaCodec.java:2023)
    at android.media.MediaCodec.configure(MediaCodec.java:1951)
    at net.yrom.screenrecorder.ScreenRecorder.prepareEncoder(ScreenRecorder.java:175)
    at net.yrom.screenrecorder.ScreenRecorder.run(ScreenRecorder.java:81)


All log:




Huawei P30 Lite MAR-LX1A - Android 10
 

moster67

Expert
Licensed User
Longtime User
By googling, it seems like the error is related to Width and Height values on certain devices when the configuration takes place.
Try to change Width and Height in the StartRecording method.

Others say it might be related to the MediaPlayer (in the sample project I used VideoView) not being released when being used together with MediaProjection. Try to set VideoView = null once you have finished playing the recorded video and then reinitialize it before showing another video or perhaps use another video player.

Sorry that I cannot be of any further help.
 

mehdipass

Member
Okay, thanks, I'll give it a try.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…