VLCKit VLCMediaPlayer set position results in grey pixel
Hi VLC Team,
I'm using MobileVLCKit from cocoapods to play .mts file. I'm trying the app on an iPod 5, with iOS 9.3.5, the mts file is playing normally (there is some issue, but it's acceptable).
However, when I'm trying to set the position of the VLCMediaPlayer, the video becomes choppy and it has grey pixel in it. I don't know whether if there is any settings to fix this issue?.
here's the code that I'm using to set position (which I get from the DropIn player sample project)
- (IBAction)positionSliderAction:(id)sender {
[self _resetIdleTimer];
isDragging = NO;
[self performSelector:@selector(_setPositionForReal) withObject:nil afterDelay:0.3];
_setPosition = NO;
}
- (void)_setPositionForReal
{
if (!_setPosition) {
self.mediaPlayer.position = self.positionSlider.value;
_setPosition = YES;
}
if (shouldRestore)
{
shouldRestore = NO;
NSLog(@"Play");
[self.mediaPlayer play];
[self.playPauseIcon setImage:[UIImage imageNamed:@"PauseIcon"] forState:UIControlStateNormal];
}
}