如何禁用VLCMediaPlayer错误AlertView?

Lea*_*Bun 3 vlc libvlc ios

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

VLCMediaPlayer错误消息

NSL*_*der 12

无需从源中删除此选项!只需传递这样的播放器选项:

NSArray *options = @[@"--extraintf="];
VLCMediaPlayer *player = [[VLCMediaPlayer alloc] initWithOptions:options];
Run Code Online (Sandbox Code Playgroud)