Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AVPlayer throwing : "Internal error: restarting too far ahead"

I am observing KVO AVPlayerItemNewErrorLogEntryNotification of the AVPlayer and I find the following error:

  • errorStatusCode:-12645 errorDomain :CoreMediaErrorDomain errorComment:Internal error: restarting too far ahead (-1.4084s)

I am unable to understand what the below line really means.

"Internal error: restarting too far ahead"

Can anyone help me to find the root cause of this issue.

like image 598
karthik Avatar asked Mar 07 '16 23:03

karthik


1 Answers

If long .ts video file respons with: -12645.

There is no documentation for error status codes returned by MPMediaPlayer in MPMovieErrorLogEvent class. But some of them are:

HTTP status - errorStatusCode - errorDomain - errorComment

400     -12666  CoreMediaErrorDomain    unrecognized http response 400  
401     -12937  CoreMediaErrorDomain    Authentication Error    
402     -12666  CoreMediaErrorDomain    unrecognized http response 402  
403     -12660  CoreMediaErrorDomain    HTTP 403: Forbidden     
404     -12938  CoreMediaErrorDomain    HTTP 404: File not found    
405     -12666  CoreMediaErrorDomain    unrecognized http response 405  
406     -12666  CoreMediaErrorDomain    unrecognized http response 406  
407     -12937  CoreMediaErrorDomain    Authentication Error    
409     -12666  CoreMediaErrorDomain    unrecognized http response 409  
...                 
415     -12666  CoreMediaErrorDomain    unrecognized http response 415  

500     -12666  CoreMediaErrorDomain    unrecognized http response 500  
501     -12666  CoreMediaErrorDomain    unrecognized http response 501  
502     -12666  CoreMediaErrorDomain    unrecognized http response 502  
503     -12661  CoreMediaErrorDomain    HTTP 503: Unavailable   
504     -12666  CoreMediaErrorDomain    unrecognized http response 504  
505     -12666  CoreMediaErrorDomain    unrecognized http response 505  

if long .ts video file respons  -12645  CoreMediaErrorDomain    No response for media file in 10 s  

video .ts file bitrate differ from m3u8 declaration     -12318  CoreMediaErrorDomain    Segment exceeds specified bandwidth for variant     

for live stream.playlist m3u8 did not change too long   -12642  CoreMediaErrorDomain    Playlist File unchanged for 2 consecutive reads     

if wrong host ip    -1004   kCFErrorDomainCFNetwork     -   

if wrong dns host name  -1003   kCFErrorDomainCFNetwork     -   

if bad formatted URL    -1000   kCFErrorDomainCFNetwork     -   

if invalid https/ssl request    -1202   kCFErrorDomainCFNetwork     -
like image 139
Benjamin RD Avatar answered Sep 19 '22 10:09

Benjamin RD