Modal with iframe embed youtube content

Hello,

Got a modal that shows an embeded youtube video. But when i click to close the modal, the youtube video still plays and you can hear it.

How can i prevent this? URL example in secure note.

Hey @fxground,

Thanks for reaching out!

To stop the iframe video when closing the modal. You need to add this custom attribute data-rvt-offscreen-reset in the text element inside your modal.

Hope that helps.

Hello,

Thanks. I did that as you can see on the same page/button in the text element but its not working still.

https://www.screencast.com/t/f3YvMw6LgEz can also see it on the source of the page in the secure note url above.

Hey @fxground,

You are doing it wrong. It should be like this one:

I tried it on my development website and it is working well.

Hope that helps.

Thanks, works perfectly.

Hi @fxground,

Glad that it works for you.

Thanks

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