Mocart

Mocart Player embed

Performance

Embed 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

  1. Open an approved Creative and choose Create to mint its embed.
  2. Choose Copy Embed Link to copy the iframe snippet.
  3. 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>
0:06
Playback — set in Mocart
Trim
Loop / boomerang
Crop 9:16
Click-through
<iframe src="https://player.mocart.io/v/<videoId>" …></iframe> Copy
Mocart Player in a placement, controlled from Mocart

The iframe attributes

AttributeWhat it does
srcThe stable player URL — https://player.mocart.io/v/<videoId>.
width / heightSet to 100% so the player fills its container. Size the wrapper on your side.
allowGrants autoplay, encrypted-media, and fullscreen so playback and fullscreen work.
loadingSet 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.

  1. Open the delivered Creative and choose Update or Swap.
  2. Update: change how it plays. Swap: pick a new approved video to serve at the same URL.
  3. 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?