Commit 3c4705a6 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Movie View: reset idle timer on volume slider action, too

parent c3e60779
......@@ -150,6 +150,9 @@
[volumeSlider setMinimumTrackImage:[[UIImage imageNamed:@"sliderminiValue"]resizableImageWithCapInsets:UIEdgeInsetsMake(0, 4, 0, 0)] forState:UIControlStateNormal];
[volumeSlider setMaximumTrackImage:[[UIImage imageNamed:@"slidermaxValue"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 4)] forState:UIControlStateNormal];
[volumeSlider setThumbImage:[UIImage imageNamed:@"ballslidernew"] forState:UIControlStateNormal];
[volumeSlider addTarget:self
action:@selector(volumeSliderAction:)
forControlEvents:UIControlEventValueChanged];
[[AVAudioSession sharedInstance] setDelegate:self];
}
......@@ -561,6 +564,11 @@
[self _updateScrubLabel];
}
- (IBAction)volumeSliderAction:(id)sender
{
[self _resetIdleTimer];
}
- (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