B4A Library [B4A] [B4XPages] ScreenRecorder/ScreenShots

moster67

Expert
Licensed User
Longtime User
I get some questions about the advanced version so here is some information:

The free version posted here is OK for screen-recording. There is also a more advanced version of this library which enables screen-recording with audio and capturing screenshots. The advanced version of this library is still a work in progress but users who have bought it are already using it in their apps. At this point of development, the price is EUR 15,00 for the advanced version but it will probably be more when it's ready.
Send me a PM (start a conversation) if you are interested.
 

Neojoy

Member
Licensed User
Longtime User
Very cool!!!

The advanced version needs permission like free version and can I run under a service?

Another question, it works in web or only in local network?

Thanks!
 

ilan

Expert
Licensed User
Longtime User
hi again, sorry for asking again but is it possible to record audio when recording the screen?
 

moster67

Expert
Licensed User
Longtime User
hi again, sorry for asking again but is it possible to record audio when recording the screen?
Yes, the audio can be recorded in the advanced version. Only microphone though since system-audio cannot be recorded on Android at all.
 

DonManfred

Expert
Licensed User
Longtime User
great and how can i get the advanced version?
 

moster67

Expert
Licensed User
Longtime User
Can this screen recorder also capture screen shots as BMP of JPG bitmaps (at pre-determined intervals) in stead of as video?
If you have a look at the screen-mirroring video, you can see that numerous screenshots are captured within a second (see the log-pane). The responsible method is run within a service. Note that the OS decides when to send new images via the ImageReader.OnImageAvailableListener interface (included in my library). This is the reason why sometimes images are being captured less frequently (few updates) on a stale Activity. If there are movements, the OS sends more images.

This is the API-description of the method concerned:

 

moster67

Expert
Licensed User
Longtime User
Is it possible to set the frequency at which frames are captured (e.g. 1 to 10 fps)?
You cannot set the frequency. As mentioned above:

However, included in the library there is the ordinary Screenshot-object. I guess you can execute it "at wish" using a timer. For your purposes though, I think StartShooting-method to start a session of taking continuous screenshots is your best option.

Do I need the advanced version of your library for this purpose (I assume yes) and is it ready/stable enough for the application I intend to build?
Yes, the screenshot-options are included in the advanced version. Many users have donated and so far I have not had any complaints so I guess it works fine.

In any case, since you're a Vitamio5-donator, you could also use the grab screenshot included in Vitamio5.
 

youjunjer

Member
Licensed User
Longtime User
Dear moster67:
Did you finish the work of screenshot? Is this Lib can take screenshot background in setting time interval(such as 60s)?
If yes, where to buy your lib?
 

DonManfred

Expert
Licensed User
Longtime User
If yes, where to buy your lib?

 

moster67

Expert
Licensed User
Longtime User
Is this Lib can take screenshot background in setting time interval(such as 60s)
Yes, using the ScreenShotterContinuous object you can. A b4a-sample is included with the paid version.
I have replied to your PM.
 

peacemaker

Expert
Licensed User
Longtime User
Can paid version work from a service ? The free version, seems, does not work.
 

peacemaker

Expert
Licensed User
Longtime User
Yes, ".GetPermission" must be from Activity anyway. But the recorder can work inside a service.
 

mtd13755

New Member
hi
I start recording in activity
but i want to stop recording in service
pls help me by code
 
Last edited:

CR95

Active Member
Licensed User
I tried to compile your sample project and I got this error :
B4X:
AndroidManifest.xml:37: error: No resource identifier found for attribute 'foregroundServiceType' in package 'android'

I noticed that you specified
B4X:
 ************** This wrapper requires at least => SDK/API 21 (lollipop) so don't forget to set this in the manifest. **************
but this is not clear what I should not forget (I tried compiling with several target systems over Lollipop)

My understanding is that your program needs "mediaProjection" library as requested in the manifest
B4X:
SetServiceAttribute(Screen, android:foregroundServiceType, "mediaProjection")
Could you help to solve this issue ?
Thanks
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…