Serving audio data from a Java servlet for an HTML5 audio control

前端 未结 1 1046
庸人自扰
庸人自扰 2020-12-19 18:59

This may be a Servlets question or an HTML5 question, depending on what the solution turns out to be... :)

I\'ve got a (Tomcat) Servlet serving up short clips of aud

相关标签:
1条回答
  • 2020-12-19 19:25

    is there a way in HTML to request that the browser buffer the entire audio file on playing in order to allow replays rather than the server needing necessarily to support range requests?

    Even if there is, it will not be supported on all browsers, especially mobiles/ipads/etc.

    does anyone have any experience of responding to range requests from a Servlet?

    There's implementation provided by BalusC. I have ported it to my environment and, apart some minor issues, (which are most likely unrelated to the implementation but to the client side specifics) it works great.

    0 讨论(0)
提交回复
热议问题