Video keeps playing once closing modal

Why does the video keep playing in the background when I use the modal element to display a embedded video? Please fix this bug.

1 Like

Hello @threeoten,

Thanks for writing in! The video still play even if the Modal is closed because it does not support the dynamic rendering. You can check out this thread (if you are not part of the beta testing, you cannot view the link):

To get your issue resolved, you can use the deprecated Content Area Modal element instead. If you go under Cornerstone > Settings > Permission > Elements in the dashboard you can re-enable the Content Area Modal element which will make it appear in the builders under a “Deprecated” section. This way you can continue using the old feature.

Once you have inserted the Content Area Modal element into your page and have added the video embed code in it, please do not forget to tick/enable the “Dynamic Rendering” option.

Kindly let us know how it goes.

Hey @threeoten,

I believe this will help you:

Add this Custom Attribute in the Video element to stop the video from playing when you close the Modal.

data-rvt-offscreen-reset

Code provided by: @christian

Hey @Kata789,

Thanks for chiming in and sharing your idea.

Cheers!

1 Like

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