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
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.
duration
:
ended
:
error
:
loop
:
muted
:
paused
:
played
:
preload
:
seekable
:
seeking
:
src
:
volume
:
Methods
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.