Referencia de elementos
Elemento template
1. Estructura
interface TemplateClip extends BaseClip {
type: "template";
template: string;
data?: Record<string, unknown>;
}2. Nombres de template compatibles
Nombres documentados actualmente:
product-introslideshowsubtitle-videotalking-headcomparisoncountdowntext-revealnewsquotelist
3. Límite del runtime
Los clips template se expanden en clips normales durante el runtime. La estructura generada exacta depende del template seleccionado y de su data.
La herencia a nivel de template de transform, style, animations, keyframes o transition no está documentada como un comportamiento estable para clips hijos.
4. Ejemplo
{
"type": "template",
"template": "talking-head",
"start": 0,
"duration": 6,
"data": {
"src": { "$ref": "host" },
"words": { "$ref": "sub-main" },
"title": "Weekly Update",
"speaker": "Alex Chen",
"role": "Founder",
"showLowerThird": true
}
}