PlayerError
@objc public enum PlayerError: Int, Error
Enum to manage the errors on the player.
- UnknownAssetFormat: For assets with a incorrect format.
- DownloadFailed: When the asset can’t download.
- UnknownError: For unknown errors.
-
UnknownAssetFormat: For assets with a incorrect format.
Declaration
Swift
case unknownAssetFormat = 0
-
DownloadFailed: When the asset can’t download.
Declaration
Swift
case downloadFailed
-
UnknownError: For unknown errors.
Declaration
Swift
case unknownError
-
PlayerItemFailedToPlayToEnd: Asset failed to finish playback
Declaration
Swift
case playerItemFailedToPlayToEnd
-
PlayerItemErrorLog: New AVPlayerItemErrorLog
Declaration
Swift
case playerItemErrorLog
-
InvalidLicense: Invalid or Expired License
Declaration
Swift
case invalidLicense
-
The error’s description.
Declaration
Swift
public var description: String