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
Advertisement
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.

Advertisement

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


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: September 3, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com