# Embed on your website

> Show a video on WordPress, Webflow, Squarespace, Ghost, or any website by pasting an iframe.

Paste an iframe to show a video on a website you don't build yourself, such as a WordPress or Webflow site. Chunkify hosts the player, so your site's theme and plugins can't change how it looks or plays.

Before you start, check that:

- **Public playback** is turned on for the video asset.
- The video's storage has a [CDN](/docs/storage/cdn-delivery).
- The CDN's [CORS rule](/docs/storage/cors#allow-video-playback) allows `https://chunkify.dev`. If you connected your storage with the [guided Cloudflare setup](/docs/storage/cloudflare-r2), this is already done.

## Get the embed code

Open the video asset and select **Embed** in its **Playback** section, then **Copy code**. The code already matches the video's shape. The **Embed URL** above it is the player's address alone, to [paste as a link](#paste-a-link).

<a href="/docs/assets/images/integration/embed/embed-code.jpg"><img src="/docs/assets/images/integration/embed/embed-code.jpg" alt="Playback section of a sample video asset with the Embed tab selected, showing the Embed URL, the iframe code with a Copy code button, and the Public playback switch turned on" width="1060"/></a>

If the tab shows a message instead of the code, it tells you what's missing.

## Add it to your site

Paste the code where the video should appear: in a WordPress **Custom HTML** block, a Webflow **Code Embed** element, a Squarespace **Code** block, a Ghost **HTML** card, or any HTML on your page.

<a href="/docs/assets/images/integration/embed/embed-on-website.jpg"><img src="/docs/assets/images/integration/embed/embed-on-website.jpg" alt="A sample blog post with an embedded Chunkify video between two paragraphs" width="908"/></a>

## Paste a link

To show the player in a page or document, paste the video's **Embed URL** from the **Embed** tab on its own line. Notion and other editors that embed links show the player. In Notion, choose **Embed** if it asks.

To share the video with people, send its **Public page URL**. It opens a page with the player, and chat apps such as Slack and Discord show a preview with the video asset's title and poster, so give it a title you're happy to share. Some editors that support [oEmbed](https://oembed.com), such as Ghost, also show the player from this link.

You can paste either link as soon as the upload finishes: until the video can play, the player says it's processing and starts once it's ready.

WordPress only turns links from providers on its own list into players, so use the embed code in a **Custom HTML** block there.

To look up the player yourself, call `https://chunkify.dev/oembed?url=` with the video's public page or embed URL. Add `maxwidth` or `maxheight` to fit the player in a smaller space.

## Set the player appearance

Every embed uses the appearance saved for your Project. To change it, open the playground from **Video streaming → Playground**, or select **Open in playground** in a video's **Playback** section, then choose:

- **Theme:** **Auto** follows each viewer's system setting. **Light** or **Dark** always uses one palette.
- **Colors:** set the primary, secondary, and accent colors for the light and dark palettes.
- **Player buttons:** turn off buttons you don't want, such as Cast or Picture-in-picture. The player shows the others only when the video and browser support them.

When you select **Save**, embeds already on your websites update within a minute. To set it from your code, use the Project's `player_appearance` in the API.

<a href="/docs/assets/images/integration/embed/player-appearance.jpg"><img src="/docs/assets/images/integration/embed/player-appearance.jpg" alt="Playground with the Appearance panel showing the theme, the color fields, and the collapsed Player buttons section, next to a preview of the player" width="1104"/></a>

Styles on the page around the iframe don't affect the player.

## Playback options

To change how one embed plays, add parameters to its `src` URL, for example `…/embed/ast_2vHSfUdwBNDnrdWlCXqhz9Ycm6M?autoplay=1&loop=1`. In the playground, the **Embed** tab adds them for you.

| Parameter | Effect |
| --- | --- |
| `autoplay=1` | Starts playback muted, as browsers require. |
| `muted=1` | Starts muted. |
| `loop=1` | Restarts at the end. |
| `start=90` | Starts at 90 seconds. |
| `theme=light` or `theme=dark` | Uses one palette instead of the saved theme. |

## Troubleshooting

- **The video is unavailable:** check the three points at the top of this page. If the CDN refuses `https://chunkify.dev`, the browser console says so.
- **Fullscreen is missing or the embed disappears:** keep the `allow` and `allowfullscreen` attributes when you paste the code. Some website builders and plans remove iframes from HTML blocks.
- **A change doesn't show yet:** embeds pick up a new appearance or Public playback setting within a minute.
