HTMLAudioElement

< dom
Jump to: navigation, search

HTMLAudioElement

This article is Almost Ready.


W3C Working Draft

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 HTMLMediaElement

Properties

No properties.

Methods

No methods.

Events

No events.

Inherited from HTMLMediaElement

Properties

API Name Summary
audioTracks
autobuffer
autoplay
buffered
controls
currentSrc
currentTime
defaultPlaybackRate
duration
ended
error
loop
muted
networkState
paused
playbackRate
played
preload
seekable
seeking
src
textTracks
volume

Methods

API Name Summary
canPlayType
load
pause
play Loads and starts playback of a media resource.

Events

API Name Summary
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.




Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?

See also

Related articles

HTML



  • dom/HTMLAudioElement
















































… further results