NSMutableDictionary *mediaDictionary = [[NSMutableDictionary alloc] init];
[mediaDictionary setObject:@(2000) forKey:@"network-caching"];
[_mediaplayer.media addOptions:mediaDictionary];
[_mediaplayer play];
Add 3 line of the code (red) before play.
@(2000) I think it means 2 seconds.
refernce:VLCMovieViewController.m in iOS VLC source code.
Comments