I've just asked a question about audio, and people suggest that this is a question about html5-audio instead of web audio.
So i wonder what's the difference?
Q 2 - Which of the following is true about 'audio' tag in HTML5? A - HTML5 supports <audio> tag which is used to embed sound content in an HTML or XHTML document.
aLaw audio format is not supported by HTML5 audio tag.
Audio and video are not HTML parts whereas audio and video tags are supported in HTML5. In HTML, Web Socket is not available, on the other hand in HTML5 you can establish full-duplex communication channels with a server using Web Sockets.
HTML Audio - How It Works. The controls attribute adds audio controls, like play, pause, and volume. The <source> element allows you to specify alternative audio files which the browser may choose from. The browser will use the first recognized format. The text between the <audio> and </audio> tags will only be displayed in browsers that do not ...
There are many differences between HTML and HTML5 which are discussed below: It didn’t support audio and video without the use of flash player support. It supports audio and video controls with the use of <audio> and <video> tags. It uses cookies to store temporary data. It uses SQL databases and application cache to store offline data.
Currently, there are 3 supported “audio formats” for the HTML5 “audio” tag: .mp3, .ogg, and .wav. Definitions: .mp3 = MP3 files, the “sound” part of the MPEG audio/video file-format.
For example, the Introduction paragraph of the W3C proposed standard for Web Audio makes statements like
The introduction of the audio element in HTML5 is very important, allowing for basic streaming audio playback. But, it is not powerful enough to handle more complex audio applications.
Hence hinting at the difference between these two concepts:
HTML5 Audio element = basic playback by embedding audio data in HTML.
Web Audio API = An ECMA Script (JavaScript) based API to support audio capabilities comparable to these of a modern stand-alone PC, such as:
A word of caution: As of late October 2012, this API is still relatively new and not supported on all browsers and mobile devices. caniuse.com site may be useful to determine the amount of support found for HTML5 and various related technologies on different platforms. The fact that W3C drafts standards for Web Audio is a strong indication that this API will, in time, receive universal acceptance and broad support, but this is not yet the case.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With