This feature is included with all Vimeo plans.
You can add autoplay and loop parameters to your video’s embed code. Your most recently uploaded Public videos (or recently set to Public) will autoplay first. This article explains how to add these parameters to your embed code.
In this article:
- How to add parameters to the embed code
- How to add parameters for multiple videos
- What happens if my video’s privacy is set to Unlisted?
- Suggested next steps
How to add parameters to the embed code
To manually add parameters into your embed code to set your embedded videos to autoplay and/or loop:
- Find your existing Vimeo embed code
- Decide which parameters you need:
- For looping: loop=1
- For autoplay: autoplay=1
- Add your chosen parameter to the embed code.
- Replace the original embed code on your website with the new code containing the added parameters.
Example:
<iframe src="https://player.vimeo.com/video/76979871?autoplay=1&loop=1"width="640" height="360" frameborder="0" allow="autoplay; fullscreen= allowfullscreen></iframe>;
How to add parameters for multiple videos
To add parameters to multiple videos:
- Find your existing Vimeo embed code.
- If you are embedding more than one video set to autoplay, you must include all three parameters:
- For looping: loop=1
- For autoplay: autoplay=1
- For multiple videos on the same page: autopause=0
- Add all three parameters, separating them with an ampersand (&).
- Replace the original embed code on your website with the new code containing all necessary parameters.
-
Custom dimensions embed code: This creates a video player with a fixed, unchanging size (in pixels), regardless of the screen size.
Example:
<iframe src="https://player.vimeo.com/video/76979871?autoplay=1&loop=1&autopause=0" width="640" height="360" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>;
- Responsive embed code: This creates a video player that automatically scales and adjusts its size to fit the user's screen or device.
Example:
<div style="padding:56.25% 0 0 0;position:relative;"><iframe src="https://player.vimeo.com/video/76979871?autoplay=1&loop=1&autopause=0?badge=0&autopause=0&player_id=0&app_id=58479" frameborder="0" allow="autoplay; fullscreen; picture-in-picture; clipboard-write" style="position:absolute;top:0;left:0;width:100%;height:100%;" title="Help Center Video"></iframe></div><script src="https://player.vimeo.com/api/player.js"></script>
What happens if my video’s privacy is set to Unlisted?
If your video's privacy is set to Unlisted, the process for adding embed parameters changes slightly.
- Privacy Hash: Your video's URL will automatically include a special security code, known as the privacy hash, immediately following the video ID. This hash will be introduced by a question mark (?) and looks similar to this: ?h=913062c8ff.
- Syntax Change: Since the question mark (?) is already in use by the privacy hash, every playback parameter you wish to add (like autoplay=1 or loop=1) must be appended using the ampersand symbol (&) instead of a question mark.
Suggested next steps
- For further details on potential restrictions that could hinder autoplay or loop functionality, refer to Troubleshooting: Autoplay restrictions.
- Read more about player parameters.