Content Area Modal Video

Hey there. Was hoping you all could help us figure out a way to accomplish the following with the Content Area Modal. Essentially what we’re looking to do is have the Content Area Modal trigger an embedded YouTube video to auto play when the modal is opened and then stop playing when the modal closed. It’s a fairly common feature but all I’ve been able to do is get the video embedded within the modal. If I set up the video to autoplay, it plays on page load whether the modal is opened or not. And once the video is playing, it will keep playing in the background even if the modal is closed.

Any help would be greatly appreciated. Thanks in advance.

Hey there,

This would require custom scripting to achieve what you’re after using the Content Area Modal. The most simple setup would be to use the built-in Image and Lightbox shortcodes which has a responsive video support instead. It could also autoplay by adding an autoplay parameter. Try inserting this shortcode setup in your Content Area Modal.

[image src="http://via.placeholder.com/150x50" link="true" href="//www.youtube.com/embed/kfVsfOSbJY0?autoplay=1" lightbox_video="true"][lightbox]

If you wish to continue with your current setup, we do have an in-house custom development team that offer paid services, who may be able to assist.

Thanks.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.