MediaPlayerNotification notifications provide information related to the player’s status.
The diagnostic metadata consists of the following elements:
| Element | Description |
|---|---|
| type | Describes the notification event type. Depending on the platform, this property is an enumerated type with possible values of INFO, WARN, and ERROR. This is the first, and highest-level, classification criterion for the notification events. |
| code | The numerical representation assigned to the
notification event.
|
| name | A string containing a human-readable description of the notification event, such as PLAYBACK_START. |
| metadata | Metadata containing relevant information about the notification stored as key/value pairs. For example, a key named URL would provide a URL related to the notification, such as an invalid URL that caused an error. |
| innerNotification | A reference to another MediaPlayerNotification object that directly impacted this notification. An example might be a notification about an ad-insertion failure that directly corresponds to a time-line insertion conflict. |
You can store this information locally for later analysis or send it to a remote server for logging and graphical representation.