© Mark J. Collins 2017

Mark J.  Collins, Pro HTML5 with CSS, JavaScript, and Multimedia, 10.1007/978-1-4842-2463-2_21

21. Audio and Video

Mark J. Collins

(1)Chesterfield, Virginia, USA

In Chapter 7, I introduced the audio and video elements and demonstrated how they could be embedded into your HTML document using the native controls provided by the browser. In this chapter, you’ll use your own controls that are wired up to the audio and video elements through JavaScript. All of the DOM elements and events are available in JavaScript, so it’s a fairly straightforward process to create your own controls to work with the audio or video element. However, there are several facets that you’ll need to control, so it’s not a trivial exercise.

Overview

There ...

Get Pro HTML5 with CSS, JavaScript, and Multimedia: Complete Website Development and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.