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

最佳答案

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

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

关于ios - 如何禁用 VLCMediaPlayer 错误 AlertView?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26083068/

10-09 13:23