doure5236 2012-07-09 16:55 采纳率: 0%
浏览 31
已采纳

HTML 5音频标签 - 从PHP或Java servlet获取?

I need to stream audio from a location that can't be directly accessible to a client app. To this end Im investigating using a Java servlet or PHP to create the stream on an as needed basis.

Anyone done this before?

How would this handle skip / seek commands from the <audio> tag?

Is there any way to prevent a client from caching the audio?

  • 写回答

3条回答 默认 最新

  • dongmei9020 2012-07-09 17:07
    关注

    Anyone done this before?

    Yes, I'm pretty sure this has been done before. In case you're looking for code, see HTTP_Download.

    How would this handle skip / seek commands from the <audio> tag?

    There is nothing to do on the server-side about that. Your browser handles that. If you want to handle that in the browser, please consult your browsers technical specification about the features of the <audio> HTML tag your browser supports.

    Is there any way to prevent a client from caching the audio?

    Not at all. The current copy of the data is available at the client side, otherwise the browser is not able to play / skip / seek the media.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥50 buildozer打包kivy app失败
  • ¥30 在vs2022里运行python代码
  • ¥15 不同尺寸货物如何寻找合适的包装箱型谱
  • ¥15 求解 yolo算法问题
  • ¥15 虚拟机打包apk出现错误
  • ¥15 用visual studi code完成html页面
  • ¥15 聚类分析或者python进行数据分析
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复