shaka-player 4.3.6 → 4.3.7

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 (39) hide show
  1. package/.github/workflows/demo-version-index.yaml +3 -3
  2. package/CHANGELOG.md +21 -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 +31 -31
  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 +130 -125
  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 +754 -751
  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 +236 -231
  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 +578 -575
  23. package/dist/shaka-player.ui.map +3 -3
  24. package/docs/tutorials/welcome.md +1 -1
  25. package/lib/cea/mp4_cea_parser.js +5 -2
  26. package/lib/hls/hls_parser.js +43 -2
  27. package/lib/hls/manifest_text_parser.js +10 -1
  28. package/lib/media/drm_engine.js +9 -6
  29. package/lib/media/media_source_engine.js +6 -4
  30. package/lib/media/segment_reference.js +22 -0
  31. package/lib/media/streaming_engine.js +9 -4
  32. package/lib/player.js +5 -1
  33. package/package.json +8 -3
  34. package/test/cea/mp4_cea_parser_unit.js +19 -0
  35. package/test/hls/hls_live_unit.js +3 -1
  36. package/test/media/media_source_engine_unit.js +30 -0
  37. package/test/test/assets/h265-cea-init.mp4 +0 -0
  38. package/test/test/assets/h265-cea-segment.mp4 +0 -0
  39. package/test/test/util/layout_tests.js +4 -3
@@ -1199,6 +1199,14 @@ declare namespace shaka.media {
1199
1199
  * Creates and returns the URIs of the resource containing the segment.
1200
1200
  */
1201
1201
  getUris ( ) : string [] ;
1202
+ /**
1203
+ * Returns true if the segment is preloaded.
1204
+ */
1205
+ isPreload ( ) : boolean ;
1206
+ /**
1207
+ * Mark the reference as preload.
1208
+ */
1209
+ markAsPreload ( ) : any ;
1202
1210
  /**
1203
1211
  * Mark the reference as unavailable.
1204
1212
  */
@@ -1199,6 +1199,14 @@ declare namespace shaka.media {
1199
1199
  * Creates and returns the URIs of the resource containing the segment.
1200
1200
  */
1201
1201
  getUris ( ) : string [] ;
1202
+ /**
1203
+ * Returns true if the segment is preloaded.
1204
+ */
1205
+ isPreload ( ) : boolean ;
1206
+ /**
1207
+ * Mark the reference as preload.
1208
+ */
1209
+ markAsPreload ( ) : any ;
1202
1210
  /**
1203
1211
  * Mark the reference as unavailable.
1204
1212
  */
@@ -1900,6 +1900,15 @@ shaka.media.SegmentReference = class {
1900
1900
  * Mark the reference as unavailable.
1901
1901
  */
1902
1902
  markAsUnavailable() {}
1903
+ /**
1904
+ * Mark the reference as preload.
1905
+ */
1906
+ markAsPreload() {}
1907
+ /**
1908
+ * Returns true if the segment is preloaded.
1909
+ * @return {boolean}
1910
+ */
1911
+ isPreload() {}
1903
1912
  /**
1904
1913
  * Set the segment's thumbnail sprite.
1905
1914
  * @param {shaka.media.SegmentReference.ThumbnailSprite} thumbnailSprite