Unity 2023+, working runtime screen recording solutions?

How to record video from the screen at runtime and save it to a video file? preferably on iOS and Android.

This question seems to come up regularly over the years and still no viable solutions other than fairly overpriced assets or assets requiring a subscription to pay for other developments.

Recording frames is easy enough but encoding to a video is terribly complex in Unity, especially when you take into account platform requirements/limitations.

And sadly, Unity recorder STILL does not support runtime, only editor (asking GPT is so fun for that)

In 2024, are there any usable solutions for recording the screen at runtime in Unity?

we have same problem. if you find solution please share!

i think SDK s like Bandicam works with API but didnt tried

My solution is to upload the recorded frames (List<byte>) to an ASP backend use FFmpeg encode it and save it to cloud storage. The games are built as WebGL and users access their game replay on the website.