Skip to main content

JavaScript code vs iframe

AtomicPlayer currently provides a JavaScript runtime embed, not an iframe option. The generated snippet contains a data-player-id container and an async script from embed.atomicplayer.ai.

Use the complete generated code from Videos → video → Embed & Share or Integrations & APIs → Integrations. A page builder must allow custom HTML and external scripts. If it sanitizes <script>, move the runtime line to the platform's site-wide custom-code area and keep the player container where the video should appear.

An iframe copied from an older article or assembled manually is not a dashboard-generated integration and may bypass current configuration behavior. Do not present it as a supported equivalent. The JavaScript embed exposes window.atomicplayer so the page can read the current time of each video.

Frequently asked questions​

Can I choose iframe in Embed & Share?

No. The current production tab generates the JavaScript runtime snippet only.

What if my builder removes scripts?

Use its documented custom-code or header/footer script feature. Keep the data-player-id container in the page body.