shaka-player 4.2.6 → 4.2.8

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 (51) hide show
  1. package/.github/workflows/selenium-lab-tests.yaml +22 -0
  2. package/CHANGELOG.md +36 -0
  3. package/dist/deps.js +4 -3
  4. package/dist/locales.js +30 -30
  5. package/dist/shaka-player.compiled.d.ts +10 -0
  6. package/dist/shaka-player.compiled.debug.d.ts +10 -0
  7. package/dist/shaka-player.compiled.debug.externs.js +12 -0
  8. package/dist/shaka-player.compiled.debug.js +177 -166
  9. package/dist/shaka-player.compiled.debug.map +4 -4
  10. package/dist/shaka-player.compiled.externs.js +12 -0
  11. package/dist/shaka-player.compiled.js +672 -666
  12. package/dist/shaka-player.compiled.map +4 -4
  13. package/dist/shaka-player.ui.d.ts +10 -0
  14. package/dist/shaka-player.ui.debug.d.ts +10 -0
  15. package/dist/shaka-player.ui.debug.externs.js +12 -0
  16. package/dist/shaka-player.ui.debug.js +189 -179
  17. package/dist/shaka-player.ui.debug.map +4 -4
  18. package/dist/shaka-player.ui.externs.js +12 -0
  19. package/dist/shaka-player.ui.js +820 -815
  20. package/dist/shaka-player.ui.map +4 -4
  21. package/lib/dash/segment_template.js +17 -5
  22. package/lib/hls/hls_parser.js +53 -16
  23. package/lib/media/media_source_engine.js +34 -4
  24. package/lib/media/segment_index.js +5 -10
  25. package/lib/media/segment_reference.js +39 -0
  26. package/lib/media/streaming_engine.js +15 -3
  27. package/lib/player.js +7 -1
  28. package/lib/polyfill/media_capabilities.js +4 -1
  29. package/lib/text/simple_text_displayer.js +2 -64
  30. package/lib/text/text_utils.js +88 -0
  31. package/lib/text/ui_text_displayer.js +24 -9
  32. package/lib/text/vtt_text_parser.js +256 -95
  33. package/lib/text/web_vtt_generator.js +2 -52
  34. package/lib/util/dom_utils.js +3 -1
  35. package/lib/util/platform.js +8 -0
  36. package/lib/util/stream_utils.js +6 -0
  37. package/lib/util/timer.js +17 -0
  38. package/package.json +1 -1
  39. package/support.html +1 -0
  40. package/test/dash/dash_parser_manifest_unit.js +0 -36
  41. package/test/hls/hls_live_unit.js +8 -30
  42. package/test/hls/hls_parser_unit.js +30 -0
  43. package/test/media/segment_index_unit.js +28 -0
  44. package/test/player_integration.js +27 -0
  45. package/test/player_unit.js +4 -2
  46. package/test/test/util/layout_tests.js +433 -0
  47. package/test/test/util/util.js +0 -120
  48. package/test/{ui → text}/text_displayer_layout_unit.js +59 -235
  49. package/test/text/ui_text_displayer_unit.js +72 -4
  50. package/test/text/vtt_text_parser_unit.js +123 -6
  51. package/test/text/web_vtt_layout_integration.js +528 -0
@@ -1156,6 +1156,16 @@ declare namespace shaka.media {
1156
1156
  * Mark the reference as unavailable.
1157
1157
  */
1158
1158
  markAsUnavailable ( ) : any ;
1159
+ /**
1160
+ * Offset the segment reference by a fixed amount.
1161
+ * @param offset The amount to add to the segment's start and end times.
1162
+ */
1163
+ offset (offset : number ) : any ;
1164
+ /**
1165
+ * Sync this segment against a particular sync time that will serve as "0" in
1166
+ * the presentation timeline.
1167
+ */
1168
+ syncAgainst (lowestSyncTime : number ) : any ;
1159
1169
  }
1160
1170
  }
1161
1171
  // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
@@ -1156,6 +1156,16 @@ declare namespace shaka.media {
1156
1156
  * Mark the reference as unavailable.
1157
1157
  */
1158
1158
  markAsUnavailable ( ) : any ;
1159
+ /**
1160
+ * Offset the segment reference by a fixed amount.
1161
+ * @param offset The amount to add to the segment's start and end times.
1162
+ */
1163
+ offset (offset : number ) : any ;
1164
+ /**
1165
+ * Sync this segment against a particular sync time that will serve as "0" in
1166
+ * the presentation timeline.
1167
+ */
1168
+ syncAgainst (lowestSyncTime : number ) : any ;
1159
1169
  }
1160
1170
  }
1161
1171
  // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
@@ -1869,6 +1869,18 @@ shaka.media.SegmentReference = class {
1869
1869
  * Mark the reference as unavailable.
1870
1870
  */
1871
1871
  markAsUnavailable() {}
1872
+ /**
1873
+ * Offset the segment reference by a fixed amount.
1874
+ * @param {number} offset The amount to add to the segment's start and end
1875
+ * times.
1876
+ */
1877
+ offset(offset) {}
1878
+ /**
1879
+ * Sync this segment against a particular sync time that will serve as "0" in
1880
+ * the presentation timeline.
1881
+ * @param {number} lowestSyncTime
1882
+ */
1883
+ syncAgainst(lowestSyncTime) {}
1872
1884
  };
1873
1885
  /**
1874
1886
  * Rather than using booleans to communicate what the state of the reference,