function failed(e) { // video playback failed - show a message saying why switch ( { case alert('You aborted the video playback.'); break; case alert('A network error caused the video download to fail part-way.'); break; case alert('The video playback was aborted due to a corruption problem or because the video used features your browser did not support.'); break; case alert('The video could not be loaded, either because the server or network failed or because the format is not supported.'); break; default: alert('An unknown error occurred.'); break; } } Untitled 1