February 2014
Beginner
250 pages
5h 12m
English
source ElementUp 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.
source ElementThe source element lets us specify multiple, alternative media files ...
Read now
Unlock full access