Embed parameters
URL parameters and data attributes for LittleDemo embeds.
Embed parameters
iframe URL parameters
| Parameter | Default | Description |
|---|---|---|
autoplay | false | Start playback automatically. |
loop | false | Replay after the demo ends. |
controls | true | Show player controls. |
theme | dark | Player theme, usually dark or light. |
start | 0 | Start time in seconds. |
end | empty | Optional end time in seconds. |
branding | true | Show LittleDemo branding when the plan requires it. |
Example:
html<iframe src="https://littledemo.com/embed/demo_abc123?autoplay=true&loop=true&controls=false" allow="autoplay; fullscreen"></iframe>
SDK data attributes
| Attribute | Description |
|---|---|
data-littledemo-id | Fixed demo ID. |
data-littledemo | Enables dynamic mode when no ID is provided. |
data-littledemo-key | Publishable key override. |
data-littledemo-project | Project override for dynamic embeds. |
data-littledemo-prompt | Prompt override for dynamic embeds. |
data-littledemo-template | Recording template hint. |
data-littledemo-section | Section hint for section-focused recordings. |
data-littledemo-autoplay | true or false. |
data-littledemo-loop | true or false. |
data-littledemo-theme | Player theme. |
data-littledemo-width | Player width. |
data-littledemo-height | Player height. |
Signed runtime payload
Signed runtime embeds use the same player controls plus generation fields:
| Field | Description |
|---|---|
demoId | Existing demo ID to render. |
url | URL to record when no demoId is provided. |
prompt | Recording prompt. |
template | Recording template hint such as guided-tour, pricing-focus, or auto. |
section | Section hint for section-focused recordings. |
durationTarget | Target duration, for example 10s. |
autoplay, loop, controls, theme, start, end, branding | Player options. |