How to detect when an audio file is loaded and when it starts to play

michaelprescott Community Member Posts: 5
I have a Swiffy animation that needs to present and begin animating at precisely the same time as audio playback starts to achieve lip-synching. I've been able to achieve this with VideoJS in a proof-of-concept basic web page by responding to events coming from the VideoJS player. However, I must use the Lectora audio player.

It takes a while to load an audio file, and it takes a while to begin playback. I don't think that timers or delays are the solution, but instead events. Is there a standard, reliable way to perform an action when audio playback actually starts?