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
|
@@ -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
|