gpt4 book ai didi

ios - AVPlayer 抛出 : "Internal error: restarting too far ahead"

转载 作者:可可西里 更新时间:2023-11-01 03:40:47 27 4
gpt4 key购买 nike

我正在观察 AVPlayer 的 KVO AVPlayerItemNewErrorLogEntryNotification,我发现以下错误:

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

我无法理解下面这行的真正含义。

"Internal error: restarting too far ahead"

谁能帮我找到这个问题的根本原因。

最佳答案

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

没有关于 MPMediaPlayer 在 MPMovieErrorLogEvent 类中返回的错误状态代码的文档。但其中一些是:

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 -

关于ios - AVPlayer 抛出 : "Internal error: restarting too far ahead",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35856250/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com