You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
593 B
12 lines
593 B
7 years ago
|
// Track element + Timed Text Track API
|
||
|
// http://www.w3.org/TR/html5/video.html#the-track-element
|
||
|
// http://www.w3.org/TR/html5/media-elements.html#text-track-api
|
||
|
//
|
||
|
// While IE10 has implemented the track element, IE10 does not expose the underlying APIs to create timed text tracks by JS (really sad)
|
||
|
// By Addy Osmani
|
||
|
Modernizr.addTest({
|
||
|
texttrackapi: (typeof (document.createElement('video').addTextTrack) === 'function'),
|
||
|
// a more strict test for track including UI support: document.createElement('track').kind === 'subtitles'
|
||
|
track: ('kind' in document.createElement('track'))
|
||
|
});
|