shaka-player 3.2.9 → 3.2.12

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 (139) hide show
  1. package/.github/workflows/build-and-test.yaml +67 -15
  2. package/.github/workflows/compute-incremental-coverage.py +251 -0
  3. package/.github/workflows/report-incremental-coverage.yaml +39 -0
  4. package/.github/workflows/selenium-lab-tests.yaml +179 -31
  5. package/CHANGELOG.md +34 -0
  6. package/CONTRIBUTORS +2 -0
  7. package/README.md +20 -6
  8. package/demo/index.html +0 -2
  9. package/dist/controls.css +1 -1
  10. package/dist/controls.css.map +1 -1
  11. package/dist/deps.js +2 -2
  12. package/dist/locales.js +29 -29
  13. package/dist/shaka-player.compiled.d.ts +12 -1
  14. package/dist/shaka-player.compiled.debug.d.ts +12 -1
  15. package/dist/shaka-player.compiled.debug.externs.js +49 -38
  16. package/dist/shaka-player.compiled.debug.js +105 -96
  17. package/dist/shaka-player.compiled.debug.map +4 -4
  18. package/dist/shaka-player.compiled.externs.js +49 -38
  19. package/dist/shaka-player.compiled.js +759 -755
  20. package/dist/shaka-player.compiled.map +4 -4
  21. package/dist/shaka-player.ui.d.ts +12 -1
  22. package/dist/shaka-player.ui.debug.d.ts +12 -1
  23. package/dist/shaka-player.ui.debug.externs.js +49 -38
  24. package/dist/shaka-player.ui.debug.js +119 -110
  25. package/dist/shaka-player.ui.debug.map +4 -4
  26. package/dist/shaka-player.ui.externs.js +49 -38
  27. package/dist/shaka-player.ui.js +866 -863
  28. package/dist/shaka-player.ui.map +4 -4
  29. package/docs/tutorials/welcome.md +6 -3
  30. package/karma.conf.js +3 -11
  31. package/lib/dash/dash_parser.js +5 -0
  32. package/lib/hls/hls_parser.js +6 -2
  33. package/lib/media/drm_engine.js +1 -1
  34. package/lib/media/presentation_timeline.js +24 -1
  35. package/lib/media/streaming_engine.js +1 -0
  36. package/lib/player.js +7 -6
  37. package/lib/polyfill/media_capabilities.js +3 -0
  38. package/lib/polyfill/videoplaybackquality.js +3 -1
  39. package/lib/text/cue.js +0 -5
  40. package/lib/text/simple_text_displayer.js +21 -9
  41. package/lib/text/ui_text_displayer.js +91 -19
  42. package/lib/util/buffer_utils.js +3 -0
  43. package/lib/util/object_utils.js +1 -0
  44. package/lib/util/platform.js +41 -1
  45. package/lib/util/stream_utils.js +23 -3
  46. package/lib/util/string_utils.js +102 -13
  47. package/maintained-branches.md +15 -0
  48. package/package.json +3 -5
  49. package/test/player_src_equals_integration.js +2 -0
  50. package/test/test/assets/small.mp4 +0 -0
  51. package/test/text/simple_text_displayer_unit.js +27 -0
  52. package/test/text/ui_text_displayer_unit.js +65 -0
  53. package/test/util/string_utils_unit.js +46 -8
  54. package/ui/less/ad_controls.less +4 -0
  55. package/app-engine/README.md +0 -9
  56. package/app-engine/demo-version-index/README.md +0 -14
  57. package/app-engine/demo-version-index/app.yaml +0 -2
  58. package/app-engine/demo-version-index/main.py +0 -162
  59. package/app-engine/demo-version-index/requirements.txt +0 -6
  60. package/app-engine/demo-version-index/templates/index.html +0 -114
  61. package/app-engine/shaka-player-demo/README.md +0 -18
  62. package/app-engine/shaka-player-demo/app.yaml +0 -61
  63. package/app-engine/shaka-player-demo/main.py +0 -95
  64. package/app-engine/shaka-player-demo/posters/10yo.png +0 -0
  65. package/app-engine/shaka-player-demo/posters/10yo.xcf +0 -0
  66. package/app-engine/shaka-player-demo/posters/1yo.jpg +0 -0
  67. package/app-engine/shaka-player-demo/posters/2yo.png +0 -0
  68. package/app-engine/shaka-player-demo/posters/2yo.xcf +0 -0
  69. package/app-engine/shaka-player-demo/posters/3yo.png +0 -0
  70. package/app-engine/shaka-player-demo/posters/3yo.xcf +0 -0
  71. package/app-engine/shaka-player-demo/posters/4yo.png +0 -0
  72. package/app-engine/shaka-player-demo/posters/4yo.xcf +0 -0
  73. package/app-engine/shaka-player-demo/posters/5yo.png +0 -0
  74. package/app-engine/shaka-player-demo/posters/5yo.xcf +0 -0
  75. package/app-engine/shaka-player-demo/posters/6yo.png +0 -0
  76. package/app-engine/shaka-player-demo/posters/6yo.xcf +0 -0
  77. package/app-engine/shaka-player-demo/posters/7yo.png +0 -0
  78. package/app-engine/shaka-player-demo/posters/7yo.xcf +0 -0
  79. package/app-engine/shaka-player-demo/posters/8yo.png +0 -0
  80. package/app-engine/shaka-player-demo/posters/8yo.xcf +0 -0
  81. package/app-engine/shaka-player-demo/posters/9yo.png +0 -0
  82. package/app-engine/shaka-player-demo/posters/9yo.xcf +0 -0
  83. package/app-engine/shaka-player-demo/posters/audioOnly.gif +0 -0
  84. package/app-engine/shaka-player-demo/posters/audioRickRoll.gif +0 -0
  85. package/app-engine/shaka-player-demo/posters/colorbars.gif +0 -0
  86. package/app-engine/shaka-player-demo/posters/fireworks.jpg +0 -0
  87. package/app-engine/shaka-player-demo/posters/party-hat.png +0 -0
  88. package/app-engine/shaka-player-demo/posters/sources.txt +0 -46
  89. package/app-engine/shaka-player-demo/posters/standard.png +0 -0
  90. package/app-engine/shaka-player-demo/posters/trek.jpg +0 -0
  91. package/app-engine/shaka-player-demo/posters/valentines.png +0 -0
  92. package/app-engine/shaka-player-demo/posters/zombie.jpg +0 -0
  93. package/app-engine/shaka-player-demo/posters.py +0 -110
  94. package/app-engine/shaka-player-demo/requirements.txt +0 -5
  95. package/app-engine/shaka-player-demo/time.txt +0 -1
  96. package/build/README.md +0 -127
  97. package/build/__init__.py +0 -0
  98. package/build/all.py +0 -150
  99. package/build/apps.py +0 -186
  100. package/build/build.py +0 -392
  101. package/build/check.py +0 -354
  102. package/build/checkversion.py +0 -84
  103. package/build/compiler.py +0 -513
  104. package/build/conformance.textproto +0 -321
  105. package/build/docker/Dockerfile +0 -20
  106. package/build/docker/docker-compose.yml +0 -10
  107. package/build/docs.py +0 -54
  108. package/build/eslint-plugin-shaka-rules/arg-comment-spacing.js +0 -72
  109. package/build/eslint-plugin-shaka-rules/index.js +0 -24
  110. package/build/eslint-plugin-shaka-rules/package.json +0 -7
  111. package/build/eslint-plugin-shaka-rules/private.js +0 -109
  112. package/build/gendeps.py +0 -71
  113. package/build/generateExterns.js +0 -867
  114. package/build/generateLocalizations.py +0 -262
  115. package/build/generateTsDefs.py +0 -137
  116. package/build/install-linux-prereqs.sh +0 -136
  117. package/build/license-header +0 -5
  118. package/build/misspellings.txt +0 -38
  119. package/build/pixelsChanged.js +0 -35
  120. package/build/shaka-lab.yaml +0 -163
  121. package/build/shakaBuildHelpers.py +0 -356
  122. package/build/stats.py +0 -816
  123. package/build/subprocessWindowsPatch.py +0 -103
  124. package/build/test.py +0 -541
  125. package/build/types/ads +0 -8
  126. package/build/types/cast +0 -6
  127. package/build/types/cea +0 -13
  128. package/build/types/complete +0 -9
  129. package/build/types/core +0 -106
  130. package/build/types/dash +0 -8
  131. package/build/types/hls +0 -9
  132. package/build/types/manifests +0 -5
  133. package/build/types/networking +0 -6
  134. package/build/types/offline +0 -21
  135. package/build/types/polyfill +0 -19
  136. package/build/types/text +0 -11
  137. package/build/types/ui +0 -37
  138. package/build/updateScreenshots.py +0 -85
  139. package/build/wrapper.template.js +0 -52
