Audio playback via web audio API (SourceNode.start()) works fine.
But I would like to have the start time of the playback as Unix time stamp. Is this possible, if yes, how?
I know, that I get the unix time by using +new Date(), but the problem is that I don't know where to place it, so that it's really the starttime of my audiofile.
Thank you in advance!
If you are using audio tag, you can add play event:
document.getElementById('myAudioElement').addEventListener('play', function(){
console.log(new Date().getTime());
});