video playback error in airplay mode

I am developing a video playback application , which can play ads along with the content.

I am successfully able to start the playback with ad on device (ipad/iphone) but it never playsback in airplay mode. I gets the the below error notification:


"AVPlayerItemFailedToPlayToEndTimeErrorKey = "Error Domain=AVFoundationErrorDomain Code=-11800 \"The operation could not be completed\" UserInfo={NSUnderlyingError=0x17005eff0 {Error Domain=NSOSStatusErrorDomain Code=-12926 \"(null)\"}, NSLocalizedFailureReason=An unknown error occurred (-12926), NSLocalizedDescription=The operation could not be completed"


Any idea what could be wrong ?

Replies

I saw this error today. AirPlay was working fine then all of a suddent failed.

Same for me. Apple TV v.4(6), iOS 12.1.1


Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSLocalizedFailureReason=An unknown error occurred (-12926), NSLocalizedDescription=The operation could not be completed, NSUnderlyingError=0x283552160 {Error Domain=NSOSStatusErrorDomain Code=-12926 "(null)"}}))

I had the same issue when my tv has no connection to the Internet.