Skip to content

PlayerEventCreator

Arjun Komath edited this page Sep 26, 2017 · 2 revisions

EngageEvent creator for Content Download events

Method Summary

Method Description
onPlaybackBuffering Creates EngageEvent representing playback buffering
onPlaybackCompleted Creates EngageEvent representing playback complete
onPlaybackError Creates EngageEvent representing playback error
onPlaybackPaused Creates EngageEvent representing playback pause
onPlaybackResumed Creates EngageEvent representing playback resume
onPlaybackSeek Creates EngageEvent representing playback seek
onPlaybackStarted Creates EngageEvent representing playback start
onPlaybackStopped Creates EngageEvent representing playback stop
onTrackChange Creates EngageEvent representing audio/video/subtitle track change
putAudioLanguage Set the audio language
putContentTitle Set the title of the content
putContentType Set the type of the content
putDisplayMode Set the mode by which content is played
putDuration Set the duration of playback
putEndTime Set the playback ending timestamp
putGenre Set the content genre
putProgress Set the progress of playback
putStartTime Set the playback starting timestamp
putSubtitleLanguage Set the subtitle language
putVideoQuality Set the current video quality

Example

onPlaybackStarted

ENGAGE
    .onPlaybackStarted(CONTENT_ID)
    .putContentTitle(OPTIONAL_TITLE_OF_THE_CONTENT)
    .putContentType(OPTIONAL_TYPE_OF_THE_CONTENT)
    .track();

Clone this wiki locally