How to access recording status in script api?

Is there any callback in script api to listen to recording status like on recording start and finish? I want to play an animation on start of recording.

Screenshot 2023-09-20 at 20.31.31
Hi, we don’t have a ready made callback for that but there is an animation trigger you can use to switch between states on a dummy animation controller and use the state changed callback

Thanks for the response Jelena. I have created a filter which is working fine in deepAR studio preview but not in android app.Could you test it please.
timewarp.zip (15.4 KB)