YouTube is the default for putting videos on a website, but it is not always a good fit. Its player is built to keep viewers on YouTube: suggested videos from other channels, links back to the platform, and your video sitting next to everyone else's. If you just want your video on your page, an independent video host does the job with less noise.

What you need

  • the video file (MP4, MOV, MKV, WebM and most other formats work)
  • a Vidlify account, free with 30 GB of storage
  • a website where you can paste HTML, for example WordPress, Webflow, Squarespace, Ghost or a page you built yourself

Step 1: Upload the video

Open Upload and drop the video in. After the upload, the video is converted into several qualities, from 360p up to 4K if your source is 4K. You can watch the progress in My files. Converting takes a while for long or 4K videos, the page updates on its own.

Leave "Store videos as plain files" switched off: you want the player, not a download.

Step 2: Copy the embed code

Open the video and scroll to Share and embed. There are two versions of the code.

The fixed size version is a plain iframe:

<iframe src="https://vidlify.to/e/VIDEO-ID" width="640" height="360" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe> 

The responsive version wraps the iframe so it always fills the width of its container and keeps the 16:9 shape. On phones this is usually the better choice.

Step 3: Paste it into your site

  • WordPress: add a "Custom HTML" block and paste the code.
  • Webflow: use an "Embed" element.
  • Squarespace: add a "Code" block.
  • Your own HTML: paste it where the video should appear.

Publish, and the player shows up on your page. It adapts the quality to each viewer's screen and connection, and it works in fullscreen and picture-in-picture.

Useful options

You can add these to the address in src:

  • ?t=30 starts the video at second 30.
  • ?autoplay=1&muted=1 starts it automatically. Browsers only allow autoplay when the video is muted, so both are needed.

Keep the video on your site only

By default, anyone who has the embed code could put your video on their own page. If you don't want that, open the video's settings and enter your domain under Allow embedding only on these domains. The player then only plays on your website and its subdomains. How the domain lock works.

Links in chats and social posts

The normal video link also works on its own. When you post it in a chat or on social media, most apps show the title and a preview image, and some play the video right in place.

What about SEO?

Search engines don't index the Vidlify pages of your uploads, so your video won't compete with your own website in search results. The page that ranks is yours: write a good title and a few sentences around the embedded video, and the traffic goes to your site.

Originally published on the Vidlify blog.