shaka-player 3.3.13 → 3.3.14

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 +32 -32
  6. package/dist/shaka-player.compiled.debug.js +105 -98
  7. package/dist/shaka-player.compiled.debug.map +3 -3
  8. package/dist/shaka-player.compiled.js +707 -705
  9. package/dist/shaka-player.compiled.map +3 -3
  10. package/dist/shaka-player.ui.debug.js +193 -186
  11. package/dist/shaka-player.ui.debug.map +3 -3
  12. package/dist/shaka-player.ui.js +813 -812
  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 +119 -86
  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
@@ -62,6 +62,7 @@ Philo Inc. <*@philo.com>
62
62
  Prakash <duggaraju@gmail.com>
63
63
  Robert Colantuoni <rgc@colantuoni.com>
64
64
  Robert Galluccio <robertnw5@gmail.com>
65
+ Rodolphe Breton <robloche@gmail.com>
65
66
  Roi Lipman <roilipman@gmail.com>
66
67
  Roksolana Ivanyshyn <roksolana.ivanyshyn.pub@gmail.com>
67
68
  Rostislav Hejduk <Ross-cz@users.noreply.github.com>
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.3.14](https://github.com/shaka-project/shaka-player/compare/v3.3.13...v3.3.14) (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)) ([dff6683](https://github.com/shaka-project/shaka-player/commit/dff66831ed9ad5844108bd0333c0f0f706863fcb)), 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)) ([dccb28d](https://github.com/shaka-project/shaka-player/commit/dccb28da887ba6a51302a34a819d82c81387c850))
10
+ * **cea:** Fix MAX_ROWS in CEA-708 window ([#4757](https://github.com/shaka-project/shaka-player/issues/4757)) ([4909b0d](https://github.com/shaka-project/shaka-player/commit/4909b0d2f8ad4f34d4a082cab859e53e360c0a43))
11
+ * Fix bufferBehind setting broken by image segments ([#4718](https://github.com/shaka-project/shaka-player/issues/4718)) ([f9121b5](https://github.com/shaka-project/shaka-player/commit/f9121b520e9178e195f342070c863741d1962c3e)), 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)) ([a84fe2a](https://github.com/shaka-project/shaka-player/commit/a84fe2ae1428055c8f1b565056c563b7c2e38aa7)), 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)) ([a42b803](https://github.com/shaka-project/shaka-player/commit/a42b803b9928648c26b54971809e0939495ae5d7)), 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)) ([a9bb695](https://github.com/shaka-project/shaka-player/commit/a9bb6955351520c5f079afa752b990f942773d7f))
15
+ * **HLS:** Fix support legacy AVC1 codec used in HLS ([#4716](https://github.com/shaka-project/shaka-player/issues/4716)) ([8dcab18](https://github.com/shaka-project/shaka-player/commit/8dcab182d8c6ab545ff286f08eefaefb93a36662))
16
+ * **HLS:** Single alternative video renditions not working ([#4785](https://github.com/shaka-project/shaka-player/issues/4785)) ([4d2371f](https://github.com/shaka-project/shaka-player/commit/4d2371f7caf95a0145de58a9331d2dc9fcf7d2fa))
17
+ * **TTML:** Add font-family mapping ([#4801](https://github.com/shaka-project/shaka-player/issues/4801)) ([7e93455](https://github.com/shaka-project/shaka-player/commit/7e934556905e8be9f09de3efe81382b90978175f))
18
+ * **TTML:** Fix duplicate cues overlapping segment boundaries ([#4798](https://github.com/shaka-project/shaka-player/issues/4798)) ([be98ae3](https://github.com/shaka-project/shaka-player/commit/be98ae3720051c87a7685bb84aaa70567c5e3cb7)), 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)) ([4a9a2f2](https://github.com/shaka-project/shaka-player/commit/4a9a2f2da53af1216971ebf742a7a04ea14193c5))
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)) ([fecf044](https://github.com/shaka-project/shaka-player/commit/fecf044119704fd41db5c4d5ee7ed3deb492d862))
21
+
3
22
  ## [3.3.13](https://github.com/shaka-project/shaka-player/compare/v3.3.12...v3.3.13) (2022-11-09)
4
23
 
5
24
 
package/CONTRIBUTORS CHANGED
@@ -92,6 +92,7 @@ Peter Nycander <peter.nycander@gmail.com>
92
92
  Prakash Duggaraju <duggaraju@gmail.com>
93
93
  Robert Colantuoni <rgc@colantuoni.com>
94
94
  Robert Galluccio <robertnw5@gmail.com>
95
+ Rodolphe Breton <robloche@gmail.com>
95
96
  Rohit Makasana <rohitbm@google.com>
96
97
  Roi Lipman <roilipman@gmail.com>
97
98
  Roksolana Ivanyshyn <roksolana.ivanyshyn.pub@gmail.com>
package/dist/deps.js CHANGED
@@ -114,7 +114,7 @@ goog.addDependency('../../../../lib/polyfill/aria.js', ['shaka.polyfill.Aria'],
114
114
  goog.addDependency('../../../../lib/polyfill/encryption_scheme.js', ['shaka.polyfill.EncryptionScheme'], ['shaka.polyfill'], {'lang': 'es6'});
115
115
  goog.addDependency('../../../../lib/polyfill/fullscreen.js', ['shaka.polyfill.Fullscreen'], ['shaka.polyfill'], {'lang': 'es6'});
116
116
  goog.addDependency('../../../../lib/polyfill/mathround.js', ['shaka.polyfill.MathRound'], ['shaka.log', 'shaka.polyfill'], {'lang': 'es6'});
117
- goog.addDependency('../../../../lib/polyfill/media_capabilities.js', ['shaka.polyfill.MediaCapabilities'], ['shaka.log', 'shaka.polyfill', 'shaka.util.Platform'], {'lang': 'es8'});
117
+ goog.addDependency('../../../../lib/polyfill/media_capabilities.js', ['shaka.polyfill.MediaCapabilities'], ['shaka.log', 'shaka.polyfill', 'shaka.util.Error', 'shaka.util.Platform'], {'lang': 'es8'});
118
118
  goog.addDependency('../../../../lib/polyfill/mediasource.js', ['shaka.polyfill.MediaSource'], ['shaka.log', 'shaka.polyfill', 'shaka.util.MimeUtils', 'shaka.util.Platform'], {'lang': 'es6'});
119
119
  goog.addDependency('../../../../lib/polyfill/orientation.js', ['shaka.polyfill.Orientation'], ['shaka.polyfill', 'shaka.util.FakeEvent', 'shaka.util.FakeEventTarget'], {'lang': 'es6'});
120
120
  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
@@ -720,44 +720,44 @@ shaka.ui.Locales.addTo = function(localization) {
720
720
  * @const
721
721
  */
722
722
  shaka.ui.Locales.Ids = {
723
- AD_PROGRESS: 'AD_PROGRESS',
724
- UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
725
- STATISTICS: 'STATISTICS',
726
- BACK: 'BACK',
727
- ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
728
- ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
729
- MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
730
- PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
731
- LOOP: 'LOOP',
732
- PLAYBACK_RATE: 'PLAYBACK_RATE',
733
723
  REPLAY: 'REPLAY',
734
- EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
724
+ CAST: 'CAST',
725
+ NOT_APPLICABLE: 'NOT_APPLICABLE',
726
+ SKIP_AD: 'SKIP_AD',
727
+ LOOP: 'LOOP',
728
+ PAUSE: 'PAUSE',
729
+ OFF: 'OFF',
735
730
  REWIND: 'REWIND',
736
731
  UNMUTE: 'UNMUTE',
737
- SKIP_AD: 'SKIP_AD',
738
- LIVE: 'LIVE',
739
- FAST_FORWARD: 'FAST_FORWARD',
740
- NOT_APPLICABLE: 'NOT_APPLICABLE',
741
- EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
742
- MORE_SETTINGS: 'MORE_SETTINGS',
743
- PLAY: 'PLAY',
744
- EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
745
- RESOLUTION: 'RESOLUTION',
746
- AIRPLAY: 'AIRPLAY',
747
- MUTE: 'MUTE',
748
- UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
749
732
  AD_TIME: 'AD_TIME',
733
+ EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
734
+ SKIP_TO_LIVE: 'SKIP_TO_LIVE',
735
+ STATISTICS: 'STATISTICS',
736
+ ON: 'ON',
737
+ CAPTIONS: 'CAPTIONS',
738
+ ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
739
+ AD_PROGRESS: 'AD_PROGRESS',
740
+ UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
750
741
  SUBTITLE_FORCED: 'SUBTITLE_FORCED',
742
+ AUTO_QUALITY: 'AUTO_QUALITY',
743
+ AD_DURATION: 'AD_DURATION',
744
+ MUTE: 'MUTE',
745
+ PLAY: 'PLAY',
746
+ EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
747
+ PLAYBACK_RATE: 'PLAYBACK_RATE',
748
+ LIVE: 'LIVE',
749
+ BACK: 'BACK',
750
+ EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
751
+ MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
752
+ MORE_SETTINGS: 'MORE_SETTINGS',
751
753
  VOLUME: 'VOLUME',
754
+ UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
755
+ LANGUAGE: 'LANGUAGE',
756
+ FAST_FORWARD: 'FAST_FORWARD',
757
+ ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
752
758
  FULL_SCREEN: 'FULL_SCREEN',
753
- AUTO_QUALITY: 'AUTO_QUALITY',
759
+ PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
760
+ RESOLUTION: 'RESOLUTION',
761
+ AIRPLAY: 'AIRPLAY',
754
762
  SEEK: 'SEEK',
755
- LANGUAGE: 'LANGUAGE',
756
- CAST: 'CAST',
757
- AD_DURATION: 'AD_DURATION',
758
- ON: 'ON',
759
- OFF: 'OFF',
760
- SKIP_TO_LIVE: 'SKIP_TO_LIVE',
761
- CAPTIONS: 'CAPTIONS',
762
- PAUSE: 'PAUSE',
763
763
  };