开发者

what exactly is the "onSoundComplete" event in jPlayer?

here is demo:http://sethaldridge.com/demos/

I don't know if there is such event in html5 audio.


I'm trying to push stream song by song to html5 audio with node.js.

  • 1. create file stream ->
  • 2. write chunk(if there are clients) on 'data' event of the stream ->
  • 3. open next file stream on 'close'(this will make a dead circle)
  • I dun't know when to open next开发者_运维问答 file stream on server side


    It's an event used for the jplayer flash player. There's no onSoundComplete event in the HTML5 audio api. It's used with mp3 files to signal the end of the file. The closest equivalent I imagine would be the ended event which is triggered when a media resource has completed. Is it feasible to request the next resource in your ended handler from the client side?

    0

    上一篇:

    下一篇:

    精彩评论

    暂无评论...
    验证码 换一张
    取 消

    最新问答

    问答排行榜