Workaround android screen recorder 3 minutes limit
Nikitae57 opened this issue · comments
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?
@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?
I'll take a look and contact you if I got any questions
Android 14 may bring some changes to this: https://twitter.com/MishaalRahman/status/1694872392529522739?s=20
Here's an interesting approach for this issue https://blog.mobile.dev/fixing-androids-3-minute-screen-recording-limitation-4839abc74aee
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.