HTML <audio> autobuffer Attribute
Example
<audio controls autobuffer>
<source src="cat.mp3" type="audio/mpeg">
<source src="cat.ogg" type="audio/ogg">
Your browser does not support the audio tag.
</audio>
Meaning
The autobuffer is boolean attribute indicates whether or not the browser should begin buffering audio right away.
Note: The attribute must be ignored if the autoplay attribute is present.
The autobuffer attribute provides a hint that the developer expects that downloading the entire resource optimistically will be worth it or not.
Standard Syntax
<audio autobuffer>
<source src="Source(URL)" type="mediaType">
Your browser does not support the audio tag.
</audio>
Advertisement
Attribute Values
| Value | Description |
|---|---|
| autobuffer | This is a boolean attribute, the presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value. |