Constants

The following constants are available globally.

  • Notification that occurs whenever the VideoPlayer changes its AVAsset property. Check the new value using the VideoPlayer’s AVAsset property.

    Declaration

    Objective-C

    extern NSString *const VideoPlayerDidChangeAVAssetNotification

    Swift

    static let VideoPlayerDidChangeAVAsset: NSNotification.Name
  • Notification that occurs whenever the VideoPlayer changes its component’s play state. Check the new value using the VideoPlayer’s isPlaying property.

    Declaration

    Objective-C

    extern NSString *const VideoPlayerDidChangePlayStateNotification

    Swift

    static let VideoPlayerDidChangePlayState: NSNotification.Name
  • Notification that occurs whenever the VideoPlayer has reached the end of a file and its shouldLoop property has been set to NO.

    Declaration

    Objective-C

    extern NSString *const VideoPlayerDidReachEndOfFileNotification

    Swift

    static let VideoPlayerDidReachEndOfFile: NSNotification.Name
  • Notification that occurs whenever the VideoPlayer performs a seek via the seekToFrame method or setCurrentTime: property setter. Check the new currentTime or frameIndex value using the VideoPlayer’s currentTime or frameIndex property, respectively.

    Declaration

    Objective-C

    extern NSString *const VideoPlayerDidSeekNotification

    Swift

    static let VideoPlayerDidSeek: NSNotification.Name
  • Notification that occurs after an observer has registered for current time of playback progress

    Declaration

    Objective-C

    extern NSString *const VideoPlayerCurrentTimeNotification

    Swift

    static let VideoPlayerCurrentTime: NSNotification.Name
  • Notification that occurs after an observer has registered for duration of playback video

    Declaration

    Objective-C

    extern NSString *const VideoPlayerDurationNotification

    Swift

    static let VideoPlayerDuration: NSNotification.Name
  • Notification that occurs after an observer has registered for duration of playback video

    Declaration

    Objective-C

    extern NSString *const VideoPlayerLoadedTimeRangesNotification

    Swift

    static let VideoPlayerLoadedTimeRanges: NSNotification.Name