shaka-player 4.2.3 → 4.2.5

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 (82) hide show
  1. package/AUTHORS +2 -0
  2. package/CHANGELOG.md +39 -0
  3. package/CONTRIBUTORS +2 -0
  4. package/demo/index.html +1 -1
  5. package/dist/demo.compiled.debug.js +64 -64
  6. package/dist/demo.compiled.debug.map +2 -2
  7. package/dist/demo.compiled.js +64 -64
  8. package/dist/demo.compiled.map +2 -2
  9. package/dist/deps.js +5 -4
  10. package/dist/locales.js +32 -32
  11. package/dist/receiver.compiled.debug.js +12 -12
  12. package/dist/receiver.compiled.debug.map +2 -2
  13. package/dist/receiver.compiled.js +12 -12
  14. package/dist/receiver.compiled.map +2 -2
  15. package/dist/shaka-player.compiled.d.ts +15 -1
  16. package/dist/shaka-player.compiled.debug.d.ts +15 -1
  17. package/dist/shaka-player.compiled.debug.externs.js +95 -80
  18. package/dist/shaka-player.compiled.debug.js +583 -573
  19. package/dist/shaka-player.compiled.debug.map +4 -4
  20. package/dist/shaka-player.compiled.externs.js +95 -80
  21. package/dist/shaka-player.compiled.js +823 -820
  22. package/dist/shaka-player.compiled.map +4 -4
  23. package/dist/shaka-player.ui.d.ts +15 -1
  24. package/dist/shaka-player.ui.debug.d.ts +15 -1
  25. package/dist/shaka-player.ui.debug.externs.js +95 -80
  26. package/dist/shaka-player.ui.debug.js +612 -602
  27. package/dist/shaka-player.ui.debug.map +4 -4
  28. package/dist/shaka-player.ui.externs.js +95 -80
  29. package/dist/shaka-player.ui.js +963 -960
  30. package/dist/shaka-player.ui.map +4 -4
  31. package/docs/tutorials/ui.md +7 -7
  32. package/docs/tutorials/welcome.md +2 -2
  33. package/externs/mux.js +3 -0
  34. package/externs/shaka/player.js +2 -1
  35. package/lib/cast/cast_proxy.js +2 -1
  36. package/lib/cast/cast_receiver.js +19 -5
  37. package/lib/cast/cast_sender.js +2 -1
  38. package/lib/cast/cast_utils.js +16 -6
  39. package/lib/cea/cea708_window.js +2 -2
  40. package/lib/dash/segment_template.js +1 -1
  41. package/lib/hls/hls_parser.js +21 -4
  42. package/lib/media/content_workarounds.js +12 -0
  43. package/lib/media/media_source_engine.js +6 -0
  44. package/lib/media/playhead.js +23 -1
  45. package/lib/media/streaming_engine.js +3 -12
  46. package/lib/media/transmuxer.js +6 -0
  47. package/lib/player.js +24 -11
  48. package/lib/polyfill/abort_controller.js +143 -0
  49. package/lib/polyfill/media_capabilities.js +59 -9
  50. package/lib/text/ttml_text_parser.js +32 -7
  51. package/lib/text/ui_text_displayer.js +22 -5
  52. package/lib/util/manifest_parser_utils.js +4 -0
  53. package/lib/util/platform.js +9 -1
  54. package/lib/util/player_configuration.js +10 -3
  55. package/lib/util/stream_utils.js +30 -10
  56. package/package.json +1 -1
  57. package/roadmap.md +24 -6
  58. package/shaka-player.uncompiled.js +1 -0
  59. package/test/cast/cast_receiver_integration.js +97 -16
  60. package/test/cast/cast_receiver_unit.js +17 -12
  61. package/test/cast/cast_utils_unit.js +1 -0
  62. package/test/dash/dash_parser_manifest_unit.js +1 -0
  63. package/test/hls/hls_parser_unit.js +1 -0
  64. package/test/media/drm_engine_unit.js +11 -1
  65. package/test/media/media_source_engine_integration.js +108 -1
  66. package/test/media/playhead_unit.js +41 -0
  67. package/test/media/streaming_engine_integration.js +13 -0
  68. package/test/media/streaming_engine_unit.js +36 -23
  69. package/test/player_unit.js +87 -0
  70. package/test/polyfill/media_capabilities_unit.js +261 -0
  71. package/test/test/util/simple_fakes.js +3 -0
  72. package/test/test/util/stream_generator.js +212 -8
  73. package/test/test/util/test_scheme.js +3 -2
  74. package/test/test/util/util.js +3 -2
  75. package/test/text/mp4_ttml_parser_unit.js +6 -4
  76. package/test/text/ttml_text_parser_unit.js +119 -86
  77. package/test/text/ui_text_displayer_unit.js +76 -0
  78. package/test/ui/text_displayer_layout_unit.js +14 -0
  79. package/test/util/stream_utils_unit.js +18 -0
  80. package/test/util/xml_utils_unit.js +6 -1
  81. package/ui/controls.js +49 -37
  82. package/ui/settings_menu.js +11 -2
