Leap Bun Leap Bun - 1 year ago 128
iOS Question

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

Answer Source

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

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