Introduction
Motto’s embeddable player lets you put any video, event, or creative work directly on your own website using a standard HTML<iframe> tag — no SDK or JavaScript required on your side.
The embed is served from Motto’s infrastructure, so you do not need to host anything yourself. Your viewers can watch content in the iframe exactly as they would on a native Motto OTT platform, including ads and adaptive streaming.
The embed player supports public content only.
Get Started
The easiest way to get the embed code is directly from Motto Studio:- Find the video or event you want to embed.
- Open its options menu by clicking the three-dot icon on the item’s row.
- Click Embed video.
- In the embed modal, click Copy to copy the ready-made HTML snippet.
- Paste the copied snippet into your website’s HTML.
The copied snippet follows this structure. You can also build it manually by replacing the placeholder values with your content ID and public key:
<div> with your desired width.
Query parameters
All embed types
Event and creative-work embeds
Example with autoplay
Listening to player events
The embed player can notify your page about playback events using the browser’spostMessage API. This is optional — the player works without it.
To listen for events, add a message event listener on your page:
Available event types
All events carry
{ source: 'motto-embed', type: string, payload?: object }.
Content Protection
By default, every website is allowed to embed your videos using the approach described here. However, this means it is trivial for malicious actors to distribute your content by embedding it in their own website rather than yours. To prevent this, you can use our Domain Pinning feature. By doing so, only the domains that you configure will be allowed to embed your content. At a technical level, this is done via aContent-Security-Policy: frame-ancestors <domains> header in the iframe page, which tells the user’s browser
whether to allow loading the iframe.
If your website sets a
Content-Security-Policy: frame-src header, add frame-src https://embed.mottostreaming.com to allow the iframe to load.Next Steps
- Enable video ads and pass
ads=1in your embed URL to monetize your embedded content.

