lottie/example: add APIs in lottieview to get frame rate and total frame number

Change-Id: I25d14d37776cd6bf07bcba1f0fc6a1c88e66dd71
This commit is contained in:
Jaeun Choi
2018-08-22 16:24:26 +09:00
committed by Subhransu Mohanty
parent 318151a35d
commit 02e660cff7
2 changed files with 6 additions and 0 deletions

View File

@@ -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)