Determining Success of Video Tag from JavaScript

The title pretty much sums it up. How can you tell through JavaScript whether the browser successfully loaded a source from the HTML5 <video> tag? Is there a way to do this by simply referencing a property of the video element?

With the video tag you can use onloadeddata and onreadystatechange to either execute something when the data is loaded, or to check the loading status of the data (initializing, failed, ready etc.) For a full list of eevent attributes you can check out