Hey all, i am creating a screen recorder but when i initialize screenrecorder, it says “setAudioSource failed”?
Block Images
Hey all, i am creating a screen recorder but when i initialize screenrecorder, it says “setAudioSource failed”?
Block Images
What is your android version?
Android 11
It works up to API 28 (Android 9).
Since API 29 (Android 10) apparently a
Foreground
service has to be declared in theManifest
.
In addition, permissions (mic & storage) must be requested manually beforehand.
See e.g. also here:
So try Sunny’s ScreenRecorder (@Sunny_Gupta) on Android 10+.