Audio tag without a volume slider or mute button?

后端 未结 3 1959
悲哀的现实
悲哀的现实 2021-01-13 17:02

I created an audio tag without a download button with

This was successful.

Now,

3条回答
  •  无人共我
    2021-01-13 17:42

    The new controlslist attribute in the HTML5 standard can only accept three settings:

    "nodownload", "nofullscreen" and "noremoteplayback".
    

    There are none to control specific controls beside from that. The only (current) workaround for this is to build your own custom interface for the audio object and provide only the controls you want the user to access via the UI.

    The attribute is currently only supported in Chrome and Opera, as well as Android. This of course being another incentive to build a custom UI for the audio (or use a library as suggested by Johannes).

提交回复
热议问题