Q: AVPlayerItem status AVPlayerItemStatusFailed
Hi all,
I am developing a video player application. I have used AVPlayer for the same.
I am using KVOs for updating my UI.
when the status player changes to AVPlayerItemStatusReadyToPlay
I add AVplayer layer and start displaying the video.
But sometimes my AVPlayer changes its status to AVPlayerItemStatusFailed.
If started and stopped many times, the same URL starts playing.
When I print the error property of AVPlayerItem, it displays:
Error Domain=AVFoundationErrorDomain
Code=-11800
"The operation could not be completed"
UserInfo=0x17423620 {NSLocalizedDescription=The operation could not be completed, NSUnderlyingError=0x1742d660 "The operation couldn’t be completed. (OSStatus error -12666.)",
NSLocalizedFailureReason=An unknown error occurred (-12666)}
I fail to understand the problem.
I did find a post with the same problem on the foroum, but its unanswered.
Please point me to where I could be going wrong.
Thanking in anticipation.
iPhone 6 Plus, iOS 8
Posted on Mar 13, 2015 2:51 AM