shaka-player 4.2.7 → 4.2.8
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/selenium-lab-tests.yaml +22 -0
- package/CHANGELOG.md +16 -0
- package/dist/deps.js +3 -2
- package/dist/locales.js +31 -31
- package/dist/shaka-player.compiled.debug.js +87 -81
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.js +567 -564
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.debug.js +99 -93
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.js +691 -688
- package/dist/shaka-player.ui.map +4 -4
- package/lib/dash/segment_template.js +17 -5
- package/lib/hls/hls_parser.js +1 -1
- package/lib/player.js +1 -1
- package/lib/polyfill/media_capabilities.js +4 -1
- package/lib/text/simple_text_displayer.js +2 -64
- package/lib/text/text_utils.js +88 -0
- package/lib/text/ui_text_displayer.js +0 -5
- package/lib/text/vtt_text_parser.js +256 -95
- package/lib/text/web_vtt_generator.js +2 -64
- package/lib/util/platform.js +8 -0
- package/package.json +1 -1
- package/support.html +1 -0
- package/test/dash/dash_parser_manifest_unit.js +0 -36
- package/test/test/util/layout_tests.js +433 -0
- package/test/test/util/util.js +0 -120
- package/test/{ui → text}/text_displayer_layout_unit.js +59 -235
- package/test/text/ui_text_displayer_unit.js +2 -4
- package/test/text/vtt_text_parser_unit.js +123 -6
- package/test/text/web_vtt_layout_integration.js +528 -0
|
@@ -8,6 +8,9 @@ on:
|
|
|
8
8
|
pr:
|
|
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
|
+
test_filter:
|
|
12
|
+
description: "A filter to run a subset of the tests. If empty, all tests will run."
|
|
13
|
+
required: false
|
|
11
14
|
schedule:
|
|
12
15
|
# Runs every night at 2am PST / 10am UTC, testing against the main branch.
|
|
13
16
|
- cron: '0 10 * * *'
|
|
@@ -191,6 +194,11 @@ jobs:
|
|
|
191
194
|
extra_flags=""
|
|
192
195
|
fi
|
|
193
196
|
|
|
197
|
+
filter="${{ github.event.inputs.test_filter }}"
|
|
198
|
+
if [[ "$filter" != "" ]]; then
|
|
199
|
+
extra_flags="$extra_flags --filter $filter"
|
|
200
|
+
fi
|
|
201
|
+
|
|
194
202
|
python3 build/test.py \
|
|
195
203
|
--no-build \
|
|
196
204
|
--reporters spec --spec-hide-passed \
|
|
@@ -241,6 +249,20 @@ jobs:
|
|
|
241
249
|
# there.
|
|
242
250
|
if-no-files-found: error
|
|
243
251
|
|
|
252
|
+
# Upload new screenshots and diffs on failure; ignore if missing
|
|
253
|
+
- name: Upload screenshots
|
|
254
|
+
uses: actions/upload-artifact@v3
|
|
255
|
+
if: ${{ failure() }}
|
|
256
|
+
with:
|
|
257
|
+
# In this workflow, "browser" is the selenium node name, which can
|
|
258
|
+
# contain both browser and OS, such as "ChromeLinux".
|
|
259
|
+
name: screenshots-${{ matrix.browser }}
|
|
260
|
+
path: |
|
|
261
|
+
test/test/assets/screenshots/*/*.png-new
|
|
262
|
+
test/test/assets/screenshots/*/*.png-diff
|
|
263
|
+
if-no-files-found: ignore
|
|
264
|
+
retention-days: 5
|
|
265
|
+
|
|
244
266
|
- name: Report final commit status
|
|
245
267
|
# Will run on success or failure, but not if the workflow is cancelled.
|
|
246
268
|
if: ${{ success() || failure() }}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.2.8](https://github.com/shaka-project/shaka-player/compare/v4.2.7...v4.2.8) (2023-01-31)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* Add mux.js to support.html ([#4923](https://github.com/shaka-project/shaka-player/issues/4923)) ([4c46595](https://github.com/shaka-project/shaka-player/commit/4c46595ed6dd087cae22a8f26efcb77f125f3ec5))
|
|
9
|
+
* **DASH:** Fix dynamic manifests from edgeware ([#4914](https://github.com/shaka-project/shaka-player/issues/4914)) ([247229b](https://github.com/shaka-project/shaka-player/commit/247229b7ea996b4eb43dc09d68fe212f4705045b))
|
|
10
|
+
* Fix MediaCapabilities polyfill on Hisense ([#4927](https://github.com/shaka-project/shaka-player/issues/4927)) ([8b694f0](https://github.com/shaka-project/shaka-player/commit/8b694f051a2119a6dc4d27cf9fbe3b51a1a12e41))
|
|
11
|
+
* Fix WebVTT parser failure on REGION blocks ([#4915](https://github.com/shaka-project/shaka-player/issues/4915)) ([39ba2e8](https://github.com/shaka-project/shaka-player/commit/39ba2e83a291f115972f9e0348621535bafdb794))
|
|
12
|
+
* **HLS:** Fix detection of WebVTT subtitles in HLS by extension ([#4928](https://github.com/shaka-project/shaka-player/issues/4928)) ([b0eb356](https://github.com/shaka-project/shaka-player/commit/b0eb356c6e528171a6134ed16ad223c86238267f)), closes [#4929](https://github.com/shaka-project/shaka-player/issues/4929)
|
|
13
|
+
* **VTT:** Fix combining style selectors ([#4934](https://github.com/shaka-project/shaka-player/issues/4934)) ([c036c53](https://github.com/shaka-project/shaka-player/commit/c036c53b2e86e99adeb8c9f583e8952e47a2a680))
|
|
14
|
+
* **WebVTT:** Add support to , ‎ and ‏ ([#4920](https://github.com/shaka-project/shaka-player/issues/4920)) ([3fa6ff0](https://github.com/shaka-project/shaka-player/commit/3fa6ff0cb36c24b98f5f40fecc52be197ffc1410))
|
|
15
|
+
* **WebVTT:** Add support to voice tag styles ([#4845](https://github.com/shaka-project/shaka-player/issues/4845)) ([e8465a2](https://github.com/shaka-project/shaka-player/commit/e8465a2e1c1999d1b2bae3cc2819f8a2666bf7c6))
|
|
16
|
+
* **WebVTT:** Fix horizontal positioning with cue box size ([#4949](https://github.com/shaka-project/shaka-player/issues/4949)) ([74d399d](https://github.com/shaka-project/shaka-player/commit/74d399d6bf5fe3029fc37f8f3a783a16606fe8db))
|
|
17
|
+
* **WebVTT:** Fix voices with styles and support to multiple styles ([#4922](https://github.com/shaka-project/shaka-player/issues/4922)) ([355a59f](https://github.com/shaka-project/shaka-player/commit/355a59f76da96c78e0aef4eef5e6de2f5e0ff2b6))
|
|
18
|
+
|
|
3
19
|
## [4.2.7](https://github.com/shaka-project/shaka-player/compare/v4.2.6...v4.2.7) (2023-01-13)
|
|
4
20
|
|
|
5
21
|
|
package/dist/deps.js
CHANGED
|
@@ -135,14 +135,15 @@ goog.addDependency('../../../../lib/text/lrc_text_parser.js', ['shaka.text.LrcTe
|
|
|
135
135
|
goog.addDependency('../../../../lib/text/mp4_ttml_parser.js', ['shaka.text.Mp4TtmlParser'], ['shaka.text.TextEngine', 'shaka.text.TtmlTextParser', 'shaka.util.Error', 'shaka.util.Mp4Parser'], {'lang': 'es6'});
|
|
136
136
|
goog.addDependency('../../../../lib/text/mp4_vtt_parser.js', ['shaka.text.Mp4VttParser'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.text.TextEngine', 'shaka.text.VttTextParser', 'shaka.util.DataViewReader', 'shaka.util.Error', 'shaka.util.Functional', 'shaka.util.Mp4BoxParsers', 'shaka.util.Mp4Parser', 'shaka.util.StringUtils', 'shaka.util.TextParser'], {'lang': 'es6'});
|
|
137
137
|
goog.addDependency('../../../../lib/text/sbv_text_parser.js', ['shaka.text.SbvTextParser'], ['goog.asserts', 'shaka.text.Cue', 'shaka.text.TextEngine', 'shaka.util.Error', 'shaka.util.StringUtils', 'shaka.util.TextParser'], {'lang': 'es6'});
|
|
138
|
-
goog.addDependency('../../../../lib/text/simple_text_displayer.js', ['shaka.text.SimpleTextDisplayer'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue'], {'lang': 'es6'});
|
|
138
|
+
goog.addDependency('../../../../lib/text/simple_text_displayer.js', ['shaka.text.SimpleTextDisplayer'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.text.Utils'], {'lang': 'es6'});
|
|
139
139
|
goog.addDependency('../../../../lib/text/srt_text_parser.js', ['shaka.text.SrtTextParser'], ['goog.asserts', 'shaka.text.TextEngine', 'shaka.text.VttTextParser', 'shaka.util.BufferUtils', 'shaka.util.StringUtils'], {'lang': 'es6'});
|
|
140
140
|
goog.addDependency('../../../../lib/text/ssa_text_parser.js', ['shaka.text.SsaTextParser'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.text.TextEngine', 'shaka.util.StringUtils'], {'lang': 'es6'});
|
|
141
141
|
goog.addDependency('../../../../lib/text/text_engine.js', ['shaka.text.TextEngine'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.util.BufferUtils', 'shaka.util.IDestroyable', 'shaka.util.MimeUtils'], {'lang': 'es8'});
|
|
142
|
+
goog.addDependency('../../../../lib/text/text_utils.js', ['shaka.text.Utils'], ['shaka.text.Cue'], {'lang': 'es6'});
|
|
142
143
|
goog.addDependency('../../../../lib/text/ttml_text_parser.js', ['shaka.text.TtmlTextParser'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.text.CueRegion', 'shaka.text.TextEngine', 'shaka.util.ArrayUtils', 'shaka.util.Error', 'shaka.util.StringUtils', 'shaka.util.XmlUtils'], {'lang': 'es8'});
|
|
143
144
|
goog.addDependency('../../../../lib/text/ui_text_displayer.js', ['shaka.text.UITextDisplayer'], ['goog.asserts', 'shaka.text.Cue', 'shaka.text.CueRegion', 'shaka.util.Dom', 'shaka.util.EventManager', 'shaka.util.Timer'], {'lang': 'es6'});
|
|
144
145
|
goog.addDependency('../../../../lib/text/vtt_text_parser.js', ['shaka.text.VttTextParser'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.text.CueRegion', 'shaka.text.TextEngine', 'shaka.util.Error', 'shaka.util.StringUtils', 'shaka.util.TextParser', 'shaka.util.XmlUtils'], {'lang': 'es6'});
|
|
145
|
-
goog.addDependency('../../../../lib/text/web_vtt_generator.js', ['shaka.text.WebVttGenerator'], ['shaka.text.Cue'], {'lang': 'es6'});
|
|
146
|
+
goog.addDependency('../../../../lib/text/web_vtt_generator.js', ['shaka.text.WebVttGenerator'], ['shaka.text.Cue', 'shaka.text.Utils'], {'lang': 'es6'});
|
|
146
147
|
goog.addDependency('../../../../lib/util/abortable_operation.js', ['shaka.util.AbortableOperation'], ['shaka.util.Error', 'shaka.util.PublicPromise'], {'lang': 'es6'});
|
|
147
148
|
goog.addDependency('../../../../lib/util/array_utils.js', ['shaka.util.ArrayUtils'], [], {'lang': 'es6'});
|
|
148
149
|
goog.addDependency('../../../../lib/util/buffer_utils.js', ['shaka.util.BufferUtils'], [], {'lang': 'es6'});
|
package/dist/locales.js
CHANGED
|
@@ -721,45 +721,45 @@ shaka.ui.Locales.addTo = function(localization) {
|
|
|
721
721
|
* @const
|
|
722
722
|
*/
|
|
723
723
|
shaka.ui.Locales.Ids = {
|
|
724
|
-
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
725
|
-
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
726
|
-
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
727
|
-
LIVE: 'LIVE',
|
|
728
|
-
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
729
724
|
FULL_SCREEN: 'FULL_SCREEN',
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
733
|
-
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
734
|
-
OFF: 'OFF',
|
|
735
|
-
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
736
|
-
RESOLUTION: 'RESOLUTION',
|
|
737
|
-
VOLUME: 'VOLUME',
|
|
738
|
-
QUALITY: 'QUALITY',
|
|
725
|
+
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
726
|
+
PLAY: 'PLAY',
|
|
739
727
|
LOOP: 'LOOP',
|
|
728
|
+
CAST: 'CAST',
|
|
729
|
+
ON: 'ON',
|
|
730
|
+
AD_TIME: 'AD_TIME',
|
|
731
|
+
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
732
|
+
LANGUAGE: 'LANGUAGE',
|
|
740
733
|
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
STATISTICS: 'STATISTICS',
|
|
734
|
+
CAPTIONS: 'CAPTIONS',
|
|
735
|
+
PAUSE: 'PAUSE',
|
|
744
736
|
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
737
|
+
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
738
|
+
STATISTICS: 'STATISTICS',
|
|
739
|
+
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
740
|
+
BACK: 'BACK',
|
|
741
|
+
QUALITY: 'QUALITY',
|
|
742
|
+
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
743
|
+
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
751
744
|
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
752
|
-
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
753
|
-
PAUSE: 'PAUSE',
|
|
754
745
|
SEEK: 'SEEK',
|
|
755
|
-
|
|
746
|
+
LIVE: 'LIVE',
|
|
747
|
+
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
748
|
+
AD_PROGRESS: 'AD_PROGRESS',
|
|
749
|
+
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
756
750
|
AIRPLAY: 'AIRPLAY',
|
|
751
|
+
OFF: 'OFF',
|
|
752
|
+
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
753
|
+
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
754
|
+
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
757
755
|
AD_DURATION: 'AD_DURATION',
|
|
758
|
-
|
|
756
|
+
REWIND: 'REWIND',
|
|
757
|
+
VOLUME: 'VOLUME',
|
|
758
|
+
REPLAY: 'REPLAY',
|
|
759
759
|
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
ON: 'ON',
|
|
760
|
+
FAST_FORWARD: 'FAST_FORWARD',
|
|
761
|
+
SKIP_AD: 'SKIP_AD',
|
|
762
|
+
RESOLUTION: 'RESOLUTION',
|
|
764
763
|
MUTE: 'MUTE',
|
|
764
|
+
UNMUTE: 'UNMUTE',
|
|
765
765
|
};
|