This page covers data collection for the Chapter offset variable. See Chapter offset for the corresponding reporting dimension.
The chapter offset variable is the offset of the chapter inside the content, measured in seconds from the start. The first chapter typically has offset 0; subsequent chapters have offsets matching their playhead start time.
a.media.chapter.offsetc_contextdata.a.media.chapter.offsetRecommended implementation types
Set offset inside xdm.mediaCollection.chapterDetails when calling sendEvent:
| code language-javascript |
|---|
|
Pass the offset in seconds as the fourth argument (startTime) to createChapterObject.
| code language-swift |
|---|
|
Pass the offset in seconds as the fourth argument (startTime) to createChapterObject.
| code language-kotlin |
|---|
|
Set offset inside xdm.mediaCollection.chapterDetails when calling sendMediaEvent for media.chapterStart:
| code language-brightscript |
|---|
|
Call the chapterStart endpoint with offset inside xdm.mediaCollection.chapterDetails:
| code language-json |
|---|
|
Legacy implementation types (Analytics-only)
Pass the offset as the fourth argument to ADB.Media.createChapterObject:
| code language-javascript |
|---|
|
Pass the chapter offset in seconds as the fourth argument (startTime) to ADBMobile.media.createChapterObject:
| code language-javascript |
|---|
|
Include media.chapter.offset in the params object of your chapterStart POST request:
| code language-json |
|---|
|
See the Media Collection API events reference for the full request structure.