package/AUTHORS CHANGED
@@ -32,6 +32,7 @@ Edgeware AB <*@edgeware.tv>
32
32
  Enson Choy <enson.choy@harmonicinc.com>
33
33
  Esteban Dosztal <edosztal@gmail.com>
34
34
  Fadomire <fadomire@gmail.com>
35
+ Gerardo Meola <meola.gerardo@gmail.com>
35
36
  Gil Gonen <gil.gonen@gmail.com>
36
37
  Giorgio Gamberoni <giorgio.gamberoni@gmail.com>
37
38
  Giuseppe Samela <giuseppe.samela@gmail.com>
@@ -63,6 +64,7 @@ Philo Inc. <*@philo.com>
63
64
  Prakash <duggaraju@gmail.com>
64
65
  Robert Colantuoni <rgc@colantuoni.com>
65
66
  Robert Galluccio <robertnw5@gmail.com>
67
+ Rodolphe Breton <robloche@gmail.com>
66
68
  Roi Lipman <roilipman@gmail.com>
67
69
  Roksolana Ivanyshyn <roksolana.ivanyshyn.pub@gmail.com>
68
70
  Rostislav Hejduk <Ross-cz@users.noreply.github.com>
package/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.2.5](https://github.com/shaka-project/shaka-player/compare/v4.2.4...v4.2.5) (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)) ([fe1c3d8](https://github.com/shaka-project/shaka-player/commit/fe1c3d821bc38abfe945ac7afb7278a564174b12)), 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)) ([6f3b2da](https://github.com/shaka-project/shaka-player/commit/6f3b2dab5f8e488305c30cb644ca44ad835d593b))
10
+ * **cea:** Fix MAX_ROWS in CEA-708 window ([#4757](https://github.com/shaka-project/shaka-player/issues/4757)) ([05d959b](https://github.com/shaka-project/shaka-player/commit/05d959b0ef36cfa4c4a512143ffde506a20de914))
11
+ * Correct default initDataTransform for legacy Apple Media Keys ([#4797](https://github.com/shaka-project/shaka-player/issues/4797)) ([6eed72f](https://github.com/shaka-project/shaka-player/commit/6eed72fd84ca0f7971b01db39a411c544d022c8f))
12
+ * Fix bufferBehind setting broken by image segments ([#4718](https://github.com/shaka-project/shaka-player/issues/4718)) ([2987451](https://github.com/shaka-project/shaka-player/commit/298745149efc9608938aa133a354c7f2133609e0)), closes [#4717](https://github.com/shaka-project/shaka-player/issues/4717)
13
+ * Fix DRM workaround for Tizen and Xbox with hvc1/hev1 boxes ([#4743](https://github.com/shaka-project/shaka-player/issues/4743)) ([6e6a15f](https://github.com/shaka-project/shaka-player/commit/6e6a15f42aa0bfeb71b2fc426824280712d29360)), closes [#4742](https://github.com/shaka-project/shaka-player/issues/4742)
14
+ * Fix subtitles not added to DOM region ([#4733](https://github.com/shaka-project/shaka-player/issues/4733)) ([c7cb175](https://github.com/shaka-project/shaka-player/commit/c7cb17501d71c1d2ea7e50897b07cb57a87e60b6)), closes [#4680](https://github.com/shaka-project/shaka-player/issues/4680)
15
+ * Fix usage of WebCrypto in old browsers ([#4711](https://github.com/shaka-project/shaka-player/issues/4711)) ([9934cd7](https://github.com/shaka-project/shaka-player/commit/9934cd7be4e5f00e7da58ee667a10236ada8af25))
16
+ * **HLS:** Fix lowLatencyPresentationDelay when using autoLowLatencyMode ([#4712](https://github.com/shaka-project/shaka-player/issues/4712)) ([c4ef744](https://github.com/shaka-project/shaka-player/commit/c4ef7441ecda7b68d0dede2fd4782d8d25116518))
17
+ * **HLS:** Fix support legacy AVC1 codec used in HLS ([#4716](https://github.com/shaka-project/shaka-player/issues/4716)) ([e34e380](https://github.com/shaka-project/shaka-player/commit/e34e3809d2eb34ccc5e5c940fb5cd0137619fb5a))
18
+ * **HLS:** Single alternative video renditions not working ([#4785](https://github.com/shaka-project/shaka-player/issues/4785)) ([655d080](https://github.com/shaka-project/shaka-player/commit/655d08016231a2aa9b8860f6e963ab586aec023a))
19
+ * Polyfill missing AbortController on Tizen ([#4707](https://github.com/shaka-project/shaka-player/issues/4707)) ([eae487d](https://github.com/shaka-project/shaka-player/commit/eae487dd11c188ef740c8e36bc55462c86cc173a))
20
+ * **TTML:** Add font-family mapping ([#4801](https://github.com/shaka-project/shaka-player/issues/4801)) ([9262f92](https://github.com/shaka-project/shaka-player/commit/9262f921b7601f230bfd2ec854c80dd25fc2a36e))
21
+ * **TTML:** Fix duplicate cues overlapping segment boundaries ([#4798](https://github.com/shaka-project/shaka-player/issues/4798)) ([7aa3e5d](https://github.com/shaka-project/shaka-player/commit/7aa3e5d656d4dec1cace286cc54009dd4d79eff7)), closes [#4631](https://github.com/shaka-project/shaka-player/issues/4631)
22
+ * **ui:** Check event cancelable before event.preventDefault ([#4690](https://github.com/shaka-project/shaka-player/issues/4690)) ([9d90919](https://github.com/shaka-project/shaka-player/commit/9d90919dd29d0d0b8299d416b1039dabcc91608c))
23
+ * **ui:** Fix iOS fullscreen on rotation ([#4679](https://github.com/shaka-project/shaka-player/issues/4679)) ([04051fd](https://github.com/shaka-project/shaka-player/commit/04051fdcd5faaf1303e2875b4de7225e2534938e))
24
+ * Update v4.2 receiver app ID ([56466dc](https://github.com/shaka-project/shaka-player/commit/56466dce484e5ced69eddeb0c62c68615f4ed8d3))
25
+ * 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)) ([e9e6c94](https://github.com/shaka-project/shaka-player/commit/e9e6c945a31c9dfa84e4890606c606fa9346ef9e))
26
+
27
+ ## [4.2.4](https://github.com/shaka-project/shaka-player/compare/v4.2.3...v4.2.4) (2022-11-09)
28
+
29
+
30
+ ### Bug Fixes
31
+
32
+ * Allow overriding special handling of 404s ([#4635](https://github.com/shaka-project/shaka-player/issues/4635)) ([bf3e4e8](https://github.com/shaka-project/shaka-player/commit/bf3e4e8967ab938c95861d3f02eb1bcf76722a5c)), closes [#4548](https://github.com/shaka-project/shaka-player/issues/4548)
33
+ * **cast:** Reduce size of Cast update messages ([#4644](https://github.com/shaka-project/shaka-player/issues/4644)) ([2ee9803](https://github.com/shaka-project/shaka-player/commit/2ee9803f295bbdf7911740c4b5f35b81e8a7488c))
34
+ * Content reload starttime with HLS on iOS ([#4575](https://github.com/shaka-project/shaka-player/issues/4575)) ([f02e25a](https://github.com/shaka-project/shaka-player/commit/f02e25af91eeb18939f16460702b8f9ec226b54c)), closes [#4244](https://github.com/shaka-project/shaka-player/issues/4244)
35
+ * embed cc not shown when seeking back ([#4643](https://github.com/shaka-project/shaka-player/issues/4643)) ([3743fe8](https://github.com/shaka-project/shaka-player/commit/3743fe8ab70ce8bebd46ff4a667ddce188ec49c6)), closes [#4641](https://github.com/shaka-project/shaka-player/issues/4641)
36
+ * Fix detection of ac4, dts, and dolby h265 ([#4657](https://github.com/shaka-project/shaka-player/issues/4657)) ([9da2b47](https://github.com/shaka-project/shaka-player/commit/9da2b47deba36f4c50fed10c859f46a432e20576))
37
+ * focus on first element when back to the settings menu ([#4653](https://github.com/shaka-project/shaka-player/issues/4653)) ([f507c89](https://github.com/shaka-project/shaka-player/commit/f507c89bf63b0ec5b7802cd31ac3f3cca05ff237)), closes [#4652](https://github.com/shaka-project/shaka-player/issues/4652)
38
+ * **HLS:** Fix detection of WebVTT subtitles in HLS by extension ([#4663](https://github.com/shaka-project/shaka-player/issues/4663)) ([731bd96](https://github.com/shaka-project/shaka-player/commit/731bd96644cbbd3fa39992fd62a4ae6de8389e74))
39
+ * **HLS:** Infer missing codecs from config ([#4656](https://github.com/shaka-project/shaka-player/issues/4656)) ([507d96e](https://github.com/shaka-project/shaka-player/commit/507d96e74239973fb904d6ade4615ac8888a9d57))
40
+ * **ui:** Fix exception on screen rotation if fullscreen is not supported ([#4669](https://github.com/shaka-project/shaka-player/issues/4669)) ([6c54db9](https://github.com/shaka-project/shaka-player/commit/6c54db91e03c4ff4a2c073b45dcb05e8591295d0))
41
+
3
42
  ## [4.2.3](https://github.com/shaka-project/shaka-player/compare/v4.2.2...v4.2.3) (2022-10-29)
4
43
 
5
44
 
package/CONTRIBUTORS CHANGED
@@ -50,6 +50,7 @@ Enson Choy <enson.choy@harmonicinc.com>
50
50
  Esteban Dosztal <edosztal@gmail.com>
51
51
  Fadomire <fadomire@gmail.com>
52
52
  François Beaufort <fbeaufort@google.com>
53
+ Gerardo Meola <meola.gerardo@gmail.com>
53
54
  Gil Gonen <gil.gonen@gmail.com>
54
55
  Giorgio Gamberoni <giorgio.gamberoni@gmail.com>
55
56
  Giuseppe Samela <giuseppe.samela@gmail.com>
@@ -94,6 +95,7 @@ Peter Nycander <peter.nycander@gmail.com>
94
95
  Prakash Duggaraju <duggaraju@gmail.com>
95
96
  Robert Colantuoni <rgc@colantuoni.com>
96
97
  Robert Galluccio <robertnw5@gmail.com>
98
+ Rodolphe Breton <robloche@gmail.com>
97
99
  Rohit Makasana <rohitbm@google.com>
98
100
  Roi Lipman <roilipman@gmail.com>
99
101
  Roksolana Ivanyshyn <roksolana.ivanyshyn.pub@gmail.com>
package/demo/index.html CHANGED
@@ -126,7 +126,7 @@ UNCOMPILED_JS = [
126
126
  </div>
127
127
  <main class="mdl-layout__content" id="main-div">
128
128
  <div id="video-bar" class="hidden">
129
- <div data-shaka-player-container data-shaka-player-cast-receiver-id="07AEE832" class="video-container">
129
+ <div data-shaka-player-container data-shaka-player-cast-receiver-id="A67E4E9A" class="video-container">
130
130
  <video data-shaka-player autoplay playsinline id="video"></video>
131
131
  </div>
132
132
  </div>