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