I created library class called ScreenRecorder that records the screen on my app at a chosen framerate.
ScreenRecorder
I exposed 3 API, start() pause()
start()
pause()