How to take screenshot and recording video in AR scene using Babylon js

Need to take screenshot in AR mode

I do not think there is an API for that. You would need to do it from the default phone screenshot functionnality.