Error
The error event signals that the media player encountered an error. Tracking an error does not close the session. If the error prevents playback from continuing, call Session end after the error event.
- Prerequisites: Session start
- Associated metric: Error impacted streams
The errorDetails.source property accepts only two values: player (errors originating in the media player) and external (errors from an outside source such as a CDN or network).
Recommended implementation types
Call sendEvent with eventType: "media.error" and the required errorDetails:
| code language-javascript |
|---|
|
Call trackError with an error ID string.
| code language-swift |
|---|
|
Call trackError with an error ID string.
| code language-kotlin |
|---|
|
Call sendMediaEvent with eventType: "media.error" and the required errorDetails:
| code language-brightscript |
|---|
|
Call the error endpoint with the required errorDetails:
| code language-sh |
|---|
|
Legacy implementation types (Analytics-only)
Call trackError with an error ID string:
| code language-javascript |
|---|
|
Call trackError with an error ID string:
| code language-javascript |
|---|
|
Call mediaTrackError with an error ID and the error source. Use the ERROR_SOURCE_PLAYER constant for player errors:
| code language-brightscript |
|---|
|
Send an error POST to the events endpoint:
| code language-json |
|---|
|