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

标题: ios - 处理 iOS 版 MobileVLCKit 中的错误 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 10:07
标题: ios - 处理 iOS 版 MobileVLCKit 中的错误

我知道我可以使用此选项关闭默认 MobileVLCKit 的错误警报:--extraintf=

但是我怎样才能捕获错误来处理它们呢?例如,我想在失败时重试连接...

我试过 -(void)mediaPlayerStateChangedNSNotification *)aNotification((VLCMediaPlayer*)aNotification.object).state 永远不等于 VLCMediaPlayerStateError.

请帮忙。 谢谢。



Best Answer-推荐答案


除了我们用来通知用户的对话框提供程序黑客之外,目前没有针对这些通知的公共(public) API。我们目前正在为 libvlc 开发适当的 API,这反过来将反射(reflect)在 VLCKit 即将发布的 3.0 版本中。

关于ios - 处理 iOS 版 MobileVLCKit 中的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34747477/






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