Chapter 10 (Embedded Media)
Chapter 10 (Embedded Media)
Embedded Media
Content 2
• To embed those media resources on the page, we used the object and embed
elements. They have slightly different uses.
• The object element is a multipurpose object placer. It can be used to place an image,
create a nested browsing context (like an iframe), or embed a resource that must be
handled by a plugin. The embed element was for use with plug-ins only.
Video and Audio 5
• When you prepare audio or video content for web delivery, there are two format
decisions to make:
1) How the media is encoded (the algorithms used to convert the source to 1s and 0s
and how they are compressed). The method used for encoding is called the
codec, which is short for “code/ decode” or “compress/decompress.” such as MP3,
H.264, Vorbis, Theora, VP8, and AAC.
2) The container format for the media like a ZIP file that holds the compressed media
and its metadata together in a package. Usually a container format is compatible
with more than one codec type.
Video and Audio … 6
• The canvas element creates an area on a web page for drawing with a set of
JavaScript functions for creating lines, shapes, fills, text, animations, and so on.
• Mastering the canvas element is more than we can take on here, particularly without
any JavaScript experience
Thank you