Videofast.wistia.net/embed/iframe
Can you embed Wistia in an iframe?
Yes, with the Fallback (iframe) embed code. Wistia recommends its Standard JavaScript embed, and gives the iframe for sites that block scripts.
Checked Test again
Live check
Two links, two results
Home pageEmbeddable
wistia.com- X-Frame-Options
- Not sent
- CSP frame-ancestors
- Not sent
- Response
- 200 OK · 409 ms · HTTPS
Iframe URLEmbeddable
fast.wistia.net/embed/iframe/26sk4lmiix- X-Frame-Options
- Not sent
- CSP frame-ancestors
- Not sent
- Response
- 200 OK · 195 ms · HTTPS
Steps
How to embed Wistia
- Open the page of the video in your Wistia account.
- Click Embed to open the embed modal.
- Select the Inline style. Then, under Embed Type, select Fallback (iframe).
- Select Responsive or Fixed size.
- Click Copy Code. Paste the code into an HTML embed or custom code block on your page.
Embed code
Paste this into your page
HTML
<iframe
src="https://fast.wistia.net/embed/iframe/{media-hashed-id}?seo=true&videoFoam=false"
title="{video title}"
allow="autoplay; fullscreen"
allowtransparency="true"
frameborder="0"
scrolling="no"
class="wistia_embed"
name="wistia_embed"
width="640"
height="360">
</iframe>
<script src="https://fast.wistia.net/assets/external/E-v1.js" async></script>The iframe plays without the script. With domain restrictions, keep E-v1.js on the page, outside the iframe.
URL patterns
Swap the link you have for the embed URL
- You have{account}.wistia.com/medias/{media-hashed-id}Use in the iframefast.wistia.net/embed/iframe/{media-hashed-id}
Add options such as autoPlay=true after a ?, with & between them. Use percent encoding for names and values.
Good to know
- Wistia recommends the Standard JavaScript embed where JavaScript is allowed.
- Use the Fallback iframe on sites and site builders that block Wistia's script.
- Domain restrictions apply to the whole account. Only the Account Owner can turn them on.
- On a blocked site, the player shows "This video is not authorized to be embedded here."
Sources
- Wistia Help Center · Embed Your Mediasupport.wistia.com/en/articles/8233354-embed-your-media
- Wistia Help Center · Wistia Inline Embedssupport.wistia.com/en/articles/9691677-wistia-inline-embeds
- Wistia Help Center · Embed in CMS Platforms and Site Builderssupport.wistia.com/en/articles/9311383-embed-in-cms-platforms-and-site-builders
- Wistia Help Center · Domain Restrictionssupport.wistia.com/en/articles/9691672-domain-restrictions
- Wistia Developers · Construct a Wistia Embed Codedocs.wistia.com/docs/construct-a-wistia-embed-code
- Wistia Developers · iFrame Embed Optionsdocs.wistia.com/docs/iframe-embed-options
- iframecheck live check · both links
Profile updated