shaka-player 4.1.4 → 4.1.5

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.
Files changed (78) hide show
  1. package/.github/workflows/build-and-test.yaml +31 -16
  2. package/.github/workflows/custom-actions/set-commit-status/action.yaml +1 -5
  3. package/.github/workflows/deflake.yaml +28 -0
  4. package/.github/workflows/selenium-lab-tests.yaml +13 -4
  5. package/AUTHORS +2 -0
  6. package/CHANGELOG.md +18 -0
  7. package/CONTRIBUTORS +2 -0
  8. package/demo/common/message_ids.js +1 -0
  9. package/demo/config.js +3 -1
  10. package/demo/locales/en.json +1 -0
  11. package/demo/locales/source.json +4 -0
  12. package/dist/demo.compiled.debug.js +6 -6
  13. package/dist/demo.compiled.debug.map +2 -2
  14. package/dist/demo.compiled.js +6 -6
  15. package/dist/demo.compiled.map +2 -2
  16. package/dist/deps.js +1 -1
  17. package/dist/locales.js +31 -31
  18. package/dist/receiver.compiled.debug.js +3 -3
  19. package/dist/receiver.compiled.debug.map +2 -2
  20. package/dist/receiver.compiled.js +3 -3
  21. package/dist/receiver.compiled.map +2 -2
  22. package/dist/shaka-player.compiled.d.ts +2 -2
  23. package/dist/shaka-player.compiled.debug.d.ts +2 -2
  24. package/dist/shaka-player.compiled.debug.externs.js +24 -24
  25. package/dist/shaka-player.compiled.debug.js +200 -192
  26. package/dist/shaka-player.compiled.debug.map +4 -4
  27. package/dist/shaka-player.compiled.externs.js +24 -24
  28. package/dist/shaka-player.compiled.js +735 -732
  29. package/dist/shaka-player.compiled.map +4 -4
  30. package/dist/shaka-player.ui.d.ts +2 -2
  31. package/dist/shaka-player.ui.debug.d.ts +2 -2
  32. package/dist/shaka-player.ui.debug.externs.js +24 -24
  33. package/dist/shaka-player.ui.debug.js +254 -247
  34. package/dist/shaka-player.ui.debug.map +4 -4
  35. package/dist/shaka-player.ui.externs.js +24 -24
  36. package/dist/shaka-player.ui.js +899 -895
  37. package/dist/shaka-player.ui.map +4 -4
  38. package/docs/jsdoc-template/publish.js +33 -0
  39. package/docs/jsdoc-template/tmpl/container.tmpl +4 -1
  40. package/docs/jsdoc.conf.json +1 -0
  41. package/externs/shaka/manifest_parser.js +4 -1
  42. package/externs/shaka/player.js +7 -1
  43. package/lib/ads/client_side_ad_manager.js +7 -0
  44. package/lib/cast/cast_sender.js +39 -14
  45. package/lib/cea/cea608_memory.js +4 -0
  46. package/lib/hls/hls_parser.js +30 -8
  47. package/lib/media/drm_engine.js +52 -1
  48. package/lib/media/media_source_engine.js +43 -15
  49. package/lib/media/streaming_engine.js +79 -14
  50. package/lib/offline/storage.js +1 -0
  51. package/lib/player.js +17 -5
  52. package/lib/text/ttml_text_parser.js +6 -0
  53. package/lib/util/platform.js +24 -0
  54. package/lib/util/player_configuration.js +4 -0
  55. package/lib/util/pssh.js +2 -1
  56. package/lib/util/stream_utils.js +2 -1
  57. package/package.json +1 -1
  58. package/test/cea/cea608_memory_unit.js +88 -0
  59. package/test/dash/dash_parser_content_protection_unit.js +1 -0
  60. package/test/dash/dash_parser_live_unit.js +1 -0
  61. package/test/dash/dash_parser_manifest_unit.js +1 -0
  62. package/test/dash/dash_parser_segment_base_unit.js +1 -0
  63. package/test/dash/dash_parser_segment_list_unit.js +1 -0
  64. package/test/dash/dash_parser_segment_template_unit.js +1 -0
  65. package/test/hls/hls_live_unit.js +169 -247
  66. package/test/hls/hls_parser_unit.js +60 -2
  67. package/test/media/drm_engine_unit.js +61 -0
  68. package/test/media/media_source_engine_integration.js +36 -0
  69. package/test/media/media_source_engine_unit.js +118 -1
  70. package/test/media/streaming_engine_integration.js +9 -7
  71. package/test/media/streaming_engine_unit.js +29 -0
  72. package/test/offline/offline_integration.js +3 -3
  73. package/test/player_integration.js +2 -2
  74. package/test/test/util/dash_parser_util.js +2 -0
  75. package/test/test/util/ttml_utils.js +0 -2
  76. package/test/text/ttml_text_parser_unit.js +46 -0
  77. package/test/ui/text_displayer_layout_unit.js +17 -2
  78. package/ui/controls.js +0 -7
