Commit b565defb authored by Felix Paul Kühne's avatar Felix Paul Kühne

Movie View: delay playback position selector by .3 secs

This improves seeking performance, especially on highspeed scrubbing
parent 5dec75bb
......@@ -17,6 +17,7 @@
BOOL _shouldResumePlaying;
BOOL _viewAppeared;
BOOL _displayRemainingTime;
BOOL _positionSet;
}
@property (nonatomic, strong) UIPopoverController *masterPopoverController;
......@@ -408,10 +409,19 @@
- (IBAction)positionSliderAction:(UISlider *)sender
{
_mediaPlayer.position = sender.value;
[self performSelector:@selector(_setPositionForReal) withObject:nil afterDelay:0.3];
_positionSet = NO;
[self resetIdleTimer];
}
- (void)_setPositionForReal
{
if (!_positionSet) {
_mediaPlayer.position = _positionSlider.value;
_positionSet = YES;
}
}
- (void)mediaPlayerTimeChanged:(NSNotification *)aNotification {
self.positionSlider.value = [_mediaPlayer position];
if (_displayRemainingTime)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment