HTML and CSS Reference
In-Depth Information
Audio Functions
load()
Starts loading the sound file specified by the
src
property of the
<audio>
tag.
play()
Starts playing thesoundfile specified bythe
src
propertyofthe
<audio>
tag.Ifthefile is
not ready, it will be loaded.
pause()
pause()
Pauses the playing audio file.
canPlayType()
Accepts a MIME type as a parameter, and returns the value
maybe
or
probably
if the
browser can play that type of audio file. It returns
""
(an empty string) if it cannot.