OGeek|极客世界-中国程序员成长平台

标题: ios - JWPlayer 错误代码列表 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 17:35
标题: ios - JWPlayer 错误代码列表

我想使用 onError用于准确的错误处理。 JWPlayer 文档给出了错误列表 https://support.jwplayer.com/customer/portal/articles/1403682-troubleshooting-your-setup .但是这些错误没有代码。有没有人有 JWPlayer 在失败时生成的可能错误代码的简明列表?



Best Answer-推荐答案


我就这个问题联系了 JWPLayer,因为我们遇到了同样的问题,无法正确处理错误。 react 不是很令人满意但可以理解:

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

我最终听到的是三个代表onErroronSetupErroronAdError。这有助于调试。如果这是一个选项,您可以在那里做出适当的 react 。如果您想要第一个列表,您应该查看 AVPlayer 的苹果文档:Link .这是底层玩家。

关于ios - JWPlayer 错误代码列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39593826/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://jike.in/) Powered by Discuz! X3.4