CTA
When a Call-to-Action (CTA) is clicked in the LiSA Player, a message is sent containing detailed information about the CTA intent and any relevant auxiliary data.
The player distinguishes different types of CTAs.
calendar— Add to Calendarcomment— Link in Commentscountdown— Live Stream Countdown Viewfeedback— Live Stream Feedback Viewpoll— Pollshare— Social Sharingsponsor— Sponsor Badge
This message is sent by the LiSA Player to the host app / environment.
Properties
Along with all standard Message properties, a CTA message includes the following additional properties:
auxiliaryData
AuxiliaryDataRequired.
The auxiliaryData property is an object that holds additional metadata related to a Call-to-Action. The structure and contents of this object vary depending on the specific type of CTA being used.
Please refer to AuxiliaryData for detailed information.
ctaType
CtaTypeRequired.
The ctaType property specifies the distinct type of a CTA.
Refer to CtaType for detailed information.
mediaItemId
stringRequired.
The mediaItemId property uniquely identifies the Media Item from which this message originates.
mediaItemType
MediaItemTypeRequired.
The mediaItemType property specifies the type of Media Item from which this message originates.
Refer to MediaItemType for detailed information.
messageType
LiteralRequired.
lsc:cta:click
progress
MediaProgressRequired.
The progress property is an object that holds additional metadata related to the media playback progress of the current media item.
Please refer to MediaProgress for detailed information.
Type Definition
interface CtaMessage extends Omit<
Message,
'messageType' | 'sender'
> {
auxiliaryData: AuxiliaryData;
ctaType: CtaType;
mediaItemId: string;
mediaItemType: MediaItemType;
messageType: 'lsc:cta:click';
progress: MediaProgress;
sender: 'LiSA';
}AuxiliaryData
AuxiliaryDatainterface AuxiliaryData {
[key: string]: unknown; // Properties vary based on CTA type
}CtaType
CtaTypetype CtaType =
| 'calendar'
| 'comment'
| 'countdown'
| 'feedback'
| 'poll'
| 'share'
| 'sponsor';Last updated