mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-02 09:06:58 +00:00
rlottie: now loadFromData() api takes resourcePath for loading external resource
This commit is contained in:
committed by
Hermet Park
parent
8047001e1f
commit
b7d488671a
@@ -369,9 +369,9 @@ void LottieView::setFilePath(const char *filePath)
|
||||
}
|
||||
}
|
||||
|
||||
void LottieView::loadFromData(const std::string &jsonData, const std::string &key)
|
||||
void LottieView::loadFromData(const std::string &jsonData, const std::string &key, const std::string &resourcePath)
|
||||
{
|
||||
if (mPlayer = Animation::loadFromData(jsonData, key)) {
|
||||
if (mPlayer = Animation::loadFromData(jsonData, key, resourcePath)) {
|
||||
mFrameRate = mPlayer->frameRate();
|
||||
mTotalFrame = mPlayer->totalFrame();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user