@@ -41,9 +41,11 @@ 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"
@@ -57,7 +59,7 @@ jobs:
57
59
  - os: macos-latest
58
60
  browser: Safari
59
61
  - os: macos-latest
60
- browser: Safari-14
62
+ browser: Safari-old
61
63
 
62
64
  - os: windows-latest
63
65
  browser: Chrome
@@ -87,21 +89,22 @@ jobs:
87
89
  with:
88
90
  ref: ${{ github.event.inputs.ref || github.ref }}
89
91
 
90
- # Safari 14 can be installed, but not to the root, and it can't replace
91
- # the standard version, at least not on GitHub's VMs. If you try to
92
- # install directly to the root with sudo, it will appear to succeed, but
93
- # will have no effect. If you try to script it explicitly with rm -rf
94
- # and cp, this will fail. Safari may be on a read-only filesystem.
95
- - name: Install Safari 14 to home directory
96
- if: matrix.os == 'macos-latest' && matrix.browser == 'Safari-14'
92
+ # Older versions of Safari can be installed, but not to the root, and it
93
+ # can't replace the standard version, at least not on GitHub's VMs. If
94
+ # you try to install directly to the root with sudo, it will appear to
95
+ # succeed, but will have no effect. If you try to script it explicitly
96
+ # with rm -rf and cp, this will fail. Safari may be on a read-only
97
+ # filesystem.
98
+ - name: Install old Safari to home directory
99
+ if: matrix.os == 'macos-latest' && matrix.browser == 'Safari-old'
97
100
  run: |
98
- # Download Safari 14
99
- # See also https://www.macupdate.com/app/mac/15675/apple-safari/old-versions
100
- curl -Lv https://www.macupdate.com/action/download/62946 > Safari14.0CatalinaAuto.pkg.zip
101
+ # Download Safari 15
102
+ # This URL discovered through the seed files listed at
103
+ # https://github.com/zhangyoufu/swscan.apple.com/blob/master/url.txt
104
+ curl -Lv http://swcdn.apple.com/content/downloads/42/33/012-57329-A_41P2VU6UHN/5fw5vna27fdw4mqfak5adj3pjpxvo9hgh7/Safari15.6.1CatalinaAuto.pkg > Safari.pkg
101
105
 
102
- # Install Safari 14 to homedir specifically.
103
- unzip Safari14.0CatalinaAuto.pkg.zip
104
- installer -pkg Safari14.0CatalinaAuto.pkg -target CurrentUserHomeDirectory
106
+ # Install older Safari to homedir specifically.
107
+ installer -pkg Safari.pkg -target CurrentUserHomeDirectory
105
108
 
106
109
  # Install a launcher that can execute a shell script to launch this
107
110
  npm install karma-script-launcher --save-dev
@@ -114,7 +117,7 @@ jobs:
114
117
  run: |
115
118
  browser=${{ matrix.browser }}
116
119
 
117
- if [[ "$browser" == "Safari-14" ]]; then
120
+ if [[ "$browser" == "Safari-old" ]]; then
118
121
  # Replace the browser name with a script that can launch this
119
122
  # browser from the command line.
120
123
  browser="$PWD/.github/workflows/safari-homedir-launcher.sh"
@@ -165,6 +168,18 @@ jobs:
165
168
  # an environment variable set, the file should definitely be there.
166
169
  if-no-files-found: error
167
170
 
171
+ # Upload new screenshots and diffs on failure; ignore if missing
172
+ - name: Upload screenshots
173
+ uses: actions/upload-artifact@v3
174
+ if: ${{ failure() }}
175
+ with:
176
+ name: screenshots-${{ matrix.browser }}
177
+ path: |
178
+ test/test/assets/screenshots/*/*.png-new
179
+ test/test/assets/screenshots/*/*.png-diff
180
+ if-no-files-found: ignore
181
+ retention-days: 5
182
+
168
183
  build_in_docker:
