Props
data-cc-component-video-id
– (string, required): Unique identifier used to match video events to this component.data-cc-component-checkpoints
– (comma-separated numbers, optional): A list of numeric checkpoints (in seconds). These define at which points the trigger button should show or hide.data-cc-component-offer-url
– (string, optional): URL to the offer/CTA pagedata-cc-component-poster-src
– (string, optional): URL to the poster fileRoute Params
Component Attributes
data-cc-component="video"
– Identifies and initializes the componentCustom Behavior
video_started
video_completed
video_checkpoint
video_checkpoint
, it:video-id
.video-trigger-button
inside that wrapper1<video controls>
2 <source />
3 <track kind="captions" label="English" srclang="en">
4 <p>
5 Your browser doesn't support HTML video. Here is a
6 <a class="fallback-link" download="video.mp4">link to the video</a> instead.
7 </p>
8</video>
data-cc-component="video"
data-cc-component-video-id="7d8e63d0-710f-41a3-8d8c-6e752c6239d4"
data-cc-component-offer-url="https://yourdomain.com/offer"
data-cc-component-checkpoints="15,30,45"
data-cc-component-poster-src="https://cdn.example.com/poster.jpg
.video-trigger-button
element.
div
and add all relevant data-cc-component-*
attributes as above..video-trigger-button
element inside.Make sure your video player:video-id
from the wrappervideo_started
, video_completed
, or video_checkpoint
via window.postMessage