Live update of current time display

This commit is contained in:
Matthias Neeracher 2011-08-23 22:14:15 +02:00
parent 8fc0a50455
commit 05c678993b

View File

@ -98,9 +98,11 @@ static const char * kMADocWindowObserver = "MADocWindowObserver";
currentMovie = [[QTMovie alloc] initWithURL:mediaURL error:nil];
currentMovieTitle = [currentMedia name];
} else {
currentMovie = nil;
currentMovieTitle = @"";
currentMovie = nil;
currentMovieTitle = @"";
}
lastMovieTime = QTMakeTime(-1, 600);
[self updateMovieTime:nil];
}
[self moviePanelDidAppear];
}
@ -325,7 +327,8 @@ static NSTimeInterval sLastSkip = 0.0;
[currentMovie setCurrentTime:current];
sLastSkip *= 1.1;
[NSRunLoop cancelPreviousPerformRequestsWithTarget:self selector:@selector(resetSkipFactor:) object:self];
[self performSelector:@selector(resetSkipFactor:) withObject:self afterDelay:1.0];
[self performSelector:@selector(resetSkipFactor:) withObject:self afterDelay:0.5];
[self updateMovieTime:nil];
}
- (IBAction)mediaSkipBackward:(id)sender