Play audio track along with html build

Is there a way to play an .mp3 or .wav when the html page loads, being that the html contains animation and will play only once/looped (as per project need) but in sync with the audio. Does it have to be a notifyOnInit event hook or is there another better way to sync audio ? Using and for dynamic loading and playing.
Probably could trigger a play/stop or loop effect by repeated play event by accessing current frame number. That’s the event I am probably missing.
The syncing part can probably get pretty off when streaming over the web.
Blender’s Video Sequence Editor scrubs synced but can skip frames when something clogs up momentarily.
Is that VSE timing and alignment acessible through haxe/kha ?