Call To Actions
Show Event
You can listen to the cta:show event to get notified when a CTA is shown.
player.on('cta:show', (cta) => {
console.log('CTA is shown', cta);
});
Click Event
You can track when a CTA is clicked using cta:click event.
player.on('cta:click', (cta) => {
console.log('CTA is clicked', cta);
});
Hide Event
If you want to do something when a CTA is hidden, you can listen to the cta:hide event.
player.on('cta:hide', (cta) => {
console.log('CTA is hidden', cta);
});