Safari HTML5 Audio and Video Guide
Safari on iPhone OS 3.0 and later (including iPad) and Safari on the desktop 3.1 and later (for Mac OS X and Windows) support the <video> and <audio> elements. Not all browsers support these tags yet, and not all types of encoded media play back in all browsers. However, there are simple ways to provide fallbacks if the browser doesn’t yet support the <video> or <audio> tag, and simple methods to provide alternate media sources if the browser supports the tags but can’t play a particular media file.
Because the <audio> and <video> elements are standard HTML they integrate automatically with CSS and JavaScript. You can combine CSS properties, JavaScript functions, and DOM events to create sophisticated movie controllers customized to your needs and aesthetics, yet entirely based on W3C standards and independent of third-party plug-in APIs.