Chapter complete
The chapter complete event signals that a chapter finished playing. Send it when the viewer reaches the end of a chapter. If the viewer skips the chapter, send Chapter skip instead.
- Prerequisites: Session start, Chapter start
- Associated metric: Chapter completes
Recommended implementation types
Web SDK
Call sendEvent with eventType: "media.chapterComplete":
| code language-javascript |
|---|
|
iOS
Call trackEvent with the ChapterComplete event type.
| code language-swift |
|---|
|
Android
Call trackEvent with the ChapterComplete event type.
| code language-kotlin |
|---|
|
Roku Edge
Call sendMediaEvent with eventType: "media.chapterComplete":
| code language-brightscript |
|---|
|
Media Edge API
Call the chapterComplete endpoint:
| code language-sh |
|---|
|
Legacy implementation types (Analytics-only)
Media SDK JS 3.x
Call trackEvent with the ChapterComplete event type:
| code language-javascript |
|---|
|
Chromecast
Call trackEvent with the ChapterComplete event type:
| code language-javascript |
|---|
|
Roku 2.x
Call mediaTrackEvent with the MEDIA_CHAPTER_COMPLETE event type:
| code language-brightscript |
|---|
|
Media Collection API
Send a chapterComplete POST to the events endpoint:
| code language-json |
|---|
|
recommendation-more-help
media-analytics-help