shaka-player 3.2.15 → 3.2.16

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 (36) hide show
  1. package/AUTHORS +1 -0
  2. package/CHANGELOG.md +19 -0
  3. package/CONTRIBUTORS +1 -0
  4. package/dist/deps.js +1 -1
  5. package/dist/locales.js +30 -30
  6. package/dist/shaka-player.compiled.debug.js +171 -163
  7. package/dist/shaka-player.compiled.debug.map +3 -3
  8. package/dist/shaka-player.compiled.js +691 -688
  9. package/dist/shaka-player.compiled.map +3 -3
  10. package/dist/shaka-player.ui.debug.js +208 -200
  11. package/dist/shaka-player.ui.debug.map +3 -3
  12. package/dist/shaka-player.ui.js +810 -808
  13. package/dist/shaka-player.ui.map +3 -3
  14. package/docs/tutorials/welcome.md +2 -2
  15. package/externs/shaka/player.js +2 -1
  16. package/lib/cea/cea708_window.js +2 -2
  17. package/lib/dash/segment_template.js +1 -1
  18. package/lib/hls/hls_parser.js +8 -1
  19. package/lib/media/content_workarounds.js +12 -0
  20. package/lib/player.js +1 -1
  21. package/lib/polyfill/media_capabilities.js +59 -9
  22. package/lib/text/ttml_text_parser.js +32 -7
  23. package/lib/text/ui_text_displayer.js +22 -5
  24. package/lib/util/platform.js +21 -2
  25. package/lib/util/stream_utils.js +30 -10
  26. package/package.json +1 -1
  27. package/test/dash/dash_parser_manifest_unit.js +1 -0
  28. package/test/hls/hls_parser_unit.js +1 -0
  29. package/test/polyfill/media_capabilities_unit.js +261 -0
  30. package/test/text/mp4_ttml_parser_unit.js +4 -4
  31. package/test/text/ttml_text_parser_unit.js +117 -84
  32. package/test/text/ui_text_displayer_unit.js +76 -0
  33. package/test/ui/text_displayer_layout_unit.js +14 -0
  34. package/test/util/stream_utils_unit.js +18 -0
  35. package/test/util/xml_utils_unit.js +6 -1
  36. package/ui/controls.js +1 -1
package/AUTHORS CHANGED
@@ -60,6 +60,7 @@ 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>
63
64
  Roi Lipman <roilipman@gmail.com>
64
65
  Roksolana Ivanyshyn <roksolana.ivanyshyn.pub@gmail.com>
65
66
  Rostislav Hejduk <Ross-cz@users.noreply.github.com>
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.2.16](https://github.com/shaka-project/shaka-player/compare/v3.2.15...v3.2.16) (2022-12-08)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * 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)
9
+ * **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))
10
+ * **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))
11
+ * 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)
12
+ * 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)
13
+ * 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)
14
+ * **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))
15
+ * **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))
16
+ * **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))
17
+ * **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))
18
+ * **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)
19
+ * **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))
20
+ * 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))
21
+
3
22
  ## [3.2.15](https://github.com/shaka-project/shaka-player/compare/v3.2.14...v3.2.15) (2022-11-09)
4
23
 
5
24
 
package/CONTRIBUTORS CHANGED
@@ -89,6 +89,7 @@ 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>
93
94
  Roi Lipman <roilipman@gmail.com>
94
95
  Roksolana Ivanyshyn <roksolana.ivanyshyn.pub@gmail.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
+ SKIP_TO_LIVE: 'SKIP_TO_LIVE',
723
+ UNMUTE: 'UNMUTE',
724
+ AD_PROGRESS: 'AD_PROGRESS',
722
725
  PLAYBACK_RATE: 'PLAYBACK_RATE',
723
- LANGUAGE: 'LANGUAGE',
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',
726
+ ON: 'ON',
727
+ PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
729
728
  AIRPLAY: 'AIRPLAY',
730
- EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
731
- REWIND: 'REWIND',
729
+ PAUSE: 'PAUSE',
730
+ FAST_FORWARD: 'FAST_FORWARD',
731
+ OFF: 'OFF',
732
+ CAPTIONS: 'CAPTIONS',
733
+ EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
734
+ BACK: 'BACK',
735
+ NOT_APPLICABLE: 'NOT_APPLICABLE',
732
736
  SUBTITLE_FORCED: 'SUBTITLE_FORCED',
733
- AD_DURATION: 'AD_DURATION',
734
- EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
735
- ON: 'ON',
737
+ UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
736
738
  VOLUME: 'VOLUME',
739
+ FULL_SCREEN: 'FULL_SCREEN',
740
+ RESOLUTION: 'RESOLUTION',
741
+ SKIP_AD: 'SKIP_AD',
742
+ ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
743
+ LANGUAGE: 'LANGUAGE',
744
+ EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
745
+ CAST: 'CAST',
746
+ REPLAY: 'REPLAY',
747
+ AD_DURATION: 'AD_DURATION',
748
+ MORE_SETTINGS: 'MORE_SETTINGS',
737
749
  UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
738
- SKIP_TO_LIVE: 'SKIP_TO_LIVE',
750
+ ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
751
+ LOOP: 'LOOP',
752
+ AD_TIME: 'AD_TIME',
753
+ PLAY: 'PLAY',
739
754
  SEEK: 'SEEK',
740
- CAST: 'CAST',
741
- EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
742
- PAUSE: 'PAUSE',
743
- ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
744
- BACK: 'BACK',
745
- OFF: 'OFF',
755
+ EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
746
756
  AUTO_QUALITY: 'AUTO_QUALITY',
747
- SKIP_AD: 'SKIP_AD',
748
- FAST_FORWARD: 'FAST_FORWARD',
749
- FULL_SCREEN: 'FULL_SCREEN',
750
- REPLAY: 'REPLAY',
751
757
  MUTE: 'MUTE',
752
- NOT_APPLICABLE: 'NOT_APPLICABLE',
753
- PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
754
- PLAY: 'PLAY',
755
- UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
758
+ LIVE: 'LIVE',
756
759
  MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
757
- AD_PROGRESS: 'AD_PROGRESS',
758
- RESOLUTION: 'RESOLUTION',
759
- CAPTIONS: 'CAPTIONS',
760
- UNMUTE: 'UNMUTE',
760
+ REWIND: 'REWIND',
761
761
  };