Webflow sync, pageviews & more.
NEW

Why is my HTML5 video not showing up when I try to embed it using the Webflow embed HTML widget, even though the video plays fine when I paste the URL into a browser? I have followed the coding guides correctly.

TL;DR
  • Ensure the video is hosted on a public HTTPS server that allows CORS and provides a direct .mp4 link.
  • Use correct

If your HTML5 video isn't displaying in Webflow despite the file working directly in a browser, the issue likely involves file hosting, incorrect video attributes, or Webflow sandboxing of third-party content.

1. Check Video Hosting and Permissions

  • Some servers (like Google Drive, Dropbox, or private hosting) block cross-origin (CORS) access, which Webflow requires to load external video files inside an embed element.
  • Test by:
  • Right-clicking the video link → Open in new tab → If it downloads instead of playing in-client or requires login, it's not embeddable.
  • Use a publicly hosted video instead, such as one on Amazon S3 or a direct video file hosted on your own server with proper permissions.

2. Confirm Correct <video> Tag Syntax

  • Ensure your embed code matches this structure without extra styling or misconfiguration inside the Webflow Embed widget:

    ``

  • Keep in mind:

  • autoplaying video must also be muted for browsers to allow it.

  • If hosted externally, always specify the type attribute (type="video/mp4").

  • Avoid using relative URLs or file paths like /video.mp4 unless the video is hosted on the same domain and available via a direct path.

3. Use HTTPS and Direct URLs

  • Webflow requires assets embedded via the widget to load over HTTPS.
  • Verify your video URL starts with https:// and points directly to the .mp4 file. If the URL is a redirect (e.g., unauthenticated file share URLs), embedding will likely fail.

4. Test Without Browser Extensions or Ad Blockers

  • Some browser extensions like privacy or ad blockers can prevent media from playing or loading.
  • Open your site in incognito mode or try with all extensions disabled.

5. If Using Dropbox, Google Drive, or iCloud – Avoid

  • These services do not serve raw video files correctly for HTML5 embedding. They usually serve preview pages or block embedding altogether.
  • Use a proper file host that serves the .mp4 directly—Amazon S3, GitHub, or dedicated CDN platforms work reliably.

Summary

Your HTML5 video probably isn't appearing in Webflow due to one of three issues: the URL isn't a direct link to an MP4, the server blocks cross-origin access (CORS), or syntax inside the embed has problems. Hosting the video on a CDN with a public HTTPS link and using the correct <video> syntax in the embed widget will resolve the issue.

Rate this answer

Other Webflow Questions