audiojs / audio-play

Play audio buffer in browser/node
MIT License
60 stars 14 forks source link

skip forward/backward #11

Closed jamen closed 4 years ago

jamen commented 7 years ago

Would skipping forward/backward on the buffer fit inside the use of this module? For example player.forward(duration?)/.backward(duration?) Also taking into account when buffer is playing/paused.

If this is possible, it would be even cooler to potentially adapt the interface to streams. So for example it lazy loads over the network (buffers data as it plays), and if you skip forward it can compensate with loading that data, and with skipping backwards it could just refer back to what the stream has received.

dy commented 7 years ago

@jamen alternatively we can do 'currentTime' writable, that is done so in web-audio-api

jamen commented 7 years ago

@dfcreative that works even better. :+1: