Embed a video collection
Two simple ways embed a collection of Capsule content into your website: embed code & iframe
Basic Usage
<div>
<script>(function(c,a,p,s,u,l,e){c["_capsuleDotVideoIdent"]=p;c[p]=c[p]||function(){
(c[p].q=c[p].q||[]).push(arguments);e=a.querySelector("script[data-capsule='"+p+"']");
if(!e){u=a.createElement("script");u.async=1;u.src=s;u.dataset["capsule"]=p;
l=a.currentScript?.parentElement||a.body;l.appendChild(u);}}})
(window,document,"capsuleDotVideo","https://embed.capsule.video/grid.js");
capsuleDotVideo({
slug: "your-capsule-slug",
el: document.currentScript.parentElement
})
</script>
</div>Additional Parameters
Alternate Method (iframe)
Last updated