HTML audio
HTML audio is a subject of the HTML specification, incorporating audio, including speech to text, all in the browser.
≈ 2 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
HTML audio is a subject of the HTML specification, incorporating audio, including speech to text, all in the browser. autoplay = "autoplay" or "" (empty string) or empty Instructs the User-Agent to automatically begin playback of the audio stream as soon as it can do so without stopping. preload = "none" or "metadata" or "auto" or "" (empty string) or empty Represents a hint to the User-Agent about whether optimistic downloading of the audio stream itself or its metadata is considered worthwhile. "none": Hints to the User-Agent that the user is not expected to need the audio stream, or that minimizing unnecessary traffic is desirable.
"metadata": Hints to the User-Agent that the user is not expected to need the audio stream, but that fetching its metadata (duration and so on) is desirable. "auto": Hints to the User-Agent that optimistically downloading the entire audio stream is considered desirable. controls = "controls" or "" (empty string) or empty Instructs the User-Agent to expose a user interface for controlling playback of the audio stream. loop = "loop" or "" (empty string) or empty Instructs the User-Agent to seek back to the start of the audio stream upon reaching the end. mediagroup = string Instructs the User-Agent to link multiple videos and/or audio streams together. muted = "muted" or "" (empty string) or empty Represents the default state of the audio stream, potentially overriding user preferences. src = non-empty [URL] potentially surrounded by spaces The URL for the audio stream.
Example: Your user agent does not support the HTML5 Audio element. Firefox 23 (Enabled by default since 25) Opera 15 Safari 6 Microsoft Edge 12 Opera GX 36 On mobile devices: Google Chrome for Android 28 (Enabled by default since 29) and Apple iPads Safari 6 (Has restrictions on use (Muted unless user called)) Firefox 23 (Enabled by default since 25) Tizen
Text derived from https://en.wikipedia.org/w/index.php?oldid=1366961900 under CC BY-SA 4.0; modifications have been made.