有什么方法可以使用无头Chrome录制网站视频吗? [英] Is there any way to record a video of website using headless Chrome?
本文介绍了有什么方法可以使用无头Chrome录制网站视频吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道有一种方法可以使用许多可用的API(例如Puppeteer
I know there is a way to make screenshots, using many available APIs, such as Puppeteer
https://github.com/GoogleChrome/puppeteer
但是录制视频呢?我的目标是将CSS动画捕获到mp4文件中.
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?
推荐答案
https://www .npmjs.com/package/puppeteer-recorder
类似的方法可以正常工作,它需要大量屏幕截图并将它们拼接在一起
Something like this can work, it takes lots of screenshots and stitches them together
这篇关于有什么方法可以使用无头Chrome录制网站视频吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文