-
-
Notifications
You must be signed in to change notification settings - Fork 0
Chase Events(Animation events ,etc)
RutvikTak edited this page Mar 31, 2022
·
1 revision
Right now we are supporting animation events for chases from a getStream feed of the particular chase. Any animation event that are created have this things passed in with them.(structure doesn't matter for schema atm but this things should be included)
{
required String animtype,// whether theater or pop_up or any other type we support
required String endpoint, // endpoint for the rive file
String? animstate, // state of the animation, applicable if animation has different states like our theater animation
required int label,// duration in milliseconds for when to show this animation in the video
required String videoId, // id of the video to which this event is related to eg. youtube videoId etc
required String artboard, // artboard name
required List<String> animations, // animations to play for that artboard
required String alignment, // where to show this animation on screen
// can be anything from this values [ "topLeft", "topCenter", "topRight", "centerLeft" , "center", "centerRight", "bottomLeft",
// "bottomCenter", "bottomRight" ]
required int createdAt // we coudld save the date/time as millisecondssinceepoch in docs for better handling
}
Not including chaseId as this events will be already tied to a particular chase feed.
Artboard name can be found here in your rive project.
Animations for particular artboards can be found here by switching to animations tab.