shaka-player 4.2.9 → 4.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/.github/workflows/demo-version-index.yaml +3 -3
  2. package/.github/workflows/selenium-lab-tests.yaml +23 -1
  3. package/AUTHORS +2 -1
  4. package/CHANGELOG.md +44 -0
  5. package/CONTRIBUTORS +4 -1
  6. package/README.md +3 -0
  7. package/demo/demo.less +1 -0
  8. package/dist/controls.css +1 -1
  9. package/dist/demo.compiled.debug.js +154 -276
  10. package/dist/demo.compiled.debug.map +4 -4
  11. package/dist/demo.compiled.js +154 -276
  12. package/dist/demo.compiled.map +4 -4
  13. package/dist/demo.css +1 -1
  14. package/dist/demo.css.map +1 -1
  15. package/dist/deps.js +1 -1
  16. package/dist/locales.js +33 -33
  17. package/dist/receiver.compiled.debug.js +36 -65
  18. package/dist/receiver.compiled.debug.map +4 -4
  19. package/dist/receiver.compiled.js +36 -65
  20. package/dist/receiver.compiled.map +4 -4
  21. package/dist/shaka-player.compiled.d.ts +20 -3
  22. package/dist/shaka-player.compiled.debug.d.ts +20 -3
  23. package/dist/shaka-player.compiled.debug.externs.js +26 -12
  24. package/dist/shaka-player.compiled.debug.js +185 -180
  25. package/dist/shaka-player.compiled.debug.map +4 -4
  26. package/dist/shaka-player.compiled.externs.js +26 -12
  27. package/dist/shaka-player.compiled.js +821 -818
  28. package/dist/shaka-player.compiled.map +3 -3
  29. package/dist/shaka-player.ui.d.ts +20 -3
  30. package/dist/shaka-player.ui.debug.d.ts +20 -3
  31. package/dist/shaka-player.ui.debug.externs.js +14 -0
  32. package/dist/shaka-player.ui.debug.js +266 -261
  33. package/dist/shaka-player.ui.debug.map +3 -3
  34. package/dist/shaka-player.ui.externs.js +14 -0
  35. package/dist/shaka-player.ui.js +964 -960
  36. package/dist/shaka-player.ui.map +3 -3
  37. package/docs/tutorials/a11y.md +0 -4
  38. package/docs/tutorials/ad_monetization.md +0 -4
  39. package/docs/tutorials/basic-usage.md +0 -5
  40. package/docs/tutorials/config.md +0 -5
  41. package/docs/tutorials/debugging.md +0 -5
  42. package/docs/tutorials/drm-config.md +0 -5
  43. package/docs/tutorials/fairplay.md +2 -2
  44. package/docs/tutorials/license-server-auth.md +0 -5
  45. package/docs/tutorials/license-wrapping.md +0 -5
  46. package/docs/tutorials/network-and-buffering-config.md +0 -5
  47. package/docs/tutorials/ui-customization.md +0 -5
  48. package/docs/tutorials/ui.md +0 -7
  49. package/docs/tutorials/welcome.md +1 -6
  50. package/externs/network_information.js +7 -2
  51. package/externs/shaka/abr_manager.js +6 -0
  52. package/externs/shaka/net.js +1 -0
  53. package/externs/shaka/player.js +13 -7
  54. package/lib/abr/simple_abr_manager.js +27 -3
  55. package/lib/ads/client_side_ad_manager.js +6 -3
  56. package/lib/dash/dash_parser.js +49 -48
  57. package/lib/debug/log.js +9 -13
  58. package/lib/hls/hls_parser.js +6 -0
  59. package/lib/hls/manifest_text_parser.js +10 -1
  60. package/lib/media/drm_engine.js +9 -6
  61. package/lib/media/media_source_engine.js +17 -8
  62. package/lib/media/segment_index.js +2 -0
  63. package/lib/media/segment_reference.js +22 -0
  64. package/lib/media/streaming_engine.js +17 -7
  65. package/lib/net/http_fetch_plugin.js +79 -57
  66. package/lib/net/networking_engine.js +1 -0
  67. package/lib/player.js +26 -3
  68. package/lib/polyfill/media_capabilities.js +13 -0
  69. package/lib/text/mp4_vtt_parser.js +4 -0
  70. package/lib/text/text_engine.js +1 -0
  71. package/lib/util/manifest_parser_utils.js +1 -2
  72. package/lib/util/mime_utils.js +11 -0
  73. package/lib/util/periods.js +5 -5
  74. package/lib/util/stream_utils.js +2 -2
  75. package/maintained-branches.md +3 -4
  76. package/package.json +9 -3
  77. package/test/hls/hls_live_unit.js +3 -1
  78. package/test/media/content_workarounds_unit.js +43 -0
  79. package/test/media/drm_engine_integration.js +4 -17
  80. package/test/media/media_source_engine_unit.js +31 -0
  81. package/test/media/streaming_engine_unit.js +6 -1
  82. package/test/net/networking_engine_unit.js +6 -1
  83. package/test/player_integration.js +39 -0
  84. package/test/player_unit.js +57 -0
  85. package/test/polyfill/media_capabilities_unit.js +0 -1
  86. package/test/test/assets/text-clip-alt.vtt +63 -0
  87. package/test/test/util/fake_drm_engine.js +3 -0
  88. package/test/test/util/layout_tests.js +4 -3
  89. package/test/test/util/simple_fakes.js +6 -0
  90. package/test/test/util/test_scheme.js +9 -14
  91. package/test/text/mp4_vtt_parser_unit.js +8 -0
  92. package/test/util/mime_utils_unit.js +10 -0
