shaka-player 4.3.4 → 4.3.6
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 +4 -4
- package/.github/workflows/demo-version-index.yaml +6 -0
- package/.github/workflows/selenium-lab-tests.yaml +78 -17
- package/.github/workflows/update-screenshots.yaml +142 -0
- package/AUTHORS +2 -1
- package/CHANGELOG.md +56 -0
- package/CONTRIBUTORS +4 -1
- package/demo/common/asset.js +15 -0
- package/demo/common/assets.js +4 -2
- package/demo/common/message_ids.js +1 -0
- package/demo/custom.js +19 -0
- package/demo/locales/en.json +1 -0
- package/demo/locales/source.json +4 -0
- package/demo/main.js +14 -0
- package/dist/controls.css +2 -2
- package/dist/controls.css.map +1 -1
- package/dist/demo.compiled.debug.js +184 -311
- package/dist/demo.compiled.debug.map +4 -4
- package/dist/demo.compiled.js +184 -311
- package/dist/demo.compiled.map +4 -4
- package/dist/deps.js +2 -2
- package/dist/locales.js +29 -29
- package/dist/receiver.compiled.debug.js +51 -80
- package/dist/receiver.compiled.debug.map +4 -4
- package/dist/receiver.compiled.js +51 -80
- package/dist/receiver.compiled.map +4 -4
- package/dist/shaka-player.compiled.d.ts +19 -3
- package/dist/shaka-player.compiled.debug.d.ts +19 -3
- package/dist/shaka-player.compiled.debug.externs.js +20 -14
- package/dist/shaka-player.compiled.debug.js +291 -283
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +20 -14
- package/dist/shaka-player.compiled.js +830 -825
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.d.ts +19 -3
- package/dist/shaka-player.ui.debug.d.ts +19 -3
- package/dist/shaka-player.ui.debug.externs.js +8 -2
- package/dist/shaka-player.ui.debug.js +301 -292
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.externs.js +8 -2
- package/dist/shaka-player.ui.js +927 -922
- package/dist/shaka-player.ui.map +3 -3
- package/docs/tutorials/a11y.md +0 -4
- package/docs/tutorials/ad_monetization.md +0 -4
- package/docs/tutorials/basic-usage.md +0 -5
- package/docs/tutorials/config.md +0 -5
- package/docs/tutorials/debugging.md +0 -5
- package/docs/tutorials/drm-config.md +0 -5
- package/docs/tutorials/errors.md +94 -0
- package/docs/tutorials/fairplay.md +4 -4
- package/docs/tutorials/index.json +2 -0
- package/docs/tutorials/license-server-auth.md +0 -5
- package/docs/tutorials/license-wrapping.md +0 -5
- package/docs/tutorials/network-and-buffering-config.md +0 -5
- package/docs/tutorials/ui-customization.md +0 -5
- package/docs/tutorials/ui.md +0 -7
- package/docs/tutorials/welcome.md +0 -5
- package/docs/tutorials/widevine-service-certs.md +45 -0
- package/externs/ima.js +9 -0
- package/externs/network_information.js +7 -2
- package/externs/shaka/abr_manager.js +6 -0
- package/externs/shaka/net.js +1 -0
- package/externs/shaka/player.js +13 -7
- package/lib/abr/simple_abr_manager.js +27 -3
- package/lib/ads/client_side_ad_manager.js +11 -5
- package/lib/dash/dash_parser.js +49 -48
- package/lib/debug/log.js +9 -13
- package/lib/hls/hls_parser.js +23 -6
- package/lib/media/drm_engine.js +4 -2
- package/lib/media/media_source_engine.js +27 -9
- package/lib/media/presentation_timeline.js +9 -2
- package/lib/media/segment_index.js +2 -0
- package/lib/media/segment_reference.js +3 -2
- package/lib/media/streaming_engine.js +31 -7
- package/lib/media/transmuxer.js +13 -7
- package/lib/media/video_wrapper.js +3 -3
- package/lib/net/http_fetch_plugin.js +79 -57
- package/lib/net/networking_engine.js +1 -0
- package/lib/offline/indexeddb/storage_mechanism.js +1 -1
- package/lib/player.js +24 -3
- package/lib/polyfill/media_capabilities.js +15 -8
- package/lib/polyfill/mediasource.js +24 -2
- package/lib/text/mp4_vtt_parser.js +4 -0
- package/lib/text/text_engine.js +1 -0
- package/lib/text/ui_text_displayer.js +1 -0
- package/lib/text/vtt_text_parser.js +4 -5
- package/lib/util/manifest_parser_utils.js +1 -2
- package/lib/util/mime_utils.js +12 -1
- package/lib/util/periods.js +5 -5
- package/lib/util/stream_utils.js +28 -16
- package/maintained-branches.md +2 -3
- package/package.json +1 -1
- package/test/dash/dash_parser_live_unit.js +3 -2
- package/test/hls/hls_parser_unit.js +156 -0
- package/test/media/content_workarounds_unit.js +43 -0
- package/test/media/drm_engine_integration.js +4 -17
- package/test/media/streaming_engine_unit.js +6 -1
- package/test/net/networking_engine_unit.js +6 -1
- package/test/player_integration.js +39 -0
- package/test/player_unit.js +57 -0
- package/test/polyfill/media_capabilities_unit.js +22 -22
- package/test/test/assets/text-clip-alt.vtt +63 -0
- package/test/test/util/fake_drm_engine.js +3 -0
- package/test/test/util/fake_media_source_engine.js +4 -0
- package/test/test/util/simple_fakes.js +6 -0
- package/test/test/util/test_scheme.js +9 -14
- package/test/text/mp4_vtt_parser_unit.js +8 -0
- package/test/text/vtt_text_parser_unit.js +26 -2
- package/test/text/web_vtt_layout_integration.js +0 -3
- package/test/util/mime_utils_unit.js +10 -0
- package/ui/less/containers.less +4 -0
|
@@ -16,7 +16,7 @@ on:
|
|
|
16
16
|
# old one. If a PR is updated and a new test run is started, the old test run
|
|
17
17
|
# will be cancelled automatically to conserve resources.
|
|
18
18
|
concurrency:
|
|
19
|
-
group: ${{ github.workflow }}-${{
|
|
19
|
+
group: ${{ github.workflow }}-${{ inputs.ref || github.ref }}
|
|
20
20
|
cancel-in-progress: true
|
|
21
21
|
|
|
22
22
|
jobs:
|
|
@@ -27,7 +27,7 @@ jobs:
|
|
|
27
27
|
- name: Checkout code
|
|
28
28
|
uses: actions/checkout@v3
|
|
29
29
|
with:
|
|
30
|
-
ref: ${{
|
|
30
|
+
ref: ${{ inputs.ref || github.ref }}
|
|
31
31
|
|
|
32
32
|
- name: Lint
|
|
33
33
|
run: python build/check.py
|
|
@@ -103,7 +103,7 @@ jobs:
|
|
|
103
103
|
- name: Checkout code
|
|
104
104
|
uses: actions/checkout@v3
|
|
105
105
|
with:
|
|
106
|
-
ref: ${{
|
|
106
|
+
ref: ${{ inputs.ref || github.ref }}
|
|
107
107
|
|
|
108
108
|
# Older versions of Safari can be installed, but not to the root, and it
|
|
109
109
|
# can't replace the standard version, at least not on GitHub's VMs. If
|
|
@@ -213,7 +213,7 @@ jobs:
|
|
|
213
213
|
- name: Checkout code
|
|
214
214
|
uses: actions/checkout@v3
|
|
215
215
|
with:
|
|
216
|
-
ref: ${{
|
|
216
|
+
ref: ${{ inputs.ref || github.ref }}
|
|
217
217
|
|
|
218
218
|
- name: Docker
|
|
219
219
|
run: |
|
|
@@ -11,6 +11,12 @@ on:
|
|
|
11
11
|
- app-engine/demo-version-index/**
|
|
12
12
|
release:
|
|
13
13
|
types: [published]
|
|
14
|
+
# NOTE: So long as releases are made without a personal access token (PAT),
|
|
15
|
+
# they will not activate this workflow's release trigger. For now, the
|
|
16
|
+
# schedule trigger will compensate for that by updating the index nightly.
|
|
17
|
+
schedule:
|
|
18
|
+
# Run every night at 10pm PST / 6am UTC.
|
|
19
|
+
- cron: '0 6 * * *'
|
|
14
20
|
|
|
15
21
|
jobs:
|
|
16
22
|
appspot:
|
|
@@ -9,8 +9,31 @@ on:
|
|
|
9
9
|
description: "A PR number to build and test in the lab. If empty, will build and test from main."
|
|
10
10
|
required: false
|
|
11
11
|
test_filter:
|
|
12
|
-
description: "A filter to run a subset of the tests. If empty, all tests will run."
|
|
12
|
+
description: "A regex filter to run a subset of the tests. If empty, all tests will run."
|
|
13
13
|
required: false
|
|
14
|
+
browser_filter:
|
|
15
|
+
description: "A list of browsers to run the tests. If empty, all browsers will run."
|
|
16
|
+
required: false
|
|
17
|
+
workflow_call:
|
|
18
|
+
# Allows for reuse from other workflows, such as "Update All Screenshots"
|
|
19
|
+
# workflow.
|
|
20
|
+
inputs:
|
|
21
|
+
pr:
|
|
22
|
+
description: "A PR number to build and test in the lab. If empty, will build and test from main."
|
|
23
|
+
required: false
|
|
24
|
+
type: string
|
|
25
|
+
test_filter:
|
|
26
|
+
description: "A regex filter to run a subset of the tests. If empty, all tests will run."
|
|
27
|
+
required: false
|
|
28
|
+
type: string
|
|
29
|
+
browser_filter:
|
|
30
|
+
description: "A list of browsers to run the tests. If empty, all browsers will run."
|
|
31
|
+
required: false
|
|
32
|
+
type: string
|
|
33
|
+
ignore_test_status:
|
|
34
|
+
description: "If true, ignore test success or failure, never set the commit status, and always upload screenshots."
|
|
35
|
+
required: false
|
|
36
|
+
type: boolean
|
|
14
37
|
schedule:
|
|
15
38
|
# Runs every night at 2am PST / 10am UTC, testing against the main branch.
|
|
16
39
|
- cron: '0 10 * * *'
|
|
@@ -30,12 +53,12 @@ jobs:
|
|
|
30
53
|
- name: Compute ref
|
|
31
54
|
id: compute
|
|
32
55
|
run: |
|
|
33
|
-
if [[ "${{
|
|
34
|
-
LAB_TEST_REF="refs/pull/${{
|
|
56
|
+
if [[ "${{ inputs.pr }}" != "" ]]; then
|
|
57
|
+
LAB_TEST_REF="refs/pull/${{ inputs.pr }}/head"
|
|
35
58
|
else
|
|
36
59
|
LAB_TEST_REF="main"
|
|
37
60
|
fi
|
|
38
|
-
echo "REF=$LAB_TEST_REF"
|
|
61
|
+
echo "REF=$LAB_TEST_REF" | tee -a $GITHUB_OUTPUT
|
|
39
62
|
|
|
40
63
|
# Configure the build matrix based on our grid's YAML config.
|
|
41
64
|
# The matrix contents will be computed by this first job and deserialized
|
|
@@ -63,6 +86,14 @@ jobs:
|
|
|
63
86
|
const yaml = require(
|
|
64
87
|
'${{ github.workspace }}/node_modules/js-yaml/index.js');
|
|
65
88
|
|
|
89
|
+
// Convert the input "browser_filter" into a set of strings. Take
|
|
90
|
+
// care to filter so that the empty string turns into an empty set.
|
|
91
|
+
const browserFilter = new Set( "${{ inputs.browser_filter }}"
|
|
92
|
+
.split(/\s+/)
|
|
93
|
+
.map(x => x.toLowerCase())
|
|
94
|
+
.filter(x => !!x)
|
|
95
|
+
);
|
|
96
|
+
|
|
66
97
|
const gridBrowserYaml =
|
|
67
98
|
fs.readFileSync('build/shaka-lab.yaml', 'utf8');
|
|
68
99
|
const gridBrowserMetadata = yaml.load(gridBrowserYaml);
|
|
@@ -74,7 +105,14 @@ jobs:
|
|
|
74
105
|
// Skip variable defs in the YAML file
|
|
75
106
|
continue;
|
|
76
107
|
}
|
|
77
|
-
|
|
108
|
+
|
|
109
|
+
// A browser is enabled if it's not disabled and (either the browser
|
|
110
|
+
// filter is empty or it contains the browser name).
|
|
111
|
+
const enabled = !gridBrowserMetadata[name].disabled &&
|
|
112
|
+
(browserFilter.size == 0 ||
|
|
113
|
+
browserFilter.has(name.toLowerCase()));
|
|
114
|
+
|
|
115
|
+
if (enabled) {
|
|
78
116
|
include.push({browser: name});
|
|
79
117
|
}
|
|
80
118
|
}
|
|
@@ -100,6 +138,7 @@ jobs:
|
|
|
100
138
|
ref: ${{ needs.compute-ref.outputs.REF }}
|
|
101
139
|
|
|
102
140
|
- name: Set commit status to pending
|
|
141
|
+
if: ${{ inputs.ignore_test_status == false }}
|
|
103
142
|
uses: ./.github/workflows/custom-actions/set-commit-status
|
|
104
143
|
with:
|
|
105
144
|
context: Selenium / Build
|
|
@@ -117,8 +156,9 @@ jobs:
|
|
|
117
156
|
retention-days: 1
|
|
118
157
|
|
|
119
158
|
- name: Report final commit status
|
|
120
|
-
# Will run on success or failure, but not if the workflow is cancelled
|
|
121
|
-
if
|
|
159
|
+
# Will run on success or failure, but not if the workflow is cancelled
|
|
160
|
+
# or if we were asked to ignore the test status.
|
|
161
|
+
if: ${{ (success() || failure()) && inputs.ignore_test_status == false }}
|
|
122
162
|
uses: ./.github/workflows/custom-actions/set-commit-status
|
|
123
163
|
with:
|
|
124
164
|
context: Selenium / Build
|
|
@@ -142,6 +182,7 @@ jobs:
|
|
|
142
182
|
ref: ${{ needs.compute-ref.outputs.REF }}
|
|
143
183
|
|
|
144
184
|
- name: Set commit status to pending
|
|
185
|
+
if: ${{ inputs.ignore_test_status == false }}
|
|
145
186
|
uses: ./.github/workflows/custom-actions/set-commit-status
|
|
146
187
|
with:
|
|
147
188
|
context: Selenium / ${{ matrix.browser }}
|
|
@@ -185,20 +226,28 @@ jobs:
|
|
|
185
226
|
# the container.
|
|
186
227
|
- name: Test Player
|
|
187
228
|
run: |
|
|
229
|
+
# Use of an array keeps elements intact, and allows an element to
|
|
230
|
+
# contain spaces without being expanded into multiple arguments in a
|
|
231
|
+
# shell command.
|
|
232
|
+
extra_flags=()
|
|
233
|
+
|
|
188
234
|
# Generate a coverage report from uncompiled code on ChromeLinux.
|
|
189
235
|
# It should be the uncompiled build, or else we won't execute any
|
|
190
236
|
# coverage instrumentation on full-stack player integration tests.
|
|
191
237
|
if [[ "${{ matrix.browser }}" == "ChromeLinux" ]]; then
|
|
192
|
-
extra_flags
|
|
193
|
-
else
|
|
194
|
-
extra_flags=""
|
|
238
|
+
extra_flags+=(--html-coverage-report --uncompiled)
|
|
195
239
|
fi
|
|
196
240
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
extra_flags
|
|
241
|
+
if [[ "${{ inputs.test_filter }}" != "" ]]; then
|
|
242
|
+
echo "Adding filter: ${{ inputs.test_filter }}"
|
|
243
|
+
extra_flags+=(--filter "${{ inputs.test_filter }}")
|
|
200
244
|
fi
|
|
201
245
|
|
|
246
|
+
# Do not automatically fail when a command fails. This allows us to
|
|
247
|
+
# implement the ignore_test_status input by capturing the exit code
|
|
248
|
+
# and examining it.
|
|
249
|
+
set +e
|
|
250
|
+
# Run the tests with any extra flags.
|
|
202
251
|
python3 build/test.py \
|
|
203
252
|
--no-build \
|
|
204
253
|
--reporters spec --spec-hide-passed \
|
|
@@ -208,7 +257,18 @@ jobs:
|
|
|
208
257
|
--grid-config build/shaka-lab.yaml \
|
|
209
258
|
--grid-address selenium-grid.lab:4444 \
|
|
210
259
|
--browsers ${{ matrix.browser }} \
|
|
211
|
-
$extra_flags
|
|
260
|
+
"${extra_flags[@]}"
|
|
261
|
+
# Capture the test exit code immediately after running the tests.
|
|
262
|
+
# There cannot be any other command between test.py and here.
|
|
263
|
+
exit_code=$?
|
|
264
|
+
|
|
265
|
+
# If ignoring test status, treat this as an exit code of 0 (success).
|
|
266
|
+
if [[ "${{ inputs.ignore_test_status }}" == "true" ]]; then
|
|
267
|
+
exit_code=0
|
|
268
|
+
fi
|
|
269
|
+
|
|
270
|
+
# Report the captured (and possibly overridden) exit status.
|
|
271
|
+
exit $exit_code
|
|
212
272
|
|
|
213
273
|
- name: Find coverage report (ChromeLinux only)
|
|
214
274
|
id: coverage
|
|
@@ -252,7 +312,7 @@ jobs:
|
|
|
252
312
|
# Upload new screenshots and diffs on failure; ignore if missing
|
|
253
313
|
- name: Upload screenshots
|
|
254
314
|
uses: actions/upload-artifact@v3
|
|
255
|
-
if: ${{ failure() }}
|
|
315
|
+
if: ${{ failure() || inputs.ignore_test_status }}
|
|
256
316
|
with:
|
|
257
317
|
# In this workflow, "browser" is the selenium node name, which can
|
|
258
318
|
# contain both browser and OS, such as "ChromeLinux".
|
|
@@ -264,8 +324,9 @@ jobs:
|
|
|
264
324
|
retention-days: 5
|
|
265
325
|
|
|
266
326
|
- name: Report final commit status
|
|
267
|
-
# Will run on success or failure, but not if the workflow is cancelled
|
|
268
|
-
if
|
|
327
|
+
# Will run on success or failure, but not if the workflow is cancelled
|
|
328
|
+
# or if we were asked to ignore the test status.
|
|
329
|
+
if: ${{ (success() || failure()) && inputs.ignore_test_status == false }}
|
|
269
330
|
uses: ./.github/workflows/custom-actions/set-commit-status
|
|
270
331
|
with:
|
|
271
332
|
context: Selenium / ${{ matrix.browser }}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
name: Update All Screenshots
|
|
2
|
+
# Updates all screenshots on an existing PR, assuming permission has been given
|
|
3
|
+
# to maintainers to make edits.
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
# Allows for manual triggering on PRs. They should be reviewed first, to
|
|
8
|
+
# avoid malicious code executing in the lab.
|
|
9
|
+
inputs:
|
|
10
|
+
pr:
|
|
11
|
+
description: "A PR number to build and test in the lab, then update all the screenshots."
|
|
12
|
+
required: true
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
set-pending-status:
|
|
16
|
+
name: Set Pending Status
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v3
|
|
20
|
+
with:
|
|
21
|
+
ref: refs/pull/${{ inputs.pr }}/head
|
|
22
|
+
|
|
23
|
+
- name: Set commit status to pending
|
|
24
|
+
uses: ./.github/workflows/custom-actions/set-commit-status
|
|
25
|
+
with:
|
|
26
|
+
context: Update All Screenshots
|
|
27
|
+
state: pending
|
|
28
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
29
|
+
|
|
30
|
+
run-lab-tests:
|
|
31
|
+
name: Get Selenium Lab Screenshots
|
|
32
|
+
needs: [set-pending-status]
|
|
33
|
+
uses: ./.github/workflows/selenium-lab-tests.yaml
|
|
34
|
+
with:
|
|
35
|
+
pr: ${{ inputs.pr }}
|
|
36
|
+
test_filter: layout
|
|
37
|
+
ignore_test_status: true
|
|
38
|
+
|
|
39
|
+
update-pr:
|
|
40
|
+
name: Update PR
|
|
41
|
+
runs-on: ubuntu-latest
|
|
42
|
+
needs: [run-lab-tests]
|
|
43
|
+
steps:
|
|
44
|
+
- uses: actions/checkout@v3
|
|
45
|
+
with:
|
|
46
|
+
ref: refs/pull/${{ inputs.pr }}/head
|
|
47
|
+
|
|
48
|
+
- name: Set commit status to pending
|
|
49
|
+
uses: ./.github/workflows/custom-actions/set-commit-status
|
|
50
|
+
with:
|
|
51
|
+
context: Update All Screenshots
|
|
52
|
+
state: pending
|
|
53
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
54
|
+
|
|
55
|
+
- name: Get artifacts
|
|
56
|
+
uses: actions/download-artifact@v3
|
|
57
|
+
with:
|
|
58
|
+
path: new-screenshots
|
|
59
|
+
|
|
60
|
+
- name: Move screenshots
|
|
61
|
+
run: |
|
|
62
|
+
# The download-artifact action puts zip file contents into folders by
|
|
63
|
+
# the name of the artifact, so we can't have them downloaded directly
|
|
64
|
+
# to the screenshots folder. Here we move them into the correct
|
|
65
|
+
# locations.
|
|
66
|
+
cd new-screenshots
|
|
67
|
+
|
|
68
|
+
# "$i" is a folder for an artifact (eg "screenshots-ChromeAndroid"),
|
|
69
|
+
# and it contains a single folder with the name we use in our
|
|
70
|
+
# screenshots (eg "chrome-Android"). We want the contents of that
|
|
71
|
+
# inner folder to be copied to test/test/assets/screenshots/, where a
|
|
72
|
+
# folder with the same name (eg "chrome-Android") already exists.
|
|
73
|
+
for i in screenshots*; do
|
|
74
|
+
cp -a $i/* ../test/test/assets/screenshots/
|
|
75
|
+
done
|
|
76
|
+
|
|
77
|
+
- name: Update screenshots
|
|
78
|
+
run: |
|
|
79
|
+
# Install prerequisites.
|
|
80
|
+
npm ci
|
|
81
|
+
|
|
82
|
+
# Update the official screenshots for any that have visibly changed.
|
|
83
|
+
# This is not a byte-for-byte comparison, but based on pixel diffs.
|
|
84
|
+
./build/updateScreenshots.py
|
|
85
|
+
|
|
86
|
+
# Emulate the actions bot.
|
|
87
|
+
git config user.name "github-actions[bot]"
|
|
88
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
89
|
+
|
|
90
|
+
# Commit the changes. Ignore failure, in case there are no changes.
|
|
91
|
+
git add test/test/assets/screenshots/*/*.png || true
|
|
92
|
+
git commit -m ':robot: Update all screenshots' || true
|
|
93
|
+
|
|
94
|
+
- name: Update PR
|
|
95
|
+
env:
|
|
96
|
+
GH_TOKEN: ${{ github.token }}
|
|
97
|
+
run: |
|
|
98
|
+
# Update the PR.
|
|
99
|
+
PR_API_URL="/repos/${{ github.repository }}/pulls/${{ inputs.pr }}"
|
|
100
|
+
REMOTE=$(gh api $PR_API_URL | jq -r .head.repo.html_url)
|
|
101
|
+
BRANCH=$(gh api $PR_API_URL | jq -r .head.ref)
|
|
102
|
+
|
|
103
|
+
# If there were no changes, this will do nothing, but succeed.
|
|
104
|
+
git push "$REMOTE" HEAD:"$BRANCH"
|
|
105
|
+
|
|
106
|
+
- name: Debug
|
|
107
|
+
uses: mxschmitt/action-tmate@v3.6
|
|
108
|
+
with:
|
|
109
|
+
limit-access-to-actor: true
|
|
110
|
+
if: failure()
|
|
111
|
+
|
|
112
|
+
set-final-status:
|
|
113
|
+
name: Set Final Status
|
|
114
|
+
runs-on: ubuntu-latest
|
|
115
|
+
needs: [run-lab-tests, update-pr]
|
|
116
|
+
# Will run on success or failure, but not if the workflow is cancelled.
|
|
117
|
+
if: ${{ success() || failure() }}
|
|
118
|
+
steps:
|
|
119
|
+
- uses: actions/checkout@v3
|
|
120
|
+
with:
|
|
121
|
+
ref: refs/pull/${{ inputs.pr }}/head
|
|
122
|
+
|
|
123
|
+
- name: Compute final status
|
|
124
|
+
id: compute
|
|
125
|
+
run: |
|
|
126
|
+
LAB_TEST_STATUS="${{ needs.run-lab-tests.status }}"
|
|
127
|
+
UPDATE_PR_STATUS="${{ needs.update-pr.status }}"
|
|
128
|
+
|
|
129
|
+
# If run-lab-tests succeeded, use the status of update-pr, otherwise
|
|
130
|
+
# use run-lab-tests (which is "failed" or "error").
|
|
131
|
+
if [ "$LAB_TEST_STATUS" == "success" ]; then
|
|
132
|
+
echo "status=$UPDATE_PR_STATUS" >> $GITHUB_OUTPUT
|
|
133
|
+
else
|
|
134
|
+
echo "status=$LAST_TEST_STATUS" >> $GITHUB_OUTPUT
|
|
135
|
+
fi
|
|
136
|
+
|
|
137
|
+
- name: Report final status
|
|
138
|
+
uses: ./.github/workflows/custom-actions/set-commit-status
|
|
139
|
+
with:
|
|
140
|
+
context: Update All Screenshots
|
|
141
|
+
state: ${{ steps.compute.outputs.status }}
|
|
142
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
package/AUTHORS
CHANGED
|
@@ -17,7 +17,7 @@ Adrián Gómez Llorente <adgllorente@gmail.com>
|
|
|
17
17
|
AdsWizz <*@adswizz.com>
|
|
18
18
|
Alex Jones <alexedwardjones@gmail.com>
|
|
19
19
|
Alugha GmbH <*@alugha.com>
|
|
20
|
-
Alvaro Velad Galvan <
|
|
20
|
+
Alvaro Velad Galvan <ladvan91@hotmail.com>
|
|
21
21
|
Amila Sampath <lucksy@gmail.com>
|
|
22
22
|
Anthony Stansbridge <github@anthonystansbridge.co.uk>
|
|
23
23
|
Benjamin Wallberg <me@bwallberg.com>
|
|
@@ -92,3 +92,4 @@ Blue Billywig <*@bluebillywig.com>
|
|
|
92
92
|
João Nabais <jlnabais@gmail.com>
|
|
93
93
|
Koen Romers <koenromers@gmail.com>
|
|
94
94
|
Zhenghang Chen <czhtju@gmail.com>
|
|
95
|
+
Xperi <*@xperi.com>
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,61 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.3.6](https://github.com/shaka-project/shaka-player/compare/v4.3.5...v4.3.6) (2023-04-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* `config.streaming.preferNativeHls` only applies to HLS streams ([#5167](https://github.com/shaka-project/shaka-player/issues/5167)) ([dd7a2dc](https://github.com/shaka-project/shaka-player/commit/dd7a2dc5773fe23829b858cbc7b643652c24b1fe)), closes [#5166](https://github.com/shaka-project/shaka-player/issues/5166)
|
|
9
|
+
* **ads:** Fix ads starting muted behavior ([#5153](https://github.com/shaka-project/shaka-player/issues/5153)) ([d55479c](https://github.com/shaka-project/shaka-player/commit/d55479ccc5c66c4bafc942f10ea2a0cea0f9f1ad)), closes [#5125](https://github.com/shaka-project/shaka-player/issues/5125)
|
|
10
|
+
* **Ads:** Fix usage of EventManager on CS ([#5084](https://github.com/shaka-project/shaka-player/issues/5084)) ([259f0f7](https://github.com/shaka-project/shaka-player/commit/259f0f70b12c420d968571457bb2fb2462e98a60))
|
|
11
|
+
* **DASH:** Fix seeking on multiperiod content after variant change ([#5110](https://github.com/shaka-project/shaka-player/issues/5110)) ([579b5e2](https://github.com/shaka-project/shaka-player/commit/579b5e2fbbff07475c229f607db916eddb9e9fc2))
|
|
12
|
+
* **demo:** Fix native controls pointer events stolen by LCEVC canvas ([#5065](https://github.com/shaka-project/shaka-player/issues/5065)) ([eb6f792](https://github.com/shaka-project/shaka-player/commit/eb6f7923de22de6093d6fb8b18ccd94e45ba5ae6))
|
|
13
|
+
* don't use navigator.connection event listener if it isn't implemented ([#5157](https://github.com/shaka-project/shaka-player/issues/5157)) ([bfdfc7d](https://github.com/shaka-project/shaka-player/commit/bfdfc7d3e7cd35867b7da64b43167e0876d9311d)), closes [#4542](https://github.com/shaka-project/shaka-player/issues/4542)
|
|
14
|
+
* exclude "future" segments from presentation timeline auto correct drift calculations ([#4945](https://github.com/shaka-project/shaka-player/issues/4945)) ([0578084](https://github.com/shaka-project/shaka-player/commit/0578084fe8e7d85b18107688262a62996fa3fc9c)), closes [#4944](https://github.com/shaka-project/shaka-player/issues/4944)
|
|
15
|
+
* Fix fetch plugin with old implementations ([#5091](https://github.com/shaka-project/shaka-player/issues/5091)) ([18e3c51](https://github.com/shaka-project/shaka-player/commit/18e3c51825b91ba70b3e79046fcaf4a7e0f6cd05))
|
|
16
|
+
* Fix handling of CC when switching between codecs ([#5160](https://github.com/shaka-project/shaka-player/issues/5160)) ([c5cbdf8](https://github.com/shaka-project/shaka-player/commit/c5cbdf82fca9d7eb1d3b4ca03bef7cf1f0b4e793))
|
|
17
|
+
* Fix HEAD request exception ([#5194](https://github.com/shaka-project/shaka-player/issues/5194)) ([8835996](https://github.com/shaka-project/shaka-player/commit/8835996b2b22f6f4d81d7ffe0c46f48c6405c720)), closes [#5164](https://github.com/shaka-project/shaka-player/issues/5164)
|
|
18
|
+
* Fix missing originalUri in response filters ([#5114](https://github.com/shaka-project/shaka-player/issues/5114)) ([ed398b8](https://github.com/shaka-project/shaka-player/commit/ed398b81084c8037c7b0f5371ec43852a2031405))
|
|
19
|
+
* Fix race that allows multiple text streams to be loaded ([#5129](https://github.com/shaka-project/shaka-player/issues/5129)) ([2d6af2c](https://github.com/shaka-project/shaka-player/commit/2d6af2c6b7267118d9976f8a787dd5ce176eb0ea))
|
|
20
|
+
* Fix selectVariantsByLabel using src= ([#5154](https://github.com/shaka-project/shaka-player/issues/5154)) ([9200e43](https://github.com/shaka-project/shaka-player/commit/9200e437904b18df5a5da02c7cbff858d24dd4e4))
|
|
21
|
+
* Handle empty media segments for Mp4VttParser ([#5131](https://github.com/shaka-project/shaka-player/issues/5131)) ([30fd63a](https://github.com/shaka-project/shaka-player/commit/30fd63abf2d40b4fd9975515008f07b37508fb5a)), closes [#4429](https://github.com/shaka-project/shaka-player/issues/4429)
|
|
22
|
+
* **HLS:** Adding support for DTS Express in HLS fMP4 ([#5112](https://github.com/shaka-project/shaka-player/issues/5112)) ([#5117](https://github.com/shaka-project/shaka-player/issues/5117)) ([834c329](https://github.com/shaka-project/shaka-player/commit/834c3299bdb186dd8332eedec834e60f652283ae))
|
|
23
|
+
* **HLS:** Fix support of fragmented WebVTT ([#5156](https://github.com/shaka-project/shaka-player/issues/5156)) ([e54a52b](https://github.com/shaka-project/shaka-player/commit/e54a52b0bf42b453c38ba9ec1582d6809f33579a))
|
|
24
|
+
* **HLS:** preserve discontinuitySequence in SegmentIndex#fit ([#5066](https://github.com/shaka-project/shaka-player/issues/5066)) ([a5a4d3e](https://github.com/shaka-project/shaka-player/commit/a5a4d3e47c14f2b52c3d43dd21640a5992d20641))
|
|
25
|
+
* **HLS:** support discontinuities in segments mode ([#5102](https://github.com/shaka-project/shaka-player/issues/5102)) ([cfcca8e](https://github.com/shaka-project/shaka-player/commit/cfcca8e383d2255dcd22a6f6a2463c9feeb0cd57))
|
|
26
|
+
* **logging:** Simplify log code. ([#5050](https://github.com/shaka-project/shaka-player/issues/5050)) ([203ceca](https://github.com/shaka-project/shaka-player/commit/203cecafc3ed910d58d96f2318557ea7001ff6c3)), closes [#5032](https://github.com/shaka-project/shaka-player/issues/5032)
|
|
27
|
+
* mitigate uncaught type error in media_source_engine ([#5069](https://github.com/shaka-project/shaka-player/issues/5069)) ([29a27cd](https://github.com/shaka-project/shaka-player/commit/29a27cdb87bb3c36b3ddb917fadfaa473ddfe83a)), closes [#4903](https://github.com/shaka-project/shaka-player/issues/4903)
|
|
28
|
+
* **net:** Fix HEAD requests in new Chromium ([#5180](https://github.com/shaka-project/shaka-player/issues/5180)) ([08bd825](https://github.com/shaka-project/shaka-player/commit/08bd825cd208f2254c3549914d1bf0c267ce1e6a)), closes [#5164](https://github.com/shaka-project/shaka-player/issues/5164)
|
|
29
|
+
* PERIOD_FLATTENING_FAILED error with shaka 4.3.x that did not occur with shaka 3.1.2 ([#5188](https://github.com/shaka-project/shaka-player/issues/5188)) ([a180b28](https://github.com/shaka-project/shaka-player/commit/a180b282688470c451d1b4156027bad43abaeb95)), closes [#5183](https://github.com/shaka-project/shaka-player/issues/5183)
|
|
30
|
+
* Prevent bad calls to MediaSource.endOfStream ([#5071](https://github.com/shaka-project/shaka-player/issues/5071)) ([ba6988f](https://github.com/shaka-project/shaka-player/commit/ba6988f38bfc7ff12180982ad63a64b57e4c103a)), closes [#5070](https://github.com/shaka-project/shaka-player/issues/5070)
|
|
31
|
+
* prevent memory leak in SimpleAbrManager while destroying ([#5149](https://github.com/shaka-project/shaka-player/issues/5149)) ([f32b11f](https://github.com/shaka-project/shaka-player/commit/f32b11f0a5376ee79144aa66293477de4fe6947f))
|
|
32
|
+
* Tizen video error fixed by checking the extended MIME type ([#4973](https://github.com/shaka-project/shaka-player/issues/4973)) ([5a19240](https://github.com/shaka-project/shaka-player/commit/5a192405ecf85df56795011ec59b39372234a9a5)), closes [#4634](https://github.com/shaka-project/shaka-player/issues/4634)
|
|
33
|
+
* **Tizen:** Fix exceptions thrown from logging methods ([#5063](https://github.com/shaka-project/shaka-player/issues/5063)) ([8f69008](https://github.com/shaka-project/shaka-player/commit/8f69008343bd9b18304952d018af65a90ba1a73b))
|
|
34
|
+
|
|
35
|
+
## [4.3.5](https://github.com/shaka-project/shaka-player/compare/v4.3.4...v4.3.5) (2023-03-01)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Bug Fixes
|
|
39
|
+
|
|
40
|
+
* **Ads:** Fix CS volume ad ([#5016](https://github.com/shaka-project/shaka-player/issues/5016)) ([c6e1315](https://github.com/shaka-project/shaka-player/commit/c6e1315afb9f72ab599b938e6fef564de2054e4c))
|
|
41
|
+
* **Ads:** Fix usage of EventManager on CS ([#5017](https://github.com/shaka-project/shaka-player/issues/5017)) ([7c408ed](https://github.com/shaka-project/shaka-player/commit/7c408ed36838dc85b6afb3e83e4fd11d475b67e9))
|
|
42
|
+
* **ads:** Fix VMAP ads stay muted on muted autoplay ([#4995](https://github.com/shaka-project/shaka-player/issues/4995)) ([2b9ead2](https://github.com/shaka-project/shaka-player/commit/2b9ead2c08787220f56ca4eaacba92c4e42d5cd6))
|
|
43
|
+
* Allow the playback of TS without mux.js ([#5041](https://github.com/shaka-project/shaka-player/issues/5041)) ([a347d25](https://github.com/shaka-project/shaka-player/commit/a347d250cfddd7ee6c645f3bba151ed1b1be9409))
|
|
44
|
+
* Caption can not turn off at iOS Safari ([#4978](https://github.com/shaka-project/shaka-player/issues/4978)) ([07c6cdb](https://github.com/shaka-project/shaka-player/commit/07c6cdb0959fd9af16c74c3a8b54525bd3afa267))
|
|
45
|
+
* **Demo:** Allow manifest type for DAI custom assets ([#4977](https://github.com/shaka-project/shaka-player/issues/4977)) ([d67ca2b](https://github.com/shaka-project/shaka-player/commit/d67ca2b3d190e7f0671f23f480fce8921efc0345))
|
|
46
|
+
* DrmEngine exception thrown when using FairPlay ([#4971](https://github.com/shaka-project/shaka-player/issues/4971)) ([ddc7f50](https://github.com/shaka-project/shaka-player/commit/ddc7f5043a2e0ad2807456c3387a2703cd0c2c02))
|
|
47
|
+
* Failed to set 'currentTime' property on 'HTMLMediaElement' on a Hisense TV ([#4962](https://github.com/shaka-project/shaka-player/issues/4962)) ([0559cf2](https://github.com/shaka-project/shaka-player/commit/0559cf2f99488eccda1d05d501d542f54df15699))
|
|
48
|
+
* Fallback to isTypeSupported when cast namespace is undefined ([#5012](https://github.com/shaka-project/shaka-player/issues/5012)) ([e95f8a6](https://github.com/shaka-project/shaka-player/commit/e95f8a6592e94da9a4d0b1735d7ec46427171e36))
|
|
49
|
+
* Fix duration error when HLS goes from LIVE to VOD ([#5001](https://github.com/shaka-project/shaka-player/issues/5001)) ([4f4f6e2](https://github.com/shaka-project/shaka-player/commit/4f4f6e2a7d2f093f1c47f22a4817acf6599677a0))
|
|
50
|
+
* Fix video/mp2t mimetype conversion. ([#5039](https://github.com/shaka-project/shaka-player/issues/5039)) ([09a81a7](https://github.com/shaka-project/shaka-player/commit/09a81a70381a5e0569d70616359d0c433e70bae9))
|
|
51
|
+
* **HLS:** Add `.tsa` and .`tsv` file extensions as valid MPEG2-TS. ([#5034](https://github.com/shaka-project/shaka-player/issues/5034)) ([938e6c1](https://github.com/shaka-project/shaka-player/commit/938e6c1846d37b4ed9116d9021adec64fdd3a449))
|
|
52
|
+
* Increase IndexedDB timeout ([#4984](https://github.com/shaka-project/shaka-player/issues/4984)) ([4bbcf6a](https://github.com/shaka-project/shaka-player/commit/4bbcf6ae93a201ca045bce6ea86e2f1cd1e90b2f))
|
|
53
|
+
* **MCap:** Remove robustness when robustness value is default ([#4953](https://github.com/shaka-project/shaka-player/issues/4953)) ([61c8a06](https://github.com/shaka-project/shaka-player/commit/61c8a067e461a7843395157e1effb75bf1c52665))
|
|
54
|
+
* Prevent content from being restarted after Postroll ads ([#4979](https://github.com/shaka-project/shaka-player/issues/4979)) ([68dae24](https://github.com/shaka-project/shaka-player/commit/68dae2401ad8e19463c5ce7415f522b7df4d16df)), closes [#4445](https://github.com/shaka-project/shaka-player/issues/4445)
|
|
55
|
+
* Reject TS content on Edge ([#5043](https://github.com/shaka-project/shaka-player/issues/5043)) ([2d6e8ee](https://github.com/shaka-project/shaka-player/commit/2d6e8ee4fa8d45ee7578c9541da6f22bd74030e4))
|
|
56
|
+
* **VTT:** Fix spacing between text lines ([#4961](https://github.com/shaka-project/shaka-player/issues/4961)) ([1194d74](https://github.com/shaka-project/shaka-player/commit/1194d74fa1861fe0335671800bd1980da9d57a0f))
|
|
57
|
+
* **WebVTT:** Tags in the WebVTT subtitle are not parsed ([#4960](https://github.com/shaka-project/shaka-player/issues/4960)) ([7f23b09](https://github.com/shaka-project/shaka-player/commit/7f23b09e83512a34966693a04947d20b8867f80d))
|
|
58
|
+
|
|
3
59
|
## [4.3.4](https://github.com/shaka-project/shaka-player/compare/v4.3.3...v4.3.4) (2023-01-31)
|
|
4
60
|
|
|
5
61
|
|
package/CONTRIBUTORS
CHANGED
|
@@ -27,7 +27,7 @@ Adrián Gómez Llorente <adgllorente@gmail.com>
|
|
|
27
27
|
Agajan Jumakuliyev <agajan.tm@gmail.com>
|
|
28
28
|
Aidan Ridley <aidan.ridley@charter.com>
|
|
29
29
|
Alex Jones <alexedwardjones@gmail.com>
|
|
30
|
-
Alvaro Velad Galvan <
|
|
30
|
+
Alvaro Velad Galvan <ladvan91@hotmail.com>
|
|
31
31
|
Amila Sampath <lucksy@gmail.com>
|
|
32
32
|
Andy Hochhaus <ahochhaus@samegoal.com>
|
|
33
33
|
Anthony Stansbridge <github@anthonystansbridge.co.uk>
|
|
@@ -126,9 +126,12 @@ Vignesh Venkatasubramanian <vigneshv@google.com>
|
|
|
126
126
|
Vincent Valot <valot.vince@gmail.com>
|
|
127
127
|
Vinod Balakrishnan <vinod.balakrishnan@v-nova.com>
|
|
128
128
|
Wayne Morgan <wayne.morgan.dev@gmail.com>
|
|
129
|
+
Wen Ren <renwen0615@gmail.com>
|
|
130
|
+
Will Harris <will.harris@paramount.com>
|
|
129
131
|
Yohann Connell <robinconnell@google.com>
|
|
130
132
|
Raymond Cheng <raycheng100@gmail.com>
|
|
131
133
|
Janroel Koppen <j.koppen@bluebillywig.com>
|
|
132
134
|
João Nabais <jlnabais@gmail.com>
|
|
133
135
|
Koen Romers <koenromers@gmail.com>
|
|
134
136
|
Zhenghang Chen <czhtju@gmail.com>
|
|
137
|
+
Ashley Manners <ashley.manners@xperi.com>
|
package/demo/common/asset.js
CHANGED
|
@@ -76,6 +76,8 @@ const ShakaDemoAssetInfo = class {
|
|
|
76
76
|
/** @type {?string} */
|
|
77
77
|
this.imaContentSrcId = null;
|
|
78
78
|
/** @type {?string} */
|
|
79
|
+
this.imaManifestType = null;
|
|
80
|
+
/** @type {?string} */
|
|
79
81
|
this.mimeType = null;
|
|
80
82
|
/** @type {?string} */
|
|
81
83
|
this.mediaPlaylistFullMimeType = null;
|
|
@@ -267,6 +269,19 @@ const ShakaDemoAssetInfo = class {
|
|
|
267
269
|
return this;
|
|
268
270
|
}
|
|
269
271
|
|
|
272
|
+
/**
|
|
273
|
+
* @param {string} type
|
|
274
|
+
* @return {!ShakaDemoAssetInfo}
|
|
275
|
+
*/
|
|
276
|
+
setIMAManifestType(type) {
|
|
277
|
+
this.imaManifestType = type;
|
|
278
|
+
if (!this.features.includes(shakaAssets.Feature.ADS)) {
|
|
279
|
+
this.addFeature(shakaAssets.Feature.ADS);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
return this;
|
|
283
|
+
}
|
|
284
|
+
|
|
270
285
|
/**
|
|
271
286
|
* @param {string} headerName
|
|
272
287
|
* @param {string} headerValue
|
package/demo/common/assets.js
CHANGED
|
@@ -540,7 +540,8 @@ shakaAssets.testAssets = [
|
|
|
540
540
|
.addFeature(shakaAssets.Feature.MP4)
|
|
541
541
|
.addFeature(shakaAssets.Feature.OFFLINE)
|
|
542
542
|
.setIMAContentSourceId('2528370')
|
|
543
|
-
.setIMAVideoId('tears-of-steel')
|
|
543
|
+
.setIMAVideoId('tears-of-steel')
|
|
544
|
+
.setIMAManifestType('HLS'),
|
|
544
545
|
new ShakaDemoAssetInfo(
|
|
545
546
|
/* name= */ 'Tears of Steel (live, DASH, Server Side ads)',
|
|
546
547
|
/* iconUri= */ 'https://storage.googleapis.com/shaka-asset-icons/tears_of_steel.png',
|
|
@@ -550,7 +551,8 @@ shakaAssets.testAssets = [
|
|
|
550
551
|
.addFeature(shakaAssets.Feature.MP4)
|
|
551
552
|
.addFeature(shakaAssets.Feature.SUBTITLES)
|
|
552
553
|
.addFeature(shakaAssets.Feature.LIVE)
|
|
553
|
-
.setIMAAssetKey('PSzZMzAkSXCmlJOWDmRj8Q')
|
|
554
|
+
.setIMAAssetKey('PSzZMzAkSXCmlJOWDmRj8Q')
|
|
555
|
+
.setIMAManifestType('DASH'),
|
|
554
556
|
new ShakaDemoAssetInfo(
|
|
555
557
|
/* name= */ 'Tears of Steel (multicodec, surround + stereo)',
|
|
556
558
|
/* iconUri= */ 'https://storage.googleapis.com/shaka-asset-icons/tears_of_steel.png',
|
|
@@ -102,6 +102,7 @@ shakaDemo.MessageIds = {
|
|
|
102
102
|
ADS_TAB: 'DEMO_ADS_TAB',
|
|
103
103
|
IMA_ASSET_KEY: 'DEMO_IMA_ASSET_KEY',
|
|
104
104
|
IMA_CONTENT_SRC_ID: 'DEMO_IMA_CONTENT_SRC_ID',
|
|
105
|
+
IMA_MANIFEST_TYPE: 'DEMO_IMA_MANIFEST_TYPE',
|
|
105
106
|
IMA_VIDEO_ID: 'DEMO_IMA_VIDEO_ID',
|
|
106
107
|
CANCEL_BUTTON: 'DEMO_CANCEL_BUTTON',
|
|
107
108
|
CUSTOM_INTRO_ONE: 'DEMO_CUSTOM_INTRO_ONE',
|
package/demo/custom.js
CHANGED
|
@@ -362,6 +362,25 @@ shakaDemo.Custom = class {
|
|
|
362
362
|
this.makeField_(
|
|
363
363
|
container, assetKeyName, assetKeySetup, assetKeyChange);
|
|
364
364
|
|
|
365
|
+
// Make the manifest type field.
|
|
366
|
+
const manifestTypeSetup = (input, container) => {
|
|
367
|
+
if (assetInProgress.imaManifestType) {
|
|
368
|
+
input.value = assetInProgress.imaManifestType;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
this.manifestField_.required =
|
|
372
|
+
this.checkManifestRequired_(assetInProgress);
|
|
373
|
+
};
|
|
374
|
+
const manifestTypeChange = (input) => {
|
|
375
|
+
assetInProgress.imaManifestType = input.value;
|
|
376
|
+
this.manifestField_.required =
|
|
377
|
+
this.checkManifestRequired_(assetInProgress);
|
|
378
|
+
};
|
|
379
|
+
const manifestTypeName = shakaDemoMain.getLocalizedString(
|
|
380
|
+
shakaDemo.MessageIds.IMA_MANIFEST_TYPE);
|
|
381
|
+
this.makeField_(
|
|
382
|
+
container, manifestTypeName, manifestTypeSetup, manifestTypeChange);
|
|
383
|
+
|
|
365
384
|
return adsDiv;
|
|
366
385
|
}
|
|
367
386
|
|
package/demo/locales/en.json
CHANGED
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
"DEMO_IGNORE_HLS_TEXT_FAILURES": "Ignore HLS Text Stream Failures",
|
|
106
106
|
"DEMO_IMA_ASSET_KEY": "Asset key (for LIVE DAI Content)",
|
|
107
107
|
"DEMO_IMA_CONTENT_SRC_ID": "Content source ID (for VOD DAI Content)",
|
|
108
|
+
"DEMO_IMA_MANIFEST_TYPE": "Manifest type (for DAI Content)",
|
|
108
109
|
"DEMO_IMA_VIDEO_ID": "Video ID (for VOD DAI Content)",
|
|
109
110
|
"DEMO_IGNORE_MANIFEST_PROGRAM_DATE_TIME": "Ignore Program Date Time from manifest",
|
|
110
111
|
"DEMO_IGNORE_MIN_BUFFER_TIME": "Ignore Min Buffer Time",
|
package/demo/locales/source.json
CHANGED
|
@@ -423,6 +423,10 @@
|
|
|
423
423
|
"description": "The label on a field that allows users to provide a content source id for a custom asset.",
|
|
424
424
|
"message": "Asset key (for VOD DAI Content)"
|
|
425
425
|
},
|
|
426
|
+
"DEMO_IMA_MANIFEST_TYPE": {
|
|
427
|
+
"description": "The label on a field that allows users to provide a manifest type for a custom asset.",
|
|
428
|
+
"message": "Manifest type (for DAI Content)"
|
|
429
|
+
},
|
|
426
430
|
"DEMO_IMA_VIDEO_ID": {
|
|
427
431
|
"description": "The label on a field that allows users to provide a video id for a custom asset.",
|
|
428
432
|
"message": "Video ID (for VOD DAI Content)"
|
package/demo/main.js
CHANGED
|
@@ -1561,6 +1561,20 @@ shakaDemo.Main = class {
|
|
|
1561
1561
|
request.contentSourceId = asset.imaContentSrcId;
|
|
1562
1562
|
request.videoId = asset.imaVideoId;
|
|
1563
1563
|
}
|
|
1564
|
+
switch (asset.imaManifestType) {
|
|
1565
|
+
case 'DASH':
|
|
1566
|
+
case 'dash':
|
|
1567
|
+
case 'MPD':
|
|
1568
|
+
case 'mpd':
|
|
1569
|
+
request.format = google.ima.dai.api.StreamRequest.StreamFormat.DASH;
|
|
1570
|
+
break;
|
|
1571
|
+
case 'HLS':
|
|
1572
|
+
case 'hls':
|
|
1573
|
+
case 'M3U8':
|
|
1574
|
+
case 'm3u8':
|
|
1575
|
+
request.format = google.ima.dai.api.StreamRequest.StreamFormat.HLS;
|
|
1576
|
+
break;
|
|
1577
|
+
}
|
|
1564
1578
|
|
|
1565
1579
|
const uri = await adManager.requestServerSideStream(
|
|
1566
1580
|
request, /* backupUri= */ asset.manifestUri);
|