AVPlayer fail

when I played a local video(I downloaded it to the sandbox),KVO the AVPlayerItem status is AVPlayerItemStatusFailed and error is Error Domain=AVFoundationErrorDomain Code=-11800 "这项操作无法完成" UserInfo={NSLocalizedFailureReason=发生未知错误(24), NSLocalizedDescription=这项操作无法完成, NSUnderlyingError=0x3004137e0 {Error Domain=NSPOSIXErrorDomain Code=24 "Too many open files"}}

why?

and according to logs, the following error occurs when playing online videos: Error Domain=NSURLErrorDomain Code=-1009 "似乎已断开与互联网的连接。" UserInfo={NSLocalizedDescription=似乎已断开与互联网的连接。, NSUnderlyingError=0x30041abe0 {Error Domain=NSOSStatusErrorDomain Code=-1009 "(null)"}}

I don't know if it's the same problem

Hello @cyshi, thank you for your post. Do you get the same results with just the relevant code in a small test project? If so, please share a link to your test project. That'll help us better understand what's going on. If you're not familiar with preparing a test project, take a look at Creating a test project.

AVPlayer fail
 
 
Q