sync
This commit is contained in:
parent
184c8768fa
commit
aa89511c74
|
@ -140,9 +140,7 @@
|
|||
#pragma mark - State Control
|
||||
|
||||
- (void)setupCurrentFrame {
|
||||
if (self.playbackMode == SDAnimatedImagePlaybackModeReversedBounce) {
|
||||
self.currentFrameIndex = self.totalFrameCount - 1;
|
||||
}
|
||||
if (self.playbackMode == )
|
||||
|
||||
if ([self.animatedProvider isKindOfClass:[UIImage class]]) {
|
||||
UIImage *image = (UIImage *)self.animatedProvider;
|
||||
|
@ -183,7 +181,7 @@
|
|||
- (void)startPlaying {
|
||||
[self.displayLink start];
|
||||
// Setup frame
|
||||
[self setupCurrentFrame];
|
||||
[self setupCurrentFrame];
|
||||
// Calculate max buffer size
|
||||
[self calculateMaxBufferCount];
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
NSRunLoopMode _runLoopMode;
|
||||
NSUInteger _maxBufferSize;
|
||||
double _playbackRate;
|
||||
SDAnimatedImagePlaybackMode _playbackMode;
|
||||
}
|
||||
|
||||
@property (nonatomic, strong, readwrite) UIImage *currentFrame;
|
||||
|
@ -241,6 +242,16 @@
|
|||
return _playbackRate;
|
||||
}
|
||||
|
||||
- (void)setPlaybackMode:(SDAnimatedImagePlaybackMode)playbackMode {
|
||||
_playbackMode = playbackMode;
|
||||
self.player.playbackMode = playbackMode;
|
||||
}
|
||||
|
||||
- (SDAnimatedImagePlaybackMode)playbackMode {
|
||||
return _playbackMode;
|
||||
}
|
||||
|
||||
|
||||
- (BOOL)shouldIncrementalLoad
|
||||
{
|
||||
if (!_initFinished) {
|
||||
|
|
Loading…
Reference in New Issue