CM Pop-Up Banners (CMPB) - Video Pop-Up Banner
Video Pop-Up Banner
With the CM Popup Banners plugin you can trigger the popup to appear once hovering or clicking over an element on the page. Banner can also contains a video.
To create video banner navigate to the Admin Dashboard → CM Pop-Up Banners → Add New Campaign.
To display video (for example from Vimeo) in the pop-up banner place <iframe> element with video URL as src attribute in the content (make sure you are in Text mode). You can also set weight and height attributes like shown below:
Scroll down to the Campaign Options.
In Basic Visual tab set values for Width and Heights as for iframe attributes.
Click on Activity tab. Here you can decide when a video pop-up should be displayed. Read more about triggers here.
To complete Campaign set the rest of pop-up options (read more here) and publish Campaign.
Below: Front-end Pop-Up Banner with video.
Adding an AutoPlay
Making the video autoplay depends on the parameters you use in the iframe and depends on the platform you use (Vimeo, Youtube, Wistia or other)
For YouTube you need to pass something like this:
<iframe width="640" height="360" src="[YouTube Video URL]?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>
For Vimeo simply add ' &autoplay=true' add the end of your embed src URL.