@@ -59,7 +59,6 @@ shaka.text.Cue.prototype.direction;
59
59
  shaka.text.Cue.prototype.endTime;
60
60
  /**
61
61
  * @override
62
- * @type {string}
63
62
  */
64
63
  shaka.text.Cue.prototype.payload;
65
64
  /**
@@ -376,6 +375,7 @@ shaka.util.BufferUtils = class {
376
375
  * @param {?BufferSource} arr1
377
376
  * @param {?BufferSource} arr2
378
377
  * @return {boolean}
378
+ * @suppress {strictMissingProperties}
379
379
  */
380
380
  static equal(arr1, arr2) {}
381
381
  /**
@@ -642,6 +642,43 @@ shaka.util.Error.Code = {
642
642
  'SS_AD_MANAGER_NOT_INITIALIZED': 10003,
643
643
  'CURRENT_DAI_REQUEST_NOT_FINISHED': 10004
644
644
  };
645
+ /**
646
+ * A timer allows a single function to be executed at a later time or at
647
+ * regular intervals.
648
+ * @final
649
+ */
650
+ shaka.util.Timer = class {
651
+ /**
652
+ * Create a new timer. A timer is committed to a single callback function.
653
+ * While there is no technical reason to do this, it is far easier to
654
+ * understand and use timers when they are connected to one functional idea.
655
+ * @param {function()} onTick
656
+ */
657
+ constructor(onTick) {}
658
+ /**
659
+ * Have the timer call |onTick| now.
660
+ * @return {!shaka.util.Timer}
661
+ */
662
+ tickNow() {}
663
+ /**
664
+ * Have the timer call |onTick| after |seconds| has elapsed unless |stop| is
665
+ * called first.
666
+ * @param {number} seconds
667
+ * @return {!shaka.util.Timer}
668
+ */
669
+ tickAfter(seconds) {}
670
+ /**
671
+ * Have the timer call |onTick| every |seconds| until |stop| is called.
672
+ * @param {number} seconds
673
+ * @return {!shaka.util.Timer}
674
+ */
675
+ tickEvery(seconds) {}
676
+ /**
677
+ * Stop the timer and clear the previous behaviour. The timer is still usable
678
+ * after calling |stop|.
679
+ */
680
+ stop() {}
681
+ };
645
682
  /**
646
683
  * @namespace shaka.util.StringUtils
647
684
  * @summary A set of string utility functions.
@@ -769,43 +806,6 @@ shaka.text.TextEngine = class {
769
806
  */
