Screen Record for Android™ (with Internal Audio)
This asset allows you to screen record for Android™ app screen and internal audio(Not Mic).
Tested with Android™ API(Min API 29):
API 33 (Android™ 13)
API 34 (Android™ 14)
How to Record:
1. Copy PLUGINS folder out of Gelzo folder and Place it in Assets folder to allow unity to recognize "Plugins/Android"
2. Import Text Mesh Pro(TMP) (Required for demo scene) and run scene in editor
2. Add ScreenRec script to scene object
3. Add Reference to ScreenRec Class in your custom Class
4. Call ScreenRec.StartRecording() to start recording in android app
5. Call ScreenRec.StopRecording() to stop recording in android app
Demo file here to test:
Troubleshooting:
If getting error (2025/05/06 15:50:46.832 13421 13446 Error Unity AndroidJavaException: java.lang.NoSuchMethodError: no non-static method with name='requestScreenCapturePermission' signature='()V' in class Ljava.lang.Object;)
Android is a trademark of Google LLC.