Embed methods overview
The dashboard generates two embeds for a video:
- JavaScript (recommended): an HTML container with
data-player-idplus the asynchronous AtomicPlayer runtime. - Iframe: for pages that allow an iframe but block scripts. It loads the player from the video's share page on
watch.atomicplayer.ai.
Get the code
- For one video, open Videos → video → Embed & Share (or select Get embed). Choose JavaScript or Iframe under Embed snippet.
- For all configured videos in a workspace, open Integrations & APIs → Integrations. The catalog copies the JavaScript embed.
Editors can publish the player and copy its code from Embed & Share. The workspace embed catalog also shows the published version or draft state.
The JavaScript embed looks like this. The style follows the player's aspect ratio, so copy the code from the dashboard instead of typing it:
<div class="atomic-player" data-player-id="PLAYER_ID" style="width:100%;aspect-ratio:16/9"></div>
<script async src="https://embed.atomicplayer.ai/player/v1.js"></script>
The iframe embed wraps the share link of the video, followed by /embed:
<div style="width:100%;aspect-ratio:16/9"><iframe src="https://watch.atomicplayer.ai/VIDEO_ID/SECRET/embed" title="Video title" style="width:100%;height:100%;border:0" allow="autoplay; fullscreen; picture-in-picture" referrerpolicy="no-referrer-when-downgrade" allowfullscreen></iframe></div>
The secret part is only there while the video is Unlisted. See JavaScript code vs iframe to choose between them.
Paste the complete code into an HTML/code element. The dashboard does not generate a lazy-load variant or a framework package snippet.
Player behavior is configured under the video's Customize tab. Who can watch, under the embed code in Embed & Share, applies to both embeds. Domain access is under Settings → Domain access and takes effect only after Save & publish.
A/B test embed
A test has its own snippet under A/B Tests → test details. Select Copy test embed and place it on the page where the experiment should run. It uses the test ID, not a player ID:

<div class="atomic-player" data-test-id="TEST_ID"></div>
<script async src="https://embed.atomicplayer.ai/player/v1.js"></script>

A draft test embed serves the control video without recording experiment traffic. After launch, the same snippet assigns variants. A video's data-player-id embed always plays that video and does not become a test embed automatically. A test has no iframe embed.
Related docs
- Workspace embed catalog
- Embed options
- JS code vs iframe
- Share pages and who can watch
- Platform guides
Frequently asked questions
Where is the old Embeds menu?
There is no separate Embeds navigation section. Use Integrations & APIs → Integrations, or open a video and choose Embed & Share.
Does the dashboard generate an iframe?
Yes. Open the video's Embed & Share tab and choose Iframe under Embed snippet. The workspace catalog copies the JavaScript embed only.