shaka-player 3.2.15 → 3.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build-and-test.yaml +13 -0
- package/AUTHORS +2 -0
- package/CHANGELOG.md +28 -0
- package/CONTRIBUTORS +2 -0
- package/dist/deps.js +1 -1
- package/dist/locales.js +30 -30
- package/dist/shaka-player.compiled.debug.js +184 -176
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.js +707 -704
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.debug.js +221 -213
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.js +820 -818
- package/dist/shaka-player.ui.map +3 -3
- package/docs/tutorials/welcome.md +2 -2
- package/externs/shaka/player.js +2 -1
- package/lib/ads/ad_manager.js +2 -2
- package/lib/cea/cea708_window.js +2 -2
- package/lib/dash/segment_template.js +1 -1
- package/lib/hls/hls_parser.js +8 -1
- package/lib/media/content_workarounds.js +12 -0
- package/lib/media/streaming_engine.js +20 -8
- package/lib/player.js +11 -2
- package/lib/polyfill/media_capabilities.js +59 -9
- package/lib/text/ttml_text_parser.js +32 -7
- package/lib/text/ui_text_displayer.js +22 -5
- package/lib/util/platform.js +21 -2
- package/lib/util/stream_utils.js +30 -10
- package/package.json +1 -1
- package/test/dash/dash_parser_manifest_unit.js +1 -0
- package/test/hls/hls_parser_unit.js +1 -0
- package/test/player_integration.js +10 -3
- package/test/polyfill/media_capabilities_unit.js +261 -0
- package/test/test/boot.js +29 -11
- package/test/test/util/test_scheme.js +2 -2
- package/test/text/mp4_ttml_parser_unit.js +4 -4
- package/test/text/ttml_text_parser_unit.js +117 -84
- package/test/text/ui_text_displayer_unit.js +76 -0
- package/test/ui/text_displayer_layout_unit.js +14 -0
- package/test/util/stream_utils_unit.js +18 -0
- package/test/util/xml_utils_unit.js +6 -1
- package/ui/controls.js +1 -1
|
@@ -87,6 +87,19 @@ jobs:
|
|
|
87
87
|
if: matrix.os == 'ubuntu-latest' && matrix.browser == 'Firefox'
|
|
88
88
|
run: sudo apt -y update && sudo apt -y install ffmpeg
|
|
89
89
|
|
|
90
|
+
# Edge 107 fails DRM tests due to an outdated Widevine CDM. Force Edge
|
|
91
|
+
# to update to 108+.
|
|
92
|
+
- name: Upgrade Edge
|
|
93
|
+
if: matrix.os == 'ubuntu-latest' && matrix.browser == 'Edge'
|
|
94
|
+
run: |
|
|
95
|
+
# If it's Edge 107, update it. Otherwise, don't. This way, we don't
|
|
96
|
+
# break something later when Edge 108+ is available by default in
|
|
97
|
+
# GitHub Actions.
|
|
98
|
+
if apt show microsoft-edge-stable | grep -q '^Version: 107'; then
|
|
99
|
+
wget https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_108.0.1462.46-1_amd64.deb
|
|
100
|
+
sudo dpkg -i microsoft-edge-stable_108.0.1462.46-1_amd64.deb
|
|
101
|
+
fi
|
|
102
|
+
|
|
90
103
|
- name: Checkout code
|
|
91
104
|
uses: actions/checkout@v3
|
|
92
105
|
with:
|
package/AUTHORS
CHANGED
|
@@ -60,6 +60,8 @@ Philo Inc. <*@philo.com>
|
|
|
60
60
|
Prakash <duggaraju@gmail.com>
|
|
61
61
|
Robert Colantuoni <rgc@colantuoni.com>
|
|
62
62
|
Robert Galluccio <robertnw5@gmail.com>
|
|
63
|
+
Rodolphe Breton <robloche@gmail.com>
|
|
64
|
+
Rohan Gupta <rohangupta1528@gmail.com>
|
|
63
65
|
Roi Lipman <roilipman@gmail.com>
|
|
64
66
|
Roksolana Ivanyshyn <roksolana.ivanyshyn.pub@gmail.com>
|
|
65
67
|
Rostislav Hejduk <Ross-cz@users.noreply.github.com>
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.2.17](https://github.com/shaka-project/shaka-player/compare/v3.2.16...v3.2.17) (2022-12-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **chapters:** removed duplicate chapters by id ([#4810](https://github.com/shaka-project/shaka-player/issues/4810)) ([992f9d6](https://github.com/shaka-project/shaka-player/commit/992f9d61be5750f59a022b02d609fb392ddc9560))
|
|
9
|
+
* Fix duplicate updates in StreamingEngine ([#4840](https://github.com/shaka-project/shaka-player/issues/4840)) ([0404fd3](https://github.com/shaka-project/shaka-player/commit/0404fd3c61ea9594af57de6622d25d976fb0dba4)), closes [#4831](https://github.com/shaka-project/shaka-player/issues/4831)
|
|
10
|
+
* Fix rare exception after StreamingEngine teardown ([#4830](https://github.com/shaka-project/shaka-player/issues/4830)) ([9887612](https://github.com/shaka-project/shaka-player/commit/988761246a188c2d58142430a15975b24f9a46ee)), closes [#4813](https://github.com/shaka-project/shaka-player/issues/4813)
|
|
11
|
+
|
|
12
|
+
## [3.2.16](https://github.com/shaka-project/shaka-player/compare/v3.2.15...v3.2.16) (2022-12-08)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* 4676 - Virgin Media set top box is incorrectly categorized as Apple/Safari ([#4678](https://github.com/shaka-project/shaka-player/issues/4678)) ([65e9716](https://github.com/shaka-project/shaka-player/commit/65e9716a2073dffa6fba146d71d6fb2633654994)), closes [#4676](https://github.com/shaka-project/shaka-player/issues/4676)
|
|
18
|
+
* **cast:** Use cast platform APIs in MediaCapabilties polyfill ([#4727](https://github.com/shaka-project/shaka-player/issues/4727)) ([737dd27](https://github.com/shaka-project/shaka-player/commit/737dd272d6ecec34f00824a438d22e1048e5e213))
|
|
19
|
+
* **cea:** Fix MAX_ROWS in CEA-708 window ([#4757](https://github.com/shaka-project/shaka-player/issues/4757)) ([9dbcc05](https://github.com/shaka-project/shaka-player/commit/9dbcc05a7538c77b3b49c1f67a7aa5f3589d5d20))
|
|
20
|
+
* Fix bufferBehind setting broken by image segments ([#4718](https://github.com/shaka-project/shaka-player/issues/4718)) ([54f7a5c](https://github.com/shaka-project/shaka-player/commit/54f7a5cd88159c77cbb9f740ab6194babeb24c2d)), closes [#4717](https://github.com/shaka-project/shaka-player/issues/4717)
|
|
21
|
+
* Fix DRM workaround for Tizen and Xbox with hvc1/hev1 boxes ([#4743](https://github.com/shaka-project/shaka-player/issues/4743)) ([b56bd28](https://github.com/shaka-project/shaka-player/commit/b56bd2871f31bf438186c93d0e5c423f7597bf83)), closes [#4742](https://github.com/shaka-project/shaka-player/issues/4742)
|
|
22
|
+
* Fix subtitles not added to DOM region ([#4733](https://github.com/shaka-project/shaka-player/issues/4733)) ([7f0e059](https://github.com/shaka-project/shaka-player/commit/7f0e0596bc266cc7c1e7cfdf96e3aab7ae3b19eb)), closes [#4680](https://github.com/shaka-project/shaka-player/issues/4680)
|
|
23
|
+
* **HLS:** Fix lowLatencyPresentationDelay when using autoLowLatencyMode ([#4712](https://github.com/shaka-project/shaka-player/issues/4712)) ([984316d](https://github.com/shaka-project/shaka-player/commit/984316daff83b4ac7a3846ce6f6a496c083e9888))
|
|
24
|
+
* **HLS:** Fix support legacy AVC1 codec used in HLS ([#4716](https://github.com/shaka-project/shaka-player/issues/4716)) ([a481596](https://github.com/shaka-project/shaka-player/commit/a4815966a397f4b6a30ff169a16fefb797b82e71))
|
|
25
|
+
* **HLS:** Single alternative video renditions not working ([#4785](https://github.com/shaka-project/shaka-player/issues/4785)) ([20900a9](https://github.com/shaka-project/shaka-player/commit/20900a97579c23d3f7f14592acaf065a30711b6b))
|
|
26
|
+
* **TTML:** Add font-family mapping ([#4801](https://github.com/shaka-project/shaka-player/issues/4801)) ([3827873](https://github.com/shaka-project/shaka-player/commit/382787360f2c53b27db0be4dc704e9d018515e08))
|
|
27
|
+
* **TTML:** Fix duplicate cues overlapping segment boundaries ([#4798](https://github.com/shaka-project/shaka-player/issues/4798)) ([021d7bd](https://github.com/shaka-project/shaka-player/commit/021d7bd65e8d394c0c050fd7aaa1d9e990c1a640)), closes [#4631](https://github.com/shaka-project/shaka-player/issues/4631)
|
|
28
|
+
* **ui:** Check event cancelable before event.preventDefault ([#4690](https://github.com/shaka-project/shaka-player/issues/4690)) ([9864b88](https://github.com/shaka-project/shaka-player/commit/9864b8804aeabff5eb146c921fc82c254d040ce0))
|
|
29
|
+
* WebVTT line not correctly positioned in UITextDisplayer ([#4567](https://github.com/shaka-project/shaka-player/issues/4567)) ([#4682](https://github.com/shaka-project/shaka-player/issues/4682)) ([7c7be7c](https://github.com/shaka-project/shaka-player/commit/7c7be7c0c201b8d945bcd18efd75d08becc01efb))
|
|
30
|
+
|
|
3
31
|
## [3.2.15](https://github.com/shaka-project/shaka-player/compare/v3.2.14...v3.2.15) (2022-11-09)
|
|
4
32
|
|
|
5
33
|
|
package/CONTRIBUTORS
CHANGED
|
@@ -89,7 +89,9 @@ Peter Nycander <peter.nycander@gmail.com>
|
|
|
89
89
|
Prakash Duggaraju <duggaraju@gmail.com>
|
|
90
90
|
Robert Colantuoni <rgc@colantuoni.com>
|
|
91
91
|
Robert Galluccio <robertnw5@gmail.com>
|
|
92
|
+
Rodolphe Breton <robloche@gmail.com>
|
|
92
93
|
Rohit Makasana <rohitbm@google.com>
|
|
94
|
+
Rohan Gupta <rohangupta1528@gmail.com>
|
|
93
95
|
Roi Lipman <roilipman@gmail.com>
|
|
94
96
|
Roksolana Ivanyshyn <roksolana.ivanyshyn.pub@gmail.com>
|
|
95
97
|
Rostislav Hejduk <Ross-cz@users.noreply.github.com>
|
package/dist/deps.js
CHANGED
|
@@ -112,7 +112,7 @@ goog.addDependency('../../../../lib/polyfill/aria.js', ['shaka.polyfill.Aria'],
|
|
|
112
112
|
goog.addDependency('../../../../lib/polyfill/encryption_scheme.js', ['shaka.polyfill.EncryptionScheme'], ['shaka.polyfill'], {'lang': 'es6'});
|
|
113
113
|
goog.addDependency('../../../../lib/polyfill/fullscreen.js', ['shaka.polyfill.Fullscreen'], ['shaka.polyfill'], {'lang': 'es6'});
|
|
114
114
|
goog.addDependency('../../../../lib/polyfill/mathround.js', ['shaka.polyfill.MathRound'], ['shaka.log', 'shaka.polyfill'], {'lang': 'es6'});
|
|
115
|
-
goog.addDependency('../../../../lib/polyfill/media_capabilities.js', ['shaka.polyfill.MediaCapabilities'], ['shaka.log', 'shaka.polyfill', 'shaka.util.Platform'], {'lang': 'es8'});
|
|
115
|
+
goog.addDependency('../../../../lib/polyfill/media_capabilities.js', ['shaka.polyfill.MediaCapabilities'], ['shaka.log', 'shaka.polyfill', 'shaka.util.Error', 'shaka.util.Platform'], {'lang': 'es8'});
|
|
116
116
|
goog.addDependency('../../../../lib/polyfill/mediasource.js', ['shaka.polyfill.MediaSource'], ['shaka.log', 'shaka.polyfill', 'shaka.util.MimeUtils', 'shaka.util.Platform'], {'lang': 'es6'});
|
|
117
117
|
goog.addDependency('../../../../lib/polyfill/orientation.js', ['shaka.polyfill.Orientation'], ['shaka.polyfill', 'shaka.util.FakeEvent', 'shaka.util.FakeEventTarget'], {'lang': 'es6'});
|
|
118
118
|
goog.addDependency('../../../../lib/polyfill/patchedmediakeys_apple.js', ['shaka.polyfill.PatchedMediaKeysApple'], ['goog.asserts', 'shaka.log', 'shaka.media.DrmEngine', 'shaka.polyfill', 'shaka.util.BufferUtils', 'shaka.util.EventManager', 'shaka.util.FakeEvent', 'shaka.util.FakeEventTarget', 'shaka.util.MediaReadyState', 'shaka.util.PublicPromise', 'shaka.util.StringUtils'], {'lang': 'es6'});
|
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
|
-
|
|
723
|
-
|
|
724
|
-
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
725
|
-
LIVE: 'LIVE',
|
|
726
|
-
LOOP: 'LOOP',
|
|
727
|
-
AD_TIME: 'AD_TIME',
|
|
728
|
-
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
729
|
-
AIRPLAY: 'AIRPLAY',
|
|
730
|
-
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
731
|
-
REWIND: 'REWIND',
|
|
732
|
-
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
733
|
-
AD_DURATION: 'AD_DURATION',
|
|
722
|
+
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
723
|
+
REPLAY: 'REPLAY',
|
|
734
724
|
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
735
|
-
|
|
736
|
-
VOLUME: 'VOLUME',
|
|
737
|
-
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
725
|
+
CAPTIONS: 'CAPTIONS',
|
|
738
726
|
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
739
|
-
|
|
740
|
-
CAST: 'CAST',
|
|
741
|
-
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
742
|
-
PAUSE: 'PAUSE',
|
|
743
|
-
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
727
|
+
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
744
728
|
BACK: 'BACK',
|
|
745
|
-
OFF: 'OFF',
|
|
746
|
-
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
747
|
-
SKIP_AD: 'SKIP_AD',
|
|
748
|
-
FAST_FORWARD: 'FAST_FORWARD',
|
|
749
|
-
FULL_SCREEN: 'FULL_SCREEN',
|
|
750
|
-
REPLAY: 'REPLAY',
|
|
751
|
-
MUTE: 'MUTE',
|
|
752
729
|
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
753
|
-
|
|
730
|
+
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
731
|
+
MUTE: 'MUTE',
|
|
732
|
+
PAUSE: 'PAUSE',
|
|
733
|
+
LOOP: 'LOOP',
|
|
754
734
|
PLAY: 'PLAY',
|
|
755
|
-
|
|
735
|
+
CAST: 'CAST',
|
|
736
|
+
REWIND: 'REWIND',
|
|
737
|
+
AIRPLAY: 'AIRPLAY',
|
|
738
|
+
LIVE: 'LIVE',
|
|
739
|
+
AD_DURATION: 'AD_DURATION',
|
|
740
|
+
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
741
|
+
OFF: 'OFF',
|
|
756
742
|
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
743
|
+
FULL_SCREEN: 'FULL_SCREEN',
|
|
744
|
+
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
745
|
+
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
757
746
|
AD_PROGRESS: 'AD_PROGRESS',
|
|
747
|
+
ON: 'ON',
|
|
748
|
+
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
749
|
+
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
750
|
+
SKIP_AD: 'SKIP_AD',
|
|
751
|
+
VOLUME: 'VOLUME',
|
|
752
|
+
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
753
|
+
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
754
|
+
LANGUAGE: 'LANGUAGE',
|
|
755
|
+
SEEK: 'SEEK',
|
|
758
756
|
RESOLUTION: 'RESOLUTION',
|
|
759
|
-
|
|
757
|
+
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
758
|
+
AD_TIME: 'AD_TIME',
|
|
760
759
|
UNMUTE: 'UNMUTE',
|
|
760
|
+
FAST_FORWARD: 'FAST_FORWARD',
|
|
761
761
|
};
|