mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-28 08:49:46 +00:00
lottie/example: add APIs in lottieview to get frame rate and total frame number
Change-Id: I25d14d37776cd6bf07bcba1f0fc6a1c88e66dd71
This commit is contained in:
committed by
Subhransu Mohanty
parent
318151a35d
commit
02e660cff7
@@ -194,6 +194,8 @@ void LottieView::render()
|
||||
void LottieView::setFilePath(const char *filePath)
|
||||
{
|
||||
mPlayer->setFilePath(filePath);
|
||||
mFrameRate = mPlayer->getFrameRate();
|
||||
mTotalFrame = mPlayer->getTotalFrame();
|
||||
}
|
||||
|
||||
void LottieView::setSize(int w, int h)
|
||||
|
||||
Reference in New Issue
Block a user