ReferenceAsk
Remy Reference/agent/renderVideoFromHtmlComposition
?

renderVideoFromHtmlComposition

Render an HTML composition (HTML, CSS, media and seekable animation on a timeline) to a video file
mindstudio.renderVideoFromHtmlComposition(input) → Result

Render an HTML composition (HTML, CSS, media and seekable animation on a timeline) to a video file

Parameters
html
string
The composition's HTML, up to 10 MB; give this or project
project
string
URL of a zip of the project's folder, or of one self-contained HTML file; give this or html
entryFile
string
The entry HTML inside the zip, relative to its root; index.html when omitted
variables
object
Values over the composition's declared variables
fps
number
Frames per second: 24, 30 (default) or 60
243060
quality
string
Encode quality: draft, standard (default) or high
draftstandardhigh
format
string
mp4 (default), webm or mov (both keep transparency), or gif
mp4webmmovgif
intermediateAsset
boolean
When true, the asset is created but hidden from the user's gallery (tagged as intermediate)
Call from a method
import { mindstudio } from '@mindstudio-ai/agent';

const result = await mindstudio.renderVideoFromHtmlComposition({});