I am using this for an online radio station, and I don't need the play/pause button, or the timeline...
But I do need the volume and mute buttons, is it possible to make my own buttons and link them to the default audio element?
I am using this for an online radio station, and I don't need the play/pause button, or the timeline...
But I do need the volume and mute buttons, is it possible to make my own buttons and link them to the default audio element?
The <audio>
element inherits properties from HTMLMediaElement
To change these just asign them new values, as stated by W3C:
On setting, if the new value is in the range 0.0 to 1.0 inclusive, the attribute must be set to the new value and the playback volume must be correspondingly adjusted as soon as possible after setting the attribute
I would suggest you design your own html buttons and assign these to functions to controll properties such as volume. I made a little demo with a slider and mute checkbox.