shaka-player 4.3.2 → 4.3.3

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 (38) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/deps.js +1 -1
  3. package/dist/locales.js +32 -32
  4. package/dist/shaka-player.compiled.d.ts +10 -0
  5. package/dist/shaka-player.compiled.debug.d.ts +10 -0
  6. package/dist/shaka-player.compiled.debug.externs.js +12 -0
  7. package/dist/shaka-player.compiled.debug.js +120 -117
  8. package/dist/shaka-player.compiled.debug.map +3 -3
  9. package/dist/shaka-player.compiled.externs.js +12 -0
  10. package/dist/shaka-player.compiled.js +622 -619
  11. package/dist/shaka-player.compiled.map +3 -3
  12. package/dist/shaka-player.ui.d.ts +10 -0
  13. package/dist/shaka-player.ui.debug.d.ts +10 -0
  14. package/dist/shaka-player.ui.debug.externs.js +12 -0
  15. package/dist/shaka-player.ui.debug.js +132 -130
  16. package/dist/shaka-player.ui.debug.map +3 -3
  17. package/dist/shaka-player.ui.externs.js +12 -0
  18. package/dist/shaka-player.ui.js +408 -406
  19. package/dist/shaka-player.ui.map +3 -3
  20. package/lib/hls/hls_parser.js +39 -15
  21. package/lib/media/media_source_engine.js +34 -4
  22. package/lib/media/segment_index.js +5 -10
  23. package/lib/media/segment_reference.js +39 -0
  24. package/lib/media/streaming_engine.js +15 -3
  25. package/lib/player.js +7 -1
  26. package/lib/text/ui_text_displayer.js +24 -4
  27. package/lib/text/web_vtt_generator.js +21 -9
  28. package/lib/util/dom_utils.js +3 -1
  29. package/lib/util/stream_utils.js +6 -0
  30. package/lib/util/timer.js +17 -0
  31. package/package.json +1 -1
  32. package/test/hls/hls_live_unit.js +8 -30
  33. package/test/hls/hls_parser_unit.js +30 -0
  34. package/test/media/segment_index_unit.js +28 -0
  35. package/test/media/streaming_engine_unit.js +91 -119
  36. package/test/player_integration.js +27 -0
  37. package/test/player_unit.js +4 -2
  38. package/test/text/ui_text_displayer_unit.js +70 -0
@@ -1202,10 +1202,20 @@ declare namespace shaka.media {
1202
1202
  * Mark the reference as unavailable.
1203
1203
  */
1204
1204
  markAsUnavailable ( ) : any ;
1205
+ /**
1206
+ * Offset the segment reference by a fixed amount.
1207
+ * @param offset The amount to add to the segment's start and end times.
1208
+ */
1209
+ offset (offset : number ) : any ;
1205
1210
  /**
1206
1211
  * Set the segment's thumbnail sprite.
1207
1212
  */
1208
1213
  setThumbnailSprite (thumbnailSprite : shaka.media.SegmentReference.ThumbnailSprite ) : any ;
1214
+ /**
1215
+ * Sync this segment against a particular sync time that will serve as "0" in
1216
+ * the presentation timeline.
1217
+ */
1218
+ syncAgainst (lowestSyncTime : number ) : any ;
1209
1219
  }
1210
1220
  }
1211
1221
  // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
@@ -1202,10 +1202,20 @@ declare namespace shaka.media {
1202
1202
  * Mark the reference as unavailable.
1203
1203
  */
1204
1204
  markAsUnavailable ( ) : any ;
1205
+ /**
1206
+ * Offset the segment reference by a fixed amount.
1207
+ * @param offset The amount to add to the segment's start and end times.
1208
+ */
1209
+ offset (offset : number ) : any ;
1205
1210
  /**
1206
1211
  * Set the segment's thumbnail sprite.
1207
1212
  */
1208
1213
  setThumbnailSprite (thumbnailSprite : shaka.media.SegmentReference.ThumbnailSprite ) : any ;
1214
+ /**
1215
+ * Sync this segment against a particular sync time that will serve as "0" in
1216
+ * the presentation timeline.
1217
+ */
1218
+ syncAgainst (lowestSyncTime : number ) : any ;
1209
1219
  }
1210
1220
  }
1211
1221
  // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
@@ -1904,6 +1904,18 @@ shaka.media.SegmentReference = class {
1904
1904
  * @return {?shaka.media.SegmentReference.ThumbnailSprite}
1905
1905
  */
1906
1906
  getThumbnailSprite() {}
1907
+ /**
1908
+ * Offset the segment reference by a fixed amount.
1909
+ * @param {number} offset The amount to add to the segment's start and end
1910
+ * times.
1911
+ */
1912
+ offset(offset) {}
1913
+ /**
1914
+ * Sync this segment against a particular sync time that will serve as "0" in
1915
+ * the presentation timeline.
1916
+ * @param {number} lowestSyncTime
1917
+ */
1918
+ syncAgainst(lowestSyncTime) {}
1907
1919
  };
1908
1920
  /**
1909
1921
  * Rather than using booleans to communicate what the state of the reference,