Session complete
The session complete event signals that the viewer reached the end of the main content. It does not immediately close the session; the session remains open until it expires naturally. If you want to immediately close the session, call Session end instead.
- Prerequisites: Session start
- Associated metric: Content completes
Recommended implementation types
Call sendEvent with eventType: "media.sessionComplete":
| code language-javascript |
|---|
|
Call trackComplete when the media player reaches the end of content.
| code language-swift |
|---|
|
Call trackComplete when the media player reaches the end of content.
| code language-kotlin |
|---|
|
Call sendMediaEvent with eventType: "media.sessionComplete":
| code language-brightscript |
|---|
|
Call the sessionComplete endpoint:
| code language-sh |
|---|
|
Legacy implementation types (Analytics-only)
Call trackComplete when the media player reaches the end of content:
| code language-javascript |
|---|
|
Call trackComplete when the media player reaches the end of content:
| code language-javascript |
|---|
|
Call mediaTrackComplete when the media player reaches the end of content:
| code language-brightscript |
|---|
|
Send a sessionComplete POST to the events endpoint:
| code language-json |
|---|
|