Synchronizing with Playback

The playback environment generates event callbacks which correspond to different stages of playback. The host site can use these event callbacks to synchronize other actions to audio playback.

On API Loaded:
vw_apiLoaded() - is generated when a API is loaded.

On Talk Started:
vw_talkStarted() - is generated when speech begins.

On Talk Ended:
vw_talkEnded() - is generated when speech ends.

Audio Progress:
vw_audioProgress(percentPlayed) - is generated at an audio progress interval.
setStatus() - use setStatus to set the progress interval to receive Progress callbacks.

setStatus(0,0) - to disable progress callbacks
setStatus(0,1) - to set progress interval to 1 second
Example : Synchronizing with Playback