Book Image

HTML5 Multimedia Development Cookbook

Book Image

HTML5 Multimedia Development Cookbook

Overview of this book

HTML5 is the most significant new advancement the web has seen in many years. HTML5 adds many new features including the video, audio, and canvas elements, as well as the integration of SVG. This cookbook is packed full of recipes that will help you harness HTML5’s next generation multimedia features. HTML5 is the future.Whether you’re a seasoned pro or a total newbie, this book gives you the recipes that will serve as your practical guide to creating semantically rich websites and apps using HTML5. Get ready to perform a quantum leap harnessing HTML5 to create powerful, real world applications. Many of the new key features of HTML5 are covered, with self-contained practical recipes for each topic. Forget hello world. These are practical recipes you can utilize straight away to create immersive, interactive multimedia applications. Create a stylish promo page in HTML5. Use SVG to replace text dynamically. Use CSS3 to control background size and appearance. Use the Canvas to process images dynamically. Apply custom playback controls to your video.
Table of Contents (16 chapters)
HTML5 Multimedia Development Cookbook
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface

Preface

HTML5 Multimedia Development Cookbook will show you exactly how to use the latest front-end web technologies like a pro. You'll learn how HTML5 is a quantum leap difference from all previous versions and why it matters. Whether you're a seasoned pro or a total newbie, this book gives you the roadmap to what's next.

Starting with an overview of what's new in HTML5, we quickly move on to practical examples. From there, we continue our exploration, all the way to the most cutting-edge experiments. There's much to know about the new HTML5 specification. This book examines spec excerpts and relates them to examples currently in use. Woven with a rich tapestry of theory, practicality, code samples, screenshots, business wisdom, and links to additional resources, this book will have eager developers coming back to it again and again. HTML5 Multimedia Development Cookbook is the essential guide to the latest front-end web development technologies.

What this book covers

In Chapter 1, Structuring for Rich Media Applications, we'll begin by examining HTML5's state of readiness by analyzing browser support. Then we'll lay the groundwork for how to use HTML5's new elements successfully.

Chapter 2, Supporting the Content, makes us rethink the approach the developers used to create generic containers to house various types of content.

Chapter 3, Styling with CSS, demonstrates how to use CSS3 to support HTML5. We'll also look at styling in modern vs. legacy browsers and what to expect.

Chapter 4, Creating Accessible Experiences, is not a typical regurgitation of Section 508. Instead, we'll employ some of the freshest technologies to support our online experiences.

Chapter 5, Learning to Love Forms, we'll closely examine the new HTML5 input types. Also included is an analysis of which browsers support each new type.

Chapter 6, Developing Rich Media Applications Using Canvas, is the most forward-thinking chapter of the entire book. The discussion will center on how to develop for this new type of interactivity and includes some surprising browser support statistics.

Chapter 7, Interactivity using JavaScript, is jam packed with recipes to extend the new HTML5 audio and video elements. Roll up your sleeves for this one!

Chapter 8, Embracing Audio and Video, we dig into the core HTML audio and video experiences. We will construct our own player while still supporting accessibility.

Chapter 9, Data Storage, takes a detailed look at a unique aspect of HTML5 and how to wield it. Recipes include working with JSON, SQL, and GeoLocation.

What you need for this book

Requirements for this book are slim: All you really need is a computer with an Internet connection, a web browser, and a code editor. Patience and a sense of humor don't hurt either.

Who this book is for

HTML5 has become the most-searched-for new job keyword. Whether you are in the market for a new job or just looking to take that next step in your current organization, knowing how to wield this new technology will give you the edge.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "The new <header> is where we often store things like logos, company slogans, and other types of branding usually associated with mastheads."

A block of code is set as follows:

<div id="search-form">
<form role="search" method="get" id="searchform" action="http://devinsheaven.com/" >
<div>
<label for="s">Search for:</label>
<input type="text" value="" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" />
</div>
</form>
</div>

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

<body>
<header>
<hgroup>
<h1>Roxane is my name.</h1>
<h2>Developing websites is my game.</h2>
</hgroup>
</header>
<nav role="navigation">
<ul>
<li><a href="#About">About</a></li>
<li><a href="#Work">Work</a></li>
</ul>
</nav>
</body>

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Choose Tools | Embed This Video from the Vimeo main menu."

Note

Warnings or important notes appear in a box like this.

Note

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book — what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a book that you need and would like to see us publish, please send us a note in the SUGGEST A TITLE form on www.packtpub.com or e-mail .

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books — maybe a mistake in the text or the code — we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.