shaka-player 3.2.11 → 3.2.12

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.
@@ -17,101 +17,206 @@ on:
17
17
  concurrency: selenium-lab
18
18
 
19
19
  jobs:
20
- lab-tests:
21
- # This is a self-hosted runner in a Docker container, with access to our
22
- # lab's Selenium grid on port 4444.
23
- runs-on: self-hosted-selenium
20
+ compute-ref:
21
+ name: Compute ref
22
+ runs-on: ubuntu-latest
23
+ outputs:
24
+ REF: ${{ steps.compute.outputs.REF }}
24
25
 
25
26
  steps:
26
- # This runs on our self-hosted runner, and the Docker image it is based
27
- # on doesn't have GitHub's CLI pre-installed. This installs it. Taken
28
- # verbatim from the official installation instructions at
29
- # https://github.com/cli/cli/blob/trunk/docs/install_linux.md
30
- - name: Install GitHub Actions CLI
31
- run: |
32
- curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
33
- echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
34
- sudo apt update
35
- sudo apt install gh
36
-
37
27
  - name: Compute ref
28
+ id: compute
38
29
  run: |
39
30
  if [[ "${{ github.event.inputs.pr }}" != "" ]]; then
40
- echo LAB_TEST_REF="refs/pull/${{ github.event.inputs.pr }}/head" >> $GITHUB_ENV
31
+ LAB_TEST_REF="refs/pull/${{ github.event.inputs.pr }}/head"
41
32
  else
42
- echo LAB_TEST_REF="main" >> $GITHUB_ENV
33
+ LAB_TEST_REF="main"
43
34
  fi
35
+ echo "::set-output name=REF::$LAB_TEST_REF"
36
+
37
+ # Configure the build matrix based on our grid's YAML config.
38
+ # The matrix contents will be computed by this first job and deserialized
39
+ # into the second job's config.
40
+ matrix-config:
41
+ name: Matrix config
42
+ needs: compute-ref
43
+ runs-on: ubuntu-latest
44
+ outputs:
45
+ INCLUDE: ${{ steps.configure.outputs.INCLUDE }}
44
46
 
47
+ steps:
45
48
  - uses: actions/checkout@v2
46
49
  with:
47
- ref: ${{ env.LAB_TEST_REF }}
50
+ ref: ${{ needs.compute-ref.REF }}
51
+
52
+ - name: Install dependencies
53
+ run: npm ci
48
54
 
49
- - name: Set Commit Status to Pending
55
+ - name: Configure build matrix
56
+ id: configure
57
+ shell: node {0}
58
+ run: |
59
+ const fs = require('fs');
60
+ const yaml = require(
61
+ '${{ github.workspace }}/node_modules/js-yaml/index.js');
62
+
63
+ const gridBrowserYaml =
64
+ fs.readFileSync('build/shaka-lab.yaml', 'utf8');
65
+ const gridBrowserMetadata = yaml.load(gridBrowserYaml);
66
+
67
+ const include = [];
68
+
69
+ for (const name in gridBrowserMetadata) {
70
+ if (name == 'vars') {
71
+ // Skip variable defs in the YAML file
72
+ continue;
73
+ }
74
+ if (!gridBrowserMetadata[name].disabled) {
75
+ include.push({browser: name});
76
+ }
77
+ }
78
+
79
+ // Output JSON object consumed by the build matrix below.
80
+ console.log(`::set-output name=INCLUDE::${ JSON.stringify(include) }`);
81
+
82
+ // Log the output, for the sake of debugging this script.
83
+ console.log({include});
84
+
85
+ # Build Shaka Player once, then distribute that build to the runners in the
86
+ # build matrix. For N runners, runs N times faster (since all the
87
+ # self-hosted Selenium jobs are run in containers on one machine).
88
+ build-shaka:
89
+ name: Pre-build Player
90
+ needs: compute-ref
91
+ runs-on: ubuntu-latest
92
+ steps:
93
+ - uses: actions/checkout@v2
94
+ with:
95
+ ref: ${{ needs.compute-ref.REF }}
96
+
97
+ - name: Set commit status to pending
50
98
  uses: ./.github/workflows/custom-actions/set-commit-status
51
99
  with:
52
- context: Selenium Lab Tests
100
+ context: Selenium / Build
53
101
  state: pending
54
102
  token: ${{ secrets.GITHUB_TOKEN }}
55
103
 
56
- - uses: actions/setup-node@v1
104
+ - name: Build Player
105
+ run: python3 build/all.py
106
+
107
+ - name: Store Player build
108
+ uses: actions/upload-artifact@v3
109
+ with:
110
+ name: shaka-player
111
+ path: dist/
112
+ retention-days: 1
113
+
114
+ - name: Report final commit status
115
+ # Will run on success or failure, but not if the workflow is cancelled.
116
+ if: ${{ success() || failure() }}
117
+ uses: ./.github/workflows/custom-actions/set-commit-status
118
+ with:
119
+ context: Selenium / Build
120
+ state: ${{ job.status }}
121
+ token: ${{ secrets.GITHUB_TOKEN }}
122
+
123
+ lab-tests:
124
+ # This is a self-hosted runner in a Docker container, with access to our
125
+ # lab's Selenium grid on port 4444.
126
+ runs-on: self-hosted-selenium
127
+ needs: [compute-ref, build-shaka, matrix-config]
128
+ strategy:
129
+ fail-fast: false
130
+ matrix:
131
+ include: ${{ fromJSON(needs.matrix-config.outputs.INCLUDE) }}
132
+ name: ${{ matrix.browser }}
133
+
134
+ steps:
135
+ - uses: actions/checkout@v2
136
+ with:
137
+ ref: ${{ needs.compute-ref.REF }}
138
+
139
+ - name: Set commit status to pending
140
+ uses: ./.github/workflows/custom-actions/set-commit-status
141
+ with:
142
+ context: Selenium / ${{ matrix.browser }}
143
+ state: pending
144
+ token: ${{ secrets.GITHUB_TOKEN }}
145
+
146
+ - uses: actions/setup-node@v3
57
147
  with:
