问题
I know there is a way to make screenshots, using many available APIs, such as Puppeteer
https://github.com/GoogleChrome/puppeteer
but what about recording videos? my goal is to capture a CSS animation into an mp4 file.
Or am i doing it all wrong, are there better tools for that on the server side?
回答1:
https://www.npmjs.com/package/puppeteer-recorder
Something like this can work, it takes lots of screenshots and stitches them together
来源:https://stackoverflow.com/questions/48261175/is-there-any-way-to-record-a-video-of-website-using-headless-chrome