The application provides an
animation progress driving business linkage method and
system for a ktv interactive scene, which comprises the following steps: configuring a linkage time event table based on a business
system; starting ktv
animation playing and recording an
animation starting time stamp; taking a
system clock as a reference to calculate a current
system time, and calculating a ktv animation playing progress according to the current
system time and the animation starting time stamp; using a development
graphics library OpenGL to render an animation frame, comparing the ktv animation playing progress with an animation playing time point of the linkage time event table, triggering a business operation instruction when the ktv animation playing progress hits the animation playing time point, and distributing the business operation instruction to a corresponding business system in a VOD
video on demand system in a non-blocking manner through an asynchronous event
bus to execute corresponding ktv business operations. The application considers both smooth animation playing and
millisecond-level precision business triggering, maintains
time synchronization and business
correctness in abnormal conditions, and reduces the
coupling degree between the animation and the business system.