audiojs / web-audio-api

Node.js implementation of Web audio API
MIT License
817 stars 67 forks source link

get current playback position ? #65

Closed daslicht closed 7 years ago

daslicht commented 7 years ago

Hi, is it possible to get the current playback position when streaming to an ice cast server ? please?

~ Marc

notthetup commented 7 years ago

If you are using AudioBufferSourceNode then playback position isn't supported in original WebAudio API itself.

daslicht commented 7 years ago

Thank you very much for the answer, do you know any solution how to get the playback position ? That would be useful when dealing with meta and would allow us to broadcast position dependant things.

dy commented 7 years ago

You can manually track context.currentTime, or that is not the concern?

notthetup commented 7 years ago

Just tracking context.currentTime may not be accurate, especially if playbackRate is being changed.

daslicht commented 7 years ago

That sounds awesome, I will do some tests !

Thank you very much !