Video avatar fixes

This commit is contained in:
Ilya Laktyushin
2020-06-26 06:41:44 +03:00
parent 019946f600
commit 33538b46b9
13 changed files with 99 additions and 34 deletions

View File

@@ -157,6 +157,8 @@
_thumbnailsDisposable = [[SMetaDisposable alloc] init];
_chaseTime = kCMTimeInvalid;
self.customAppearanceMethodsForwarding = true;
}
return self;
@@ -596,10 +598,12 @@
CMTime currentChasingTime = _chaseTime;
[_player.currentItem seekToTime:currentChasingTime toleranceBefore:kCMTimeZero toleranceAfter:kCMTimeZero completionHandler:^(BOOL finished) {
if (CMTIME_COMPARE_INLINE(currentChasingTime, ==, _chaseTime))
if (CMTIME_COMPARE_INLINE(currentChasingTime, ==, _chaseTime)) {
_chasingTime = false;
else
_chaseTime = kCMTimeInvalid;
} else {
[self chaseTime];
}
}];
}