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.
- package/.github/workflows/demo-version-index.yaml +3 -3
- package/CHANGELOG.md +17 -0
- package/README.md +3 -0
- package/demo/demo.less +1 -0
- package/dist/demo.css +1 -1
- package/dist/demo.css.map +1 -1
- package/dist/locales.js +30 -30
- package/dist/shaka-player.compiled.d.ts +8 -0
- package/dist/shaka-player.compiled.debug.d.ts +8 -0
- package/dist/shaka-player.compiled.debug.externs.js +9 -0
- package/dist/shaka-player.compiled.debug.js +40 -38
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.externs.js +9 -0
- package/dist/shaka-player.compiled.js +425 -424
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.d.ts +8 -0
- package/dist/shaka-player.ui.debug.d.ts +8 -0
- package/dist/shaka-player.ui.debug.externs.js +9 -0
- package/dist/shaka-player.ui.debug.js +166 -164
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.externs.js +9 -0
- package/dist/shaka-player.ui.js +234 -233
- package/dist/shaka-player.ui.map +3 -3
- package/docs/tutorials/welcome.md +1 -1
- package/lib/hls/hls_parser.js +6 -0
- package/lib/hls/manifest_text_parser.js +10 -1
- package/lib/media/drm_engine.js +9 -6
- package/lib/media/media_source_engine.js +6 -4
- package/lib/media/segment_reference.js +22 -0
- package/lib/media/streaming_engine.js +9 -4
- package/lib/player.js +5 -1
- package/package.json +9 -3
- package/test/hls/hls_live_unit.js +3 -1
- package/test/media/media_source_engine_unit.js +31 -0
- package/test/test/util/layout_tests.js +4 -3
|
@@ -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
|