Screen Recording for Android™ (Internal Audio)


Screen Recording for Android™ with Internal Audio


by Gelzo


Price History +

Screen Record for Android™ (with Internal Audio)


This asset allows you to screen record for Android™ app screen and internal audio(Not Mic).

  • Min API 29 for Android™ 10
  • COPY PLUGINS folder Out of Gelzo folder and Place it in Assets folder to allow unity to recognize "Plugins/Android"
  • The video outputs at path "Internal storage/Movies/AndroidPartialScreenInternalAudioRecorder"
  • It requires permission before recording.
  • It only records with Android™(NOT IN EDITOR and NOT IN WINOWS BUILD OR IOS - ONLY for Android™).
  • It uses MediaProjection API for Android™.
  • Can't Pause or Resume.
  • It only records 1080 (width) by 1920(height) (Portrait)

Tested with Android™ API(Min API 26):

API 33 (Android™ 13)

API 34 (Android™ 14)


How to Record:


1. 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:

Demo APK


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;)

  • COPY PLUGINS folder Out of Gelzo folder and Place it in Assets folder

Android is a trademark of Google LLC.