Video in Modal with Autoplay turned on starts on page load instead of when Modal is opened

I have a modal with a video embed I’ve configured with “Autoplay.” I’ve tried a few different video sources–on-site, YouTube, and VocalVideo–all of which offer autoplay functionality that works.

However, the videos autoplay on page load instead of when the modal is opened/toggled.

Is this by design or is there another parameter that I’m missing to get this to work?

I am using the standard “Modal” element and “Video” element in Cornerstone.

Thank you very much.

Hello @instyletech,

Thanks for writing in! With the new Modal element, the Video element that is added inside the modal content gets rendered upon page loading. The Modal element does not have the option for dynamic rendering as the Content Area Modal , and that is why it is unable to stop the video. Although the Content Area Modal is removed from the element list, the Dynamic Rendering feature is one unique case where the content area modal might still be more useful. You can use the Content Modal Area element, by enabling it from Cornerstone > Settings > Permissions > Elements .

Place the Content Area Modal in your column and paste the video embed code in it.

The Dynamic Rendering must be turn ON so that the video will automatically play when the modal is displayed and it will also automatically stop when the modal is closed.

Kindly let us know how it goes.

Thank you. This’ll do!

Hi @instyletech,

Glad that we are able to help you.

Thanks

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