In this tutorial you will see how to add videos from HTML5 Video on Revolution Slider WordPress plugin by layers and how to set it up on your responsive slider to be a background-video full-screen style with an auto-play mode, you also will see where to mute de video.
HTML5 Video On Revolution Slider
1. Add Video Layer
2. HTML5 Video Source
-
Quick Tip
For optimal performance, use a poster/preview image in addition to “Video Preload -> Disable” (see settings here). This way the video will only load when the it actually plays.
Poster Image URL
Click “Set Image” to choose a preview/poster image for the video from your WP Media library, or enter url to the image directly.
MP4, WEBM & OGV Url
Upload your video files to your website via ftp, and then enter their url locations here.
You could also use the “Set Video” option to choose or upload a video from your WP Media library, but depending on the size of your video(s), they may need to be uploaded via ftp.
An “.mp4” version of your video is mandatory, and will work almost everywhere except Firefox on Macs. Because of this, it’s also important to include an alternative version of the video, which can be either “WEBM” or “OGV”. Firefox on Mac supports both of these, so you only need one or the other.
Here’s a free tool you can use to create “ogv” and “webm” versions of your video.
3. HTML5 Video Sizing
Full Screen
OFF = Video size will be whatever width and height you choose (see Layer Styles).
ON = Video will cover the enter size of the slider (width and height will both automatically set to 100%).
Force Cover
OFF = Video will have a CSS background-size of “contain”. This means the video will never be cropped, but depending on the video’s original size ratio in relation to the slider’s actual size, blank space on the sides of the video may occur.
ON = Video will have a CSS background-size of “cover”. This means the video will always cover the entire size of the slider, but depending on the video’s original size ratio in relation to the slider’s actual size, video cropping may occur.
Dotted Overlay *
Choose to display a “mesh-like” transparent graphic on top of the video, adding some extra style to the video.
* only applicable if “Force Cover” is set to “On”.
Aspect Ratio *
Choose which aspect ratio the video should be resized by. For video backgrounds, 16×9 is usually best.
* only applicable if “Force Cover” is set to “On”
4. HTML5 Video Settings
Loop Video
Disable:
Video will only play once each time the video is initially played.
Loop – Slide is paused:
Video will loop endlessly, and the slide will never change unless the slider’s navigation is used (next button clicked, etc.).
Loop – Slide does not stop:
Video will loop endlessly until the slide’s delay is reached. For example, if your slide’s are normally meant to be shown for 10 seconds, but your video’s length is only 5 seconds, the video will play twice before the slide actually changes.
Autoplay
Choose to autoplay the video when it animates into view.
Or choose On 1st Time to autoplay only the first time the slide is shown.
Or choose Not on 1st Time to only autoplay after the slide is shown at least once.
Stop Other Videos
If more than one videos are present in the slide at the same time, choose this option to make sure only one video can be played at a time.
Allow FullScreen
If chosen and controls are not hidden, the controls will include a Full Screen button.
Next Slide on End
ON: Slide will immediately change as soon as the video ends.
OFF: If video’s length is less than the slide’s delay, the slide will not change until the delay time has been reached.
Rewind at Slide Start
ON: Video will always start from the beginning each time the slide is shown.
OFF: Once the video plays, if the slide is changed before the video actually ends, when coming back to the same slide, the video will resume playing from the same point.
Hide Controls
Choose to hide the video’s default player controls.
Mute Video
Choose to mute the video’s volume if it normally has sound.
Start At / End At
Choose to start and/or end the video at a specific time, in minutes:seconds format.
Example “Start At” value: 00:17 (start the video 17 seconds in)
Example “End At” value: 02:17 (end the video at 2 minutes, 17 seconds)
Show Cover at Pause
Show the video’s preview image (see Source section) whenever the video is paused.
Video Preload
The preloading behaviour for the video.
If the video is meant to autoplay as soon as its shown, choose “Auto”.
If autoplay is disabled, choose “Disable” or “Meta”.
5. HTML5 Video Visibility
Disable Mobile
Choose to disable the video for mobile devices (video layer will simply not be shown).
Only Preview on Mobile
When enabled, only the video’s preview/poster image will be shown on mobile devices (video will never be loaded).
All the Visualmodo WordPress themes comes with the Revolution Slider premium WordPress plugin for free while our themes usage.