HTML audio: Difference between revisions

Content deleted Content added
cleanup after rename
Line 1:
{{Short description|HTML element}}
<ref name="safari_html5" />'''HTML5HTML Audioaudio''' is a subject of the HTML5HTML specification, incorporating audio input, playback, and synthesis, as well asall in the browser.
 
== &lt;audio&gt; element ==
The {{Codetag|<audio>|o}} [[HTML element#Elements vs. tags|element]] represents a sound, or an audio stream.<ref>{{Cite web |url=http://www.w3.org/TR/html5/embedded-content-0.html#the-audio-element |title=HTML5 audio element – W3C |access-date=2013-07-02 |archive-url=https://web.archive.org/web/20130606104953/http://www.w3.org/TR/html5/embedded-content-0.html#the-audio-element |archive-date=2013-06-06 |url-status=dead }}</ref> It is commonly used to play back a single audio file within a web page, showing a GUI widget with play/pause/volume controls.
 
The {{Codetag|<audio>|o}} element has these attributes:
* global attributes (accesskey; class; contenteditable; contextmenu; dir; draggable; dropzone; hidden; id; lang; spellcheck; style; tabindex; title; translate)
* autoplay = "autoplay" or "" (empty string) or empty<br />Instructs the User-Agent to automatically begin playback of the audio stream as soon as it can do so without stopping.
Line 38:
 
== Supported audio coding formats ==
The adoption of HTML5HTML audio, as with [[HTML video]], has become polarized between proponents of [[Freefree software|free]] and [[Softwaresoftware patent|patent-encumbered]] formats. In 2007, the recommendation to use [[Vorbis]] was [[Use of Ogg formats in HTML5|retracted]] from the [[HTML5]] specification by the [[W3C]] together with that to use [[Ogg Theora]], citing the lack of a format accepted by all the major browser vendors.
 
[[Apple Inc.|Apple]] and [[Microsoft]] support the [[International Organization for Standardization|ISO]]/[[International Electrotechnical Commission|IEC]]-[[technical standard|defined]] formats [[Advanced Audio Coding|AAC]] and the older [[MP3]]. [[Mozilla]] and [[Opera Software|Opera]] support the free and [[Open-source software|open]], [[royalty-free]] [[Vorbis]] format in [[Ogg]] and [[WebM]] containers, and criticize the patent-encumbered nature of MP3 and AAC, which are guaranteed to be “non-free”. [[Google]] has so far provided support for all common formats.