我需要自动化截取HTML 5视频播放器页面及其缩略图的截图,但在查看了一些更受欢迎的无头浏览器(例如PhantomJS)后发现它们不支持HTML 5视频。
>phantomjs examples\features.js
Detected features (using Modernizr 2.0.6):
Supported:
touch
generatedcontent
fontface
flexbox
canvas
canvastext
postmessage
websqldatabase
hashchange
history
draganddrop
websockets
rgba
hsla
multiplebgs
backgroundsize
borderimage
borderradius
boxshadow
textshadow
opacity
cssanimations
csscolumns
cssgradients
cssreflections
csstransforms
csstransitions
localstorage
sessionstorage
webworkers
applicationcache
svg
inlinesvg
smil
svgclippaths
Not supported:
csstransforms3d
webgl
geolocation
indexeddb
video
audio
请注意,HTML 5视频不受支持,那么哪个轻量级无界面浏览器支持HTML 5视频?