3

I have my app where I draw on SurfaceView programmatically. I want to record that animation as a video (mp4). Is there a way to do this?

I checked the MediaRecorder, but it can record only camera output. Is it possible to give a canvas/SurfaceView as a media stream? I don't like to use MediaProjection it's not limited to my app but the whole phone screen.

Patola
  • 515
  • 8
  • 30
  • Does this answer your question? https://stackoverflow.com/questions/32513379/how-to-record-screen-and-take-screenshots-using-android-api – Jaap Joris Vens Oct 16 '20 at 14:18
  • isnt it using MediaProjection. That's not what I want. It shows permission dialog and also records whatever on-screen not limited to my view. – Patola Oct 18 '20 at 01:02
  • 1
    Is this approach helpful? https://github.com/google/grafika/blob/master/app/src/main/java/com/android/grafika/ContinuousCaptureActivity.java – Bert Wijnants Oct 20 '20 at 08:03

0 Answers0