Update 2023: If you are facing autoplay issues please check if your web server is not setting the
Permissions-Policy
HTTP header withautoplay=()
. Changing that toautoplay=(self)
orautoplay=(*)
will fix the issue.
If you have any page with a video essential to watch prior to moving on to further content, then autoplay is the feature to go with. It will start a video or a whole playlist automatically when a page is loaded.
This documentation describes:
- Autoplay as Default
- Autoplay for Individual Videos
- Playlist Autoplay
- Autoplay Only Once
- Problems with audible Autoplay
Autoplay as Default
To make this feature default for your whole website, go to wp-admin > FV Player > Settings > Setup tab > Autoplay and preloading and pick either “Autoplay Video in Viewport” or “Sticky Autoplay”.
The options are:
- Off
- Video Preload – First 3 videos on page will preload (or 1 if it’s HLS). Then it will play instantly when clicked.
- Autoplay Video in Viewport – Video will autoplay when the player is visible on page load or when user scrolls down to it. It will pause when no longer in browser viewport.
- Sticky Autoplay – The video will autoplay and become sticky – following user’s scroll position.
Autoplay for Individual Videos
To activate the feature in order to be used for individual videos, go to Settings > FV Player > Setup tab > Post Interface Options, check the Autoplay checkbox and click Save All Changes.
Autoplay for individual videos
When using the shortcode editor, select Yes from the Autoplay drop-down menu in Options tab, to have the video played automatically when the page is loaded.
Alternatively, you can add the autoplay=”true” attribute in the video shortcode.
[fvplayer src="http://yourdomain.com/Video_1.mp4" autoplay="true"]
If you have set Autoplay as a default for your whole website and don’t want to use it for a particular video, then just select No in the shortcode editor, or add the parameter autoplay=”false” into the shortcode.
Playlist Autoplay
The autoplay function can be also applied to a playlist. Activate it by selecting Yes in the Autoplay listbox when creating or editing a playlist.
Autoplay only once (Pro feature)
Makes sure each video is auto-played only once for each visitor. It works for single videos that have autoplay turned on. If you have multiple videos in a page with autoplay turned on, only the first (top) one will be played automatically and only once.
If you have a playlist with autoplay turned on, it will always be automatically played when the visitor visits your site repeatedly.
To use this feature, you need to have FV Player Pro installed. Activate the feature in the admin panel of your WordPress site at Settings > FV Player Pro > Setup tab > Pro Features, select Autoplay just once, click Save All Changes.
Autoplay in Lightbox
Video gets displayed in a pop-up window, while the background gets dimmed. Here you can learn about Using the Video Lightbox Effect. Click Play button to begin playback. When using the shortcode editor, select Yes, for Autoplay, then select Lightbox popup, then click Update.
Enabling autoplay in Lightbox
Problems with audible Autoplay
We’ve received an increased amount of complaints about Autoplay not working properly. That’s because of the new restrictions set in Google Chrome 66 – the most popular web browser.
It is highly annoying when you visit a website, and suddenly there is upbeat music playing and you have no idea where it is coming from. Therefore, companies like Apple or Google are gradually making it harder and harder for websites to autoplay audible video without user intervention.
This is how the error appears on browser console:
It was always working like that mostly for mobile users, also saving the precious mobile internet bandwidth. Then the issue became so big, that desktop browsers started to address it as well. First Safari 11 (released in September 2017) blocked any autoplay video which is not muted. Now Chrome 66 (released in April 2018) blocks audio in autoplay video unless:
- User has interacted with the domain before by clicking or tapping on the website.
- Or the user’s Media Engagement Index (MEI) threshold has been crossed, meaning the user has previously played video with sound.
So if a user has played a video on your site before, further videos can autoplay without any issues. Otherwise, only muted autoplay is allowed.