菜鸟教程小白 发表于 2022-12-11 17:35:10

ios - JWPlayer 错误代码列表


                                            <p><p>我想使用 <a href="http://sdk.jwplayer.com/ios/docs/reference/Protocols/JWPlayerDelegate.html#//api/name/onError:" rel="noreferrer noopener nofollow">onError</a>用于准确的错误处理。 JWPlayer 文档给出了错误列表 <a href="https://support.jwplayer.com/customer/portal/articles/1403682-troubleshooting-your-setup" rel="noreferrer noopener nofollow">https://support.jwplayer.com/customer/portal/articles/1403682-troubleshooting-your-setup</a> .但是这些错误没有代码。有没有人有 JWPlayer 在失败时生成的可能错误代码的简明列表?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>我就这个问题联系了 JWPLayer,因为我们遇到了同样的问题,无法正确处理错误。 react 不是很令人满意但可以理解:</p>

<blockquote>
<p>We don’t have a formal list of errors since errors can happen on many levels (for example, errors with our SDK initialization, errors during playback due to the video file itself, errors related to retrieving the video file from your server, etc.)
I would also like to point out that the error delegates methods that I shared with you have error parameters that are of type NSError. This means that you can localize the error and get more information that way.
However, I would of course be happy to decipher any error that may arise.
-Daniel</p>
</blockquote>

<p>我最终听到的是三个代表<code>onError</code>、<code>onSetupError</code> 和<code>onAdError</code>。这有助于调试。如果这是一个选项,您可以在那里做出适当的 react 。如果您想要第一个列表,您应该查看 AVPlayer 的苹果文档:<a href="https://developer.apple.com/reference/avfoundation/cameras_and_media_capture/av_foundation_error_constants/error_codes" rel="noreferrer noopener nofollow">Link</a> .这是底层玩家。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - JWPlayer 错误代码列表,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/39593826/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/39593826/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - JWPlayer 错误代码列表