Closed DSPerson closed 7 months ago
比如我预加载视频500k,但是视频文件本身不足500k的时候会出现error , error报错为网络连接中断- -。 很奇怪的error code
Error : Error Domain=NSURLErrorDomain Code=-1005 "网络连接已中断。" UserInfo={_kCFStreamErrorCodeKey=-4, NSUnderlyingError=0x283c8b000 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo= {NSErrorPeerAddressKey=<CFData 0x28101fed0 [0x1d6c5b730]>{length = 16, capacity = 16, bytes = 0x1002005017da5e410000000000000000}, _kCFStreamErrorCodeKey=-4, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <8558A1B6-6FCA-4763-9820-66AA18AE636A>.<11>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <8558A1B6-6FCA-4763-9820-66AA18AE636A>.<11>" ), NSLocalizedDescription=网络连接已中断。, NSErrorFailingURLStringKey=http://akvideo01.icocofun.com/omgvd/27/dc/7253-0721-11eb-b031-00163e0202fe?h265=1, NSErrorFailingURLKey=http://akvideo01.icocofun.com/omgvd/27/dc/7253-0721-11eb-b031-00163e0202fe?h265=1, _kCFStreamErrorDomainKey=4} [2020-10-09 20:39:56.276+0800][KTVHCDataReader.m:224] KTVHCDataReader : 0x28188e4c0, Callback for failed - End [2020-10-09 20:39:56.278+0800][KTVHCHTTPResponse.m:124] KTVHCHTTPResponse : 0x2833142e0, Failed Error : Error Domain=NSURLErrorDomain Code=-1005 "网络连接已中断。" UserInfo={_kCFStreamErrorCodeKey=-4, NSUnderlyingError=0x283c8b000 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={NSErrorPeerAddressKey=<CFData 0x28101fed0 [0x1d6c5b730]>{length = 16, capacity = 16, bytes = 0x1002005017da5e410000000000000000}, _kCFStreamErrorCodeKey=-4, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <8558A1B6-6FCA-4763-9820-66AA18AE636A>.<11>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <8558A1B6-6FCA-4763-9820-66AA18AE636A>.<11>" ), NSLocalizedDescription=网络连接已中断。, NSErrorFailingURLStringKey=http://akvideo01.icocofun.com/omgvd/27/dc/7253-0721-11eb-b031-00163e0202fe?h265=1, NSErrorFailingURLKey=http://akvideo01.icocofun.com/omgvd/27/dc/7253-0721-11eb-b031-00163e0202fe?h265=1, _kCFStreamErrorDomainKey=4}
尝试修改源码未成功 选择使用另一个办法。报错后将预缓存大小干掉1/3 , 或者1/2 在尝试一次, 最多重试两次。
3.0.0 已修复