HTML and CSS Reference
In-Depth Information
Chapter 7. Working with Audio
You can't physically manipulate audio with HTML5 Canvas as directly as you can video,
but many canvas applications can use that extra dimension of sound. Audio is represented
by the HTMLAudioElement object manipulated through JavaScript and by the <audio> tag
in HTML5. There is no Canvas API for audio nor, really, is one necessary. However, there
are many ways that you might want to use audio with HTML5 Canvas. As you will see, the
HTMLAudioElement hassomelimitationsandcanbefrustrating.However,withdevelopments
like the Web Audio API on the horizon, the outlook for using audio with the HTML5 Canvas
looks brighter every day.
Search WWH ::




Custom Search