How to embed a video in Google Sites without YouTube
Google Sites only offers YouTube and Drive videos in its Insert menu. With Embed code you can add a video from any host, without YouTube's suggestions.
The Insert menu of Google Sites offers YouTube and videos from Google Drive. YouTube shows its logo and suggested videos from other channels, and Drive videos only play for visitors who have access to the file and can take a while to process after upload. For a school project, a club page or an internal site there is a third way: Google Sites accepts plain embed code, so you can show a video from any host that offers an iframe.
Before you start
Upload the video to Vidlify (free with 30 GB of storage), open it and copy the embed code under Share and embed. The responsive version fills the width of the box and keeps the 16:9 shape.
Add the video
- Open your site in Google Sites on a computer.
- On the right, click Insert and then Embed.
- Switch to the Embed code tab and paste the code.
- Click Next. You see a preview of the player.
- Click Insert, then drag the corners of the box until the video has the size you want.
- Click Publish at the top right. Changes only go live after publishing.
The By URL tab next to it also works with a video link, but the embed code gives you more control over size and options.
Useful options
Add these to the address in the src attribute:
?t=30starts the video at second 30?autoplay=1&muted=1starts it automatically, muted (why muted)
Domain lock and Google Sites
Google Sites places embedded code inside its own frames on Google addresses. If you lock the video to your domain under Allow embedding only on these domains, the player sees a Google address instead of your site and stays black. Leave the lock off for videos on Google Sites. To keep a video away from search engines and strangers, set it to unlisted instead (unlisted vs private).
Troubleshooting
- The box shows a scroll bar or the video is cut off: make the box bigger by dragging its corners, or use the responsive version of the code.
- The video plays in the editor but not on the live site: you haven't published yet. Click Publish.
- Visitors from your school or company don't see the video: some organisations block outside websites in their network. Ask the admin to allow the video host, or test from another network.
- Drive video says it's still processing: that's a Drive limit, not a Sites problem (why Drive videos get stuck).
Source for the Google Sites steps: Google's help page Add Google files, videos, website content and more.