Embedding an MP4 video directly into a Webflow project requires uploading the video file to your project and using the HTML Embed element to integrate it into your page. Here's how to do it:
1. Upload the Video to Webflow's Assets
- Open Webflow Designer and navigate to the page where you want to embed the video.
- Go to the Assets panel on the left-side toolbar.
- Upload your MP4 video file from your local device by clicking on the “Upload” button.
2. Get the Video File URL
- Once uploaded, click on the video in the Assets panel.
- Copy the file URL provided by Webflow. You'll use this URL to embed the video in the next step.
3. Use the HTML Embed Element
- Drag a HTML Embed element from the Add panel into your desired location on the page.
- Enter the following HTML code in the Embed Code Editor:
```
<video controls>
<source src="YourCopiedFile_URL.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
```
- Replace
"YourCopiedFile_URL.mp4" with the link you copied from your uploaded MP4 video.
4. Adjust Video Settings
- Ensure the video has the correct dimensions and alignment on your page using flex or grid layout settings if necessary.
- Test playback in Webflow to confirm it plays without requiring an internet connection.
Summary
To embed an MP4 video in Webflow without relying on an external host, upload the MP4 file to the Webflow Assets panel, obtain its URL, and use an HTML Embed element with the video tag to place it on your page. This ensures your video is embedded locally and can be accessed without an internet connection.