58
148
  node-version: 16
59
149
  registry-url: 'https://registry.npmjs.org'
60
150
 
61
151
  # The Docker image for this self-hosted runner doesn't contain java.
62
- - uses: actions/setup-java@v2
152
+ - uses: actions/setup-java@v3
63
153
  with:
64
154
  distribution: zulu
65
155
  java-version: 11
66
156
 
67
- # The Docker image for this self-hosted runner has "python3" but not
68
- # plain "python".
69
- - name: Build Player
70
- run: python3 build/all.py
157
+ - name: Cache dependencies
158
+ uses: actions/cache@v3
159
+ id: npm-cache
160
+ with:
161
+ path: node_modules/
162
+ key: node-${{ hashFiles('package-lock.json') }}
163
+
164
+ - name: Install dependencies
165
+ if: steps.npm-cache.outputs.cache-hit != 'true'
166
+ run: npm ci
167
+
168
+ # Instead of building Shaka N times, build it once and fetch the build to
169
+ # each Selenium runner in the matrix.
170
+ - name: Fetch Player build
171
+ uses: actions/download-artifact@v3
172
+ with:
173
+ name: shaka-player
174
+ path: dist/
71
175
 
72
176
  # Run tests on the Selenium grid in our lab. This uses a private
73
177
  # hostname and TLS cert to get EME tests working on all platforms
74
- # (since EME only works on https or localhost).
178
+ # (since EME only works on https or localhost). The variable KARMA_PORT
179
+ # must be defined by the self-hosted runner, and mapped from the host to
180
+ # the container.
75
181
  - name: Test Player
76
182
  run: |
77
183
  python3 build/test.py \
184
+ --no-build \
78
185
  --reporters spec --spec-hide-passed \
79
186
  --lets-encrypt-folder /etc/shakalab.rocks \
80
187
  --hostname karma.shakalab.rocks \
81
- --port 61731 \
188
+ --port $KARMA_PORT \
82
189
  --grid-config build/shaka-lab.yaml \
83
190
  --grid-address selenium-grid.lab:4444 \
191
+ --browsers ${{ matrix.browser }} \
84
192
  --html-coverage-report
85
193
 
86
- - name: Find coverage report
194
+ - name: Find coverage report (ChromeLinux only)
87
195
  id: coverage
88
- if: always() # Even on failure of an earlier step.
196
+ # Run even if an earlier step fails, but only on ChromeLinux.
197
+ if: ${{ always() && matrix.browser == 'ChromeLinux' }}
89
198
  shell: bash
90
199
  run: |
91
- # If the directory exists...
92
- if [ -d coverage ]; then
93
- # Find the path to the coverage report specifically for Chrome on
94
- # Linux. It includes the exact browser version in the path, so it
95
- # will vary. Having a single path will make the artifact zip
96
- # simpler, whereas using a wildcard in the upload step will result
97
- # in a zip file with internal directories.
98
- coverage_report="$( (ls coverage/Chrome*Linux*/coverage.json || true) | head -1 )"
99
-
100
- # Show what's there, for debugging purposes.
101
- ls -l coverage/
102
-
103
- if [ -f "$coverage_report" ]; then
104
- echo "Found coverage report: $coverage_report"
105
- echo "::set-output name=coverage_report::$coverage_report"
106
- else
107
- echo "Could not locate coverage report!"
108
- exit 1
109
- fi
200
+ # Find the path to the coverage report specifically for Chrome on
201
+ # Linux. It includes the exact browser version in the path, so it
202
+ # will vary. Having a single path will make the artifact zip
203
+ # simpler, whereas using a wildcard in the upload step will result
204
+ # in a zip file with internal directories.
205
+ coverage_report="$( (ls coverage/Chrome*Linux*/coverage.json || true) | head -1 )"
206
+
207
+ # Show what's there, for debugging purposes.
208
+ ls -l coverage/
209
+
210
+ if [ -f "$coverage_report" ]; then
211
+ echo "Found coverage report: $coverage_report"
212
+ echo "::set-output name=coverage_report::$coverage_report"
110
213
  else
111
- echo "No coverage report generated."
214
+ echo "Could not locate coverage report!"
215
+ exit 1
112
216
  fi
113
217
 
114
- - uses: actions/upload-artifact@v3
218
+ - name: Upload coverage report (ChromeLinux only)
219
+ uses: actions/upload-artifact@v3
115
220
  # If there's a coverage report, upload it, even if a previous step
116
221
  # failed.
117
222
  if: ${{ always() && steps.coverage.outputs.coverage_report }}
@@ -125,11 +230,11 @@ jobs:
125
230
  # there.
126
231
  if-no-files-found: error
127
232
 
128
- - name: Report Final Commit Status
233
+ - name: Report final commit status
129
234
  # Will run on success or failure, but not if the workflow is cancelled.
130
235
  if: ${{ success() || failure() }}
131
236
  uses: ./.github/workflows/custom-actions/set-commit-status
132
237
  with:
