AVFoundation 播放错误码
typedef enum AVError : NSInteger { AVErrorUnknown = -11800, AVErrorOutOfMemory = -11801, AVErrorSessionNotRunning = -11803, AVErrorDeviceAlreadyUsedByAnotherSession = -11804, AVErrorNoDataCaptured = -11805, AVErrorSessionConfigurationChanged = -11806, AVErrorDiskFull = -11807, AVErrorDeviceWasDisconnected = -11808, AVErrorMediaChanged = -11809, AVErrorMaximumDurationReached = -11810, AVErrorMaximumFileSizeReached = -11811, AVErrorMediaDiscontinuity = -11812, AVErrorMaximumNumberOfSamplesForFileFormatReached = -11813, AVErrorDeviceNotConnected = -11814, AVErrorDeviceInUseByAnotherApplication = -11815, AVErrorDeviceLockedForConfigurationByAnotherProcess = -11817, AVErrorSessionWasInterrupted = -11818, AVErrorMediaServicesWereReset = -11819, AVErrorExportFailed = -11820, AVErrorDecodeFailed = -11821, AVErrorInvalidSourceMedia = -11822, AVErrorFileAlreadyExists = -11823, AVErrorCompositionTrackSegmentsNotContiguous = -11824, AVErrorInvalidCompositionTrackSegmentDuration = -11825, AVErrorInvalidCompositionTrackSegmentSourceStartTime = -11826, AVErrorInvalidCompositionTrackSegmentSourceDuration = -11827, AVErrorFileFormatNotRecognized = -11828, AVErrorFileFailedToParse = -11829, AVErrorMaximumStillImageCaptureRequestsExceeded = -11830, AVErrorContentIsProtected = -11831, AVErrorNoImageAtTime = -11832, AVErrorDecoderNotFound = -11833, AVErrorEncoderNotFound = -11834, AVErrorContentIsNotAuthorized = -11835, AVErrorApplicationIsNotAuthorized = -11836, AVErrorDeviceIsNotAvailableInBackground = -11837, AVErrorOperationNotSupportedForAsset = -11838, AVErrorDecoderTemporarilyUnavailable = -11839, AVErrorEncoderTemporarilyUnavailable = -11840, AVErrorInvalidVideoComposition = -11841, AVErrorReferenceForbiddenByReferencePolicy = -11842, AVErrorInvalidOutputURLPathExtension = -11843, AVErrorScreenCaptureFailed = -11844, AVErrorDisplayWasDisabled = -11845, AVErrorTorchLevelUnavailable = -11846, AVErrorOperationInterrupted = -11847, AVErrorIncompatibleAsset = -11848, AVErrorFailedToLoadMediaData = -11849, AVErrorServerIncorrectlyConfigured = -11850, AVErrorApplicationIsNotAuthorizedToUseDevice = -11852, AVErrorFailedToParse = -11853, AVErrorFileTypeDoesNotSupportSampleReferences = -11854, AVErrorUndecodableMediaData = -11855, AVErrorAirPlayControllerRequiresInternet = -11856, AVErrorAirPlayReceiverRequiresInternet = -11857, AVErrorVideoCompositorFailed = -11858, AVErrorRecordingAlreadyInProgress = -11859, AVErrorUnsupportedOutputSettings = -11861, AVErrorOperationNotAllowed = -11862, AVErrorContentIsUnavailable = -11863, AVErrorFormatUnsupported = -11864, AVErrorMalformedDepth = -11865, AVErrorContentNotUpdated = -11866, AVErrorNoLongerPlayable = -11867, AVErrorNoCompatibleAlternatesForExternalDisplay = -11868, AVErrorNoSourceTrack = -11869} AVError;
NSURLError 链接请求常见错误码
enum : NSInteger { NSURLErrorUnknown = -1, NSURLErrorCancelled = -999, NSURLErrorBadURL = -1000, NSURLErrorTimedOut = -1001, NSURLErrorUnsupportedURL = -1002, NSURLErrorCannotFindHost = -1003, NSURLErrorCannotConnectToHost = -1004, NSURLErrorNetworkConnectionLost = -1005, NSURLErrorDNSLookupFailed = -1006, NSURLErrorHTTPTooManyRedirects = -1007, NSURLErrorResourceUnavailable = -1008, NSURLErrorNotConnectedToInternet = -1009, NSURLErrorRedirectToNonExistentLocation = -1010, NSURLErrorBadServerResponse = -1011, NSURLErrorUserCancelledAuthentication = -1012, NSURLErrorUserAuthenticationRequired = -1013, NSURLErrorZeroByteResource = -1014, NSURLErrorCannotDecodeRawData = -1015, NSURLErrorCannotDecodeContentData = -1016, NSURLErrorCannotParseResponse = -1017, NSURLErrorAppTransportSecurityRequiresSecureConnection = -1022, NSURLErrorFileDoesNotExist = -1100, NSURLErrorFileIsDirectory = -1101, NSURLErrorNoPermissionsToReadFile = -1102, NSURLErrorDataLengthExceedsMaximum = -1103, NSURLErrorFileOutsideSafeArea = -1104, NSURLErrorSecureConnectionFailed = -1200, NSURLErrorServerCertificateHasBadDate = -1201, NSURLErrorServerCertificateUntrusted = -1202, NSURLErrorServerCertificateHasUnknownRoot = -1203, NSURLErrorServerCertificateNotYetValid = -1204, NSURLErrorClientCertificateRejected = -1205, NSURLErrorClientCertificateRequired = -1206, NSURLErrorCannotLoadFromNetwork = -2000, NSURLErrorCannotCreateFile = -3000, NSURLErrorCannotOpenFile = -3001, NSURLErrorCannotCloseFile = -3002, NSURLErrorCannotWriteToFile = -3003, NSURLErrorCannotRemoveFile = -3004, NSURLErrorCannotMoveFile = -3005, NSURLErrorDownloadDecodingFailedMidStream = -3006, NSURLErrorDownloadDecodingFailedToComplete = -3007, NSURLErrorInternationalRoamingOff = -1018, NSURLErrorCallIsActive = -1019, NSURLErrorDataNotAllowed = -1020, NSURLErrorRequestBodyStreamExhausted = -1021, NSURLErrorBackgroundSessionRequiresSharedContainer = -995, NSURLErrorBackgroundSessionInUseByAnotherProcess = -996, NSURLErrorBackgroundSessionWasDisconnected = -997};