Embed a single video
How to use the Capsule Player embed code
Last updated
How to use the Capsule Player embed code
Last updated
You can copy the embed code for any video in your Capsule Dashboard like this:
Here's an example of an embed code:
The follow parameters can be used to customize the embedded player:
Parameter
Description
Default
slug
Your subdomain (e.g. your-capsule-slug.capsule.video) or, in the case of a custom domain, the full domain replacing "." with "-" (e.g. www-yourdomain-com)
id
The ID of the video you're embedding. This is the unique ID at the end of the URL when viewing a video in a public-facing Capsule.
el
Optionally specify an #id or .class to append Capsule content within an existing div rather than inline below this script tag
width
Width of the video player, in pixels
450
height
Height of the video player, in pixels
600
animated
Whether to animate the thumbnail
true