shaka-player 4.3.15 → 4.3.16
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/appspot.yaml +4 -4
- package/.github/workflows/build-and-test.yaml +23 -10
- package/.github/workflows/custom-actions/set-commit-status/action.yaml +29 -7
- package/.github/workflows/demo-version-index.yaml +3 -3
- package/.github/workflows/nightly-demo.yaml +4 -4
- package/.github/workflows/release-please.yaml +25 -24
- package/.github/workflows/report-incremental-coverage.yaml +1 -1
- package/.github/workflows/selenium-lab-tests.yaml +30 -18
- package/.github/workflows/sync-labels.yaml +1 -1
- package/.github/workflows/talk-to-shaka-bot.yaml +1 -1
- package/.github/workflows/update-issues.yaml +1 -1
- package/.github/workflows/update-screenshots.yaml +25 -38
- package/CHANGELOG.md +28 -0
- package/demo/demo.less +1 -5
- package/dist/demo.css +1 -1
- package/dist/demo.css.map +1 -1
- package/dist/deps.js +0 -1
- package/dist/locales.js +31 -31
- package/dist/shaka-player.compiled.d.ts +6 -10
- package/dist/shaka-player.compiled.debug.d.ts +6 -10
- package/dist/shaka-player.compiled.debug.externs.js +13 -11
- package/dist/shaka-player.compiled.debug.js +209 -206
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +13 -11
- package/dist/shaka-player.compiled.js +854 -852
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +6 -10
- package/dist/shaka-player.ui.debug.d.ts +6 -10
- package/dist/shaka-player.ui.debug.externs.js +13 -11
- package/dist/shaka-player.ui.debug.js +158 -155
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +13 -11
- package/dist/shaka-player.ui.js +949 -947
- package/dist/shaka-player.ui.map +4 -4
- package/docs/tutorials/faq.md +25 -0
- package/docs/tutorials/offline.md +3 -0
- package/docs/tutorials/ui.md +4 -4
- package/externs/shaka/player.js +32 -19
- package/lib/cast/cast_proxy.js +1 -3
- package/lib/cast/cast_sender.js +8 -11
- package/lib/cea/cea608_memory.js +1 -1
- package/lib/dash/dash_parser.js +3 -0
- package/lib/dash/segment_template.js +5 -0
- package/lib/hls/hls_parser.js +18 -16
- package/lib/media/drm_engine.js +17 -3
- package/lib/media/presentation_timeline.js +23 -0
- package/lib/media/segment_index.js +10 -0
- package/lib/media/streaming_engine.js +1 -13
- package/lib/player.js +18 -4
- package/lib/text/ui_text_displayer.js +10 -1
- package/lib/util/manifest_parser_utils.js +1 -0
- package/lib/util/stream_utils.js +8 -5
- package/package.json +1 -1
- package/test/cast/cast_proxy_unit.js +0 -46
- package/test/cast/cast_sender_unit.js +26 -26
- package/test/cea/cea608_memory_unit.js +3 -2
- package/test/hls/hls_live_unit.js +52 -0
- package/test/media/media_source_engine_integration.js +1 -1
- package/test/player_unit.js +13 -1
- package/lib/polyfill/storage_estimate.js +0 -57
|
@@ -914,6 +914,7 @@ declare namespace shaka.media {
|
|
|
914
914
|
evict (time : number ) : any ;
|
|
915
915
|
find (time : number ) : number | null ;
|
|
916
916
|
fit (windowStart : number , windowEnd : number | null , c ? : boolean ) : any ;
|
|
917
|
+
forEachTopLevelReference (fn : any ) : any ;
|
|
917
918
|
get (position : number ) : shaka.media.SegmentReference | null ;
|
|
918
919
|
merge (references : any ) : any ;
|
|
919
920
|
mergeAndEvict (references : shaka.media.SegmentReference [] , windowStart : number ) : any ;
|
|
@@ -935,6 +936,7 @@ declare namespace shaka.media {
|
|
|
935
936
|
*/
|
|
936
937
|
getDelay ( ) : number ;
|
|
937
938
|
getDuration ( ) : number ;
|
|
939
|
+
getInitialProgramDateTime ( ) : number | null ;
|
|
938
940
|
getMaxSegmentDuration ( ) : number ;
|
|
939
941
|
getPresentationStartTime ( ) : number | null ;
|
|
940
942
|
/**
|
|
@@ -1026,6 +1028,10 @@ declare namespace shaka.media {
|
|
|
1026
1028
|
* @param duration The presentation's duration in seconds. Infinity indicates that the presentation continues indefinitely.
|
|
1027
1029
|
*/
|
|
1028
1030
|
setDuration (duration : number ) : any ;
|
|
1031
|
+
/**
|
|
1032
|
+
* Sets the initial program date time.
|
|
1033
|
+
*/
|
|
1034
|
+
setInitialProgramDateTime (initialProgramDateTime : number ) : any ;
|
|
1029
1035
|
/**
|
|
1030
1036
|
* Sets the presentation's start time.
|
|
1031
1037
|
* @param presentationStartTime The wall-clock time, in seconds, when the presentation started or will start. Only required for live.
|
|
@@ -1679,16 +1685,6 @@ declare namespace shaka.polyfill {
|
|
|
1679
1685
|
}
|
|
1680
1686
|
}
|
|
1681
1687
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
|
|
1682
|
-
declare namespace shaka.polyfill {
|
|
1683
|
-
class StorageEstimate {
|
|
1684
|
-
private noStructuralTyping_shaka_polyfill_StorageEstimate : any;
|
|
1685
|
-
/**
|
|
1686
|
-
* Install the polyfill if needed.
|
|
1687
|
-
*/
|
|
1688
|
-
static install ( ) : any ;
|
|
1689
|
-
}
|
|
1690
|
-
}
|
|
1691
|
-
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
|
|
1692
1688
|
declare namespace shaka.polyfill {
|
|
1693
1689
|
class Symbol {
|
|
1694
1690
|
private noStructuralTyping_shaka_polyfill_Symbol : any;
|
|
@@ -914,6 +914,7 @@ declare namespace shaka.media {
|
|
|
914
914
|
evict (time : number ) : any ;
|
|
915
915
|
find (time : number ) : number | null ;
|
|
916
916
|
fit (windowStart : number , windowEnd : number | null , c ? : boolean ) : any ;
|
|
917
|
+
forEachTopLevelReference (fn : any ) : any ;
|
|
917
918
|
get (position : number ) : shaka.media.SegmentReference | null ;
|
|
918
919
|
merge (references : any ) : any ;
|
|
919
920
|
mergeAndEvict (references : shaka.media.SegmentReference [] , windowStart : number ) : any ;
|
|
@@ -935,6 +936,7 @@ declare namespace shaka.media {
|
|
|
935
936
|
*/
|
|
936
937
|
getDelay ( ) : number ;
|
|
937
938
|
getDuration ( ) : number ;
|
|
939
|
+
getInitialProgramDateTime ( ) : number | null ;
|
|
938
940
|
getMaxSegmentDuration ( ) : number ;
|
|
939
941
|
getPresentationStartTime ( ) : number | null ;
|
|
940
942
|
/**
|
|
@@ -1026,6 +1028,10 @@ declare namespace shaka.media {
|
|
|
1026
1028
|
* @param duration The presentation's duration in seconds. Infinity indicates that the presentation continues indefinitely.
|
|
1027
1029
|
*/
|
|
1028
1030
|
setDuration (duration : number ) : any ;
|
|
1031
|
+
/**
|
|
1032
|
+
* Sets the initial program date time.
|
|
1033
|
+
*/
|
|
1034
|
+
setInitialProgramDateTime (initialProgramDateTime : number ) : any ;
|
|
1029
1035
|
/**
|
|
1030
1036
|
* Sets the presentation's start time.
|
|
1031
1037
|
* @param presentationStartTime The wall-clock time, in seconds, when the presentation started or will start. Only required for live.
|
|
@@ -1679,16 +1685,6 @@ declare namespace shaka.polyfill {
|
|
|
1679
1685
|
}
|
|
1680
1686
|
}
|
|
1681
1687
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
1682
|
-
declare namespace shaka.polyfill {
|
|
1683
|
-
class StorageEstimate {
|
|
1684
|
-
private noStructuralTyping_shaka_polyfill_StorageEstimate : any;
|
|
1685
|
-
/**
|
|
1686
|
-
* Install the polyfill if needed.
|
|
1687
|
-
*/
|
|
1688
|
-
static install ( ) : any ;
|
|
1689
|
-
}
|
|
1690
|
-
}
|
|
1691
|
-
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
1692
1688
|
declare namespace shaka.polyfill {
|
|
1693
1689
|
class Symbol {
|
|
1694
1690
|
private noStructuralTyping_shaka_polyfill_Symbol : any;
|
|
@@ -2108,6 +2108,15 @@ shaka.media.PresentationTimeline = class {
|
|
|
2108
2108
|
* @return {boolean}
|
|
2109
2109
|
*/
|
|
2110
2110
|
isStartTimeLocked() {}
|
|
2111
|
+
/**
|
|
2112
|
+
* Sets the initial program date time.
|
|
2113
|
+
* @param {number} initialProgramDateTime
|
|
2114
|
+
*/
|
|
2115
|
+
setInitialProgramDateTime(initialProgramDateTime) {}
|
|
2116
|
+
/**
|
|
2117
|
+
* @return {?number} The initial program date time in seconds.
|
|
2118
|
+
*/
|
|
2119
|
+
getInitialProgramDateTime() {}
|
|
2111
2120
|
/**
|
|
2112
2121
|
* Gives PresentationTimeline a Stream's minimum segment start time.
|
|
2113
2122
|
* @param {number} startTime
|
|
@@ -2339,6 +2348,10 @@ shaka.media.MetaSegmentIndex = class extends shaka.media.SegmentIndex {
|
|
|
2339
2348
|
* @override
|
|
2340
2349
|
*/
|
|
2341
2350
|
release() {}
|
|
2351
|
+
/**
|
|
2352
|
+
* @override
|
|
2353
|
+
*/
|
|
2354
|
+
forEachTopLevelReference(fn) {}
|
|
2342
2355
|
/**
|
|
2343
2356
|
* @override
|
|
2344
2357
|
*/
|
|
@@ -4182,17 +4195,6 @@ shaka.polyfill.RandomUUID = class {
|
|
|
4182
4195
|
*/
|
|
4183
4196
|
static install() {}
|
|
4184
4197
|
};
|
|
4185
|
-
/**
|
|
4186
|
-
* @summary A polyfill to provide navigator.storage.estimate in old
|
|
4187
|
-
* webkit browsers.
|
|
4188
|
-
* See: https://developers.google.com/web/updates/2017/08/estimating-available-storage-space#the-present
|
|
4189
|
-
*/
|
|
4190
|
-
shaka.polyfill.StorageEstimate = class {
|
|
4191
|
-
/**
|
|
4192
|
-
* Install the polyfill if needed.
|
|
4193
|
-
*/
|
|
4194
|
-
static install() {}
|
|
4195
|
-
};
|
|
4196
4198
|
/**
|
|
4197
4199
|
* @summary A polyfill to provide Symbol.prototype.description in all browsers.
|
|
4198
4200
|
* See: https://caniuse.com/mdn-javascript_builtins_symbol_description
|