MarathonLabs / marathon

Cross-platform test runner

Home Page:https://docs.marathonlabs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Workaround android screen recorder 3 minutes limit

Nikitae57 opened this issue · comments

commented

Is your feature request related to a problem? Please describe.
Google increased video limit up to 30 minutes starting from android 14, but all older versions have the 3 minutes limit which makes us to capture a screenshots GIF with a low framerate and quality on most of the tests

Describe the solution you'd like
Capture a new video after the screen recorder exits and glue them all together when test ends

Gluing videos together is a huge undertaking that requires supporting codecs that Android devices produce. For kotlin ecosystem this hard to achieve. I understand why, but maybe just capturing more than one video is better?

commented

@Malinskiy sure, why not? Better than nothing

Can you take a stab at this and create a PR? If so, do you need any guidance?

commented

I'll take a look and contact you if I got any questions

While this may work for hacking purposes, modifying the binaries bundled with OS should be done by patches to the OS's source code, not runtime. For older devices we can present multiple files in the future instead of changing the limit.