shaka-player 4.2.10 → 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 (35) hide show
  1. package/.github/workflows/demo-version-index.yaml +3 -3
  2. package/CHANGELOG.md +17 -0
  3. package/README.md +3 -0
  4. package/demo/demo.less +1 -0
  5. package/dist/demo.css +1 -1
  6. package/dist/demo.css.map +1 -1
  7. package/dist/locales.js +30 -30
  8. package/dist/shaka-player.compiled.d.ts +8 -0
  9. package/dist/shaka-player.compiled.debug.d.ts +8 -0
  10. package/dist/shaka-player.compiled.debug.externs.js +9 -0
  11. package/dist/shaka-player.compiled.debug.js +40 -38
  12. package/dist/shaka-player.compiled.debug.map +3 -3
  13. package/dist/shaka-player.compiled.externs.js +9 -0
  14. package/dist/shaka-player.compiled.js +425 -424
  15. package/dist/shaka-player.compiled.map +3 -3
  16. package/dist/shaka-player.ui.d.ts +8 -0
  17. package/dist/shaka-player.ui.debug.d.ts +8 -0
  18. package/dist/shaka-player.ui.debug.externs.js +9 -0
  19. package/dist/shaka-player.ui.debug.js +166 -164
  20. package/dist/shaka-player.ui.debug.map +3 -3
  21. package/dist/shaka-player.ui.externs.js +9 -0
  22. package/dist/shaka-player.ui.js +234 -233
  23. package/dist/shaka-player.ui.map +3 -3
  24. package/docs/tutorials/welcome.md +1 -1
  25. package/lib/hls/hls_parser.js +6 -0
  26. package/lib/hls/manifest_text_parser.js +10 -1
  27. package/lib/media/drm_engine.js +9 -6
  28. package/lib/media/media_source_engine.js +6 -4
  29. package/lib/media/segment_reference.js +22 -0
  30. package/lib/media/streaming_engine.js +9 -4
  31. package/lib/player.js +5 -1
  32. package/package.json +9 -3
  33. package/test/hls/hls_live_unit.js +3 -1
  34. package/test/media/media_source_engine_unit.js +31 -0
  35. package/test/test/util/layout_tests.js +4 -3
@@ -1767,6 +1767,15 @@ shaka.media.SegmentReference = class {
1767
1767
  * Mark the reference as unavailable.
1768
1768
  */
1769
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() {}
1770
1779
  /**
1771
1780
  * Offset the segment reference by a fixed amount.
1772
1781
  * @param {number} offset The amount to add to the segment's start and end