HTML5 audio autobuffer, Use of autobuffer attribute in audio tag.


 

HTML5 audio autobuffer, Use of autobuffer attribute in audio tag.

Use of autobuffer attribute in audio tag of HTML5.

Use of autobuffer attribute in audio tag of HTML5.

HTML5 audio autobuffer, Use of autobuffer attribute in audio tag.

Introduction:

The autobuffer attribute has Boolean value. It is available in audio tag. Autobuffer attribute is used for buffering a file in advance. It continues until the whole file has been downloaded.

Autobuffer attribute:
Attribute Value Description
Autobuffer Boolean If it is present in audio tag file; music will start buffering automatically .

Declaration Syntax :

Declaration syntax of autoplay attribute  in HTML5.

                       <audio src="URL" autobuffer >Content</audio>

Example of <audio> in HTML5:

Code:
AudioAutobuffer.html
<!DOCTYPE html >
<html >
<head>
<title>Audio Tag Example </title>
</head>
<body>
<p><b>Example of audio tag autobuffer attribute in HTML5.</b></p>
<audio autobuffer controls>
<source src="a1.mp3" type="audio/mp3" />
Browser does not support audio tag.
</audio>
</body>
</html>
Output:

Download this code

Difference Between HTML5 and HTML4.01:

The audio tag  is only available in HTML5. It is not available in HTML4.01.

Ads