Files
openmaic/OpenMAIC/packages/@openmaic/generation/snippets/slide-video-instructions.md
2026-08-16 14:58:47 +08:00

25 lines
728 B
Markdown

### VideoElement
```json
{
"id": "video_001",
"type": "video",
"left": 100,
"top": 150,
"width": 500,
"height": 281,
"mediaRef": "<VIDEO_MEDIA_REF_FROM_ASSIGNED_MEDIA>",
"autoplay": false
}
```
**Required Fields**: `id`, `type`, `left`, `top`, `width`, `height`, `mediaRef` (generated video media ref copied exactly from the assigned media list), `autoplay` (boolean)
**Video Sizing Rules**:
- `mediaRef` must be copied exactly from the assigned video media list
- Default aspect ratio: 16:9 -> `height = width / 1.778`
- Typical video width: 400-600px (prominent on slide)
- Position video as a focal element, usually centered or in the main content area
- Leave space for a title and optional caption text