169
184
  # Don't waste time doing a full matrix of test runs when there was an
170
185
  # obvious linter error.
@@ -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 "${{ inputs.ref }}")
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
@@ -47,7 +47,7 @@ jobs:
47
47
  steps:
48
48
  - uses: actions/checkout@v2
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
@@ -92,7 +92,7 @@ jobs:
92
92
  steps:
93
93
  - uses: actions/checkout@v2
94
94
  with:
95
- ref: ${{ needs.compute-ref.REF }}
95
+ ref: ${{ needs.compute-ref.outputs.REF }}
96
96
 
97
97
  - name: Set commit status to pending
98
98
  uses: ./.github/workflows/custom-actions/set-commit-status
@@ -134,7 +134,7 @@ jobs:
134
134
  steps:
135
135
  - uses: actions/checkout@v2
136
136
  with:
137
- ref: ${{ needs.compute-ref.REF }}
137
+ ref: ${{ needs.compute-ref.outputs.REF }}
138
138
 
139
139
  - name: Set commit status to pending
140
140
  uses: ./.github/workflows/custom-actions/set-commit-status
@@ -180,6 +180,15 @@ jobs:
180
180
  # the container.
181
181
  - name: Test Player
182
182
  run: |
183
+ # Generate a coverage report from uncompiled code on ChromeLinux.
184
+ # It should be the uncompiled build, or else we won't execute any
185
+ # coverage instrumentation on full-stack player integration tests.
186
+ if [[ "${{ matrix.browser }}" == "ChromeLinux" ]]; then
187
+ extra_flags="--html-coverage-report --uncompiled"
188
+ else
189
+ extra_flags=""
190
+ fi
191
+
183
192
  python3 build/test.py \
184
193
  --no-build \
185
194
  --reporters spec --spec-hide-passed \
@@ -189,7 +198,7 @@ jobs:
189
198
  --grid-config build/shaka-lab.yaml \
190
199
  --grid-address selenium-grid.lab:4444 \
191
200
  --browsers ${{ matrix.browser }} \
192
- --html-coverage-report
201
+ $extra_flags
193
202
 
194
203
  - name: Find coverage report (ChromeLinux only)
195
204
  id: coverage
package/AUTHORS CHANGED
@@ -69,6 +69,7 @@ SameGoal Inc. <*@samegoal.com>
69
69
  Sanborn Hilland <sanbornh@rogers.com>
70
70
  Sander Saares <sander@saares.eu>
71
71
  Sanil Raut <sr1990003@gmail.com>
72
+ Seongryun Jo <ocipap0531@gmail.com>
72
73
  Swank Motion Pictures Inc. <*@swankmp.com>
73
74
  TalkTalk Plc <*@talktalkplc.com>
74
75
  Tatsiana Gelahova <tatsiana.gelahova@gmail.com>
@@ -81,3 +82,4 @@ ViacomCBS <*@viacomcbs.com>
81
82
  Vincent Valot <valot.vince@gmail.com>
82
83
  Wayne Morgan <wayne.morgan.dev@gmail.com>
83
84
  Raymond Cheng <raycheng100@gmail.com>
