List of iOS Notifications

ThePTMediaPlayerNotifications class lists the notifications that the PSDK dispatches to your player.

Notification Meaning
PTMediaPlayerAdBreakCompletedNotification An ad break ended.
PTMediaPlayerAdBreakStartedNotification An ad break started.
PTMediaPlayerAdClickNotification A user clicked a banner ad.
PTMediaPlayerAdCompletedNotification An individual ad ended.
PTMediaPlayerAdProgressNotification An ad progressed; dispatched constantly while an ad plays.
PTMediaPlayerAdStartedNotification An individual ad started.
PTMediaPlayerItemChangedNotification A different PTMediaPlayerItem of the PTMediaPlayer has been set.
PTMediaPlayerItemDRMMetadataChanged DRM metadata changed.
PTMediaPlayerMediaSelectionOptionsAvailableNotification There are new subtitles and alternate audio tracks (PTMediaSelectionOption).
PTMediaPlayerNewNotificationEntryAddedNotification A new PTNotification has been added to the PTNotificationHistoryItem of the current PTMediaPlayerItem, that is, when a notification event is added to the notification history.
PTMediaPlayerPlayCompletedNotification Media playback ended.
PTMediaPlayerPlayStartedNotification Playback started.
PTMediaPlayerStatusNotification The player status changed. Possible status values are:
  • PTMediaPlayerStatusCreated

  • PTMediaPlayerStatusInitializing

  • PTMediaPlayerStatusInitialized

  • PTMediaPlayerStatusReady

  • PTMediaPlayerStatusPlaying

  • PTMediaPlayerStatusPaused

  • PTMediaPlayerStatusStopped

  • PTMediaPlayerStatusCompleted

  • PTMediaPlayerStatusError

PTMediaPlayerTimeChangeNotification The playback current time changed.
PTMediaPlayerTimelineChangedNotification The current player timeline changed.
PTTimedMetadataChangedNotification The PSDK encountered the first occurrence of a subscribed tag.