Home Tutorial Html Html5 HTML5 audio autobuffer, Use of autobuffer attribute in audio tag.

 
 

HTML5 audio autobuffer, Use of autobuffer attribute in audio tag.
Posted on: September 3, 2010 at 12:00 AM
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.

Related Tags for HTML5 audio autobuffer, Use of autobuffer attribute in audio tag.:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.