Webflow sync, pageviews & more.
NEW

Is it possible to embed a .mp4 video from Google Drive to a website using Webflow without using YouTube, Vimeo, or similar hosting sites? If yes, what are the specific steps for doing so?

TL;DR
  • Upload the .mp4 to Google Drive, set it to "Anyone with the link" access, and extract the File ID from the share URL.
  • Build a direct link using the format https://drive.google.com/uc?export=download&id=YOUR_FILE_ID.
  • Add a Webflow Embed element with a custom <video> tag using the direct link as the source.
  • Publish and test your site to ensure the video plays correctly; note that Google Drive isn't optimized for streaming.

Yes, you can embed a .mp4 video hosted on Google Drive into a Webflow site, but it requires generating a direct link and using Webflow’s Embed element.

1. Prepare the Video in Google Drive

  • Upload your .mp4 video to Google Drive.
  • Right-click on the video and choose Get Link.
  • Set the Sharing Permission to “Anyone with the link” and make sure it's Viewer access.
  • Copy the file's File ID from the share link.
    For example, from this link:
    https://drive.google.com/file/d/1AbCdEfGhIjKlm/view?usp=sharing
    The File ID is 1AbCdEfGhIjKlm.

  • Construct the direct source link as follows:
    https://drive.google.com/uc?export=download&id=YOUR_FILE_ID
    Replace YOUR_FILE_ID with your actual file ID.

3. Add Embed Element in Webflow

  • In the Webflow designer, drag an Embed element into the canvas.

  • Paste the following custom HTML (inline-only as per Webflow's support):

    <video width="100%" controls preload="metadata"> <source src="https://drive.google.com/uc?export=download&id=1AbCdEfGhIjKlm" type="video/mp4"> Your browser does not support the video tag. </video>

  • Click Save & Close after entering the code.

4. Publish and Test

  • Publish your site and test the video to ensure it loads and plays correctly.
  • If playback fails, confirm the video is set to the correct Google Drive sharing permissions.

Limitations

  • Google Drive is not optimized for video hosting, so delivery may be slower, or Google may throttle bandwidth.
  • There’s no player customization like you’d get with Vimeo.

Summary

You can embed .mp4 videos hosted on Google Drive into Webflow by generating a direct download link and inserting a custom video tag inside an Embed element. However, it's not ideal for high traffic or large files—consider this a workaround rather than a robust solution.

Rate this answer

Other Webflow Questions