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.
In this article:
Adding parameters to the embed code
You can manually add the following parameters into your embed code to set your embedded videos to autoplay and/or loop:
- loop=1
- autoplay=1
<iframe src="https://player.vimeo.com/video/76979871?autoplay=1&loop=1" width="640" height="360" frameborder="0" allow="autoplay; fullscreen= allowfullscreen></iframe>
Adding parameters for multiple autoplay videos
If you have more than one video set to autoplay on a particular page, you will also need to include this parameter:
- autopause=0
If you were embedding two autoplay, looping, videos on a page, the embed code for each would look like this:
Custom dimensions embed code:
<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:
<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>
Restrictions
If your video is set to the Unlisted privacy setting, additional parameters must be added after the privacy hash parameter. This will appear directly after the video ID in the URL and looks similar to ?h=913062c8ff. Every parameter after the hash can be added using '&' rather than '?'.
Additional restrictions may prevent autoplay or loop from functioning as expected. Learn more at 'Troubleshooting: Autoplay restrictions'.