shaka-player 4.2.1 → 4.2.3
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/build-and-test.yaml +42 -22
- package/.github/workflows/compute-incremental-coverage.py +14 -3
- package/.github/workflows/custom-actions/set-commit-status/action.yaml +1 -5
- package/.github/workflows/deflake.yaml +28 -0
- package/.github/workflows/demo-version-index.yaml +1 -1
- package/.github/workflows/nightly-demo.yaml +1 -1
- package/.github/workflows/release-please.yaml +5 -5
- package/.github/workflows/report-incremental-coverage.yaml +1 -1
- package/.github/workflows/selenium-lab-tests.yaml +21 -10
- package/AUTHORS +4 -0
- package/CHANGELOG.md +36 -0
- package/CONTRIBUTORS +4 -0
- package/demo/common/message_ids.js +1 -0
- package/demo/config.js +3 -1
- package/demo/locales/en.json +1 -0
- package/demo/locales/source.json +4 -0
- package/dist/demo.compiled.debug.js +7 -6
- package/dist/demo.compiled.debug.map +3 -3
- package/dist/demo.compiled.js +7 -6
- package/dist/demo.compiled.map +3 -3
- package/dist/deps.js +4 -4
- package/dist/locales.js +32 -32
- package/dist/receiver.compiled.debug.js +4 -3
- package/dist/receiver.compiled.debug.map +3 -3
- package/dist/receiver.compiled.js +4 -3
- package/dist/receiver.compiled.map +3 -3
- package/dist/shaka-player.compiled.d.ts +3 -2
- package/dist/shaka-player.compiled.debug.d.ts +3 -2
- package/dist/shaka-player.compiled.debug.externs.js +25 -24
- package/dist/shaka-player.compiled.debug.js +268 -259
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +25 -24
- package/dist/shaka-player.compiled.js +749 -746
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +3 -2
- package/dist/shaka-player.ui.debug.d.ts +3 -2
- package/dist/shaka-player.ui.debug.externs.js +25 -24
- package/dist/shaka-player.ui.debug.js +243 -234
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +25 -24
- package/dist/shaka-player.ui.js +908 -904
- package/dist/shaka-player.ui.map +4 -4
- package/docs/jsdoc-template/publish.js +33 -0
- package/docs/jsdoc-template/tmpl/container.tmpl +4 -1
- package/docs/jsdoc.conf.json +1 -0
- package/docs/tutorials/welcome.md +2 -2
- package/externs/shaka/manifest_parser.js +4 -1
- package/externs/shaka/player.js +7 -1
- package/lib/ads/client_side_ad_manager.js +12 -2
- package/lib/cast/cast_sender.js +39 -14
- package/lib/cea/cea608_memory.js +4 -0
- package/lib/hls/hls_parser.js +48 -15
- package/lib/media/drm_engine.js +59 -7
- package/lib/media/media_source_engine.js +43 -15
- package/lib/media/playhead.js +1 -1
- package/lib/media/segment_index.js +4 -1
- package/lib/media/streaming_engine.js +79 -14
- package/lib/offline/indexeddb/storage_mechanism.js +24 -0
- package/lib/offline/storage.js +1 -0
- package/lib/player.js +17 -5
- package/lib/polyfill/media_capabilities.js +7 -6
- package/lib/text/ttml_text_parser.js +69 -87
- package/lib/text/vtt_text_parser.js +1 -1
- package/lib/util/error.js +7 -0
- package/lib/util/periods.js +9 -9
- package/lib/util/platform.js +19 -5
- package/lib/util/player_configuration.js +4 -0
- package/lib/util/pssh.js +2 -1
- package/lib/util/stream_utils.js +2 -1
- package/lib/util/xml_utils.js +45 -6
- package/package.json +1 -1
- package/test/cea/cea608_memory_unit.js +88 -0
- package/test/dash/dash_parser_content_protection_unit.js +1 -0
- package/test/dash/dash_parser_live_unit.js +1 -0
- package/test/dash/dash_parser_manifest_unit.js +1 -0
- package/test/dash/dash_parser_segment_base_unit.js +1 -0
- package/test/dash/dash_parser_segment_list_unit.js +1 -0
- package/test/dash/dash_parser_segment_template_unit.js +1 -0
- package/test/hls/hls_live_unit.js +169 -247
- package/test/hls/hls_parser_unit.js +60 -2
- package/test/media/drm_engine_unit.js +61 -0
- package/test/media/media_source_engine_integration.js +36 -0
- package/test/media/media_source_engine_unit.js +118 -1
- package/test/media/segment_index_unit.js +28 -2
- package/test/media/streaming_engine_integration.js +9 -7
- package/test/media/streaming_engine_unit.js +29 -0
- package/test/offline/offline_integration.js +3 -3
- package/test/offline/storage_integration.js +30 -0
- package/test/player_integration.js +2 -2
- package/test/test/util/dash_parser_util.js +2 -0
- package/test/test/util/ttml_utils.js +0 -2
- package/test/text/ttml_text_parser_unit.js +46 -0
- package/test/text/vtt_text_parser_unit.js +23 -1
- package/test/ui/text_displayer_layout_unit.js +17 -2
- package/test/util/periods_unit.js +149 -11
- package/test/util/xml_utils_unit.js +64 -0
- package/ui/controls.js +0 -7
|
@@ -2,7 +2,7 @@ name: Build and Test PR
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
pull_request: # Trigger for pull requests.
|
|
5
|
-
types: [opened, synchronize, reopened]
|
|
5
|
+
types: [opened, synchronize, reopened, ready_for_review]
|
|
6
6
|
branches:
|
|
7
7
|
- main
|
|
8
8
|
- v[0-9]*
|
|
@@ -25,7 +25,7 @@ jobs:
|
|
|
25
25
|
runs-on: ubuntu-latest
|
|
26
26
|
steps:
|
|
27
27
|
- name: Checkout code
|
|
28
|
-
uses: actions/checkout@
|
|
28
|
+
uses: actions/checkout@v3
|
|
29
29
|
with:
|
|
30
30
|
ref: ${{ github.event.inputs.ref || github.ref }}
|
|
31
31
|
|
|
@@ -41,12 +41,17 @@ jobs:
|
|
|
41
41
|
include:
|
|
42
42
|
# Run Linux browsers with xvfb, so they're in a headless X session.
|
|
43
43
|
# Additionally, generate a code coverage report from Linux Chrome.
|
|
44
|
+
# It should be the uncompiled build, or else we won't execute any
|
|
45
|
+
# coverage instrumentation on full-stack player integration tests.
|
|
44
46
|
- os: ubuntu-latest
|
|
45
47
|
browser: Chrome
|
|
46
|
-
extra_flags: "--use-xvfb --html-coverage-report"
|
|
48
|
+
extra_flags: "--use-xvfb --html-coverage-report --uncompiled"
|
|
47
49
|
- os: ubuntu-latest
|
|
48
50
|
browser: Firefox
|
|
49
51
|
extra_flags: "--use-xvfb"
|
|
52
|
+
- os: ubuntu-latest
|
|
53
|
+
browser: Edge
|
|
54
|
+
extra_flags: "--use-xvfb"
|
|
50
55
|
|
|
51
56
|
- os: macos-latest
|
|
52
57
|
browser: Chrome
|
|
@@ -57,7 +62,7 @@ jobs:
|
|
|
57
62
|
- os: macos-latest
|
|
58
63
|
browser: Safari
|
|
59
64
|
- os: macos-latest
|
|
60
|
-
browser: Safari-
|
|
65
|
+
browser: Safari-old
|
|
61
66
|
|
|
62
67
|
- os: windows-latest
|
|
63
68
|
browser: Chrome
|
|
@@ -83,25 +88,26 @@ jobs:
|
|
|
83
88
|
run: sudo apt -y update && sudo apt -y install ffmpeg
|
|
84
89
|
|
|
85
90
|
- name: Checkout code
|
|
86
|
-
uses: actions/checkout@
|
|
91
|
+
uses: actions/checkout@v3
|
|
87
92
|
with:
|
|
88
93
|
ref: ${{ github.event.inputs.ref || github.ref }}
|
|
89
94
|
|
|
90
|
-
# Safari
|
|
91
|
-
# the standard version, at least not on GitHub's VMs. If
|
|
92
|
-
# install directly to the root with sudo, it will appear to
|
|
93
|
-
# will have no effect. If you try to script it explicitly
|
|
94
|
-
# and cp, this will fail. Safari may be on a read-only
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
# Older versions of Safari can be installed, but not to the root, and it
|
|
96
|
+
# can't replace the standard version, at least not on GitHub's VMs. If
|
|
97
|
+
# you try to install directly to the root with sudo, it will appear to
|
|
98
|
+
# succeed, but will have no effect. If you try to script it explicitly
|
|
99
|
+
# with rm -rf and cp, this will fail. Safari may be on a read-only
|
|
100
|
+
# filesystem.
|
|
101
|
+
- name: Install old Safari to home directory
|
|
102
|
+
if: matrix.os == 'macos-latest' && matrix.browser == 'Safari-old'
|
|
97
103
|
run: |
|
|
98
|
-
# Download Safari
|
|
99
|
-
#
|
|
100
|
-
|
|
104
|
+
# Download Safari 15
|
|
105
|
+
# This URL discovered through the seed files listed at
|
|
106
|
+
# https://github.com/zhangyoufu/swscan.apple.com/blob/master/url.txt
|
|
107
|
+
curl -Lv http://swcdn.apple.com/content/downloads/42/33/012-57329-A_41P2VU6UHN/5fw5vna27fdw4mqfak5adj3pjpxvo9hgh7/Safari15.6.1CatalinaAuto.pkg > Safari.pkg
|
|
101
108
|
|
|
102
|
-
# Install Safari
|
|
103
|
-
|
|
104
|
-
installer -pkg Safari14.0CatalinaAuto.pkg -target CurrentUserHomeDirectory
|
|
109
|
+
# Install older Safari to homedir specifically.
|
|
110
|
+
installer -pkg Safari.pkg -target CurrentUserHomeDirectory
|
|
105
111
|
|
|
106
112
|
# Install a launcher that can execute a shell script to launch this
|
|
107
113
|
npm install karma-script-launcher --save-dev
|
|
@@ -114,7 +120,7 @@ jobs:
|
|
|
114
120
|
run: |
|
|
115
121
|
browser=${{ matrix.browser }}
|
|
116
122
|
|
|
117
|
-
if [[ "$browser" == "Safari-
|
|
123
|
+
if [[ "$browser" == "Safari-old" ]]; then
|
|
118
124
|
# Replace the browser name with a script that can launch this
|
|
119
125
|
# browser from the command line.
|
|
120
126
|
browser="$PWD/.github/workflows/safari-homedir-launcher.sh"
|
|
@@ -144,7 +150,7 @@ jobs:
|
|
|
144
150
|
cp "$coverage_folder"/coverage-details.json coverage/staging/
|
|
145
151
|
echo "${{ github.event.number }}" > coverage/staging/pr-number.json
|
|
146
152
|
|
|
147
|
-
echo "
|
|
153
|
+
echo "coverage_found=true" >> $GITHUB_OUTPUT
|
|
148
154
|
echo "Coverage report staged."
|
|
149
155
|
else
|
|
150
156
|
echo "No coverage report generated."
|
|
@@ -165,6 +171,18 @@ jobs:
|
|
|
165
171
|
# an environment variable set, the file should definitely be there.
|
|
166
172
|
if-no-files-found: error
|
|
167
173
|
|
|
174
|
+
# Upload new screenshots and diffs on failure; ignore if missing
|
|
175
|
+
- name: Upload screenshots
|
|
176
|
+
uses: actions/upload-artifact@v3
|
|
177
|
+
if: ${{ failure() }}
|
|
178
|
+
with:
|
|
179
|
+
name: screenshots-${{ matrix.browser }}
|
|
180
|
+
path: |
|
|
181
|
+
test/test/assets/screenshots/*/*.png-new
|
|
182
|
+
test/test/assets/screenshots/*/*.png-diff
|
|
183
|
+
if-no-files-found: ignore
|
|
184
|
+
retention-days: 5
|
|
185
|
+
|
|
168
186
|
build_in_docker:
|
|
169
187
|
# Don't waste time doing a full matrix of test runs when there was an
|
|
170
188
|
# obvious linter error.
|
|
@@ -173,9 +191,11 @@ jobs:
|
|
|
173
191
|
runs-on: ubuntu-latest
|
|
174
192
|
steps:
|
|
175
193
|
- name: Checkout code
|
|
176
|
-
uses: actions/checkout@
|
|
194
|
+
uses: actions/checkout@v3
|
|
177
195
|
with:
|
|
178
196
|
ref: ${{ github.event.inputs.ref || github.ref }}
|
|
179
197
|
|
|
180
198
|
- name: Docker
|
|
181
|
-
run:
|
|
199
|
+
run: |
|
|
200
|
+
docker build -t shaka-player-build build/docker
|
|
201
|
+
docker run -v $(pwd):/usr/src --user $(id -u):$(id -g) shaka-player-build
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import argparse
|
|
18
18
|
import io
|
|
19
19
|
import json
|
|
20
|
+
import os
|
|
20
21
|
import re
|
|
21
22
|
import subprocess
|
|
22
23
|
import zipfile
|
|
@@ -221,6 +222,16 @@ def IncrementalCoverage(pr, coverage_details):
|
|
|
221
222
|
return None
|
|
222
223
|
return num_covered / num_changed
|
|
223
224
|
|
|
225
|
+
def set_output(name, value):
|
|
226
|
+
path = os.environ.get("GITHUB_OUTPUT")
|
|
227
|
+
if path:
|
|
228
|
+
# Inside GitHub Actions, output the data to a special file GitHub provides.
|
|
229
|
+
with open(path, "a") as f:
|
|
230
|
+
f.write("{}={}\n".format(name, value))
|
|
231
|
+
else:
|
|
232
|
+
# Outside of GitHub Actions, just print the data.
|
|
233
|
+
print("OUTPUT {}={}".format(name, value))
|
|
234
|
+
|
|
224
235
|
def main():
|
|
225
236
|
parser = argparse.ArgumentParser(
|
|
226
237
|
description="Compute incremental code coverage for a PR",
|
|
@@ -241,11 +252,11 @@ def main():
|
|
|
241
252
|
pr = PullRequest(args.repo, pr_number)
|
|
242
253
|
coverage = IncrementalCoverage(pr, coverage_details)
|
|
243
254
|
|
|
244
|
-
|
|
255
|
+
set_output("pr_number", str(pr_number))
|
|
245
256
|
if coverage is None:
|
|
246
|
-
|
|
257
|
+
set_output("coverage", "No instrumented code was changed.")
|
|
247
258
|
else:
|
|
248
|
-
|
|
259
|
+
set_output("coverage", "%.2f%%" % (coverage * 100.0))
|
|
249
260
|
|
|
250
261
|
if __name__ == "__main__":
|
|
251
262
|
main()
|
|
@@ -11,10 +11,6 @@ inputs:
|
|
|
11
11
|
state:
|
|
12
12
|
description: Either "pending", "error", "success", or "failure".
|
|
13
13
|
required: true
|
|
14
|
-
ref:
|
|
15
|
-
description: A git ref for which to set the commit status. For PRs, use the head commit, not the merge commit. Defaults to HEAD.
|
|
16
|
-
required: false
|
|
17
|
-
default: HEAD
|
|
18
14
|
token:
|
|
19
15
|
description: A GitHub access token.
|
|
20
16
|
required: true
|
|
@@ -30,7 +26,7 @@ runs:
|
|
|
30
26
|
# next to the status on the PR, it will link to this run where they can
|
|
31
27
|
# see the logs.
|
|
32
28
|
RUN_URL="https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"
|
|
33
|
-
SHA1=$(git rev-parse
|
|
29
|
+
SHA1=$(git rev-parse HEAD)
|
|
34
30
|
|
|
35
31
|
GITHUB_TOKEN=${{ inputs.token }} \
|
|
36
32
|
gh api \
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: Deflake Tests
|
|
2
|
+
|
|
3
|
+
# Runs when the Selenum nightly test workflow completes. This will run with
|
|
4
|
+
# full privileges, even if the other workflow doesn't. That allows us to
|
|
5
|
+
# trigger re-runs if we think the results might be flaky.
|
|
6
|
+
on:
|
|
7
|
+
workflow_run:
|
|
8
|
+
workflows: [Selenium Lab Tests]
|
|
9
|
+
types: [completed]
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
deflake:
|
|
13
|
+
if: ${{ github.event.workflow_run.event == 'schedule' && github.event.workflow_run.conclusion == 'failure' }}
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- name: Check run count and re-run workflow
|
|
18
|
+
env:
|
|
19
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
20
|
+
run: |
|
|
21
|
+
gh api /repos/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }} > run.json
|
|
22
|
+
RUNS=$(jq -r .run_attempt < run.json)
|
|
23
|
+
if [[ "$RUNS" -lt 3 ]]; then
|
|
24
|
+
echo "$RUNS failed runs so far; re-running workflow."
|
|
25
|
+
gh run rerun ${{ github.event.workflow_run.id }} --failed -R ${{ github.repository }}
|
|
26
|
+
else
|
|
27
|
+
echo "$RUNS failed runs so far; not re-running workflow."
|
|
28
|
+
fi
|
|
@@ -23,7 +23,7 @@ jobs:
|
|
|
23
23
|
default-branch: ${{ github.ref_name }}
|
|
24
24
|
|
|
25
25
|
# If we didn't create a release, we may have created or updated a PR.
|
|
26
|
-
- uses: actions/checkout@
|
|
26
|
+
- uses: actions/checkout@v3
|
|
27
27
|
if: steps.release.outputs.release_created == false
|
|
28
28
|
- name: Custom update Player version
|
|
29
29
|
if: steps.release.outputs.release_created == false
|
|
@@ -53,7 +53,7 @@ jobs:
|
|
|
53
53
|
needs: release
|
|
54
54
|
if: needs.release.outputs.release_created && endsWith(needs.release.outputs.tag_name, '.0') == false
|
|
55
55
|
steps:
|
|
56
|
-
- uses: actions/checkout@
|
|
56
|
+
- uses: actions/checkout@v3
|
|
57
57
|
with:
|
|
58
58
|
ref: main
|
|
59
59
|
- name: Tag the main branch
|
|
@@ -70,7 +70,7 @@ jobs:
|
|
|
70
70
|
needs: release
|
|
71
71
|
if: needs.release.outputs.release_created
|
|
72
72
|
steps:
|
|
73
|
-
- uses: actions/checkout@
|
|
73
|
+
- uses: actions/checkout@v3
|
|
74
74
|
with:
|
|
75
75
|
fetch-depth: 0
|
|
76
76
|
persist-credentials: false
|
|
@@ -99,7 +99,7 @@ jobs:
|
|
|
99
99
|
needs: release
|
|
100
100
|
if: needs.release.outputs.release_created
|
|
101
101
|
steps:
|
|
102
|
-
- uses: actions/checkout@
|
|
102
|
+
- uses: actions/checkout@v3
|
|
103
103
|
with:
|
|
104
104
|
fetch-depth: 0
|
|
105
105
|
persist-credentials: false
|
|
@@ -152,7 +152,7 @@ jobs:
|
|
|
152
152
|
needs: release
|
|
153
153
|
if: needs.release.outputs.release_created && endsWith(needs.release.outputs.tag_name, '.0')
|
|
154
154
|
steps:
|
|
155
|
-
- uses: actions/checkout@
|
|
155
|
+
- uses: actions/checkout@v3
|
|
156
156
|
with:
|
|
157
157
|
fetch-depth: 0
|
|
158
158
|
|
|
@@ -32,7 +32,7 @@ jobs:
|
|
|
32
32
|
else
|
|
33
33
|
LAB_TEST_REF="main"
|
|
34
34
|
fi
|
|
35
|
-
echo "
|
|
35
|
+
echo "REF=$LAB_TEST_REF" >> $GITHUB_OUTPUT
|
|
36
36
|
|
|
37
37
|
# Configure the build matrix based on our grid's YAML config.
|
|
38
38
|
# The matrix contents will be computed by this first job and deserialized
|
|
@@ -45,9 +45,9 @@ jobs:
|
|
|
45
45
|
INCLUDE: ${{ steps.configure.outputs.INCLUDE }}
|
|
46
46
|
|
|
47
47
|
steps:
|
|
48
|
-
- uses: actions/checkout@
|
|
48
|
+
- uses: actions/checkout@v3
|
|
49
49
|
with:
|
|
50
|
-
ref: ${{ needs.compute-ref.REF }}
|
|
50
|
+
ref: ${{ needs.compute-ref.outputs.REF }}
|
|
51
51
|
|
|
52
52
|
- name: Install dependencies
|
|
53
53
|
run: npm ci
|
|
@@ -77,7 +77,9 @@ jobs:
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
// Output JSON object consumed by the build matrix below.
|
|
80
|
-
|
|
80
|
+
fs.appendFileSync(
|
|
81
|
+
process.env['GITHUB_OUTPUT'],
|
|
82
|
+
`INCLUDE=${ JSON.stringify(include) }\n`);
|
|
81
83
|
|
|
82
84
|
// Log the output, for the sake of debugging this script.
|
|
83
85
|
console.log({include});
|
|
@@ -90,9 +92,9 @@ jobs:
|
|
|
90
92
|
needs: compute-ref
|
|
91
93
|
runs-on: ubuntu-latest
|
|
92
94
|
steps:
|
|
93
|
-
- uses: actions/checkout@
|
|
95
|
+
- uses: actions/checkout@v3
|
|
94
96
|
with:
|
|
95
|
-
ref: ${{ needs.compute-ref.REF }}
|
|
97
|
+
ref: ${{ needs.compute-ref.outputs.REF }}
|
|
96
98
|
|
|
97
99
|
- name: Set commit status to pending
|
|
98
100
|
uses: ./.github/workflows/custom-actions/set-commit-status
|
|
@@ -132,9 +134,9 @@ jobs:
|
|
|
132
134
|
name: ${{ matrix.browser }}
|
|
133
135
|
|
|
134
136
|
steps:
|
|
135
|
-
- uses: actions/checkout@
|
|
137
|
+
- uses: actions/checkout@v3
|
|
136
138
|
with:
|
|
137
|
-
ref: ${{ needs.compute-ref.REF }}
|
|
139
|
+
ref: ${{ needs.compute-ref.outputs.REF }}
|
|
138
140
|
|
|
139
141
|
- name: Set commit status to pending
|
|
140
142
|
uses: ./.github/workflows/custom-actions/set-commit-status
|
|
@@ -180,6 +182,15 @@ jobs:
|
|
|
180
182
|
# the container.
|
|
181
183
|
- name: Test Player
|
|
182
184
|
run: |
|
|
185
|
+
# Generate a coverage report from uncompiled code on ChromeLinux.
|
|
186
|
+
# It should be the uncompiled build, or else we won't execute any
|
|
187
|
+
# coverage instrumentation on full-stack player integration tests.
|
|
188
|
+
if [[ "${{ matrix.browser }}" == "ChromeLinux" ]]; then
|
|
189
|
+
extra_flags="--html-coverage-report --uncompiled"
|
|
190
|
+
else
|
|
191
|
+
extra_flags=""
|
|
192
|
+
fi
|
|
193
|
+
|
|
183
194
|
python3 build/test.py \
|
|
184
195
|
--no-build \
|
|
185
196
|
--reporters spec --spec-hide-passed \
|
|
@@ -189,7 +200,7 @@ jobs:
|
|
|
189
200
|
--grid-config build/shaka-lab.yaml \
|
|
190
201
|
--grid-address selenium-grid.lab:4444 \
|
|
191
202
|
--browsers ${{ matrix.browser }} \
|
|
192
|
-
|
|
203
|
+
$extra_flags
|
|
193
204
|
|
|
194
205
|
- name: Find coverage report (ChromeLinux only)
|
|
195
206
|
id: coverage
|
|
@@ -209,7 +220,7 @@ jobs:
|
|
|
209
220
|
|
|
210
221
|
if [ -f "$coverage_report" ]; then
|
|
211
222
|
echo "Found coverage report: $coverage_report"
|
|
212
|
-
echo "
|
|
223
|
+
echo "coverage_report=$coverage_report" >> $GITHUB_OUTPUT
|
|
213
224
|
else
|
|
214
225
|
echo "Could not locate coverage report!"
|
|
215
226
|
exit 1
|
package/AUTHORS
CHANGED
|
@@ -37,6 +37,7 @@ Giorgio Gamberoni <giorgio.gamberoni@gmail.com>
|
|
|
37
37
|
Giuseppe Samela <giuseppe.samela@gmail.com>
|
|
38
38
|
Google Inc. <*@google.com>
|
|
39
39
|
Itay Kinnrot <Itay.Kinnrot@Kaltura.com>
|
|
40
|
+
Jaeseok Lee <devsunb@gmail.com>
|
|
40
41
|
Jason Palmer <jason@jason-palmer.com>
|
|
41
42
|
Jesper Haug Karsrud <jesper.karsrud@gmail.com>
|
|
42
43
|
Johan Sundström <oyasumi@gmail.com>
|
|
@@ -69,6 +70,7 @@ SameGoal Inc. <*@samegoal.com>
|
|
|
69
70
|
Sanborn Hilland <sanbornh@rogers.com>
|
|
70
71
|
Sander Saares <sander@saares.eu>
|
|
71
72
|
Sanil Raut <sr1990003@gmail.com>
|
|
73
|
+
Seongryun Jo <ocipap0531@gmail.com>
|
|
72
74
|
Swank Motion Pictures Inc. <*@swankmp.com>
|
|
73
75
|
TalkTalk Plc <*@talktalkplc.com>
|
|
74
76
|
Tatsiana Gelahova <tatsiana.gelahova@gmail.com>
|
|
@@ -81,3 +83,5 @@ ViacomCBS <*@viacomcbs.com>
|
|
|
81
83
|
Vincent Valot <valot.vince@gmail.com>
|
|
82
84
|
Wayne Morgan <wayne.morgan.dev@gmail.com>
|
|
83
85
|
Raymond Cheng <raycheng100@gmail.com>
|
|
86
|
+
Blue Billywig <*@bluebillywig.com>
|
|
87
|
+
Koen Romers <koenromers@gmail.com>
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.2.3](https://github.com/shaka-project/shaka-player/compare/v4.2.2...v4.2.3) (2022-10-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **ads:** Fix IMA crash when autoplay is rejected ([#4518](https://github.com/shaka-project/shaka-player/issues/4518)) ([871a3c0](https://github.com/shaka-project/shaka-player/commit/871a3c0315a2965c91ebdde9815c7f6c5e0a59de)), closes [#4179](https://github.com/shaka-project/shaka-player/issues/4179)
|
|
9
|
+
* Fix HLS live stream subtitle offsets ([#4586](https://github.com/shaka-project/shaka-player/issues/4586)) ([ec0b4dc](https://github.com/shaka-project/shaka-player/commit/ec0b4dcb0e288ceb1a01874db99063ef54fb3e47))
|
|
10
|
+
* Fix multi-period DASH with descriptive audio ([#4629](https://github.com/shaka-project/shaka-player/issues/4629)) ([0e70b87](https://github.com/shaka-project/shaka-player/commit/0e70b874cf8558207b0620516c5608c6a201018d)), closes [#4500](https://github.com/shaka-project/shaka-player/issues/4500)
|
|
11
|
+
* fix support clear and encrypted periods ([#4606](https://github.com/shaka-project/shaka-player/issues/4606)) ([8ece8ea](https://github.com/shaka-project/shaka-player/commit/8ece8ea225fb8b9ec9027dacef0865cceb3fd93b))
|
|
12
|
+
* Force using mcap polyfill on EOS browsers ([#4630](https://github.com/shaka-project/shaka-player/issues/4630)) ([6b9f806](https://github.com/shaka-project/shaka-player/commit/6b9f806df54cc7b8761ef1683cefe5ed8d576a03))
|
|
13
|
+
* **hls:** Fix raw format detection when the main playlist hasn't type ([#4583](https://github.com/shaka-project/shaka-player/issues/4583)) ([4053088](https://github.com/shaka-project/shaka-player/commit/4053088847eff6d7ddb7a969701fa881f6e90e8a))
|
|
14
|
+
* Limit key ids to 32 characters ([#4614](https://github.com/shaka-project/shaka-player/issues/4614)) ([6fc1455](https://github.com/shaka-project/shaka-player/commit/6fc145584ffc0798a6e97c5672409b1e1613f164))
|
|
15
|
+
* Make XML parsing secure ([#4598](https://github.com/shaka-project/shaka-player/issues/4598)) ([2e45696](https://github.com/shaka-project/shaka-player/commit/2e45696c10f3c2199a372a7a5f311579e627cd8e))
|
|
16
|
+
* **offline:** Add storage muxer init timeout ([#4566](https://github.com/shaka-project/shaka-player/issues/4566)) ([6022907](https://github.com/shaka-project/shaka-player/commit/6022907df5e3a18b552a49e537d2c1daeebbc2c6))
|
|
17
|
+
* **playhead:** Safeguard getStallsDetected as stallDetector can be null ([#4581](https://github.com/shaka-project/shaka-player/issues/4581)) ([c4ee14f](https://github.com/shaka-project/shaka-player/commit/c4ee14f2abcdd83b21e64230b67ab121c1db037e))
|
|
18
|
+
* Resolve load failures for TS-based content on Android-based Cast devices ([#4569](https://github.com/shaka-project/shaka-player/issues/4569)). ([#4570](https://github.com/shaka-project/shaka-player/issues/4570)) ([4a4f48d](https://github.com/shaka-project/shaka-player/commit/4a4f48d2cac726e2a5a1d4e51e89f0b854e281ef))
|
|
19
|
+
|
|
20
|
+
## [4.2.2](https://github.com/shaka-project/shaka-player/compare/v4.2.1...v4.2.2) (2022-10-07)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* allow build without text ([#4506](https://github.com/shaka-project/shaka-player/issues/4506)) ([7e93720](https://github.com/shaka-project/shaka-player/commit/7e9372097567d8d0f93c04e241fb917945da05bf))
|
|
26
|
+
* allow the playback on platforms when low latency APIs are not supported ([#4485](https://github.com/shaka-project/shaka-player/issues/4485)) ([cf8c857](https://github.com/shaka-project/shaka-player/commit/cf8c857e58f041e24373e8b4f7d560287197cf13))
|
|
27
|
+
* check for negative rows before moving ([#4510](https://github.com/shaka-project/shaka-player/issues/4510)) ([23f39d7](https://github.com/shaka-project/shaka-player/commit/23f39d7393c771440fc76ac9016b166d658710b2)), closes [#4508](https://github.com/shaka-project/shaka-player/issues/4508)
|
|
28
|
+
* Filter unsupported H.264 streams in Xbox ([#4493](https://github.com/shaka-project/shaka-player/issues/4493)) ([914a08a](https://github.com/shaka-project/shaka-player/commit/914a08a4d08bed284a072aed52b0bf8fcbdc6986))
|
|
29
|
+
* Fix choppy HLS startup ([#4553](https://github.com/shaka-project/shaka-player/issues/4553)) ([950ce69](https://github.com/shaka-project/shaka-player/commit/950ce699a06bb9e7668b431f4f08052c005f2e8a)), closes [#4516](https://github.com/shaka-project/shaka-player/issues/4516)
|
|
30
|
+
* Fix errors with TS segments on Chromecast ([#4543](https://github.com/shaka-project/shaka-player/issues/4543)) ([8204db6](https://github.com/shaka-project/shaka-player/commit/8204db6ebc152cb01c36db941ca60bc82ccbe443))
|
|
31
|
+
* Fix hang when seeking to the last segment ([#4537](https://github.com/shaka-project/shaka-player/issues/4537)) ([3d6c768](https://github.com/shaka-project/shaka-player/commit/3d6c768cb302de42138aec8fdf51dff8317c5607))
|
|
32
|
+
* Fix HLS dynamic to static transition ([d9ecbf3](https://github.com/shaka-project/shaka-player/commit/d9ecbf3fccb886e10a491c43e05e681fe2103a2d))
|
|
33
|
+
* Fix HLS dynamic to static transition ([#4483](https://github.com/shaka-project/shaka-player/issues/4483)) ([d9ecbf3](https://github.com/shaka-project/shaka-player/commit/d9ecbf3fccb886e10a491c43e05e681fe2103a2d)), closes [#4431](https://github.com/shaka-project/shaka-player/issues/4431)
|
|
34
|
+
* Fix in-band key rotation on Xbox One ([#4478](https://github.com/shaka-project/shaka-player/issues/4478)) ([bc0a588](https://github.com/shaka-project/shaka-player/commit/bc0a588676828eb68bdca62efe52cb503feb947d)), closes [#4401](https://github.com/shaka-project/shaka-player/issues/4401)
|
|
35
|
+
* Missing AES-128 key of last HLS segment ([#4519](https://github.com/shaka-project/shaka-player/issues/4519)) ([2c2677f](https://github.com/shaka-project/shaka-player/commit/2c2677fe7af10e1280ea8253b90ef6527bdcbbc0)), closes [#4517](https://github.com/shaka-project/shaka-player/issues/4517)
|
|
36
|
+
* Respect existing app usage of Cast SDK ([#4523](https://github.com/shaka-project/shaka-player/issues/4523)) ([3db2568](https://github.com/shaka-project/shaka-player/commit/3db2568508cfc827fd9efc644096a45220eb617b)), closes [#4521](https://github.com/shaka-project/shaka-player/issues/4521)
|
|
37
|
+
* **ttml:** Default TTML background color to transparent if unspecified ([#4496](https://github.com/shaka-project/shaka-player/issues/4496)) ([0b5c985](https://github.com/shaka-project/shaka-player/commit/0b5c9853a6a39cb24ab1270598bf34d2ac1eacf0)), closes [#4468](https://github.com/shaka-project/shaka-player/issues/4468)
|
|
38
|
+
|
|
3
39
|
## [4.2.1](https://github.com/shaka-project/shaka-player/compare/v4.2.0...v4.2.1) (2022-08-31)
|
|
4
40
|
|
|
5
41
|
|
package/CONTRIBUTORS
CHANGED
|
@@ -57,6 +57,7 @@ Hichem Taoufik <hichem@code-it.fr>
|
|
|
57
57
|
Itay Kinnrot <itay.kinnrot@kaltura.com>
|
|
58
58
|
Isaac Ramirez <isaac.ramirez.herrera@gmail.com>
|
|
59
59
|
Jacob Trimble <modmaker@google.com>
|
|
60
|
+
Jaeseok Lee <devsunb@gmail.com>
|
|
60
61
|
Jason Palmer <jason@jason-palmer.com>
|
|
61
62
|
Jeffrey Swan <jeffdswan@gmail.com>
|
|
62
63
|
Jesper Haug Karsrud <jesper.karsrud@gmail.com>
|
|
@@ -104,6 +105,7 @@ Sandra Lokshina <ismena@google.com>
|
|
|
104
105
|
Sanil Raut <sr1990003@gmail.com>
|
|
105
106
|
Satheesh Velmurugan <satheesh@philo.com>
|
|
106
107
|
Semih Gokceoglu <semih.gkcoglu@gmail.com>
|
|
108
|
+
Seongryun Jo <ocipap0531@gmail.com>
|
|
107
109
|
Seth Madison <seth@philo.com>
|
|
108
110
|
Tatsiana Gelahova <tatsiana.gelahova@gmail.com>
|
|
109
111
|
Theodore Abshire <theodab@google.com>
|
|
@@ -121,3 +123,5 @@ Vincent Valot <valot.vince@gmail.com>
|
|
|
121
123
|
Wayne Morgan <wayne.morgan.dev@gmail.com>
|
|
122
124
|
Yohann Connell <robinconnell@google.com>
|
|
123
125
|
Raymond Cheng <raycheng100@gmail.com>
|
|
126
|
+
Janroel Koppen <j.koppen@bluebillywig.com>
|
|
127
|
+
Koen Romers <koenromers@gmail.com>
|
|
@@ -227,6 +227,7 @@ shakaDemo.MessageIds = {
|
|
|
227
227
|
NUMBER_NONZERO_INTEGER_WARNING: 'DEMO_NUMBER_NONZERO_INTEGER_WARNING',
|
|
228
228
|
NUMBER_OF_PARALLEL_DOWNLOADS: 'DEMO_NUMBER_OF_PARALLEL_DOWNLOADS',
|
|
229
229
|
OFFLINE_SECTION_HEADER: 'DEMO_OFFLINE_SECTION_HEADER',
|
|
230
|
+
PARSE_INBAND_PSSH_ENABLED: 'DEMO_PARSE_INBAND_PSSH_ENABLED',
|
|
230
231
|
PREFER_FORCED_SUBS: 'DEMO_PREFER_FORCED_SUBS',
|
|
231
232
|
PREFER_NATIVE_HLS: 'DEMO_PREFER_NATIVE_HLS',
|
|
232
233
|
REBUFFERING_GOAL: 'DEMO_REBUFFERING_GOAL',
|
package/demo/config.js
CHANGED
|
@@ -131,7 +131,9 @@ shakaDemo.Config = class {
|
|
|
131
131
|
'drm.updateExpirationTime',
|
|
132
132
|
/* canBeDecimal= */ true,
|
|
133
133
|
/* canBeZero= */ false,
|
|
134
|
-
/* canBeUnset= */ true)
|
|
134
|
+
/* canBeUnset= */ true)
|
|
135
|
+
.addBoolInput_(MessageIds.PARSE_INBAND_PSSH_ENABLED,
|
|
136
|
+
'drm.parseInbandPsshEnabled');
|
|
135
137
|
const advanced = shakaDemoMain.getConfiguration().drm.advanced || {};
|
|
136
138
|
const addDRMAdvancedField = (name, valueName, suggestions) => {
|
|
137
139
|
// All advanced fields of a given type are set at once.
|
package/demo/locales/en.json
CHANGED
|
@@ -163,6 +163,7 @@
|
|
|
163
163
|
"DEMO_NUMBER_NONZERO_INTEGER_WARNING": "Must be a positive, nonzero integer.",
|
|
164
164
|
"DEMO_NUMBER_OF_PARALLEL_DOWNLOADS": "Number of parallel downloads",
|
|
165
165
|
"DEMO_OBSERVE_QUALITY_CHANGES": "Observe media quality changes",
|
|
166
|
+
"DEMO_PARSE_INBAND_PSSH_ENABLED": "Parse inband 'pssh' from media segments",
|
|
166
167
|
"DEMO_OFFLINE": "Downloadable",
|
|
167
168
|
"DEMO_OFFLINE_SEARCH": "Filters for assets that can be stored offline.",
|
|
168
169
|
"DEMO_OFFLINE_SECTION_HEADER": "Offline",
|
package/demo/locales/source.json
CHANGED
|
@@ -679,6 +679,10 @@
|
|
|
679
679
|
"description": "The label on a field that allows users to provide a full mime type for a custom asset.",
|
|
680
680
|
"message": "Full Mime Type for Playing Media Playlists Directly"
|
|
681
681
|
},
|
|
682
|
+
"DEMO_PARSE_INBAND_PSSH_ENABLED": {
|
|
683
|
+
"description": "The name of a configuration value.",
|
|
684
|
+
"message": "Parse inband 'pssh' from media segments"
|
|
685
|
+
},
|
|
682
686
|
"DEMO_PLAY": {
|
|
683
687
|
"description": "A button to play the attached asset.",
|
|
684
688
|
"message": "Play"
|
|
@@ -143,9 +143,10 @@ ENABLED:"DEMO_ENABLED",FAST_HALF_LIFE:"DEMO_FAST_HALF_LIFE",FORCE_HTTPS:"DEMO_FO
|
|
|
143
143
|
IGNORE_HLS_IMAGE_FAILURES:"DEMO_IGNORE_HLS_IMAGE_FAILURES",IGNORE_HLS_TEXT_FAILURES:"DEMO_IGNORE_HLS_TEXT_FAILURES",IGNORE_MANIFEST_PROGRAM_DATE_TIME:"DEMO_IGNORE_MANIFEST_PROGRAM_DATE_TIME",IGNORE_MIN_BUFFER_TIME:"DEMO_IGNORE_MIN_BUFFER_TIME",IGNORE_TEXT_FAILURES:"DEMO_IGNORE_TEXT_FAILURES",INACCURATE_MANIFEST_TOLERANCE:"DEMO_INACCURATE_MANIFEST_TOLERANCE",INITIAL_SEGMENT_LIMIT:"DEMO_INITIAL_SEGMENT_LIMIT",LANGUAGE_SECTION_HEADER:"DEMO_LANGUAGE_SECTION_HEADER",LOG_LEVEL:"DEMO_LOG_LEVEL",LOG_LEVEL_DEBUG:"DEMO_LOG_LEVEL_DEBUG",
|
|
144
144
|
LOG_LEVEL_INFO:"DEMO_LOG_LEVEL_INFO",LOG_LEVEL_V:"DEMO_LOG_LEVEL_V",LOG_LEVEL_VV:"DEMO_LOG_LEVEL_VV",LOG_LICENSE_EXCHANGE:"DEMO_LOG_LICENSE_EXCHANGE",LOW_LATENCY:"DEMO_LOW_LATENCY",MANIFEST_RETRY_SECTION_HEADER:"DEMO_MANIFEST_RETRY_SECTION_HEADER",MANIFEST_SECTION_HEADER:"DEMO_MANIFEST_SECTION_HEADER",MAX_ATTEMPTS:"DEMO_MAX_ATTEMPTS",MAX_BANDWIDTH:"DEMO_MAX_BANDWIDTH",MAX_DISABLED_TIME:"DEMO_MAX_DISABLED_TIME",MAX_FRAMERATE:"DEMO_MAX_FRAMERATE",MAX_HEIGHT:"DEMO_MAX_HEIGHT",MAX_PIXELS:"DEMO_MAX_PIXELS",
|
|
145
145
|
MAX_WIDTH:"DEMO_MAX_WIDTH",MIN_BANDWIDTH:"DEMO_MIN_BANDWIDTH",MIN_BYTES:"DEMO_MIN_BYTES",MIN_FRAMERATE:"DEMO_MIN_FRAMERATE",MIN_HEIGHT:"DEMO_MIN_HEIGHT",MIN_PIXELS:"DEMO_MIN_PIXELS",MIN_TOTAL_BYTES:"DEMO_MIN_TOTAL_BYTES",MIN_WIDTH:"DEMO_MIN_WIDTH",NETWORK_INFORMATION:"DEMO_NETWORK_INFORMATION",NUMBER_DECIMAL_WARNING:"DEMO_NUMBER_DECIMAL_WARNING",NUMBER_INTEGER_WARNING:"DEMO_NUMBER_INTEGER_WARNING",NUMBER_NONZERO_DECIMAL_WARNING:"DEMO_NUMBER_NONZERO_DECIMAL_WARNING",NUMBER_NONZERO_INTEGER_WARNING:"DEMO_NUMBER_NONZERO_INTEGER_WARNING",
|
|
146
|
-
NUMBER_OF_PARALLEL_DOWNLOADS:"DEMO_NUMBER_OF_PARALLEL_DOWNLOADS",OFFLINE_SECTION_HEADER:"DEMO_OFFLINE_SECTION_HEADER",PREFER_FORCED_SUBS:"DEMO_PREFER_FORCED_SUBS",PREFER_NATIVE_HLS:"DEMO_PREFER_NATIVE_HLS",REBUFFERING_GOAL:"DEMO_REBUFFERING_GOAL",RESTRICT_TO_ELEMENT_SIZE:"DEMO_RESTRICT_TO_ELEMENT_SIZE",RESTRICTIONS_SECTION_HEADER:"DEMO_RESTRICTIONS_SECTION_HEADER",SAFE_SEEK_OFFSET:"DEMO_SAFE_SEEK_OFFSET",SAFE_SKIP_DISTANCE:"DEMO_SAFE_SKIP_DISTANCE",
|
|
147
|
-
SESSION_ID:"DEMO_SESSION_ID",SHAKA_CONTROLS:"DEMO_SHAKA_CONTROLS",SLOW_HALF_LIFE:"DEMO_SLOW_HALF_LIFE",STALL_DETECTOR_ENABLED:"DEMO_STALL_DETECTOR_ENABLED",STALL_THRESHOLD:"DEMO_STALL_THRESHOLD",STALL_TIMEOUT:"DEMO_STALL_TIMEOUT",START_AT_SEGMENT_BOUNDARY:"DEMO_START_AT_SEGMENT_BOUNDARY",STREAMING_RETRY_SECTION_HEADER:"DEMO_STREAMING_RETRY_SECTION_HEADER",STREAMING_SECTION_HEADER:"DEMO_STREAMING_SECTION_HEADER",SWITCH_INTERVAL:"DEMO_SWITCH_INTERVAL",
|
|
148
|
-
TIMEOUT:"DEMO_TIMEOUT",TRICK_PLAY_CONTROLS:"DEMO_TRICK_PLAY_CONTROLS",TRICK_PLAY_CONTROLS_WARNING:"DEMO_TRICK_PLAY_CONTROLS_WARNING",UI_LOCALE:"DEMO_UI_LOCALE",UPDATE_EXPIRATION_TIME:"DEMO_UPDATE_EXPIRATION_TIME",UPDATE_INTERVAL_SECONDS:"DEMO_UPDATE_INTERVAL_SECONDS",USE_HEADERS:"DEMO_USE_HEADERS",USE_NATIVE_HLS_SAFARI:"DEMO_USE_NATIVE_HLS_SAFARI",USE_PERSISTENT_LICENSES:"DEMO_USE_PERSISTENT_LICENSES",VIDEO_ROBUSTNESS:"DEMO_VIDEO_ROBUSTNESS",
|
|
146
|
+
NUMBER_OF_PARALLEL_DOWNLOADS:"DEMO_NUMBER_OF_PARALLEL_DOWNLOADS",OFFLINE_SECTION_HEADER:"DEMO_OFFLINE_SECTION_HEADER",PARSE_INBAND_PSSH_ENABLED:"DEMO_PARSE_INBAND_PSSH_ENABLED",PREFER_FORCED_SUBS:"DEMO_PREFER_FORCED_SUBS",PREFER_NATIVE_HLS:"DEMO_PREFER_NATIVE_HLS",REBUFFERING_GOAL:"DEMO_REBUFFERING_GOAL",RESTRICT_TO_ELEMENT_SIZE:"DEMO_RESTRICT_TO_ELEMENT_SIZE",RESTRICTIONS_SECTION_HEADER:"DEMO_RESTRICTIONS_SECTION_HEADER",SAFE_SEEK_OFFSET:"DEMO_SAFE_SEEK_OFFSET",SAFE_SKIP_DISTANCE:"DEMO_SAFE_SKIP_DISTANCE",
|
|
147
|
+
SEGMENT_RELATIVE_VTT_TIMING:"DEMO_SEGMENT_RELATIVE_VTT_TIMING",SESSION_ID:"DEMO_SESSION_ID",SHAKA_CONTROLS:"DEMO_SHAKA_CONTROLS",SLOW_HALF_LIFE:"DEMO_SLOW_HALF_LIFE",STALL_DETECTOR_ENABLED:"DEMO_STALL_DETECTOR_ENABLED",STALL_THRESHOLD:"DEMO_STALL_THRESHOLD",STALL_TIMEOUT:"DEMO_STALL_TIMEOUT",START_AT_SEGMENT_BOUNDARY:"DEMO_START_AT_SEGMENT_BOUNDARY",STREAMING_RETRY_SECTION_HEADER:"DEMO_STREAMING_RETRY_SECTION_HEADER",STREAMING_SECTION_HEADER:"DEMO_STREAMING_SECTION_HEADER",SWITCH_INTERVAL:"DEMO_SWITCH_INTERVAL",
|
|
148
|
+
TEXT_LANGUAGE:"DEMO_TEXT_LANGUAGE",TEXT_ROLE:"DEMO_TEXT_ROLE",TIMEOUT:"DEMO_TIMEOUT",TRICK_PLAY_CONTROLS:"DEMO_TRICK_PLAY_CONTROLS",TRICK_PLAY_CONTROLS_WARNING:"DEMO_TRICK_PLAY_CONTROLS_WARNING",UI_LOCALE:"DEMO_UI_LOCALE",UPDATE_EXPIRATION_TIME:"DEMO_UPDATE_EXPIRATION_TIME",UPDATE_INTERVAL_SECONDS:"DEMO_UPDATE_INTERVAL_SECONDS",USE_HEADERS:"DEMO_USE_HEADERS",USE_NATIVE_HLS_SAFARI:"DEMO_USE_NATIVE_HLS_SAFARI",USE_PERSISTENT_LICENSES:"DEMO_USE_PERSISTENT_LICENSES",VIDEO_ROBUSTNESS:"DEMO_VIDEO_ROBUSTNESS",
|
|
149
|
+
XLINK_FAIL_GRACEFULLY:"DEMO_XLINK_FAIL_GRACEFULLY"}};var ShakaDemoAssetInfo=function(a,b,c,d){this.name=a;this.shortName="";this.iconUri=b;this.manifestUri=c;this.source=d;this.disabled=this.focus=!1;this.extraText=[];this.description=this.certificateUri=null;this.isFeatured=!1;this.drm=[shakaAssets.KeySystem.CLEAR];this.features=[shakaAssets.Feature.VOD];this.licenseServers=new Map;this.licenseRequestHeaders=new Map;this.responseFilter=this.requestFilter=null;this.clearKeys=new Map;this.mediaPlaylistFullMimeType=this.mimeType=this.imaContentSrcId=
|
|
149
150
|
this.imaAssetKey=this.imaVideoId=this.adTagUri=this.extraConfig=null;this.storedProgress=1};ShakaDemoAssetInfo.prototype.addDescription=function(a){this.description=a;return this};ShakaDemoAssetInfo.prototype.addCertificateUri=function(a){this.certificateUri=a;return this};ShakaDemoAssetInfo.caseLessAlphaComparator_=function(a,b){return a.toLowerCase()<b.toLowerCase()?-1:a.toLowerCase()>b.toLowerCase()?1:0};
|
|
150
151
|
ShakaDemoAssetInfo.prototype.addFeature=function(a){var b=shakaAssets.Feature;a==b.LIVE&&(this.features=this.features.filter(function(c){return c!=b.VOD}));this.features.push(a);this.features.sort(ShakaDemoAssetInfo.caseLessAlphaComparator_);return this};ShakaDemoAssetInfo.prototype.addKeySystem=function(a){this.isClear()&&(this.drm=[]);this.drm.push(a);this.drm.sort(ShakaDemoAssetInfo.caseLessAlphaComparator_);return this};
|
|
151
152
|
ShakaDemoAssetInfo.prototype.isClear=function(){return 1==this.drm.length&&this.drm[0]==shakaAssets.KeySystem.CLEAR};ShakaDemoAssetInfo.prototype.setMediaPlaylistFullMimeType=function(a){this.mediaPlaylistFullMimeType=a;return this};ShakaDemoAssetInfo.prototype.setExtraConfig=function(a){this.extraConfig=a;return this};ShakaDemoAssetInfo.prototype.setMimeType=function(a){this.mimeType=a;return this};ShakaDemoAssetInfo.prototype.setRequestFilter=function(a){this.requestFilter=a;return this};
|
|
@@ -282,9 +283,9 @@ document.createElement("div");this.latestRow_.appendChild(this.latestElementCont
|
|
|
282
283
|
shakaDemo.Config.init=function(){var a=shakaDemoMain.getHamburgerMenu();shakaDemoConfig=new shakaDemo.Config(a)};shakaDemo.Config.prototype.setContentAvailability_=function(a){a?this.container_.classList.remove("hidden"):this.container_.classList.add("hidden")};
|
|
283
284
|
shakaDemo.Config.prototype.reload_=function(){shaka.util.Dom.removeAllChildren(this.container_);this.sections_=[];this.addMetaSection_();this.addLanguageSection_();this.addAbrSection_();this.addOfflineSection_();this.addDrmSection_();this.addStreamingSection_();this.addManifestSection_();this.addRetrictionsSection_("",shakaDemo.MessageIds.RESTRICTIONS_SECTION_HEADER);this.addCmcdSection_()};
|
|
284
285
|
shakaDemo.Config.prototype.reloadAndSaveState_=function(){var a=this.sections_.map(function(d){return d.getIsOpen()});this.reload_();for(var b=0;b<a.length;b++){var c=this.sections_[b];a[b]&&c.open()}componentHandler.upgradeDom()};
|
|
285
|
-
shakaDemo.Config.prototype.addDrmSection_=function(){var a=this,b=shakaDemo.MessageIds,c=this.resolveExternLink_(".DrmConfiguration");this.addSection_(b.DRM_SECTION_HEADER,c).addBoolInput_(b.DELAY_LICENSE,"drm.delayLicenseRequestUntilPlayed").addBoolInput_(b.LOG_LICENSE_EXCHANGE,"drm.logLicenseExchange").addNumberInput_(b.UPDATE_EXPIRATION_TIME,"drm.updateExpirationTime",!0,!1,!0);var d=shakaDemoMain.getConfiguration().drm.advanced||
|
|
286
|
-
|
|
287
|
-
e);c(b.DRM_SESSION_TYPE,"sessionType",["temporary","persistent-license"]);this.addRetrySection_("drm",b.DRM_RETRY_SECTION_HEADER)};
|
|
286
|
+
shakaDemo.Config.prototype.addDrmSection_=function(){var a=this,b=shakaDemo.MessageIds,c=this.resolveExternLink_(".DrmConfiguration");this.addSection_(b.DRM_SECTION_HEADER,c).addBoolInput_(b.DELAY_LICENSE,"drm.delayLicenseRequestUntilPlayed").addBoolInput_(b.LOG_LICENSE_EXCHANGE,"drm.logLicenseExchange").addNumberInput_(b.UPDATE_EXPIRATION_TIME,"drm.updateExpirationTime",!0,!1,!0).addBoolInput_(b.PARSE_INBAND_PSSH_ENABLED,"drm.parseInbandPsshEnabled");var d=shakaDemoMain.getConfiguration().drm.advanced||
|
|
287
|
+
{};c=function(f,g,h){a.addDatalistInput_(f,h,function(k){for(var l=$jscomp.makeIterator(shakaDemo.Main.commonDrmSystems),m=l.next();!m.done;m=l.next())m=m.value,m in d||(d[m]=shakaDemo.Main.defaultAdvancedDrmConfig());for(var n in d)d[n][g]=k.value;shakaDemoMain.configure("drm.advanced",d);shakaDemoMain.remakeHash()});if(f=Object.keys(d)[0])f=d[f][g],a.latestInput_.input().value=f};var e="SW_SECURE_CRYPTO SW_SECURE_DECODE HW_SECURE_CRYPTO HW_SECURE_DECODE HW_SECURE_ALL 150 2000 3000".split(" ");c(b.VIDEO_ROBUSTNESS,
|
|
288
|
+
"videoRobustness",e);c(b.AUDIO_ROBUSTNESS,"audioRobustness",e);c(b.DRM_SESSION_TYPE,"sessionType",["temporary","persistent-license"]);this.addRetrySection_("drm",b.DRM_RETRY_SECTION_HEADER)};
|
|
288
289
|
shakaDemo.Config.prototype.addManifestSection_=function(){var a=shakaDemo.MessageIds,b=this.resolveExternLink_(".ManifestConfiguration");this.addSection_(a.MANIFEST_SECTION_HEADER,b).addBoolInput_(a.IGNORE_DASH_DRM,"manifest.dash.ignoreDrmInfo").addBoolInput_(a.AUTO_CORRECT_DASH_DRIFT,"manifest.dash.autoCorrectDrift").addBoolInput_(a.DISABLE_XLINK_PROCESSING,"manifest.dash.disableXlinkProcessing").addBoolInput_(a.XLINK_FAIL_GRACEFULLY,"manifest.dash.xlinkFailGracefully").addBoolInput_(a.IGNORE_DASH_SUGGESTED_PRESENTATION_DELAY,
|
|
289
290
|
"manifest.dash.ignoreSuggestedPresentationDelay").addBoolInput_(a.IGNORE_DASH_EMPTY_ADAPTATION_SET,"manifest.dash.ignoreEmptyAdaptationSet").addBoolInput_(a.IGNORE_DASH_MAX_SEGMENT_DURATION,"manifest.dash.ignoreMaxSegmentDuration").addBoolInput_(a.IGNORE_HLS_TEXT_FAILURES,"manifest.hls.ignoreTextStreamFailures").addBoolInput_(a.IGNORE_HLS_IMAGE_FAILURES,"manifest.hls.ignoreImageStreamFailures").addTextInput_(a.DEFAULT_AUDIO_CODEC,"manifest.hls.defaultAudioCodec").addTextInput_(a.DEFAULT_VIDEO_CODEC,
|
|
290
291
|
"manifest.hls.defaultVideoCodec").addBoolInput_(a.IGNORE_MANIFEST_PROGRAM_DATE_TIME,"manifest.hls.ignoreManifestProgramDateTime").addNumberInput_(a.AVAILABILITY_WINDOW_OVERRIDE,"manifest.availabilityWindowOverride",!0,!1,!0).addTextInput_(a.CLOCK_SYNC_URI,"manifest.dash.clockSyncUri").addNumberInput_(a.DEFAULT_PRESENTATION_DELAY,"manifest.defaultPresentationDelay").addBoolInput_(a.IGNORE_MIN_BUFFER_TIME,"manifest.dash.ignoreMinBufferTime").addNumberInput_(a.INITIAL_SEGMENT_LIMIT,"manifest.dash.initialSegmentLimit",
|