We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I assign an url (not string) to the source property, the LottieAnimation fail to play, for example:
LottieAnimation { source: Qt.resolvedUrl("aaa/a.json") }
It seems the source can accept javascript object as well, but url is also an 'object' type in qml, the code even have the comment:
if (typeof source === "object") { // TODO what about QUrl, I think it is treated as {} here
I would suggest test of actual lottie property in this case (like 'v' in lottie spec)
https://github.com/airbnb/lottie-web/blob/master/docs/json/animation.json
if ((typeof source === "object") && source["v"]) {
That should solve the problem.
The text was updated successfully, but these errors were encountered:
Pull requests welcome :)
Sorry, something went wrong.
No branches or pull requests
If I assign an url (not string) to the source property, the LottieAnimation fail to play, for example:
It seems the source can accept javascript object as well, but url is also an 'object' type in qml, the code even have the comment:
I would suggest test of actual lottie property in this case (like 'v' in lottie spec)
https://github.com/airbnb/lottie-web/blob/master/docs/json/animation.json
That should solve the problem.
The text was updated successfully, but these errors were encountered: