Embed overview

LittleDemo supports fixed embeds, generated embeds, oEmbed, and direct media URLs.

Pick an embed method

MethodUse when
iframeYou already have a demo ID and want the simplest embed.
JavaScript SDKYou want auto-discovery, data attributes, or player control.
Dynamic embedYou want the page itself to request or reuse a relevant demo.
oEmbedYou are pasting into Notion, WordPress, Confluence, or another oEmbed-aware tool.
Media URLsYou need raw video, GIF, or thumbnail assets.

Use an iframe for fixed demos:

html
<iframe src="https://littledemo.com/embed/demo_abc123" width="100%" height="400" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>

Use dynamic embeds only when the page context should choose or generate the demo.

iframe

Small, portable, and works in most HTML surfaces.

Learn More
JavaScript SDK

Auto-create players and control playback from your page.

Learn More
Dynamic embeds

Generate or reuse demos from page context.

Learn More
Media URLs

Fetch raw MP4, GIF, and thumbnail files.

Learn More
Ask a question... ⌘I