Constants
The following constants are available globally.
-
Undocumented
-
Undocumented
-
The domain name used for the VideoPlayerError instances
Declaration
Objective-C
extern NSString *const VideoPlayerErrorDomain
Swift
let VideoPlayerErrorDomain: String
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Notification that occurs whenever the VideoPlayer changes its
AVAsset
property. Check the new value using the VideoPlayer’sAVAsset
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 orsetCurrentTime:
property setter. Check the newcurrentTime
orframeIndex
value using the VideoPlayer’scurrentTime
orframeIndex
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