Is there any way to record a video of website using headless Chrome?

时光总嘲笑我的痴心妄想 提交于 2020-11-26 16:49:25

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!