Notification content

MediaPlayerNotification notifications provide information related to the player’s status.

The PSDK provides a chronologically sorted list of MediaPlayerNotification notifications. Each notification contains the following:
  • Time stamp
  • Diagnostic metadata, including a numeric code, a name for the notification, metadata keys, and related inner notifications

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.
  • Error notification events, from 100000 to 199999
  • Warning notification events, from 200000 to 299999
  • Information notification events, from 300000 to 399999
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.