133
- context: Selenium Lab Tests
238
+ context: Selenium / ${{ matrix.browser }}
134
239
  state: ${{ job.status }}
135
240
  token: ${{ secrets.GITHUB_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.2.12](https://github.com/shaka-project/shaka-player/compare/v3.2.11...v3.2.12) (2022-08-31)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Fix bitmap-based cue size ([#4453](https://github.com/shaka-project/shaka-player/issues/4453)) ([598c0b4](https://github.com/shaka-project/shaka-player/commit/598c0b4c3ab2a3986f3d8d885b3fd36879eaf535))
9
+ * return width and height in the stats when we are using src= ([#4435](https://github.com/shaka-project/shaka-player/issues/4435)) ([e16e8df](https://github.com/shaka-project/shaka-player/commit/e16e8dfbb8fc65065efd5a8f8f3c2d4a18fbe2eb))
10
+ * **UI:** Ad position and ad counter are too close to each other ([#4416](https://github.com/shaka-project/shaka-player/issues/4416)) ([ff1aaa2](https://github.com/shaka-project/shaka-player/commit/ff1aaa2c8a892a41e404e68fc560c0f4556d54a0))
11
+
3
12
  ## [3.2.11](https://github.com/shaka-project/shaka-player/compare/v3.2.10...v3.2.11) (2022-08-17)
4
13
 
5
14
 
package/dist/controls.css CHANGED
@@ -27,4 +27,4 @@
27
27
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
28
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
29
  * SOFTWARE.
30
- */.shaka-spinner-svg{position:absolute;top:0;left:0;right:0;bottom:0;animation:rotate 2s linear infinite;transform-origin:center center;width:100%;height:100%;margin:0;padding:0}.shaka-spinner-path{stroke:#202124;stroke-dasharray:20,200;stroke-dashoffset:0;animation:dash 1s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}.shaka-spacer{cursor:default;flex-shrink:1;flex-grow:1;margin:0}.shaka-overflow-menu,.shaka-settings-menu{overflow-x:hidden;overflow-y:auto;white-space:nowrap;background:#fff;box-shadow:0 1px 9px 0 rgba(0 0 0 / 40%);border-radius:2px;max-height:250px;min-width:180px;opacity:0;transition:opacity cubic-bezier(.4, 0, .6, 1) .6s;display:flex;flex-direction:column;position:absolute;z-index:2;right:15px;bottom:30px}.shaka-controls-container[casting=true] .shaka-overflow-menu,.shaka-controls-container[casting=true] .shaka-settings-menu,.shaka-controls-container[shown=true] .shaka-overflow-menu,.shaka-controls-container[shown=true] .shaka-settings-menu{opacity:1}.shaka-overflow-menu button,.shaka-settings-menu button{font-size:14px;background:0 0;color:#000;border:none;min-height:30px;padding:3.5px 6px;display:flex;align-items:center;cursor:pointer}.shaka-overflow-menu button:hover,.shaka-settings-menu button:hover{background:#e0e0e0}.shaka-overflow-menu button label,.shaka-settings-menu button label{cursor:pointer}.shaka-keyboard-navigation .shaka-overflow-menu button:focus,.shaka-keyboard-navigation .shaka-settings-menu button:focus{background:#e0e0e0}.shaka-overflow-menu i,.shaka-settings-menu i{padding-left:10px;padding-right:10px}.shaka-overflow-menu.shaka-low-position,.shaka-settings-menu.shaka-low-position{bottom:15px}.shaka-overflow-menu span{text-align:left}.shaka-overflow-button-label{position:relative;display:flex;flex-direction:column}.shaka-current-selection-span{color:rgba(0 0 0 / 54%)}.shaka-settings-menu span{margin-left:54px}.shaka-back-to-overflow-button span{margin-left:0}.shaka-back-to-overflow-button i{padding-right:20px}.shaka-auto-span{left:17px}.shaka-captions-on{color:#000}.shaka-captions-off{color:grey}.shaka-controls-container[ad-active=true]{pointer-events:none}.shaka-controls-container[ad-active=true] .shaka-bottom-controls{pointer-events:auto}.shaka-client-side-ad-container,.shaka-server-side-ad-container{position:absolute;left:0;right:0;top:0;bottom:0}.shaka-video-container[shaka-controls=true] .shaka-client-side-ad-container iframe,.shaka-video-container[shaka-controls=true] .shaka-server-side-ad-container iframe{height:90%}.shaka-server-side-ad-container{width:100%;height:100%;flex-shrink:1}.shaka-server-side-ad-container:not([ad-active=true]){pointer-events:none}.shaka-ad-controls{display:flex;flex-direction:row;z-index:1;padding-bottom:1%}.shaka-video-container:not([shaka-controls=true]) .shaka-ad-controls{display:none}.shaka-ad-controls button,.shaka-ad-controls div{color:#fff;font-size:initial}.shaka-ad-controls div:not(.shaka-skip-ad-counter){margin:1px}.shaka-ad-counter,.shaka-ad-position{display:flex;justify-content:flex-end;flex-direction:column;text-shadow:1px 1px 4px #000}.shaka-skip-ad-container{position:relative;right:calc((100% - 96%)/ 2 * -1);display:flex;flex-direction:row;margin:0}.shaka-skip-ad-button{padding:5px 15px;background:rgba(0 0 0 / 70%);border:none;cursor:pointer}.shaka-skip-ad-button:disabled{background:rgba(0 0 0 / 30%)}.shaka-skip-ad-counter{padding:5px;background:rgba(0 0 0 / 70%);margin:0}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxP.ttf) format('truetype')}@font-face{font-family:'Material Icons Round';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialiconsround/v107/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmM.otf) format('opentype')}.material-icons-round{font-family:'Material Icons Round';font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr}/*# sourceMappingURL=controls.css.map */
30
+ */.shaka-spinner-svg{position:absolute;top:0;left:0;right:0;bottom:0;animation:rotate 2s linear infinite;transform-origin:center center;width:100%;height:100%;margin:0;padding:0}.shaka-spinner-path{stroke:#202124;stroke-dasharray:20,200;stroke-dashoffset:0;animation:dash 1s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}.shaka-spacer{cursor:default;flex-shrink:1;flex-grow:1;margin:0}.shaka-overflow-menu,.shaka-settings-menu{overflow-x:hidden;overflow-y:auto;white-space:nowrap;background:#fff;box-shadow:0 1px 9px 0 rgba(0 0 0 / 40%);border-radius:2px;max-height:250px;min-width:180px;opacity:0;transition:opacity cubic-bezier(.4, 0, .6, 1) .6s;display:flex;flex-direction:column;position:absolute;z-index:2;right:15px;bottom:30px}.shaka-controls-container[casting=true] .shaka-overflow-menu,.shaka-controls-container[casting=true] .shaka-settings-menu,.shaka-controls-container[shown=true] .shaka-overflow-menu,.shaka-controls-container[shown=true] .shaka-settings-menu{opacity:1}.shaka-overflow-menu button,.shaka-settings-menu button{font-size:14px;background:0 0;color:#000;border:none;min-height:30px;padding:3.5px 6px;display:flex;align-items:center;cursor:pointer}.shaka-overflow-menu button:hover,.shaka-settings-menu button:hover{background:#e0e0e0}.shaka-overflow-menu button label,.shaka-settings-menu button label{cursor:pointer}.shaka-keyboard-navigation .shaka-overflow-menu button:focus,.shaka-keyboard-navigation .shaka-settings-menu button:focus{background:#e0e0e0}.shaka-overflow-menu i,.shaka-settings-menu i{padding-left:10px;padding-right:10px}.shaka-overflow-menu.shaka-low-position,.shaka-settings-menu.shaka-low-position{bottom:15px}.shaka-overflow-menu span{text-align:left}.shaka-overflow-button-label{position:relative;display:flex;flex-direction:column}.shaka-current-selection-span{color:rgba(0 0 0 / 54%)}.shaka-settings-menu span{margin-left:54px}.shaka-back-to-overflow-button span{margin-left:0}.shaka-back-to-overflow-button i{padding-right:20px}.shaka-auto-span{left:17px}.shaka-captions-on{color:#000}.shaka-captions-off{color:grey}.shaka-controls-container[ad-active=true]{pointer-events:none}.shaka-controls-container[ad-active=true] .shaka-bottom-controls{pointer-events:auto}.shaka-client-side-ad-container,.shaka-server-side-ad-container{position:absolute;left:0;right:0;top:0;bottom:0}.shaka-video-container[shaka-controls=true] .shaka-client-side-ad-container iframe,.shaka-video-container[shaka-controls=true] .shaka-server-side-ad-container iframe{height:90%}.shaka-server-side-ad-container{width:100%;height:100%;flex-shrink:1}.shaka-server-side-ad-container:not([ad-active=true]){pointer-events:none}.shaka-ad-controls{display:flex;flex-direction:row;z-index:1;padding-bottom:1%}.shaka-video-container:not([shaka-controls=true]) .shaka-ad-controls{display:none}.shaka-ad-controls button,.shaka-ad-controls div{color:#fff;font-size:initial}.shaka-ad-controls div:not(.shaka-skip-ad-counter){margin:1px}.shaka-ad-counter,.shaka-ad-position{display:flex;justify-content:flex-end;flex-direction:column;text-shadow:1px 1px 4px #000}.shaka-ad-controls .shaka-ad-position:not(.shaka-hidden)+.shaka-ad-counter{margin-left:.75em}.shaka-skip-ad-container{position:relative;right:calc((100% - 96%)/ 2 * -1);display:flex;flex-direction:row;margin:0}.shaka-skip-ad-button{padding:5px 15px;background:rgba(0 0 0 / 70%);border:none;cursor:pointer}.shaka-skip-ad-button:disabled{background:rgba(0 0 0 / 30%)}.shaka-skip-ad-counter{padding:5px;background:rgba(0 0 0 / 70%);margin:0}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxP.ttf) format('truetype')}@font-face{font-family:'Material Icons Round';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialiconsround/v107/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmM.otf) format('opentype')}.material-icons-round{font-family:'Material Icons Round';font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr}/*# sourceMappingURL=controls.css.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["$stdin"],"names":[],"mappings":"AAaA,cAGE,QAAS,eAkBX,uBASE,SAAU,SAIV,IAAK,EACL,KAAM,EAGN,QAAS,KAIX,6CACE,YAAa,uBACb,UAAW,KAEb,yBACE,YAAa,cAAc,CAAE,MAAM,CAAE,UAAU,CAAE,iBAQnD,kCACE,MAAO,KACP,OAAQ,KACR,iBAAkB,KAEpB,wDAIE,UAAW,QAEb,2CACE,MAAO,KACP,OAAQ,KACR,iBAAkB,KAEpB,iEAIE,UAAW,QAEb,wCACE,MAAO,KACP,OAAQ,KACR,iBAAkB,KAEpB,8DAIE,UAAW,QAEb,sCACE,MAAO,KACP,OAAQ,KACR,iBAAkB,KAEpB,4DAIE,UAAW,QAab,0BASE,SAAU,SAEV,IAAK,EACL,KAAM,EACN,MAAO,EACP,OAAQ,EACR,OAAQ,EACR,QAAS,EACT,MAAO,KACP,OAAQ,KAER,WAAY,WAEZ,QAAS,KAET,eAAgB,OAEhB,gBAAiB,SAEjB,YAAa,OAKb,QAAS,EAEX,4EACE,QAAS,KAEX,4BACE,YAAa,EAKf,iEACE,QAAS,KAIX,uBACE,MAAO,IACP,QAAS,EACT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,kBACZ,OAAQ,EAEV,WACE,YAAa,OACb,WAAY,OACZ,YAAa,IACb,IAAK,qEAAqE,mBAG5E,WACE,YAAa,uBACb,WAAY,OACZ,YAAa,IACb,IAAK,kGAAkG,mBAGzG,sBACE,YAAa,uBACb,YAAa,IACb,WAAY,OACZ,UAAW,KACX,YAAa,EACb,eAAgB,OAChB,eAAgB,KAChB,QAAS,aACT,YAAa,OACb,UAAW,OACX,UAAW"}
package/dist/locales.js CHANGED
@@ -719,43 +719,43 @@ shaka.ui.Locales.addTo = function(localization) {
719
719
  * @const
720
720
  */
721
721
  shaka.ui.Locales.Ids = {
722
- BACK: 'BACK',
723
- NOT_APPLICABLE: 'NOT_APPLICABLE',
724
- EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
722
+ OFF: 'OFF',
723
+ CAPTIONS: 'CAPTIONS',
724
+ SKIP_AD: 'SKIP_AD',
725
+ UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
726
+ ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
725
727
  LOOP: 'LOOP',
726
- FAST_FORWARD: 'FAST_FORWARD',
727
- EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
728
+ MUTE: 'MUTE',
728
729
  PAUSE: 'PAUSE',
730
+ FULL_SCREEN: 'FULL_SCREEN',
729
731
  UNMUTE: 'UNMUTE',
730
- PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
731
- SKIP_TO_LIVE: 'SKIP_TO_LIVE',
732
- ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
733
- VOLUME: 'VOLUME',
734
- MUTE: 'MUTE',
735
- SKIP_AD: 'SKIP_AD',
736
- UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
737
- LIVE: 'LIVE',
738
- REPLAY: 'REPLAY',
739
- LANGUAGE: 'LANGUAGE',
740
- SEEK: 'SEEK',
741
- AUTO_QUALITY: 'AUTO_QUALITY',
742
- MORE_SETTINGS: 'MORE_SETTINGS',
743
- AD_DURATION: 'AD_DURATION',
744
- REWIND: 'REWIND',
745
732
  AD_TIME: 'AD_TIME',
746
- OFF: 'OFF',
747
- FULL_SCREEN: 'FULL_SCREEN',
733
+ REWIND: 'REWIND',
734
+ AD_DURATION: 'AD_DURATION',
735
+ PLAY: 'PLAY',
736
+ MORE_SETTINGS: 'MORE_SETTINGS',
737
+ NOT_APPLICABLE: 'NOT_APPLICABLE',
738
+ FAST_FORWARD: 'FAST_FORWARD',
739
+ MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
748
740
  CAST: 'CAST',
741
+ EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
742
+ PLAYBACK_RATE: 'PLAYBACK_RATE',
743
+ AUTO_QUALITY: 'AUTO_QUALITY',
744
+ REPLAY: 'REPLAY',
745
+ EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
746
+ ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
749
747
  UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
750
- AIRPLAY: 'AIRPLAY',
748
+ LIVE: 'LIVE',
749
+ BACK: 'BACK',
750
+ SKIP_TO_LIVE: 'SKIP_TO_LIVE',
751
751
  ON: 'ON',
752
- CAPTIONS: 'CAPTIONS',
752
+ AIRPLAY: 'AIRPLAY',
753
+ LANGUAGE: 'LANGUAGE',
753
754
  AD_PROGRESS: 'AD_PROGRESS',
754
- ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
755
755
  SUBTITLE_FORCED: 'SUBTITLE_FORCED',
756
- MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
757
- PLAYBACK_RATE: 'PLAYBACK_RATE',
758
- RESOLUTION: 'RESOLUTION',
759
- PLAY: 'PLAY',
756
+ SEEK: 'SEEK',
760
757
  EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
758
+ VOLUME: 'VOLUME',
759
+ RESOLUTION: 'RESOLUTION',
760
+ PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
761
761
  };
@@ -811,8 +811,8 @@ d;c.style.left=b.viewportAnchorX+d;c.style.display="flex";c.style.flexDirection=
811
811
  shaka.text.UITextDisplayer.prototype.createCue_=function(a,b){var c=1<b.length,d=c?"span":"div";if(a.lineBreak||a.spacer)a.spacer&&shaka.Deprecate.deprecateFeature(4,"shaka.extern.Cue","Please use lineBreak instead of spacer."),d="br";c=!c&&0<a.nestedCues.length;var e=shaka.util.Dom.createHTMLElement(d);"br"!=d&&this.setCaptionStyles_(e,a,b,c);d=null;a.region&&a.region.id&&(d=this.getRegionElement_(a));var f=e;c&&(f=shaka.util.Dom.createHTMLElement("span"),f.classList.add("shaka-text-wrapper"),f.style.backgroundColor=
812
812
  a.backgroundColor,e.appendChild(f));this.currentCuesMap_.set(a,{cueElement:e,wrapper:f,regionElement:d})};
813
813
  shaka.text.UITextDisplayer.prototype.setCaptionStyles_=function(a,b,c,d){var e=shaka.text.Cue,f=a.style,g=0==b.nestedCues.length,h=1<c.length;f.whiteSpace="pre-wrap";var k=b.payload.replace(/\s+$/g,function(m){return"\u00a0".repeat(m.length)});f.backgroundColor=b.backgroundColor;f.border=b.border;f.color=b.color;f.direction=b.direction;f.opacity=b.opacity;f.paddingLeft=shaka.text.UITextDisplayer.convertLengthValue_(b.linePadding,b,this.videoContainer_);f.paddingRight=shaka.text.UITextDisplayer.convertLengthValue_(b.linePadding,
814
- b,this.videoContainer_);if(b.backgroundImage)f.backgroundImage="url('"+b.backgroundImage+"')",f.backgroundRepeat="no-repeat",f.backgroundSize="contain",f.backgroundPosition="center";else{if(b.nestedCues.length)var l=a;else l=shaka.util.Dom.createHTMLElement("span"),a.appendChild(l);b.border&&(l.style.border=b.border);d||((a=shaka.text.UITextDisplayer.inheritProperty_(c,function(m){return m.backgroundColor}))?l.style.backgroundColor=a:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"));k&&(l.textContent=
815
- k)}h&&!c[c.length-1].isContainer?f.display="inline":(f.display="flex",f.flexDirection="column",f.alignItems="center",f.justifyContent=b.displayAlign==e.displayAlign.BEFORE?"flex-start":b.displayAlign==e.displayAlign.CENTER?"center":"flex-end");g||(f.margin="0");f.fontFamily=b.fontFamily;f.fontWeight=b.fontWeight.toString();f.fontStyle=b.fontStyle;f.letterSpacing=b.letterSpacing;f.fontSize=shaka.text.UITextDisplayer.convertLengthValue_(b.fontSize,b,this.videoContainer_);b.line&&b.lineInterpretation==
814
+ b,this.videoContainer_);if(b.backgroundImage)f.backgroundImage="url('"+b.backgroundImage+"')",f.backgroundRepeat="no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",f.width="100%",f.height="100%";else{if(b.nestedCues.length)var l=a;else l=shaka.util.Dom.createHTMLElement("span"),a.appendChild(l);b.border&&(l.style.border=b.border);d||((a=shaka.text.UITextDisplayer.inheritProperty_(c,function(m){return m.backgroundColor}))?l.style.backgroundColor=a:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"));
815
+ k&&(l.textContent=k)}h&&!c[c.length-1].isContainer?f.display="inline":(f.display="flex",f.flexDirection="column",f.alignItems="center",f.justifyContent=b.displayAlign==e.displayAlign.BEFORE?"flex-start":b.displayAlign==e.displayAlign.CENTER?"center":"flex-end");g||(f.margin="0");f.fontFamily=b.fontFamily;f.fontWeight=b.fontWeight.toString();f.fontStyle=b.fontStyle;f.letterSpacing=b.letterSpacing;f.fontSize=shaka.text.UITextDisplayer.convertLengthValue_(b.fontSize,b,this.videoContainer_);b.line&&b.lineInterpretation==
816
816
  e.lineInterpretation.PERCENTAGE&&(f.position="absolute",f.left="0",f.top="0",b.writingMode==e.writingMode.HORIZONTAL_TOP_TO_BOTTOM?(f.width="100%",b.lineAlign==e.lineAlign.START?f.top=b.line+"%":b.lineAlign==e.lineAlign.END&&(f.bottom=b.line+"%")):b.writingMode==e.writingMode.VERTICAL_LEFT_TO_RIGHT?(f.height="100%",b.lineAlign==e.lineAlign.START?f.left=b.line+"%":b.lineAlign==e.lineAlign.END&&(f.right=b.line+"%")):(f.height="100%",b.lineAlign==e.lineAlign.START?f.right=b.line+"%":b.lineAlign==e.lineAlign.END&&
817
817
  (f.left=b.line+"%")));f.lineHeight=b.lineHeight;b.position&&(b.writingMode==e.writingMode.HORIZONTAL_TOP_TO_BOTTOM?f.paddingLeft=b.position:f.paddingTop=b.position);b.positionAlign==e.positionAlign.LEFT?f.cssFloat="left":b.positionAlign==e.positionAlign.RIGHT&&(f.cssFloat="right");f.textAlign=b.textAlign;f.textDecoration=b.textDecoration.join(" ");f.writingMode=b.writingMode;"writingMode"in document.documentElement.style&&f.writingMode==b.writingMode||(f.webkitWritingMode=b.writingMode);b.size&&(b.writingMode==
818
818
  e.writingMode.HORIZONTAL_TOP_TO_BOTTOM?f.width=b.size+"%":f.height=b.size+"%")};shaka.text.UITextDisplayer.getLengthValueInfo_=function(a){return(a=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(a[1]),unit:a[2]}:null};
@@ -970,9 +970,9 @@ shaka.Player.prototype.getPlayheadTimeAsDate=function(){if(!this.isLive())return
970
970
  (shaka.log.warning("EXT-X-PROGRAM-DATETIME required to get playhead time as Date!"),null):new Date(a.getTime()+1E3*b);shaka.log.warning("No way to get playhead time as Date!");return null};
971
971
  shaka.Player.prototype.getPresentationStartTimeAsDate=function(){if(!this.isLive())return shaka.log.warning("getPresentationStartTimeAsDate is for live streams!"),null;if(this.manifest_){var a=this.manifest_.presentationTimeline.getPresentationStartTime();goog.asserts.assert(null!=a,"Presentation start time should not be null!");return new Date(1E3*a)}if(this.video_&&this.video_.getStartDate)return a=this.video_.getStartDate(),isNaN(a.getTime())?(shaka.log.warning("EXT-X-PROGRAM-DATETIME required to get presentation start time as Date!"),
972
972
  null):a;shaka.log.warning("No way to get presentation start time as Date!");return null};shaka.Player.prototype.getBufferedInfo=function(){if(this.loadMode_==shaka.Player.LoadMode.MEDIA_SOURCE)return this.mediaSourceEngine_.getBufferedInfo();var a={total:[],audio:[],video:[],text:[]};this.loadMode_==shaka.Player.LoadMode.SRC_EQUALS&&(a.total=shaka.media.TimeRangesUtils.getBufferedInfo(this.video_.buffered));return a};
973
- shaka.Player.prototype.getStats=function(){if(this.loadMode_!=shaka.Player.LoadMode.MEDIA_SOURCE&&this.loadMode_!=shaka.Player.LoadMode.SRC_EQUALS)return shaka.util.Stats.getEmptyBlob();this.updateStateHistory_();goog.asserts.assert(this.video_,"If we have stats, we should have video_");var a=this.video_,b=a.currentTime/a.duration;isNaN(b)||this.stats_.setCompletionPercent(Math.round(100*b));a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),this.stats_.setDroppedFrames(Number(a.droppedVideoFrames),
974
- Number(a.totalVideoFrames)),this.stats_.setCorruptedFrames(Number(a.corruptedVideoFrames)));a=this.drmEngine_?this.drmEngine_.getLicenseTime():NaN;this.stats_.setLicenseTime(a);if(this.loadMode_==shaka.Player.LoadMode.MEDIA_SOURCE){if(a=this.streamingEngine_.getCurrentVariant())b=(this.playRateController_?this.playRateController_.getRealRate():1)*a.bandwidth,this.stats_.setCurrentStreamBandwidth(b);a&&a.video&&this.stats_.setResolution(a.video.width||NaN,a.video.height||NaN);this.isLive()&&(a=this.getPresentationStartTimeAsDate().valueOf()+
975
- 1E3*this.seekRange().end,a=(Date.now()-a)/1E3,this.stats_.setLiveLatency(a));this.manifest_&&this.manifest_.presentationTimeline&&(a=this.manifest_.presentationTimeline.getMaxSegmentDuration(),this.stats_.setMaxSegmentDuration(a));a=this.abrManager_.getBandwidthEstimate();this.stats_.setBandwidthEstimate(a)}return this.stats_.getBlob()};
973
+ shaka.Player.prototype.getStats=function(){if(this.loadMode_!=shaka.Player.LoadMode.MEDIA_SOURCE&&this.loadMode_!=shaka.Player.LoadMode.SRC_EQUALS)return shaka.util.Stats.getEmptyBlob();this.updateStateHistory_();goog.asserts.assert(this.video_,"If we have stats, we should have video_");var a=this.video_,b=a.currentTime/a.duration;isNaN(b)||this.stats_.setCompletionPercent(Math.round(100*b));a.getVideoPlaybackQuality&&(b=a.getVideoPlaybackQuality(),this.stats_.setDroppedFrames(Number(b.droppedVideoFrames),
974
+ Number(b.totalVideoFrames)),this.stats_.setCorruptedFrames(Number(b.corruptedVideoFrames)));b=this.drmEngine_?this.drmEngine_.getLicenseTime():NaN;this.stats_.setLicenseTime(b);if(this.loadMode_==shaka.Player.LoadMode.MEDIA_SOURCE){if(b=this.streamingEngine_.getCurrentVariant()){var c=(this.playRateController_?this.playRateController_.getRealRate():1)*b.bandwidth;this.stats_.setCurrentStreamBandwidth(c)}b&&b.video&&this.stats_.setResolution(b.video.width||NaN,b.video.height||NaN);this.isLive()&&(b=
975
+ this.getPresentationStartTimeAsDate().valueOf()+1E3*this.seekRange().end,b=(Date.now()-b)/1E3,this.stats_.setLiveLatency(b));this.manifest_&&this.manifest_.presentationTimeline&&(b=this.manifest_.presentationTimeline.getMaxSegmentDuration(),this.stats_.setMaxSegmentDuration(b));b=this.abrManager_.getBandwidthEstimate();this.stats_.setBandwidthEstimate(b)}this.loadMode_==shaka.Player.LoadMode.SRC_EQUALS&&this.stats_.setResolution(a.videoWidth||NaN,a.videoHeight||NaN);return this.stats_.getBlob()};
976
976
  shaka.Player.prototype.addTextTrack=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;shaka.Deprecate.deprecateFeature(4,"addTextTrack","Please use an addTextTrackAsync.");if(this.loadMode_!=shaka.Player.LoadMode.MEDIA_SOURCE&&this.loadMode_!=shaka.Player.LoadMode.SRC_EQUALS)throw shaka.log.error("Must call load() and wait for it to resolve before adding text tracks."),new shaka.util.Error(shaka.util.Error.Severity.RECOVERABLE,shaka.util.Error.Category.PLAYER,shaka.util.Error.Code.CONTENT_NOT_LOADED);if(!d){var h=
977
977
  shaka.media.ManifestParser.getExtension(a);d=shaka.Player.TEXT_EXTENSIONS_TO_MIME_TYPES_[h];if(!d)throw shaka.log.error("The mimeType has not been provided and it could not be deduced from its extension."),new shaka.util.Error(shaka.util.Error.Severity.RECOVERABLE,shaka.util.Error.Category.TEXT,shaka.util.Error.Code.TEXT_COULD_NOT_GUESS_MIME_TYPE,h);}if(this.loadMode_==shaka.Player.LoadMode.SRC_EQUALS){if("text/vtt"!=d)throw shaka.log.error("Only WebVTT is supported when using src="),new shaka.util.Error(shaka.util.Error.Severity.RECOVERABLE,
978
978
  shaka.util.Error.Category.TEXT,shaka.util.Error.Code.TEXT_ONLY_WEBVTT_SRC_EQUALS,d);g&&(c="forced");d=document.createElement("track");d.src=a;d.label=f||"";d.kind=c;d.srclang=b;this.video_.getAttribute("crossorigin")||this.video_.setAttribute("crossorigin","anonymous");this.video_.appendChild(d);if(d=this.getTextTracks().find(function(l){return l.language==b&&l.label==(f||"")&&l.kind==c}))return this.onTracksChanged_(),d;shaka.log.error("Cannot add this text when loaded with src=");throw new shaka.util.Error(shaka.util.Error.Severity.RECOVERABLE,
@@ -1056,7 +1056,7 @@ goog.exportProperty(shaka.Player.prototype,"getMediaElement",shaka.Player.protot
1056
1056
  goog.exportProperty(shaka.Player.prototype,"configure",shaka.Player.prototype.configure);goog.exportProperty(shaka.Player.prototype,"load",shaka.Player.prototype.load);goog.exportProperty(shaka.Player.prototype,"unload",shaka.Player.prototype.unload);goog.exportProperty(shaka.Player.prototype,"detach",shaka.Player.prototype.detach);goog.exportProperty(shaka.Player.prototype,"attach",shaka.Player.prototype.attach);goog.exportProperty(shaka.Player,"probeSupport",shaka.Player.probeSupport);
1057
1057
  goog.exportProperty(shaka.Player,"isBrowserSupported",shaka.Player.isBrowserSupported);goog.exportProperty(shaka.Player,"setAdManagerFactory",shaka.Player.setAdManagerFactory);goog.exportProperty(shaka.Player,"registerSupportPlugin",shaka.Player.registerSupportPlugin);goog.exportProperty(shaka.Player.prototype,"destroy",shaka.Player.prototype.destroy);
1058
1058
  shaka.Player.EventName={AbrStatusChanged:"abrstatuschanged",Adaptation:"adaptation",Buffering:"buffering",DrmSessionUpdate:"drmsessionupdate",Emsg:"emsg",Error:"error",ExpirationUpdated:"expirationupdated",LargeGap:"largegap",Loaded:"loaded",Loading:"loading",ManifestParsed:"manifestparsed",Metadata:"metadata",OnStateChange:"onstatechange",OnStateIdle:"onstateidle",RateChange:"ratechange",SessionDataEvent:"sessiondata",Streaming:"streaming",TextChanged:"textchanged",TextTrackVisibility:"texttrackvisibility",
1059
- TimelineRegionAdded:"timelineregionadded",TimelineRegionEnter:"timelineregionenter",TimelineRegionExit:"timelineregionexit",TracksChanged:"trackschanged",Unloading:"unloading",VariantChanged:"variantchanged"};shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v3.2.11-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
1059
+ TimelineRegionAdded:"timelineregionadded",TimelineRegionEnter:"timelineregionenter",TimelineRegionExit:"timelineregionexit",TracksChanged:"trackschanged",Unloading:"unloading",VariantChanged:"variantchanged"};shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v3.2.12-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
1060
1060
  shaka.Player.restrictedStatuses_=["output-restricted","internal-error"];shaka.Player.supportPlugins_={};shaka.Player.adManagerFactory_=null;shaka.Player.SRC_EQUAL_EXTENSIONS_TO_MIME_TYPES_={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"};
1061
1061
  shaka.Player.TEXT_EXTENSIONS_TO_MIME_TYPES_={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa"};shaka.Player.TextTrackLabel="Shaka Player TextTrack";shaka.ads={};shaka.ads.AdsStats=function(){this.loadTimes_=[];this.skipped_=this.playedCompletely_=this.started_=0};shaka.ads.AdsStats.prototype.addLoadTime=function(a){this.loadTimes_.push(a)};shaka.ads.AdsStats.prototype.incrementStarted=function(){this.started_++};shaka.ads.AdsStats.prototype.incrementPlayedCompletely=function(){this.playedCompletely_++};shaka.ads.AdsStats.prototype.incrementSkipped=function(){this.skipped_++};
1062
1062
  shaka.ads.AdsStats.prototype.getBlob=function(){return{loadTimes:this.loadTimes_,started:this.started_,playedCompletely:this.playedCompletely_,skipped:this.skipped_}};shaka.ads.ClientSideAd=function(a,b){var c=this;this.ad_=a;this.manager_=b;this.isPaused_=!1;this.volume_=this.manager_.getVolume();this.eventManager_=new shaka.util.EventManager;this.eventManager_.listen(this.manager_,google.ima.AdEvent.Type.PAUSED,function(){c.isPaused_=!0});this.eventManager_.listen(this.manager_,google.ima.AdEvent.Type.RESUMED,function(){c.isPaused_=!1})};shaka.ads.ClientSideAd.prototype.getDuration=function(){return this.ad_.getDuration()};