shaka-player 4.3.5 → 4.3.7

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 (102) 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 +53 -0
  5. package/CONTRIBUTORS +4 -1
  6. package/README.md +3 -0
  7. package/demo/demo.less +1 -0
  8. package/dist/controls.css +2 -2
  9. package/dist/controls.css.map +1 -1
  10. package/dist/demo.compiled.debug.js +167 -296
  11. package/dist/demo.compiled.debug.map +4 -4
  12. package/dist/demo.compiled.js +167 -296
  13. package/dist/demo.compiled.map +4 -4
  14. package/dist/demo.css +1 -1
  15. package/dist/demo.css.map +1 -1
  16. package/dist/deps.js +1 -1
  17. package/dist/locales.js +32 -32
  18. package/dist/receiver.compiled.debug.js +34 -63
  19. package/dist/receiver.compiled.debug.map +4 -4
  20. package/dist/receiver.compiled.js +34 -63
  21. package/dist/receiver.compiled.map +4 -4
  22. package/dist/shaka-player.compiled.d.ts +20 -3
  23. package/dist/shaka-player.compiled.debug.d.ts +20 -3
  24. package/dist/shaka-player.compiled.debug.externs.js +29 -14
  25. package/dist/shaka-player.compiled.debug.js +303 -292
  26. package/dist/shaka-player.compiled.debug.map +4 -4
  27. package/dist/shaka-player.compiled.externs.js +29 -14
  28. package/dist/shaka-player.compiled.js +886 -879
  29. package/dist/shaka-player.compiled.map +3 -3
  30. package/dist/shaka-player.ui.d.ts +20 -3
  31. package/dist/shaka-player.ui.debug.d.ts +20 -3
  32. package/dist/shaka-player.ui.debug.externs.js +17 -2
  33. package/dist/shaka-player.ui.debug.js +321 -309
  34. package/dist/shaka-player.ui.debug.map +3 -3
  35. package/dist/shaka-player.ui.externs.js +17 -2
  36. package/dist/shaka-player.ui.js +1027 -1021
  37. package/dist/shaka-player.ui.map +3 -3
  38. package/docs/tutorials/a11y.md +0 -4
  39. package/docs/tutorials/ad_monetization.md +0 -4
  40. package/docs/tutorials/basic-usage.md +0 -5
  41. package/docs/tutorials/config.md +0 -5
  42. package/docs/tutorials/debugging.md +0 -5
  43. package/docs/tutorials/drm-config.md +0 -5
  44. package/docs/tutorials/fairplay.md +2 -2
  45. package/docs/tutorials/license-server-auth.md +0 -5
  46. package/docs/tutorials/license-wrapping.md +0 -5
  47. package/docs/tutorials/network-and-buffering-config.md +0 -5
  48. package/docs/tutorials/ui-customization.md +0 -5
  49. package/docs/tutorials/ui.md +0 -7
  50. package/docs/tutorials/welcome.md +1 -6
  51. package/externs/network_information.js +7 -2
  52. package/externs/shaka/abr_manager.js +6 -0
  53. package/externs/shaka/net.js +1 -0
  54. package/externs/shaka/player.js +13 -7
  55. package/lib/abr/simple_abr_manager.js +27 -3
  56. package/lib/ads/client_side_ad_manager.js +6 -3
  57. package/lib/cea/mp4_cea_parser.js +5 -2
  58. package/lib/dash/dash_parser.js +49 -48
  59. package/lib/debug/log.js +9 -13
  60. package/lib/hls/hls_parser.js +60 -7
  61. package/lib/hls/manifest_text_parser.js +10 -1
  62. package/lib/media/drm_engine.js +9 -6
  63. package/lib/media/media_source_engine.js +33 -13
  64. package/lib/media/presentation_timeline.js +9 -2
  65. package/lib/media/segment_index.js +2 -0
  66. package/lib/media/segment_reference.js +25 -2
  67. package/lib/media/streaming_engine.js +40 -11
  68. package/lib/net/http_fetch_plugin.js +79 -57
  69. package/lib/net/networking_engine.js +1 -0
  70. package/lib/player.js +26 -3
  71. package/lib/polyfill/media_capabilities.js +13 -0
  72. package/lib/text/mp4_vtt_parser.js +4 -0
  73. package/lib/text/text_engine.js +1 -0
  74. package/lib/util/manifest_parser_utils.js +1 -2
  75. package/lib/util/mime_utils.js +11 -0
  76. package/lib/util/periods.js +5 -5
  77. package/lib/util/stream_utils.js +2 -2
  78. package/maintained-branches.md +2 -3
  79. package/package.json +8 -3
  80. package/test/cea/mp4_cea_parser_unit.js +19 -0
  81. package/test/dash/dash_parser_live_unit.js +3 -2
  82. package/test/hls/hls_live_unit.js +3 -1
  83. package/test/hls/hls_parser_unit.js +156 -0
  84. package/test/media/content_workarounds_unit.js +43 -0
  85. package/test/media/drm_engine_integration.js +4 -17
  86. package/test/media/media_source_engine_unit.js +30 -0
  87. package/test/media/streaming_engine_unit.js +6 -1
  88. package/test/net/networking_engine_unit.js +6 -1
  89. package/test/player_integration.js +39 -0
  90. package/test/player_unit.js +57 -0
  91. package/test/polyfill/media_capabilities_unit.js +1 -0
  92. package/test/test/assets/h265-cea-init.mp4 +0 -0
  93. package/test/test/assets/h265-cea-segment.mp4 +0 -0
  94. package/test/test/assets/text-clip-alt.vtt +63 -0
  95. package/test/test/util/fake_drm_engine.js +3 -0
  96. package/test/test/util/fake_media_source_engine.js +4 -0
  97. package/test/test/util/layout_tests.js +4 -3
  98. package/test/test/util/simple_fakes.js +6 -0
  99. package/test/test/util/test_scheme.js +9 -14
  100. package/test/text/mp4_vtt_parser_unit.js +8 -0
  101. package/test/util/mime_utils_unit.js +10 -0
  102. package/ui/less/containers.less +4 -0
