HTML and CSS Reference
In-Depth Information
Now we're going to have to add
video to the Starbuzz page. It
doesn't seem like a big deal, but
aren't we going to need a Flash
developer?
Jim: Well, we used to need Flash for
video, but with HTML5 we now have a
<video> element we can use.
Frank: Wait, isn't Flash still better? It's been
around a long time.
Jim: I could see some short-term arguments for that on the
desktop, but what are you going to do on certain mobile
devices that don't support Flash? Think of how many
mobile users Starbuzz has; some of those customers are
going to be in the dark if we use Flash.
Frank: Got it. So how do we go about using an element
to do video?
Jim: Think of video like the <img> element; we supply
a src attribute that references the video, which is placed
in the page at the location of the <video> element.
Frank: That sounds easy enough. This is going to be a
piece of cake.
Jim: Well, let's not promise anything too quickly. Like most
media types, video can get complicated, especially when it comes
to dealing with the encodings for video.
F rank
Frank: Encodings?
Jim: The format used to encode the video and the audio of a video clip.
Frank: That's a big deal?
Jim: It is because the browser makers haven't agreed on a common standard
for video encodings. But let's come back to all that. For now, let's get a
<video> element in our page and see what all we can do with it.
Frank: Sounds good; lead the way!
Search WWH ::




Custom Search