How to disable specific control in audio player HTML5

限于喜欢 提交于 2019-12-02 07:07:31

You can't. You either show the browser's builtin controls, or you don't.

So what you should so is hide them and make your own (it should be easy if you don't want the seek functionality) or look at something like jPlayer (http://jplayer.org/) and hide the seek bar with CSS.

It seems there's currently (August 2015) still no standard way to hide specific controls in a clean way. The best way to handle this is by using a library for this. E.g. one of these:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!