PSPDFMediaPlayerControllerContentState
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFMediaPlayerControllerContentState) {
/// The player has no idea what the content state is and hasn't started.
PSPDFMediaPlayerControllerContentStateIdle,
/// The player is currently loading information about the content.
PSPDFMediaPlayerControllerContentStateLoading,
/// The player has found that the content is playable.
PSPDFMediaPlayerControllerContentStateReady,
/// The player has encountered an error. This might be because the Internet
/// connection is unavailable to fetch a remote item or because the item is
/// unsupported. You can query `contentError` to find out what exactly went wrong.
PSPDFMediaPlayerControllerContentStateError
}
Swift
@frozen enum ContentState : UInt, @unchecked Sendable
Undocumented
-
The player has no idea what the content state is and hasn’t started.
Declaration
Objective-C
PSPDFMediaPlayerControllerContentStateIdle
Swift
case idle = 0
-
The player is currently loading information about the content.
Declaration
Objective-C
PSPDFMediaPlayerControllerContentStateLoading
Swift
case loading = 1
-
The player has found that the content is playable.
Declaration
Objective-C
PSPDFMediaPlayerControllerContentStateReady
Swift
case ready = 2
-
The player has encountered an error. This might be because the Internet connection is unavailable to fetch a remote item or because the item is unsupported. You can query
contentError
to find out what exactly went wrong.Declaration
Objective-C
PSPDFMediaPlayerControllerContentStateError
Swift
case error = 3