A quick example for the use of the MediaError object, as returned by HTMLMediaElement objects. Choose a file (one which generates an error and one which doesn't).
MediaError
HTMLMediaElement