full expanded options:
"options": {
"webhook": "",
"duration": 15,
"audio": true,
"fps": 30,
"crf": 30,
"width": 1080,
"height": 1080,
"zoom": 1
"crop": {
"x": 0,
"y": 0,
"width": 1080,
"height": 1080
},
"startFrame": "domContentLoaded",
"modifiers": {
"cssproperties": [
{
"selector": "#animated_bar_horizontal",
"property": "background-color",
"value": "black"
}
],
"tagattributes": [
{
"selector": "#animated_bar",
"name": "class",
"value": "test_class",
"mode": "add"
}
],
"tagcontent": [
{
"selector": "#counter_unit",
"content": "mil'lisec\" <br/>onds"
}
]
}
}
webhook
: enter an callback url where the status is reported, when the job is finishedduration
: runtime of animation in secondsfps
: desired frames per secondcrf
: Constant Rate Factor - 0 - 51. 0 is lossless and large, 51 has very low bitrate, but small sizewidth
: the window/browser widthheight
: the window/browser heightzoom
: zoom scale of browser windowcrop
: (optional) if you want to crop the windowstartFrame
: either domContentLoaded
, saturationGreaterZero
or custom
(see โCustom start and end timestampโ)modifiers
:
cssproperties
: converted to css directive: <tagattributes
: at dom-loaded-event executed modification of attributes. mode set
to override and add
to add attributetagcontent
: at dom-loaded-event executed replacement of innertext of dom elements (preferably text elements like span
, p
,โฆ)if you want your video to have a custom start and end time, you have to set startFrame
to custom
and implement it in your javascript with the following statements:
start recording (In the case of multiple invocations, the first incovation counts):
window.startRecording();
end recording (In the case of multiple invocations, the last incovation counts):
window.endRecording();
Attention: the duration must be set anyway and must include at least the length of the expected javascript requests.