Timeline: Chapters timeline-3-chapters
VOD, pre-roll ads, pausing, buffering, viewing content to the end
The following diagrams illustrate the playhead timeline and the corresponding timeline of a user’s actions. The details for each action and its accompanying requests are presented below.
Action details
Action 1 - Start session Action-1
/api/v1/sessionsThis call signals the intention of the user to play a video. It returns a Session ID ( {sid} ) to the client that is used to identify all subsequent tracking calls within the session. The player state is not yet “playing”, but is instead “starting”. Mandatory session parameters must be included in the params map in the request body. On the backend, this call generates an Adobe Analytics initiate call. For information about sessions, see the Media Collection API documentation.
{
"playerTime": {
"playhead": 0,
"ts": "<timestamp>"
},
"eventType": "sessionStart",
"params": {
"media.playerName": "sample-html5-api-player",
"analytics.trackingServer": "[ _YOUR-TS_ ]",
"analytics.reportSuite": "[ _YOUR_RSID_ ]",
"analytics.visitorId": "[ _YOUR_VISITOR_ID_ ]",
"media.contentType": "VOD",
"media.length": 60.3333333333333,
"media.id": "VA API Sample Player",
"visitor.marketingCloudOrgId": "[YOUR_MCID]",
"media.name": "ClickMe",
"media.channel": "sample-channel",
"media.sdkVersion": "va-api-0.0.0",
"analytics.enableSSL": false
}
}
Action 2 - Ping timer starts Action-2
Start your ping timer. First ping event should then fire 1 second in if there are pre-roll ads, 10 seconds in otherwise.
Action 3 - Ad break start Action-3
/api/v1/sessions/{sid}/eventsAds can only be tracked within an ad break.
{
"playerTime": {
"playhead": 0,
"ts": "<timestamp>"
},
"eventType": "adBreakStart",
"params": {
"media.ad.podFriendlyName": "ad_pod1",
"media.ad.podIndex": 0, "media.ad.podSecond": 0
}
}
Action 4 - Ad start Action-4
/api/v1/sessions/{sid}/eventsStart tracking the first pre-roll ad, which is 15 seconds long. Including custom metadata with this adStart .
{
"playerTime": {
"playhead": 0,
"ts": "<timestamp>"
},
"eventType": "adStart",
"params": {
"media.ad.podFriendlyName": "ad_pod1",
"media.ad.name": "Ad 1",
"media.ad.id": "001",
"media.ad.length": 15,
"media.ad.podPosition": 1,
"media.ad.playerName": "Sample Player",
"media.ad.advertiser": "Ad Guys",
"media.ad.campaignId": "1",
"media.ad.creativeId": "42",
"media.ad.siteId": "XYZ",
"media.ad.creativeURL": "https://example.com",
"media.ad.placementId": "sample_placement"
},
"customMetadata": {
"myCustomData1": "CustomData1",
"myCustomData2": "CustomData2"
}
}
Action 5 - Ad pings Action-5
/api/v1/sessions/{sid}/eventsPing the backend every 1 second. (Subsequent ad pings not shown in the interest of brevity.)
{
"playerTime": {
"playhead": 0,
"ts": "<timestamp>"
},
"eventType": "ping"
}
Action 6 - Ad complete Action-6
/api/v1/sessions/{sid}/eventsTrack the end of the first pre-roll ad.
{
"playerTime": {
"playhead": 0,
"ts": "<timestamp>"
},
"eventType": "adComplete"
}
Action 7 - Ad start Action-7
/api/v1/sessions/{sid}/eventsTrack the start of the second pre-roll ad, which is 7 seconds long.
{
"playerTime": {
"playhead": 0,
"ts": "<timestamp>"
},
"eventType": "adStart",
"params": {
"media.ad.podFriendlyName": "ad_pod1",
"media.ad.name": "Ad 2",
"media.ad.id": "002",
"media.ad.length": 7,
"media.ad.podPosition": 1,
"media.ad.playerName": "Sample Player",
"media.ad.advertiser": "Ad Guys",
"media.ad.campaignId": "2",
"media.ad.creativeId": "44",
"media.ad.siteId": "XYZ",
"media.ad.creativeURL": "https://example.com",
"media.ad.placementId": "sample_placement2"
},
}
Action 8 - Ad pings Action-8
/api/v1/sessions/{sid}/eventsPing the backend every 1 second. (Subsequent ad pings not shown in the interest of brevity.)
{
"playerTime": {
"playhead": 0,
"ts": "<timestamp>"
},
"eventType": "ping"
}
Action 9 - Ad complete Action-9
/api/v1/sessions/{sid}/eventsTrack the end of the second pre-roll ad.
{
"playerTime": {
"playhead": 0,
"ts": "<timestamp>"
},
"eventType": "adComplete"
}
Action 10 - Ad break complete Action-10
/api/v1/sessions/{sid}/eventsThe ad break is over. Throughout the ad break, the play state has remained “playing”.
{
"playerTime": {
"playhead": 0,
"ts": "<timestamp>"
},
"eventType": "adBreakComplete"
}
Action 11 - Play content Action-11
/api/v1/sessions/{sid}/eventsAfter the adBreakComplete event, put the player in the “playing” state using the play event.
{
"playerTime": {
"playhead": 0,
"ts": "<timestamp>"
},
"eventType": "play"
}
Action 12 - Chapter start Action-12
/api/v1/sessions/{sid}/eventsAfter the play event, track the start of the first chapter.
{
"playerTime": {
"playhead": 0,
"ts": "<timestamp>"
},
"eventType": "chapterStart",
"params": {
"media.chapter.index": 1,
"media.chapter.offset": 0, "media.chapter.length": 20, "media.chapter.friendlyName": "Chapter Uno"
},
}
Action 13 - Ping Action-13
/api/v1/sessions/{sid}/eventsPing the backend every 10 seconds.
{
"playerTime": {
"playhead": 8,
"ts": "<timestamp>"
},
"eventType": "ping"
}
Action 14 - Buffer start Action-14
/api/v1/sessions/{sid}/eventsTrack the move to the “buffering” state.
{
"playerTime": {
"playhead": 11,
"ts": "<timestamp>"
},
"eventType": "bufferStart"
}
Action 15 - Buffer end (play) Action-15
/api/v1/sessions/{sid}/eventsBuffering ends after 3 seconds, so put the player back to the “playing” state. You must send another track play event coming out of buffering. The play call after a bufferStart infers a “bufferEnd” call to the back end, so there is no need for a bufferEnd event.
{
"playerTime": {
"playhead": 11,
"ts": "<timestamp>"
},
"eventType": "play"
}
Action 16 - Ping Action-16
/api/v1/sessions/{sid}/eventsPing the backend every 10 seconds.
{
"playerTime": {
"playhead": 15,
"ts": "<timestamp>"
},
"eventType": "ping"
}
Action 17 - Chapter end Action-17
/api/v1/sessions/{sid}/eventsThe first chapter ends, right before the second ad break.
{
"playerTime": {
"playhead": 20,
"ts": "<timestamp>"
},
"eventType": "chapterComplete"
}
Action 18 - Ad break start Action-18
/api/v1/sessions/{sid}/eventsMid-roll ad of 8 seconds duration: send adBreakStart .
{
"playerTime": {
"playhead": 21,
"ts": "<timestamp>"
},
"eventType": "adBreakStart",
"params": {
"media.ad.podFriendlyName": "ad_pod2",
"media.ad.podIndex": 1, "media.ad.podSecond": 21
}
}
Action 19 - Ad start Action-19
/api/v1/sessions/{sid}/eventsTrack the mid-roll ad.
{
"playerTime": {
"playhead": 21,
"ts": "<timestamp>"
},
"eventType": "adStart",
"params": {
"media.ad.podFriendlyName": "ad_pod2",
"media.ad.name": "Ad 3",
"media.ad.id": "003",
"media.ad.length": 8,
"media.ad.podPosition": 2,
"media.ad.playerName": "Sample Player",
"media.ad.advertiser": "Ad Guys",
"media.ad.campaignId": "7",
"media.ad.creativeId": "40",
"media.ad.siteId": "XYZ",
"media.ad.creativeURL": "https://example.com",
"media.ad.placementId": "sample_placement2"
},
}
Action 20 - Ad Pings Action-20
/api/v1/sessions/{sid}/eventsPing the backend every 1 second. (Subsequent ad pings not shown in the interest of brevity.)
{
"playerTime": {
"playhead": 21,
"ts": "<timestamp>"
},
"eventType": "ping"
}
Action 21 - Ad complete Action-21
/api/v1/sessions/{sid}/eventsThe mid-roll ad is complete.
{
"playerTime": {
"playhead": 21,
"ts": "<timestamp>"
},
"eventType": "adComplete"
}
Action 22 - Ad break complete Action-22
/api/v1/sessions/{sid}/eventsThe ad break is complete.
{
"playerTime": {
"playhead": 21,
"ts": "<timestamp>"
},
"eventType": "adBreakComplete"
}
Action 23 - Chapter start Action-23
/api/v1/sessions/{sid}/events{
"playerTime": {
"playhead": 22,
"ts": "<timestamp>"
},
"eventType": "chapterStart",
"params": {
"media.chapter.index": 2,
"media.chapter.offset": 22, "media.chapter.length": 22, "media.chapter.friendlyName": "Chapter Dos"
},
}
Action 24 - Ping Action-24
/api/v1/sessions/{sid}/eventsPing the backend every 10 seconds.
{
"playerTime": {
"playhead": 27,
"ts": "<timestamp>"
},
"eventType": "ping"
}
Action 25 - Pause Action-25
/api/v1/sessions/{sid}/eventsThe user action moves the play state to “paused”.
{
"playerTime": {
"playhead": 31,
"ts": "<timestamp>"
},
"eventType": "pauseStart"
}
Action 26 - Ping Action-26
/api/v1/sessions/{sid}/eventsPing the backend every 10 seconds. Player is still in the “buffering” state; the user is stuck at 20 seconds of content. Fuming…
{
"playerTime": {
"playhead": 31,
"ts": "<timestamp>"
},
"eventType": "ping"
}
Action 27 - Play content Action-27
/api/v1/sessions/{sid}/eventsMove the play state to “playing”. The play call after a pauseStart infers a “resume” call to the back end, so there is no need for a resume event.
{
"playerTime": {
"playhead": 31,
"ts": "<timestamp>"
},
"eventType": "play"
}
Action 28 - Ping Action-28
/api/v1/sessions/{sid}/eventsPing the backend every 10 seconds.
{
"playerTime": {
"playhead": 37,
"ts": "<timestamp>"
},
"eventType": "ping"
}
Action 29 - Chapter end Action-29
/api/v1/sessions/{sid}/eventsTrack the end of the second and final chapter.
{
"playerTime": {
"playhead": 0,
"ts": "<timestamp>"
},
"eventType": "chapterComplete"
}
Action 30 - Session complete Action-30
/api/v1/sessions/{sid}/eventsSend sessionComplete to the backend to indicate that the user finished watching the entire content.
{
"playerTime": {
"playhead": 45,
"ts": "<timestamp>"
},
"eventType": "sessionComplete"
}
seekStart or seekComplete events. This is because certain players generate a very large number of such events when the end-user is scrubbing, and several hundred users could easily bottleneck the network bandwidth of a backend service. Adobe works around explicit support for seek events by computing heartbeat duration based on device timestamp, rather than playhead position.