Live update of current time display
This commit is contained in:
parent
8fc0a50455
commit
05c678993b
|
@ -98,9 +98,11 @@ static const char * kMADocWindowObserver = "MADocWindowObserver";
|
||||||
currentMovie = [[QTMovie alloc] initWithURL:mediaURL error:nil];
|
currentMovie = [[QTMovie alloc] initWithURL:mediaURL error:nil];
|
||||||
currentMovieTitle = [currentMedia name];
|
currentMovieTitle = [currentMedia name];
|
||||||
} else {
|
} else {
|
||||||
currentMovie = nil;
|
currentMovie = nil;
|
||||||
currentMovieTitle = @"";
|
currentMovieTitle = @"";
|
||||||
}
|
}
|
||||||
|
lastMovieTime = QTMakeTime(-1, 600);
|
||||||
|
[self updateMovieTime:nil];
|
||||||
}
|
}
|
||||||
[self moviePanelDidAppear];
|
[self moviePanelDidAppear];
|
||||||
}
|
}
|
||||||
|
@ -325,7 +327,8 @@ static NSTimeInterval sLastSkip = 0.0;
|
||||||
[currentMovie setCurrentTime:current];
|
[currentMovie setCurrentTime:current];
|
||||||
sLastSkip *= 1.1;
|
sLastSkip *= 1.1;
|
||||||
[NSRunLoop cancelPreviousPerformRequestsWithTarget:self selector:@selector(resetSkipFactor:) object:self];
|
[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
|
- (IBAction)mediaSkipBackward:(id)sender
|
||||||
|
|
Loading…
Reference in New Issue
Block a user