How to Embed Vidalytics Videos Into Modals
If you're looking to embed your Vidalytics videos into a modal/pop-up on your webpage, we have a few options for you!
If you have our Smart Autoplay feature enabled, the example below will show you how to embed the video so the video only plays when you open the modal and will pause when you close it!
https://codepen.io/vidalytics/pen/YzEGrqO
This example will work best for you if there is a case where you would want to completely remove the video from the DOM when the modal is closed. This will cause your video to restart when the modal is closed.
https://codepen.io/vidalytics/pen/YzEGxov
When using the code examples above for your own webpage, you will need to edit the following parts to match your own video embed code: