shaka-player 4.3.14 → 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/shaka-bot-commands/lib.sh +37 -12
- package/.github/workflows/shaka-bot-commands/main.sh +4 -2
- package/.github/workflows/sync-labels.yaml +1 -1
- package/.github/workflows/talk-to-shaka-bot.yaml +2 -1
- package/.github/workflows/update-issues.yaml +1 -1
- package/.github/workflows/update-screenshots.yaml +25 -38
- package/CHANGELOG.md +37 -0
- package/demo/demo.less +1 -5
- package/dist/controls.css +1 -1
- package/dist/controls.css.map +1 -1
- package/dist/demo.css +1 -1
- package/dist/demo.css.map +1 -1
- package/dist/deps.js +0 -1
- package/dist/locales.js +32 -32
- 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 +222 -217
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +13 -11
- package/dist/shaka-player.compiled.js +855 -853
- 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 +171 -167
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +13 -11
- package/dist/shaka-player.ui.js +950 -948
- 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/deprecate/deprecate.js +1 -1
- package/lib/hls/hls_parser.js +34 -17
- package/lib/media/drm_engine.js +17 -3
- package/lib/media/manifest_parser.js +2 -1
- 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 +19 -5
- package/lib/polyfill/mediasource.js +5 -36
- package/lib/text/ui_text_displayer.js +10 -1
- package/lib/text/vtt_text_parser.js +2 -1
- package/lib/util/error.js +1 -0
- package/lib/util/manifest_parser_utils.js +1 -0
- package/lib/util/stream_utils.js +8 -5
- package/package.json +2 -2
- 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/hls/hls_parser_unit.js +28 -0
- package/test/media/media_source_engine_integration.js +1 -1
- package/test/player_integration.js +9 -1
- package/test/player_load_graph_integration.js +13 -7
- package/test/player_src_equals_integration.js +2 -2
- package/test/player_unit.js +22 -4
- package/test/text/vtt_text_parser_unit.js +31 -0
- package/ui/less/containers.less +1 -0
- package/lib/polyfill/storage_estimate.js +0 -57
|
@@ -1072,6 +1072,37 @@ describe('VttTextParser', () => {
|
|
|
1072
1072
|
{periodStart: 0, segmentStart: 0, segmentEnd: 0, vttOffset: 0});
|
|
1073
1073
|
});
|
|
1074
1074
|
|
|
1075
|
+
it('passes text-shadow when multiple classes included', () => {
|
|
1076
|
+
verifyHelper(
|
|
1077
|
+
[
|
|
1078
|
+
{
|
|
1079
|
+
startTime: 20,
|
|
1080
|
+
endTime: 40,
|
|
1081
|
+
payload: '',
|
|
1082
|
+
nestedCues: [
|
|
1083
|
+
{
|
|
1084
|
+
startTime: 20,
|
|
1085
|
+
endTime: 40,
|
|
1086
|
+
payload: 'Test',
|
|
1087
|
+
fontStyle: Cue.fontStyle.ITALIC,
|
|
1088
|
+
textShadow: 'black 5%',
|
|
1089
|
+
},
|
|
1090
|
+
],
|
|
1091
|
+
},
|
|
1092
|
+
],
|
|
1093
|
+
'WEBVTT\n\n' +
|
|
1094
|
+
'STYLE\n' +
|
|
1095
|
+
'::cue(.shadow) {\n' +
|
|
1096
|
+
' text-shadow: black 5%;\n' +
|
|
1097
|
+
'}\n' +
|
|
1098
|
+
'::cue(.italic) {\n' +
|
|
1099
|
+
' font-style: italic;\n' +
|
|
1100
|
+
'}\n\n' +
|
|
1101
|
+
'00:00:20.000 --> 00:00:40.000\n' +
|
|
1102
|
+
'<c.shadow.italic>Test</c>',
|
|
1103
|
+
{periodStart: 0, segmentStart: 0, segmentEnd: 0, vttOffset: 0});
|
|
1104
|
+
});
|
|
1105
|
+
|
|
1075
1106
|
it('supports karaoke style text', () => {
|
|
1076
1107
|
verifyHelper(
|
|
1077
1108
|
[
|
package/ui/less/containers.less
CHANGED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/*! @license
|
|
2
|
-
* Shaka Player
|
|
3
|
-
* Copyright 2016 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
goog.provide('shaka.polyfill.StorageEstimate');
|
|
8
|
-
|
|
9
|
-
goog.require('shaka.polyfill');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @summary A polyfill to provide navigator.storage.estimate in old
|
|
14
|
-
* webkit browsers.
|
|
15
|
-
* See: https://developers.google.com/web/updates/2017/08/estimating-available-storage-space#the-present
|
|
16
|
-
* @export
|
|
17
|
-
*/
|
|
18
|
-
shaka.polyfill.StorageEstimate = class {
|
|
19
|
-
/**
|
|
20
|
-
* Install the polyfill if needed.
|
|
21
|
-
* @export
|
|
22
|
-
*/
|
|
23
|
-
static install() {
|
|
24
|
-
if (navigator.storage && navigator.storage.estimate) {
|
|
25
|
-
// No need.
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
if (navigator.webkitTemporaryStorage &&
|
|
30
|
-
navigator.webkitTemporaryStorage.queryUsageAndQuota) {
|
|
31
|
-
if (!('storage' in navigator)) {
|
|
32
|
-
navigator.storage = /** @type {!StorageManager} */ ({});
|
|
33
|
-
}
|
|
34
|
-
navigator.storage.estimate =
|
|
35
|
-
shaka.polyfill.StorageEstimate.storageEstimate_;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @this {StorageManager}
|
|
41
|
-
* @return {!Promise}
|
|
42
|
-
* @private
|
|
43
|
-
*/
|
|
44
|
-
static storageEstimate_() {
|
|
45
|
-
return new Promise((resolve, reject) => {
|
|
46
|
-
navigator.webkitTemporaryStorage.queryUsageAndQuota(
|
|
47
|
-
(usage, quota) => {
|
|
48
|
-
resolve({usage: usage, quota: quota});
|
|
49
|
-
},
|
|
50
|
-
reject,
|
|
51
|
-
);
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
shaka.polyfill.register(shaka.polyfill.StorageEstimate.install);
|