Seeking through a streamed MP3 file with HTML5 <audio> tag

后端 未结 6 1638
无人共我
无人共我 2020-12-14 07:31

Hopefully someone can help me out with this.

I\'m playing around with a node.js server that streams audio to a client, and I want to create an HTML5 player. Right no

6条回答
  •  温柔的废话
    2020-12-14 08:01

    have a look here http://www.scottandrew.com/pub/html5audioplayer/, I used this and it plays while it is downloading the file. It waits a little bit for the buffer but then plays. Never tried seeking though but I would start by trying to set the "aud.currentTime" in his code if that can be done.

    Good luck

提交回复
热议问题