Error code -16042

We have a video playback application and are logging errors as follows:

Code Block swift
func errorMessage(_ error: NSError) -> String {
var code = "\(error.code)"
if let underlyingError = error.userInfo[NSUnderlyingErrorKey] as? NSError {
  code += ":\(underlyingError.code)"
}
return "\(code) - \(error.localizedDescription)"
}


The error is reported when the NotificationCenter reports .AVPlayerItemFailedToPlayToEndTime for the AVPlayerItem being used.

We have come across the following errors being reported:

Code Block
-11800:-16042 - The operation could not be completed


Unfortunately, I cannot find any information on what error code -16042 means; furthermore, it is generally difficult to find any information on AVFoundation error codes. Would anyone have advice on how best to find information on these (as well as help on understanding -16042)?

Error code -16042
 
 
Q