“onerror” is not a valid event type for <video>
Use “error” instead.
document.getElementsByTagName('video')[0].addEventListener('error', function(event) { ... }, true);
For a complete list of events for <video>
go here: https://developer.mozilla.org/En/Using_audio_and_video_in_Firefox