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

后端 未结 6 1635
无人共我
无人共我 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 07:54

    perhaps this html5 audio player example will explain and demonstrate us the new element and its .load, .play, .currentTime, etc. methods.

    i use an array of elements and can set the currentTime position of course. we can use also eventhandlers (e.g. 'loadeddata') to wait before allow to seek.

    ping and have fun with html5 :)

提交回复
热议问题