shaka-player 4.3.3 → 4.3.4
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 +17 -0
- package/dist/deps.js +3 -2
- package/dist/locales.js +31 -31
- package/dist/shaka-player.compiled.debug.js +89 -84
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.js +649 -646
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.debug.js +101 -96
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.js +756 -753
- package/dist/shaka-player.ui.map +4 -4
- package/lib/dash/segment_template.js +17 -5
- package/lib/hls/hls_parser.js +6 -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 +224 -97
- 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 +114 -8
- 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,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.3.4](https://github.com/shaka-project/shaka-player/compare/v4.3.3...v4.3.4) (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)) ([fde895e](https://github.com/shaka-project/shaka-player/commit/fde895e13c4a935b39aa9bf2bc0c5dce77add0b0))
|
|
9
|
+
* **DASH:** Fix dynamic manifests from edgeware ([#4914](https://github.com/shaka-project/shaka-player/issues/4914)) ([983dea3](https://github.com/shaka-project/shaka-player/commit/983dea3c87796384d9b7f876e73c47545d97e980))
|
|
10
|
+
* Fix MediaCapabilities polyfill on Hisense ([#4927](https://github.com/shaka-project/shaka-player/issues/4927)) ([d36677f](https://github.com/shaka-project/shaka-player/commit/d36677f0db52bff2fef967e787954e8f25889d2f))
|
|
11
|
+
* Fix WebVTT parser failure on REGION blocks ([#4915](https://github.com/shaka-project/shaka-player/issues/4915)) ([f57a954](https://github.com/shaka-project/shaka-player/commit/f57a9541cdff50de63f41247e258673fbed0cf78))
|
|
12
|
+
* **HLS:** Fix detection of WebVTT subtitles in HLS by extension ([#4928](https://github.com/shaka-project/shaka-player/issues/4928)) ([86c58ee](https://github.com/shaka-project/shaka-player/commit/86c58ee1d4f6e0fe56a5aaebf9771024193a9efe)), closes [#4929](https://github.com/shaka-project/shaka-player/issues/4929)
|
|
13
|
+
* **HLS:** IMSC1 subtitles not working in a HLS stream ([#4942](https://github.com/shaka-project/shaka-player/issues/4942)) ([8a9156f](https://github.com/shaka-project/shaka-player/commit/8a9156fa14cd6646900bdf534714ead775fccb15))
|
|
14
|
+
* **VTT:** Fix combining style selectors ([#4934](https://github.com/shaka-project/shaka-player/issues/4934)) ([bd04cf1](https://github.com/shaka-project/shaka-player/commit/bd04cf15223d026bb880ab0cca2a3e6332e8f485))
|
|
15
|
+
* **WebVTT:** Add support to , ‎ and ‏ ([#4920](https://github.com/shaka-project/shaka-player/issues/4920)) ([d2e2d49](https://github.com/shaka-project/shaka-player/commit/d2e2d49da0593d2ee2e0e4da7e2ce9acae0798af))
|
|
16
|
+
* **WebVTT:** Add support to voice tag styles ([#4845](https://github.com/shaka-project/shaka-player/issues/4845)) ([4fb19fb](https://github.com/shaka-project/shaka-player/commit/4fb19fb075a89ae6a401c236b65c82d899a069d8))
|
|
17
|
+
* **WebVTT:** Fix horizontal positioning with cue box size ([#4949](https://github.com/shaka-project/shaka-player/issues/4949)) ([cefbe08](https://github.com/shaka-project/shaka-player/commit/cefbe083b684fc1295483e938a8576d9de81a359))
|
|
18
|
+
* **WebVTT:** Fix voices with styles and support to multiple styles ([#4922](https://github.com/shaka-project/shaka-player/issues/4922)) ([981bceb](https://github.com/shaka-project/shaka-player/commit/981bceb233b029b6e77499439627455913a1784d))
|
|
19
|
+
|
|
3
20
|
## [4.3.3](https://github.com/shaka-project/shaka-player/compare/v4.3.2...v4.3.3) (2023-01-13)
|
|
4
21
|
|
|
5
22
|
|
package/dist/deps.js
CHANGED
|
@@ -141,14 +141,15 @@ goog.addDependency('../../../../lib/text/lrc_text_parser.js', ['shaka.text.LrcTe
|
|
|
141
141
|
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'});
|
|
142
142
|
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'});
|
|
143
143
|
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'});
|
|
144
|
-
goog.addDependency('../../../../lib/text/simple_text_displayer.js', ['shaka.text.SimpleTextDisplayer'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue'], {'lang': 'es6'});
|
|
144
|
+
goog.addDependency('../../../../lib/text/simple_text_displayer.js', ['shaka.text.SimpleTextDisplayer'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.text.Utils'], {'lang': 'es6'});
|
|
145
145
|
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'});
|
|
146
146
|
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'});
|
|
147
147
|
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'});
|
|
148
|
+
goog.addDependency('../../../../lib/text/text_utils.js', ['shaka.text.Utils'], ['shaka.text.Cue'], {'lang': 'es6'});
|
|
148
149
|
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'});
|
|
149
150
|
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'});
|
|
150
151
|
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'});
|
|
151
|
-
goog.addDependency('../../../../lib/text/web_vtt_generator.js', ['shaka.text.WebVttGenerator'], ['shaka.text.Cue'], {'lang': 'es6'});
|
|
152
|
+
goog.addDependency('../../../../lib/text/web_vtt_generator.js', ['shaka.text.WebVttGenerator'], ['shaka.text.Cue', 'shaka.text.Utils'], {'lang': 'es6'});
|
|
152
153
|
goog.addDependency('../../../../lib/util/abortable_operation.js', ['shaka.util.AbortableOperation'], ['shaka.util.Error', 'shaka.util.PublicPromise'], {'lang': 'es6'});
|
|
153
154
|
goog.addDependency('../../../../lib/util/array_utils.js', ['shaka.util.ArrayUtils'], [], {'lang': 'es6'});
|
|
154
155
|
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
|
-
|
|
725
|
-
LIVE: 'LIVE',
|
|
726
|
-
AD_TIME: 'AD_TIME',
|
|
724
|
+
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
727
725
|
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
728
|
-
|
|
729
|
-
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
730
|
-
CAPTIONS: 'CAPTIONS',
|
|
731
|
-
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
732
|
-
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
733
|
-
PAUSE: 'PAUSE',
|
|
734
|
-
ON: 'ON',
|
|
735
|
-
FAST_FORWARD: 'FAST_FORWARD',
|
|
736
|
-
RESOLUTION: 'RESOLUTION',
|
|
737
|
-
BACK: 'BACK',
|
|
738
|
-
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
739
|
-
LOOP: 'LOOP',
|
|
740
|
-
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
741
|
-
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
742
|
-
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
726
|
+
VOLUME: 'VOLUME',
|
|
743
727
|
STATISTICS: 'STATISTICS',
|
|
744
|
-
|
|
745
|
-
MUTE: 'MUTE',
|
|
746
|
-
AD_PROGRESS: 'AD_PROGRESS',
|
|
747
|
-
AIRPLAY: 'AIRPLAY',
|
|
748
|
-
CAST: 'CAST',
|
|
749
|
-
UNMUTE: 'UNMUTE',
|
|
750
|
-
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
728
|
+
LOOP: 'LOOP',
|
|
751
729
|
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
752
|
-
PLAY: 'PLAY',
|
|
753
730
|
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
731
|
+
CAPTIONS: 'CAPTIONS',
|
|
732
|
+
MUTE: 'MUTE',
|
|
733
|
+
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
754
734
|
SEEK: 'SEEK',
|
|
735
|
+
CAST: 'CAST',
|
|
736
|
+
PAUSE: 'PAUSE',
|
|
737
|
+
FAST_FORWARD: 'FAST_FORWARD',
|
|
738
|
+
LANGUAGE: 'LANGUAGE',
|
|
739
|
+
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
740
|
+
FULL_SCREEN: 'FULL_SCREEN',
|
|
741
|
+
AD_TIME: 'AD_TIME',
|
|
742
|
+
OFF: 'OFF',
|
|
755
743
|
AD_DURATION: 'AD_DURATION',
|
|
744
|
+
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
745
|
+
REPLAY: 'REPLAY',
|
|
746
|
+
AD_PROGRESS: 'AD_PROGRESS',
|
|
756
747
|
SKIP_AD: 'SKIP_AD',
|
|
757
|
-
|
|
758
|
-
REWIND: 'REWIND',
|
|
759
|
-
LANGUAGE: 'LANGUAGE',
|
|
748
|
+
AIRPLAY: 'AIRPLAY',
|
|
760
749
|
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
761
|
-
|
|
750
|
+
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
762
751
|
QUALITY: 'QUALITY',
|
|
763
|
-
|
|
752
|
+
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
753
|
+
PLAY: 'PLAY',
|
|
754
|
+
BACK: 'BACK',
|
|
755
|
+
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
756
|
+
REWIND: 'REWIND',
|
|
757
|
+
UNMUTE: 'UNMUTE',
|
|
758
|
+
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
759
|
+
LIVE: 'LIVE',
|
|
760
|
+
RESOLUTION: 'RESOLUTION',
|
|
761
|
+
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
762
|
+
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
763
|
+
ON: 'ON',
|
|
764
764
|
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
765
765
|
};
|