Embed AtomicPlayer on pages
- Open a video and select Get embed or Embed & Share.
- Under Embed snippet, choose JavaScript or Iframe.
- Check Embed status: the video source is ready and the player has a published version.
- If needed, select Publish.
- Select Copy code and paste the code into a page that accepts custom HTML.




Draft until you publish
Every upload gets a draft player, and the video shows Draft until that player is published. See Upload a video. While the player is unpublished, Embed & Share shows This embed will not play yet: the code is a draft, and a page that uses it stays blank. Publish comes before Copy code and is the main button until you publish. If the file is still encoding, the tab also shows The video file is still processing, and the embed has nothing to play until it finishes.
JavaScript or Iframe
JavaScript is recommended. It uses an .atomic-player container with data-player-id and loads https://embed.atomicplayer.ai/player/v1.js. The runtime fetches the published configuration and the video. After the script loads, window.atomicplayer lists every embed on the page.
Iframe is for pages that allow an iframe but block scripts. It loads the player from the video's share link on watch.atomicplayer.ai, followed by /embed. See JavaScript code vs iframe.
Both codes wrap the player in a box sized from the aspect ratio set in Customize. A 9:16 player, or a portrait video, gets a centred box up to 400 px wide. If a portrait video still uses the default 16:9 frame, the player switches to the vertical frame once the video loads.
Embeds don't print the video title or description above the player. Screen readers still read the title as the player's name.
Who can watch
Who can watch, under the embed code, applies to every embed of the video. Unlisted, Embed only and Public embeds play. Password embeds ask for the password in the player. Private embeds stop playing. See Share pages and who can watch.
The iframe code contains the video's share link. If you switch the video to Unlisted or select Reset link, copy the iframe code again.
Keep the same code
You do not need to recopy the code after a normal publish. The player ID, and the share link in the iframe, stay the same and load the current published version.
If domain lock is on, add the exact host or wildcard under Domain access. Only those sites can play the JavaScript embed or frame the iframe embed.
Related docs
Frequently asked questions
Why does the embed say Draft?
No published player version exists yet. An editor must publish before visitors receive a live configuration.
Do I recopy the snippet after styling changes?
Normally no. Publish the new configuration; the stable player ID remains the same.
When should I use the iframe?
When the page allows an iframe but removes scripts. Otherwise use JavaScript.
Why is the video title no longer above my embed?
Embeds show only the player. The title stays as the player's accessible name for screen readers.