Important Audio Properties
There are many properties defined for the
audio element in HTML5. We are going to focus
on the following because they are the most useful for the applications
we will build:
The total length, in seconds, of the sound represented by the
The current playing position, in seconds, of the playing audio file.
false: whether the audio clip should start playing at the beginning when
false: whether the audio should start playing automatically when it has loaded.
false: Setting this to
audioobject regardless of
false: Displays controls for an
audioobject in an HTML page. Controls will not display on the canvas unless they are created in HTML (for example, with a
The volume level of the
audioobject; the value must be between
false: whether the
audioobject is paused. Set with a call to the
false. Set when an
audioobject has played through its entire
URL to the source file for the
Specifies whether the media file should be loaded before the page is displayed. At the time of this writing, this property has not been implemented across all browsers.
To see which properties and events of the
HTMLMediaObject are supported in which
browsers, visit this