Mocart Player embed
PerformanceEmbed a Mocart-hosted video player and swap the creative behind it without changing your page.
The Mocart Player is a Mocart-hosted iframe with a stable URL: https://player.mocart.io/v/<videoId>. You paste it once, and the creative behind it can change later without touching your page.
Copy the embed
- Open an approved Creative and choose Create to mint its embed.
- Choose Copy Embed Link to copy the iframe snippet.
- Paste the snippet once into your placement.
Snippet format copied from a live Mocart Player creative
<iframe src="https://player.mocart.io/v/<videoId>" width="100%" height="100%" frameborder="0" sandbox="allow-scripts allow-same-origin" allow="autoplay; encrypted-media; fullscreen" loading="lazy" style="border: none;"></iframe>
Playback — set in Mocart
Trim
Loop / boomerang
Crop 9:16
Click-through
Copy
The iframe attributes
| Attribute | What it does |
|---|---|
src | The stable player URL — https://player.mocart.io/v/<videoId>. |
width / height | Set to 100% so the player fills its container. Size the wrapper on your side. |
allow | Grants autoplay, encrypted-media, and fullscreen so playback and fullscreen work. |
loading | Set to lazy so the player loads only when it scrolls into view. |
Update vs Swap
Two edits keep the same URL, so the pasted iframe never changes. Update changes playback settings on the same video — trim, loop or boomerang, aspect ratio / crop, mute, poster, and click-through. Swap replaces the source video behind the embed.
- Open the delivered Creative and choose Update or Swap.
- Update: change how it plays. Swap: pick a new approved video to serve at the same URL.
- The live embed changes in place — no code change on the placement.
Campaign exports
Exporting a Campaign mints a server-side embed per Creative. Each one is an object with a playerUrl, an embedCode, and a posterUrl — the same stable player, one entry per Creative in the Campaign.
The Mocart Player is available on the Performance plan. See the Mocart Player for the product walkthrough.
Was this helpful?