video-tag-shim.js 507 B

123456789101112131415
  1. /**
  2. * HTML5 Element Shim for IE8
  3. *
  4. * **THIS CODE MUST BE LOADED IN THE <HEAD> OF THE DOCUMENT**
  5. *
  6. * Video.js uses the video tag as an embed code, even in IE8 which
  7. * doesn't have support for HTML5 video. The following code is needed
  8. * to make it possible to use the video tag. Otherwise IE8 ignores everything
  9. * inside the video tag.
  10. */
  11. if (typeof window.HTMLVideoElement === 'undefined') {
  12. document.createElement('video');
  13. document.createElement('audio');
  14. document.createElement('track');
  15. }