85
+ Blue Billywig <*@bluebillywig.com>
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.1.5](https://github.com/shaka-project/shaka-player/compare/v4.1.4...v4.1.5) (2022-10-07)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * allow build without text ([#4506](https://github.com/shaka-project/shaka-player/issues/4506)) ([1db6265](https://github.com/shaka-project/shaka-player/commit/1db62655276e8d2d5991f732704b7b37bb6994a3))
9
+ * allow the playback on platforms when low latency APIs are not supported ([#4485](https://github.com/shaka-project/shaka-player/issues/4485)) ([55d1390](https://github.com/shaka-project/shaka-player/commit/55d1390c82a2dcc7965d582c33417937944f86b7))
10
+ * check for negative rows before moving ([#4510](https://github.com/shaka-project/shaka-player/issues/4510)) ([31abae3](https://github.com/shaka-project/shaka-player/commit/31abae3201f4904e63a786015634e47a873ec789)), closes [#4508](https://github.com/shaka-project/shaka-player/issues/4508)
11
+ * Filter unsupported H.264 streams in Xbox ([#4493](https://github.com/shaka-project/shaka-player/issues/4493)) ([1ecede6](https://github.com/shaka-project/shaka-player/commit/1ecede6cf55ff1904542bfcad548e8dc4e4b4834))
12
+ * Fix choppy HLS startup ([#4553](https://github.com/shaka-project/shaka-player/issues/4553)) ([1675bff](https://github.com/shaka-project/shaka-player/commit/1675bffa9f410327fb53c34202daa1d75620233a)), closes [#4516](https://github.com/shaka-project/shaka-player/issues/4516)
13
+ * Fix errors with TS segments on Chromecast ([#4543](https://github.com/shaka-project/shaka-player/issues/4543)) ([15a1c60](https://github.com/shaka-project/shaka-player/commit/15a1c60c3f4dcb5e7bc7e915ec81ca3cb17d6625))
14
+ * Fix hang when seeking to the last segment ([#4537](https://github.com/shaka-project/shaka-player/issues/4537)) ([72a119d](https://github.com/shaka-project/shaka-player/commit/72a119d4fb3820fa97416ecedf23f96bbd5ca269))
15
+ * Fix HLS dynamic to static transition ([932d37c](https://github.com/shaka-project/shaka-player/commit/932d37c29cadbbc54f2f9a7b3ce3b510f86384cb))
16
+ * Fix HLS dynamic to static transition ([#4483](https://github.com/shaka-project/shaka-player/issues/4483)) ([932d37c](https://github.com/shaka-project/shaka-player/commit/932d37c29cadbbc54f2f9a7b3ce3b510f86384cb)), closes [#4431](https://github.com/shaka-project/shaka-player/issues/4431)
17
+ * Fix in-band key rotation on Xbox One ([#4478](https://github.com/shaka-project/shaka-player/issues/4478)) ([5a8f09c](https://github.com/shaka-project/shaka-player/commit/5a8f09c03d5ca84a90985d68be6079d2f508d87f)), closes [#4401](https://github.com/shaka-project/shaka-player/issues/4401)
18
+ * Respect existing app usage of Cast SDK ([#4523](https://github.com/shaka-project/shaka-player/issues/4523)) ([9c3a494](https://github.com/shaka-project/shaka-player/commit/9c3a494a2826e24a60898ae47766a7a41c4cce2d)), closes [#4521](https://github.com/shaka-project/shaka-player/issues/4521)
19
+ * **ttml:** Default TTML background color to transparent if unspecified ([#4496](https://github.com/shaka-project/shaka-player/issues/4496)) ([16da1e7](https://github.com/shaka-project/shaka-player/commit/16da1e7416353584c36b29f4028352349617fe45)), closes [#4468](https://github.com/shaka-project/shaka-player/issues/4468)
20
+
3
21
  ## [4.1.4](https://github.com/shaka-project/shaka-player/compare/v4.1.3...v4.1.4) (2022-08-31)
4
22
 
5
23
 
package/CONTRIBUTORS CHANGED
@@ -104,6 +104,7 @@ Sandra Lokshina <ismena@google.com>
104
104
  Sanil Raut <sr1990003@gmail.com>
105
105
  Satheesh Velmurugan <satheesh@philo.com>
106
106
  Semih Gokceoglu <semih.gkcoglu@gmail.com>
107
+ Seongryun Jo <ocipap0531@gmail.com>
107
108
  Seth Madison <seth@philo.com>
108
109
  Tatsiana Gelahova <tatsiana.gelahova@gmail.com>
109
110
  Theodore Abshire <theodab@google.com>
@@ -121,3 +122,4 @@ Vincent Valot <valot.vince@gmail.com>
121
122
  Wayne Morgan <wayne.morgan.dev@gmail.com>
122
123
  Yohann Connell <robinconnell@google.com>
123
124
  Raymond Cheng <raycheng100@gmail.com>
125
+ Janroel Koppen <j.koppen@bluebillywig.com>
@@ -226,6 +226,7 @@ shakaDemo.MessageIds = {
226
226
  NUMBER_NONZERO_INTEGER_WARNING: 'DEMO_NUMBER_NONZERO_INTEGER_WARNING',
227
227
  NUMBER_OF_PARALLEL_DOWNLOADS: 'DEMO_NUMBER_OF_PARALLEL_DOWNLOADS',
228
228
  OFFLINE_SECTION_HEADER: 'DEMO_OFFLINE_SECTION_HEADER',
229
+ PARSE_INBAND_PSSH_ENABLED: 'DEMO_PARSE_INBAND_PSSH_ENABLED',
229
230
  PREFER_FORCED_SUBS: 'DEMO_PREFER_FORCED_SUBS',
230
231
  PREFER_NATIVE_HLS: 'DEMO_PREFER_NATIVE_HLS',
231
232
  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.
@@ -162,6 +162,7 @@
162
162
  "DEMO_NUMBER_NONZERO_INTEGER_WARNING": "Must be a positive, nonzero integer.",
163
163
  "DEMO_NUMBER_OF_PARALLEL_DOWNLOADS": "Number of parallel downloads",
164
164
  "DEMO_OBSERVE_QUALITY_CHANGES": "Observe media quality changes",
165
+ "DEMO_PARSE_INBAND_PSSH_ENABLED": "Parse inband 'pssh' from media segments",
165
166
  "DEMO_OFFLINE": "Downloadable",
166
167
  "DEMO_OFFLINE_SEARCH": "Filters for assets that can be stored offline.",
167
168
  "DEMO_OFFLINE_SECTION_HEADER": "Offline",
@@ -675,6 +675,10 @@
675
675
  "description": "The label on a field that allows users to provide a full mime type for a custom asset.",
676
676
  "message": "Full Mime Type for Playing Media Playlists Directly"
677
677
  },
678
+ "DEMO_PARSE_INBAND_PSSH_ENABLED": {
679
+ "description": "The name of a configuration value.",
680
+ "message": "Parse inband 'pssh' from media segments"
681
+ },
678
682
  "DEMO_PLAY": {
679
683
  "description": "A button to play the attached asset.",
680
684
  "message": "Play"
@@ -143,9 +143,9 @@ ENABLED:"DEMO_ENABLED",FAST_HALF_LIFE:"DEMO_FAST_HALF_LIFE",FORCE_HTTPS:"DEMO_FO
143
143
  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",LOG_LEVEL_INFO:"DEMO_LOG_LEVEL_INFO",
144
144
  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",MAX_WIDTH:"DEMO_MAX_WIDTH",MIN_BANDWIDTH:"DEMO_MIN_BANDWIDTH",
145
145
  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",NUMBER_OF_PARALLEL_DOWNLOADS:"DEMO_NUMBER_OF_PARALLEL_DOWNLOADS",
146
- 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",RESTRICTIONS_SECTION_HEADER:"DEMO_RESTRICTIONS_SECTION_HEADER",SAFE_SEEK_OFFSET:"DEMO_SAFE_SEEK_OFFSET",SAFE_SKIP_DISTANCE:"DEMO_SAFE_SKIP_DISTANCE",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",
147
- 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",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",
148
- 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",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=
146
+ 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",RESTRICTIONS_SECTION_HEADER:"DEMO_RESTRICTIONS_SECTION_HEADER",SAFE_SEEK_OFFSET:"DEMO_SAFE_SEEK_OFFSET",SAFE_SKIP_DISTANCE:"DEMO_SAFE_SKIP_DISTANCE",SEGMENT_RELATIVE_VTT_TIMING:"DEMO_SEGMENT_RELATIVE_VTT_TIMING",SESSION_ID:"DEMO_SESSION_ID",SHAKA_CONTROLS:"DEMO_SHAKA_CONTROLS",
147
+ 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",TEXT_LANGUAGE:"DEMO_TEXT_LANGUAGE",TEXT_ROLE:"DEMO_TEXT_ROLE",TIMEOUT:"DEMO_TIMEOUT",TRICK_PLAY_CONTROLS:"DEMO_TRICK_PLAY_CONTROLS",
148
+ 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",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
149
  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
150
  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
151
  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};
@@ -280,9 +280,9 @@ document.createElement("div");this.latestRow_.appendChild(this.latestElementCont
280
280
  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")};
281
281
  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_()};
282
282
  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()};
283
- 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||{};c=function(f,g,h){a.addDatalistInput_(f,h,function(k){for(var l=
284
- $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,"videoRobustness",e);c(b.AUDIO_ROBUSTNESS,"audioRobustness",
285
- e);c(b.DRM_SESSION_TYPE,"sessionType",["temporary","persistent-license"]);this.addRetrySection_("drm",b.DRM_RETRY_SECTION_HEADER)};
283
+ 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||
284
+ {};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,
285
+ "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)};
286
286
  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,
287
287
  "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,
288
288
  "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",