Other Constants
The following constants are available globally.
- 
                  
                  
Posted when the fullscreen button was pressed and internal fullscreen handling is disabled
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerToggleFullscreenNotificationSwift
static let APSMediaPlayerToggleFullscreen: NSNotification.Name - 
                  
                  
Posted before the media player enters fullscreen
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerWillEnterFullscreenNotificationSwift
static let APSMediaPlayerWillEnterFullscreen: NSNotification.Name - 
                  
                  
Posted after the media player enters fullscreen
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerDidEnterFullscreenNotificationSwift
static let APSMediaPlayerDidEnterFullscreen: NSNotification.Name - 
                  
                  
Posted before the media player exists fullscreen
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerWillExitFullscreenNotificationSwift
static let APSMediaPlayerWillExitFullscreen: NSNotification.Name - 
                  
                  
Posted after the media player exists fullscreen
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerDidExitFullscreenNotificationSwift
static let APSMediaPlayerDidExitFullscreen: NSNotification.Name - 
                  
                  
Posted before starting Picture in Picture mode
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerWillStartPictureInPictureNotificationSwift
static let APSMediaPlayerWillStartPictureInPicture: NSNotification.Name - 
                  
                  
Posted after Picture in Picture mode was started
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerDidStartPictureInPictureNotificationSwift
static let APSMediaPlayerDidStartPictureInPicture: NSNotification.Name - 
                  
                  
Posted before stopping Picture in Picture mode
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerWillStopPictureInPictureNotificationSwift
static let APSMediaPlayerWillStopPictureInPicture: NSNotification.Name - 
                  
                  
Posted after stopping Picture in Picture mode
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerDidStopPictureInPictureNotificationSwift
static let APSMediaPlayerDidStopPictureInPicture: NSNotification.Name - 
                  
                  
Posted when the user taps on the media player surface
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerWasTappedNotificationSwift
static let APSMediaPlayerWasTapped: NSNotification.Name - 
                  
                  
Posted when the video controls bar becomes visible
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerControlsDisplayedNotificationSwift
static let APSMediaPlayerControlsDisplayed: NSNotification.Name - 
                  
                  
Posted when the video controls bar becomes hidden
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerControlsHiddenNotificationSwift
static let APSMediaPlayerControlsHidden: NSNotification.Name - 
                  
                  
Posted every time the internal status of the media player changes. This will happen roughly once every second.
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerUpdateNotificationSwift
static let APSMediaPlayerUpdate: NSNotification.Name - 
                  
                  
Posted when a media unit finishes playback, before the remaining playlist units are processed. The
userInfodictionary contains the APSMediaUnit object that just finished playback under theKAPSMediaPlayerCurrentUnitkey.Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerUnitFinishedNotificationSwift
static let APSMediaPlayerUnitFinished: NSNotification.Name - 
                  
                  
Posted when the media player encounters an error in the process of unit playback. The
userInfodictionary contains the NSError object that represents the error under theerrorkey.Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerErrorNotificationSwift
static let APSMediaPlayerError: NSNotification.Name - 
                  
                  
Posted when the media player playback state has changed. You can immediately get the new state using the
playbackStatemethod of the APSMediaPlayer instance.Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerStatusChangedNotificationSwift
static let APSMediaPlayerStatusChanged: NSNotification.Name - 
                  
                  
Posted when a trackable playback event occurs. The
userinfodictionary contains additional information about the tracked event:- the 
kAPSMediaPlayerEventDescriptionkey returns a string description of the tracked event - the 
kAPSMediaPlayerEventTypekey returns one of the possible event type constants - the 
kAPSMediaPlayerEventURLskey returns an array of NSURLs that were pinged to track the event - the 
kAPSMediaPlayerCurrentPlaybackTimekey returns the playback time when the event was triggered - the 
kAPSMediaPlayerCurrentDurationkey returns the total duration of the unit that triggered the event - the 
kAPSMediaPlayerErroris present in case the event signals an error - the 
kAPSMediaPlayerSeekStartis present forAPSMediaPlayerEventSeekedevents and indicates the playback time when the seek started - the 
kAPSMediaPlayerSeekTois present forAPSMediaPlayerEventSeekedevents and indicates the requested playback time to seek to 
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerTrackedEventNotificationSwift
static let APSMediaPlayerTrackedEvent: NSNotification.Name - the 
 - 
                  
                  
Posted when the player license is invalid. Playback will be disabled.
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerInvalidLicenseNotificationSwift
static let APSMediaPlayerInvalidLicense: NSNotification.Name - 
                  
                  
Posted when the internal minibrowser will open because an ad was tapped
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerWillOpenMiniBrowserSwift
let APSMediaPlayerWillOpenMiniBrowser: String - 
                  
                  
Posted when the internal minibrowser will be dismissed
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerWillCloseMiniBrowserSwift
let APSMediaPlayerWillCloseMiniBrowser: String - 
                  
                  
Posted when the internal player backend finished playback
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerPlaybackDidFinishNotificationSwift
static let APSMediaPlayerPlaybackDidFinish: NSNotification.Name - 
                  
                  
Posted when the media load state changed
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerLoadStateDidChangeNotificationSwift
static let APSMediaPlayerLoadStateDidChange: NSNotification.Name - 
                  
                  
Posted when the duration of the played media becomes available
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerDurationAvailableNotificationSwift
static let APSMediaPlayerDurationAvailable: NSNotification.Name - 
                  
                  
Posted when the media playback state changed
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerPlaybackStateDidChangeNotificationSwift
static let APSMediaPlayerPlaybackStateDidChange: NSNotification.Name - 
                  
                  
Posted when the volume changed
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerVolumeDidChangeNotificationSwift
static let APSMediaPlayerVolumeDidChange: NSNotification.Name 
- 
                  
                  
Declaration
Objective-C
extern NSString *const _Nonnull APSMediaPlayerEventLaunchSwift
let APSMediaPlayerEventLaunch: String - 
                  
                  
Posted when Picture in Picture mode is not possible
Declaration
Objective-C
extern NSString *const _Nonnull APSPipPlayerNotPossibleSwift
let APSPipPlayerNotPossible: String - 
                  
                  
Posted when Picture in Picture mode is not supported
Declaration
Objective-C
extern NSString *const _Nonnull APSPipPlayerNotSupportedSwift
let APSPipPlayerNotSupported: String - 
                  
                  
Posted when the the player failed to initiate Picture in Picture mode
Declaration
Objective-C
extern NSString *const _Nonnull APSPipPlayerFailedToStartPictureInPictureWithErrorSwift
let APSPipPlayerFailedToStartPictureInPictureWithError: String - 
                  
                  
Posted before the player will start Picture in Picture mode
Declaration
Objective-C
extern NSString *const _Nonnull APSPipPlayerWillStartPictureInPictureSwift
let APSPipPlayerWillStartPictureInPicture: String - 
                  
                  
Posted after the player did start Picture in Picture mode
Declaration
Objective-C
extern NSString *const _Nonnull APSPipPlayerDidStartPictureInPictureSwift
let APSPipPlayerDidStartPictureInPicture: String - 
                  
                  
Posted before the player will stop Picture in Picture mode
Declaration
Objective-C
extern NSString *const _Nonnull APSPipPlayerWillStopPictureInPictureSwift
let APSPipPlayerWillStopPictureInPicture: String - 
                  
                  
Posted after the player did stop Picture in Picture mode
Declaration
Objective-C
extern NSString *const _Nonnull APSPipPlayerDidStopPictureInPictureSwift
let APSPipPlayerDidStopPictureInPicture: String 
      Other Constants  Reference