@@ -40,6 +40,18 @@ shaka.util = {};
40
40
  /** @const */
41
41
  shaka.util.CmcdManager = {};
42
42
 
43
+ /**
44
+ * An interface to standardize how objects release internal references
45
+ * synchronously. If an object needs to asynchronously release references, then
46
+ * it should use 'shaka.util.IDestroyable'.
47
+ * @interface
48
+ */
49
+ shaka.util.IReleasable = class {
50
+ /**
51
+ * Request that this object release all internal references.
52
+ */
53
+ release() {}
54
+ };
43
55
  /**
44
56
  * @implements {shaka.extern.Cue}
45
57
  */
@@ -993,6 +1005,7 @@ shaka.util.LanguageUtils = class {
993
1005
  * per ({@link shaka.abr.SimpleAbrManager.SWITCH_INTERVAL_MS}).
994
1006
  * </p>
995
1007
  * @implements {shaka.extern.AbrManager}
1008
+ * @implements {shaka.util.IReleasable}
996
1009
  */
997
1010
  shaka.abr.SimpleAbrManager = class {
998
1011
  /** */
@@ -1001,6 +1014,10 @@ shaka.abr.SimpleAbrManager = class {
1001
1014
  * @override
1002
1015
  */
1003
1016
  stop() {}
1017
+ /**
1018
+ * @override
1019
+ */
1020
+ release() {}
1004
1021
  /**
1005
1022
  * @override
1006
1023
  */
@@ -1149,18 +1166,6 @@ shaka.util.FakeEvent = class {
1149
1166
  */
1150
1167
  constructor(type, dict) {}
1151
1168
  };
1152
- /**
1153
- * An interface to standardize how objects release internal references
1154
- * synchronously. If an object needs to asynchronously release references, then
1155
- * it should use 'shaka.util.IDestroyable'.
1156
- * @interface
1157
- */
1158
- shaka.util.IReleasable = class {
1159
- /**
1160
- * Request that this object release all internal references.
1161
- */
1162
- release() {}
1163
- };
1164
1169
  /**
1165
1170
  * @summary A work-alike for EventTarget. Only DOM elements may be true
1166
1171
  * EventTargets, but this can be used as a base class to provide event dispatch
@@ -1708,8 +1713,9 @@ shaka.media.SegmentReference = class {
1708
1713
  * minus the first segment's tfdt box's 'baseMediaDecodeTime' field (after
1709
1714
  * it has been converted to seconds).
1710
1715
  * <br>
1711
- * For HLS, this value should be 0 to keep the presentation time at the most
1712
- * recent discontinuity minus the corresponding media time.
1716
+ * For HLS, this value should be the start time of the most recent
1717
+ * discontinuity, or 0 if there is no preceding discontinuity. Only used
1718
+ * in segments mode.
1713
1719
  * @param {number} appendWindowStart
1714
1720
  * The start of the append window for this reference, relative to the
1715
1721
  * presentation. Any content from before this time will be removed by
@@ -1787,6 +1793,15 @@ shaka.media.SegmentReference = class {
1787
1793
  * Mark the reference as unavailable.
1788
1794
  */
1789
1795
  markAsUnavailable() {}
1796
+ /**
1797
+ * Mark the reference as preload.
1798
+ */
1799
+ markAsPreload() {}
1800
+ /**
1801
+ * Returns true if the segment is preloaded.
1802
+ * @return {boolean}
1803
+ */
1804
+ isPreload() {}
1790
1805
  /**
1791
1806
  * Set the segment's thumbnail sprite.
1792
1807
  * @param {shaka.media.SegmentReference.ThumbnailSprite} thumbnailSprite