Search code examples
iosvlclibvlc

How to disable VLCMediaPlayer error AlertView?


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.

VLCMediaPlayer Error Message


Solution

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

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