Chapter 9Multimedia: The source
Element
Up until this chapter, we've discussed using the
audio
and video
elements with a single
src
attribute. You may have noticed that this only works
part of the time, in some browsers, depending on the format of your file.
For true, cross-browser multimedia that works across browsers, you'll need
to use multiple source
elements, and multiple source
files.
We'll use video
elements for the examples in this
chapter, but most of what we'll discuss also applies to the
audio
element. In order to serve multiple sources, you'll
need to have your media available in multiple formats. Refer to Chapter 6 for a couple of ways to do this.
The source
Element
The source
element lets us specify multiple, alternative media files ...
Get Jump Start HTML5 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.