770
807
  destroy() {}
771
808
  };
772
- /**
773
- * A timer allows a single function to be executed at a later time or at
774
- * regular intervals.
775
- * @final
776
- */
777
- shaka.util.Timer = class {
778
- /**
779
- * Create a new timer. A timer is committed to a single callback function.
780
- * While there is no technical reason to do this, it is far easier to
781
- * understand and use timers when they are connected to one functional idea.
782
- * @param {function()} onTick
783
- */
784
- constructor(onTick) {}
785
- /**
786
- * Have the timer call |onTick| now.
787
- * @return {!shaka.util.Timer}
788
- */
789
- tickNow() {}
790
- /**
791
- * Have the timer call |onTick| after |seconds| has elapsed unless |stop| is
792
- * called first.
793
- * @param {number} seconds
794
- * @return {!shaka.util.Timer}
795
- */
796
- tickAfter(seconds) {}
797
- /**
798
- * Have the timer call |onTick| every |seconds| until |stop| is called.
799
- * @param {number} seconds
800
- * @return {!shaka.util.Timer}
801
- */
802
- tickEvery(seconds) {}
803
- /**
804
- * Stop the timer and clear the previous behaviour. The timer is still usable
805
- * after calling |stop|.
806
- */
807
- stop() {}
808
- };
809
809
  /**
810
810
  * @summary
811
811
  * <p>
@@ -1652,6 +1652,17 @@ shaka.media.PresentationTimeline = class {
1652
1652
  * @param {!Array.<!shaka.media.SegmentReference>} references
1653
1653
  */
1654
1654
  notifySegments(references) {}
1655
+ /**
1656
+ * Lock the presentation timeline's start time. After this is called, no
1657
+ * further adjustments to presentationStartTime_ will be permitted.
1658
+ * This should be called after all Periods have been parsed, and all calls to
1659
+ * notifySegments() from the initial manifest parse have been made.
1660
+ * Without this, we can get assertion failures in SegmentIndex for certain
1661
+ * DAI content. If DAI adds ad segments to the manifest faster than
1662
+ * real-time, adjustments to presentationStartTime_ can cause availability
1663
+ * windows to jump around on updates.
1664
+ */
1665
+ lockStartTime() {}
1655
1666
  /**
1656
1667
  * Gives PresentationTimeline a Stream's minimum segment start time.
1657
1668
  * @param {number} startTime