The Joy of HTML5 Audio: Tips and Tricks for Easy Sound Embedding

Discussion in 'Design & Development' started by Samuel, Jan 9, 2012.

  1. Samuel

    Samuel
    Expand Collapse
    Admin

    Joined:
    Dec 20, 2011
    Messages:
    5,576
    Likes Received:
    71
    Published in HTML

    [​IMG]

    Up to now, playing audio in a web browser has been a bit of a black art. Fortunately, HTML5 looks set to make life easier for us developers, thanks to its audio element. This element lets you embed an audio file in a web page, as well as control playback of the sound using JavaScript. More importantly, it doesn't require any plugin to work, and is supported by nearly all modern web browsers.

    In this tutorial I'll show you how to embed sounds in a page with the audio element. We'll also take a look at how to trigger and stop the audio via JavaScript, and how to ensure our audio can play on as many web browsers as possible.[​IMG]

    Continue reading...
     

Share This Page