Thursday, 15 October 2020

Record canvas animation as a realtime video on android

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.



from Record canvas animation as a realtime video on android

No comments:

Post a Comment