-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
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
Lottie: Animation Segment(Marker) Support #2044
Comments
Acquire Marker List
|
Okay. I will add it. |
@theashraf Hello, Could you please confirm whether those following APIs would be satisfied with the dotLottie?
Please suggest any missing features if dotlottie requires. |
This would replace our current segment and marker management within the dotLottie player. I believe these two APIs will be useful for dotLottie players:
And I assume these two APIs are for retrieving all the markers available in a Lottie animation:
I have two questions:
|
Makes sense. Probably, thorvg could provide an extra api:
Yes. I anticipate that dotLottie will replace the segment with the marker name. Could you please clarify in what scenarios dotLottie requires the use of this API?
|
In dotLottie, we offer support for both named segments (Markers) and standard segments. So, the following API would be beneficial: Result LottieAnimation::segment(float begin, float end); This is useful in scenarios where users want to specify a custom segment for playback that does not have an associated named marker within the Lottie JSON |
The concept of using markers in Lottie animations is known, where markers are used to control animation playback by specifying start and end points without needing to know the exact frame numbers.
Sample:
marker.json
API usage:
The text was updated successfully, but these errors were encountered: