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
@@ -1153,6 +1153,14 @@ declare namespace shaka.media {
1153
1153
  * Creates and returns the URIs of the resource containing the segment.
1154
1154
  */
1155
1155
  getUris ( ) : string [] ;
1156
+ /**
1157
+ * Returns true if the segment is preloaded.
1158
+ */
1159
+ isPreload ( ) : boolean ;
1160
+ /**
1161
+ * Mark the reference as preload.
1162
+ */
1163
+ markAsPreload ( ) : any ;
1156
1164
  /**
1157
1165
  * Mark the reference as unavailable.
1158
1166
  */
@@ -1153,6 +1153,14 @@ declare namespace shaka.media {
1153
1153
  * Creates and returns the URIs of the resource containing the segment.
1154
1154
  */
1155
1155
  getUris ( ) : string [] ;
1156
+ /**
1157
+ * Returns true if the segment is preloaded.
1158
+ */
1159
+ isPreload ( ) : boolean ;
1160
+ /**
1161
+ * Mark the reference as preload.
1162
+ */
1163
+ markAsPreload ( ) : any ;
1156
1164
  /**
1157
1165
  * Mark the reference as unavailable.
1158
1166
  */
@@ -1874,6 +1874,15 @@ shaka.media.SegmentReference = class {
1874
1874
  * Mark the reference as unavailable.
1875
1875
  */
1876
1876
  markAsUnavailable() {}
1877
+ /**
1878
+ * Mark the reference as preload.
1879
+ */
1880
+ markAsPreload() {}
1881
+ /**
1882
+ * Returns true if the segment is preloaded.
1883
+ * @return {boolean}
1884
+ */
1885
+ isPreload() {}
1877
1886
  /**
1878
1887
  * Offset the segment reference by a fixed amount.
1879
1888
  * @param {number} offset The amount to add to the segment's start and end