This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

HTMLAudioElement

Summary

The HTML <audio> element represents sound content in documents. This is part of the HTML5 specifications. Audio sources can be specified in the src attribute or by using a source element. There is also a fallback option for browsers which do not support this tag.

Inherits from HTMLMediaElementHTMLMediaElement

Properties

No properties.

Methods

No methods.

Events

No events.

Inherited from HTMLMediaElement

Properties

audioTracks
:

autobuffer
:

autoplay
:

buffered
:

controls
Controls attribute used within a Audio element or Video element displays the default media controls defined by the web browser being used to open HTML document or view of a Web Application.

currentSrc
:

currentTime
:

defaultPlaybackRate
:

duration
:

ended
:

error
:

loop
:

muted
:

networkState
:

paused
:

playbackRate
:

played
:

preload
:

seekable
:

seeking
:

src
:

textTracks
:

volume
:

Methods

canPlayType
:

load
:

pause
:

play
Loads and starts playback of a media resource.

Events

canplay
Fires whenever enough data is available to determine whether a media is playable.
canplaythrough
Fires when enough data is available to determine whether a media is playable at a normal rate without interruptions.
progress
Fires to indicate progress while downloading media data.

See also

Related articles

HTML