Revision: 30234
Updated Code
at August 10, 2010 15:16 by Nettuts
Updated Code
// Check if the browser understands the video element. function understands_video() { return !!document.createElement('video').canPlayType; // boolean } if ( !understands_video() ) { // Must be older browser or IE. // Maybe do something like hide custom // HTML5 controls. Or whatever... videoControls.style.display = 'none'; }
Revision: 30233
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 10, 2010 15:16 by Nettuts
Initial Code
// Check if the browser understands the video element. function understands_video() { return !!document.createElement('video').canPlayType; // boolean } if ( !understands_video() ) { // Must be older browser or IE. // Maybe do something like hide custom // HTML5 controls. Or whatever... videoControls.style.display = 'none'; }
Initial URL
Initial Description
Initial Title
Determine if Browser Understands HTML5 Video
Initial Tags
Initial Language
JavaScript