@@ -36,6 +36,18 @@ shaka.util = {};
36
36
  /** @const */
37
37
  shaka.util.CmcdManager = {};
38
38
 
39
+ /**
40
+ * An interface to standardize how objects release internal references
41
+ * synchronously. If an object needs to asynchronously release references, then
42
+ * it should use 'shaka.util.IDestroyable'.
43
+ * @interface
44
+ */
45
+ shaka.util.IReleasable = class {
46
+ /**
47
+ * Request that this object release all internal references.
48
+ */
49
+ release() {}
50
+ };
39
51
  /**
40
52
  * @implements {shaka.extern.Cue}
41
53
  */
@@ -986,6 +998,7 @@ shaka.util.LanguageUtils = class {
986
998
  * per ({@link shaka.abr.SimpleAbrManager.SWITCH_INTERVAL_MS}).
987
999
  * </p>
988
1000
  * @implements {shaka.extern.AbrManager}
1001
+ * @implements {shaka.util.IReleasable}
989
1002
  */
990
1003
  shaka.abr.SimpleAbrManager = class {
991
1004
  /** */
@@ -994,6 +1007,10 @@ shaka.abr.SimpleAbrManager = class {
994
1007
  * @override
995
1008
  */
996
1009
  stop() {}
1010
+ /**
1011
+ * @override
1012
+ */
1013
+ release() {}
997
1014
  /**
998
1015
  * @override
999
1016
  */
@@ -1133,18 +1150,6 @@ shaka.util.FakeEvent = class {
1133
1150
  */
1134
1151
  constructor(type, dict) {}
1135
1152
  };
1136
- /**
1137
- * An interface to standardize how objects release internal references
1138
- * synchronously. If an object needs to asynchronously release references, then
1139
- * it should use 'shaka.util.IDestroyable'.
1140
- * @interface
1141
- */
1142
- shaka.util.IReleasable = class {
1143
- /**
1144
- * Request that this object release all internal references.
1145
- */
1146
- release() {}
1147
- };
1148
1153
  /**
1149
1154
  * @summary A work-alike for EventTarget. Only DOM elements may be true
1150
1155
  * EventTargets, but this can be used as a base class to provide event dispatch
@@ -1762,6 +1767,15 @@ shaka.media.SegmentReference = class {
1762
1767
  * Mark the reference as unavailable.
1763
1768
  */
1764
1769
  markAsUnavailable() {}
1770
+ /**
1771
+ * Mark the reference as preload.
1772
+ */
1773
+ markAsPreload() {}
1774
+ /**
1775
+ * Returns true if the segment is preloaded.
1776
+ * @return {boolean}
1777
+ */
1778
+ isPreload() {}
1765
1779
  /**
1766
1780
  * Offset the segment reference by a fixed amount.
1767
1781
  * @param {number} offset The amount to add to the segment's start and end