Commit 30b12eb8 authored by Gleb Pinigin's avatar Gleb Pinigin Committed by Felix Paul Kühne

media player: do not update slider position when scrubbing

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent f5321a57
......@@ -40,6 +40,7 @@
BOOL _displayRemainingTime;
BOOL _positionSet;
BOOL _playerIsSetup;
BOOL _isScrubbing;
}
@property (nonatomic, strong) UIPopoverController *masterPopoverController;
......@@ -648,11 +649,13 @@
{
[self _updateScrubLabel];
self.scrubIndicatorView.hidden = NO;
_isScrubbing = YES;
}
- (IBAction)positionSliderTouchUp:(id)sender
{
self.scrubIndicatorView.hidden = YES;
_isScrubbing = NO;
}
- (void)_updateScrubLabel
......@@ -681,7 +684,10 @@
}
- (void)mediaPlayerTimeChanged:(NSNotification *)aNotification {
self.positionSlider.value = [_mediaPlayer position];
if (!_isScrubbing) {
self.positionSlider.value = [_mediaPlayer position];
}
if (_displayRemainingTime)
[self.timeDisplay setTitle:[[_mediaPlayer remainingTime] stringValue] forState:UIControlStateNormal];
else
......
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