如何禁用VLCMediaPlayer错误AlertView? [英] How to disable VLCMediaPlayer error AlertView?

查看:424
本文介绍了如何禁用VLCMediaPlayer错误AlertView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MobileVLCKit库中的VLCMediaPlayer类来制作音频流应用程序。我的问题是,当错误发生时(例如不正确的流URL),它会自动警告自己的错误消息。在我的情况下,我想禁用该警报消息并显示我自己的消息。

I am using VLCMediaPlayer class from the MobileVLCKit library to make an audio streaming application. My problem is that when error happens (e.g. incorrect stream url) it automatically alerts its own error message. In my case, I would like to disable that alert message and display my own one.

推荐答案

无需从源中删除此选项!
只需传递这样的玩家选项:

No need to remove this option from source! Simply pass the player option like this:

NSArray *options = @[@"--extraintf="];
VLCMediaPlayer *player = [[VLCMediaPlayer alloc] initWithOptions:options];

这篇关于如何禁用VLCMediaPlayer错误AlertView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