Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

elem-track.js 593B

1234567891011
  1. // Track element + Timed Text Track API
  2. // http://www.w3.org/TR/html5/video.html#the-track-element
  3. // http://www.w3.org/TR/html5/media-elements.html#text-track-api
  4. //
  5. // While IE10 has implemented the track element, IE10 does not expose the underlying APIs to create timed text tracks by JS (really sad)
  6. // By Addy Osmani
  7. Modernizr.addTest({
  8. texttrackapi: (typeof (document.createElement('video').addTextTrack) === 'function'),
  9. // a more strict test for track including UI support: document.createElement('track').kind === 'subtitles'
  10. track: ('kind' in document.createElement('track'))
  11. });