Book Image

HTML5 iPhone Web Application Development

By : Alvin Crespo
Book Image

HTML5 iPhone Web Application Development

By: Alvin Crespo

Overview of this book

<p>Create compelling web applications specifically tailored for distribution on iOS Safari. Work through real world examples with references, and in-depth discussions on the approach; including its benefits and drawbacks.<br /><br />"HTML5 iPhone Web Application Development" strives to teach all levels of developers, beginners and professionals, the process of creating web applications for iOS Safari. Utilizing current industry standards for frontend development, learn to take advantage of HTML5, CSS3 and JavaScript to create compelling software.<br /><br />Start with reviewing current industry standards for frontend development, and end with creating a native application using the same codebase.</p> <p>Your journey will begin with an overview of current industry standards for frontend technology, quickly moving to solve real world issues; from creating a resizable or responsive gallery, to creating a single page application that utilizes the popular Backbone.js framework.</p> <p>"HTML5 iPhone Web Application Development" aims to make you an expert in developing web applications for the iOS Safari platform.</p>
Table of Contents (17 chapters)
HTML5 iPhone Web Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Listening to HTML5 video events


It's very likely that you will want full control of your application, or at least monitor what may be going on. You will usually find yourself attaching events or listening to them for various reasons. From tracking to enhancing an experience, events are how we can drive interactivity on the page. With HTML5 video, we can use the native browser to monitor the status of the video from start to finish. You have the opportunity to listen for when a video has finished loading and when the user has paused a video.

Let's review the events that are available to us. What you will find is that the events we use with videos can also be transferrable for audio. This is because, as we've learned previously, both video and audio elements are categorized as media elements in the HTML5 specification. Here is a table of events that are available to us:

Event Name

Condition

loadedmetadata

The duration and dimensions of the media resource have been determined.

loadeddata...