How to disable specific control in audio player HTML5

后端 未结 2 829
情深已故
情深已故 2021-01-22 12:51

I just want to show the audio controls but prohibits the user to drag the button because I don\'t want the user to skip the song. How to make this work?

2条回答
  •  广开言路
    2021-01-22 12:55

    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:

    • http://buzz.jaysalvat.com/
    • http://kolber.github.io/audiojs/
    • http://jplayer.org/
    • http://mediaelementjs.com/

提交回复
热议问题