I need to tell, whether video cannot be played (\"x\" sign is shown in browser).
This code does\'t works. \"onerror\" event will never be fired under Firefox
Try adding the event listener to the tag instead - I think the onerror attribute ("error" event) works on the source tag now, not the video tag.