O'Reilly logo

HTML5 iPhone Web Application Development by Alvin Crespo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required