- 1 :
/**
- 2 :
* @file track-kinds.js
- 3 :
*/
- 4 :
- 5 :
/**
- 6 :
* All possible `VideoTrackKind`s
- 7 :
*
- 8 :
* @see https://html.spec.whatwg.org/multipage/embedded-content.html#dom-videotrack-kind
- 9 :
* @typedef VideoTrack~Kind
- 10 :
* @enum
- 11 :
*/
- 12 :
export const VideoTrackKind = {
- 13 :
alternative: 'alternative',
- 14 :
captions: 'captions',
- 15 :
main: 'main',
- 16 :
sign: 'sign',
- 17 :
subtitles: 'subtitles',
- 18 :
commentary: 'commentary'
- 19 :
};
- 20 :
- 21 :
/**
- 22 :
* All possible `AudioTrackKind`s
- 23 :
*
- 24 :
* @see https://html.spec.whatwg.org/multipage/embedded-content.html#dom-audiotrack-kind
- 25 :
* @typedef AudioTrack~Kind
- 26 :
* @enum
- 27 :
*/
- 28 :
export const AudioTrackKind = {
- 29 :
'alternative': 'alternative',
- 30 :
'descriptions': 'descriptions',
- 31 :
'main': 'main',
- 32 :
'main-desc': 'main-desc',
- 33 :
'translation': 'translation',
- 34 :
'commentary': 'commentary'
- 35 :
};
- 36 :
- 37 :
/**
- 38 :
* All possible `TextTrackKind`s
- 39 :
*
- 40 :
* @see https://html.spec.whatwg.org/multipage/embedded-content.html#dom-texttrack-kind
- 41 :
* @typedef TextTrack~Kind
- 42 :
* @enum
- 43 :
*/
- 44 :
export const TextTrackKind = {
- 45 :
subtitles: 'subtitles',
- 46 :
captions: 'captions',
- 47 :
descriptions: 'descriptions',
- 48 :
chapters: 'chapters',
- 49 :
metadata: 'metadata'
- 50 :
};
- 51 :
- 52 :
/**
- 53 :
* All possible `TextTrackMode`s
- 54 :
*
- 55 :
* @see https://html.spec.whatwg.org/multipage/embedded-content.html#texttrackmode
- 56 :
* @typedef TextTrack~Mode
- 57 :
* @enum
- 58 :
*/
- 59 :
export const TextTrackMode = {
- 60 :
disabled: 'disabled',
- 61 :
hidden: 'hidden',
- 62 :
showing: 'showing'
- 63 :
};