rx-player 4.2.0-dev.2024091600 → 4.2.0-dev.2024100200

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 (161) hide show
  1. package/CHANGELOG.md +20 -11
  2. package/VERSION +1 -1
  3. package/dist/commonjs/__GENERATED_CODE/embedded_worker.d.ts.map +1 -1
  4. package/dist/commonjs/__GENERATED_CODE/embedded_worker.js +1 -1
  5. package/dist/commonjs/compat/eme/close_session.js +2 -2
  6. package/dist/commonjs/compat/eme/load_session.js +2 -2
  7. package/dist/commonjs/compat/patch_webkit_source_buffer.d.ts.map +1 -1
  8. package/dist/commonjs/compat/patch_webkit_source_buffer.js +0 -3
  9. package/dist/commonjs/config.d.ts +7 -156
  10. package/dist/commonjs/config.d.ts.map +1 -1
  11. package/dist/commonjs/config.js +50 -3
  12. package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.js +2 -2
  13. package/dist/commonjs/core/fetchers/segment/segment_fetcher.js +2 -2
  14. package/dist/commonjs/core/fetchers/utils/schedule_request.js +2 -2
  15. package/dist/commonjs/core/main/worker/worker_main.d.ts.map +1 -1
  16. package/dist/commonjs/core/main/worker/worker_main.js +7 -0
  17. package/dist/commonjs/core/segment_sinks/garbage_collector.js +2 -2
  18. package/dist/commonjs/core/segment_sinks/implementations/audio_video/audio_video_segment_buffer.js +2 -2
  19. package/dist/commonjs/core/segment_sinks/implementations/text/text_segment_buffer.js +2 -2
  20. package/dist/commonjs/core/stream/adaptation/adaptation_stream.d.ts.map +1 -1
  21. package/dist/commonjs/core/stream/adaptation/adaptation_stream.js +35 -9
  22. package/dist/commonjs/core/stream/adaptation/index.d.ts +1 -1
  23. package/dist/commonjs/core/stream/adaptation/index.d.ts.map +1 -1
  24. package/dist/commonjs/core/stream/adaptation/index.js +0 -15
  25. package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.js +2 -2
  26. package/dist/commonjs/core/stream/period/index.d.ts +1 -1
  27. package/dist/commonjs/core/stream/period/index.d.ts.map +1 -1
  28. package/dist/commonjs/core/stream/period/index.js +0 -15
  29. package/dist/commonjs/core/stream/period/period_stream.js +2 -2
  30. package/dist/commonjs/core/stream/representation/index.d.ts +1 -1
  31. package/dist/commonjs/core/stream/representation/index.d.ts.map +1 -1
  32. package/dist/commonjs/core/stream/representation/index.js +0 -15
  33. package/dist/commonjs/core/stream/representation/representation_stream.d.ts.map +1 -1
  34. package/dist/commonjs/core/stream/representation/representation_stream.js +2 -0
  35. package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.d.ts.map +1 -1
  36. package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.js +16 -11
  37. package/dist/commonjs/core/stream/representation/utils/push_init_segment.js +2 -2
  38. package/dist/commonjs/core/stream/representation/utils/push_media_segment.js +2 -2
  39. package/dist/commonjs/default_config.js +4 -0
  40. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +2 -2
  41. package/dist/commonjs/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +2 -2
  42. package/dist/commonjs/main_thread/api/public_api.d.ts.map +1 -1
  43. package/dist/commonjs/main_thread/api/public_api.js +19 -4
  44. package/dist/commonjs/main_thread/decrypt/attach_media_keys.js +2 -2
  45. package/dist/commonjs/main_thread/decrypt/content_decryptor.d.ts.map +1 -1
  46. package/dist/commonjs/main_thread/decrypt/content_decryptor.js +4 -2
  47. package/dist/commonjs/main_thread/decrypt/create_or_load_session.js +2 -2
  48. package/dist/commonjs/main_thread/decrypt/create_session.js +2 -2
  49. package/dist/commonjs/main_thread/decrypt/dispose_decryption_resources.js +2 -2
  50. package/dist/commonjs/main_thread/decrypt/find_key_system.js +2 -2
  51. package/dist/commonjs/main_thread/decrypt/get_media_keys.d.ts.map +1 -1
  52. package/dist/commonjs/main_thread/decrypt/get_media_keys.js +3 -2
  53. package/dist/commonjs/main_thread/decrypt/init_media_keys.js +2 -2
  54. package/dist/commonjs/main_thread/decrypt/session_events_listener.js +2 -2
  55. package/dist/commonjs/main_thread/decrypt/set_server_certificate.js +2 -4
  56. package/dist/commonjs/main_thread/decrypt/utils/clean_old_loaded_sessions.js +2 -2
  57. package/dist/commonjs/main_thread/decrypt/utils/loaded_sessions_store.js +2 -2
  58. package/dist/commonjs/main_thread/init/directfile_content_initializer.d.ts.map +1 -1
  59. package/dist/commonjs/main_thread/init/directfile_content_initializer.js +14 -6
  60. package/dist/commonjs/main_thread/init/media_source_content_initializer.js +2 -2
  61. package/dist/commonjs/main_thread/init/multi_thread_content_initializer.d.ts +13 -0
  62. package/dist/commonjs/main_thread/init/multi_thread_content_initializer.d.ts.map +1 -1
  63. package/dist/commonjs/main_thread/init/multi_thread_content_initializer.js +96 -47
  64. package/dist/commonjs/main_thread/init/utils/initial_seek_and_play.d.ts +1 -1
  65. package/dist/commonjs/main_thread/init/utils/initial_seek_and_play.d.ts.map +1 -1
  66. package/dist/commonjs/main_thread/init/utils/initial_seek_and_play.js +21 -5
  67. package/dist/commonjs/mse/main_media_source_interface.d.ts.map +1 -1
  68. package/dist/commonjs/mse/main_media_source_interface.js +21 -2
  69. package/dist/commonjs/multithread_types.d.ts +8 -1
  70. package/dist/commonjs/multithread_types.d.ts.map +1 -1
  71. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +2 -2
  72. package/dist/commonjs/parsers/manifest/index.d.ts +1 -1
  73. package/dist/commonjs/parsers/manifest/index.d.ts.map +1 -1
  74. package/dist/commonjs/parsers/manifest/index.js +0 -15
  75. package/dist/commonjs/transports/dash/integrity_checks.js +2 -2
  76. package/dist/commonjs/transports/dash/load_chunked_segment_data.js +2 -2
  77. package/dist/commonjs/transports/dash/segment_loader.js +2 -2
  78. package/dist/commonjs/transports/dash/text_loader.js +2 -2
  79. package/dist/commonjs/transports/smooth/pipelines.d.ts.map +1 -1
  80. package/dist/commonjs/transports/smooth/pipelines.js +1 -0
  81. package/dist/commonjs/transports/smooth/segment_loader.js +2 -2
  82. package/dist/commonjs/transports/utils/parse_text_track.d.ts.map +1 -1
  83. package/dist/commonjs/transports/utils/parse_text_track.js +1 -0
  84. package/dist/commonjs/utils/request/fetch.js +2 -2
  85. package/dist/commonjs/utils/retry_promise_with_backoff.js +2 -2
  86. package/dist/es2017/__GENERATED_CODE/embedded_worker.d.ts.map +1 -1
  87. package/dist/es2017/__GENERATED_CODE/embedded_worker.js +1 -1
  88. package/dist/es2017/compat/patch_webkit_source_buffer.d.ts.map +1 -1
  89. package/dist/es2017/compat/patch_webkit_source_buffer.js +0 -3
  90. package/dist/es2017/config.d.ts +7 -156
  91. package/dist/es2017/config.d.ts.map +1 -1
  92. package/dist/es2017/config.js +6 -1
  93. package/dist/es2017/core/main/worker/worker_main.d.ts.map +1 -1
  94. package/dist/es2017/core/main/worker/worker_main.js +7 -0
  95. package/dist/es2017/core/stream/adaptation/adaptation_stream.d.ts.map +1 -1
  96. package/dist/es2017/core/stream/adaptation/adaptation_stream.js +33 -7
  97. package/dist/es2017/core/stream/adaptation/index.d.ts +1 -1
  98. package/dist/es2017/core/stream/adaptation/index.d.ts.map +1 -1
  99. package/dist/es2017/core/stream/adaptation/index.js +0 -1
  100. package/dist/es2017/core/stream/period/index.d.ts +1 -1
  101. package/dist/es2017/core/stream/period/index.d.ts.map +1 -1
  102. package/dist/es2017/core/stream/period/index.js +0 -1
  103. package/dist/es2017/core/stream/representation/index.d.ts +1 -1
  104. package/dist/es2017/core/stream/representation/index.d.ts.map +1 -1
  105. package/dist/es2017/core/stream/representation/index.js +0 -1
  106. package/dist/es2017/core/stream/representation/representation_stream.d.ts.map +1 -1
  107. package/dist/es2017/core/stream/representation/representation_stream.js +2 -0
  108. package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.d.ts.map +1 -1
  109. package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.js +6 -2
  110. package/dist/es2017/default_config.js +4 -0
  111. package/dist/es2017/main_thread/api/public_api.d.ts.map +1 -1
  112. package/dist/es2017/main_thread/api/public_api.js +17 -2
  113. package/dist/es2017/main_thread/decrypt/content_decryptor.d.ts.map +1 -1
  114. package/dist/es2017/main_thread/decrypt/content_decryptor.js +2 -0
  115. package/dist/es2017/main_thread/decrypt/get_media_keys.d.ts.map +1 -1
  116. package/dist/es2017/main_thread/decrypt/get_media_keys.js +1 -0
  117. package/dist/es2017/main_thread/init/directfile_content_initializer.d.ts.map +1 -1
  118. package/dist/es2017/main_thread/init/directfile_content_initializer.js +14 -6
  119. package/dist/es2017/main_thread/init/multi_thread_content_initializer.d.ts +13 -0
  120. package/dist/es2017/main_thread/init/multi_thread_content_initializer.d.ts.map +1 -1
  121. package/dist/es2017/main_thread/init/multi_thread_content_initializer.js +78 -41
  122. package/dist/es2017/main_thread/init/utils/initial_seek_and_play.d.ts +1 -1
  123. package/dist/es2017/main_thread/init/utils/initial_seek_and_play.d.ts.map +1 -1
  124. package/dist/es2017/main_thread/init/utils/initial_seek_and_play.js +19 -3
  125. package/dist/es2017/mse/main_media_source_interface.d.ts.map +1 -1
  126. package/dist/es2017/mse/main_media_source_interface.js +19 -0
  127. package/dist/es2017/multithread_types.d.ts +8 -1
  128. package/dist/es2017/multithread_types.d.ts.map +1 -1
  129. package/dist/es2017/parsers/manifest/index.d.ts +1 -1
  130. package/dist/es2017/parsers/manifest/index.d.ts.map +1 -1
  131. package/dist/es2017/parsers/manifest/index.js +1 -1
  132. package/dist/es2017/transports/smooth/pipelines.d.ts.map +1 -1
  133. package/dist/es2017/transports/smooth/pipelines.js +1 -0
  134. package/dist/es2017/transports/utils/parse_text_track.d.ts.map +1 -1
  135. package/dist/es2017/transports/utils/parse_text_track.js +1 -0
  136. package/dist/rx-player.js +101 -23
  137. package/dist/rx-player.min.js +14 -14
  138. package/dist/worker.js +6 -6
  139. package/package.json +38 -21
  140. package/src/__GENERATED_CODE/embedded_worker.ts +1 -1
  141. package/src/compat/patch_webkit_source_buffer.ts +0 -3
  142. package/src/config.ts +10 -2
  143. package/src/core/main/worker/worker_main.ts +8 -0
  144. package/src/core/stream/adaptation/adaptation_stream.ts +41 -8
  145. package/src/core/stream/adaptation/index.ts +1 -1
  146. package/src/core/stream/period/index.ts +1 -1
  147. package/src/core/stream/representation/index.ts +1 -1
  148. package/src/core/stream/representation/representation_stream.ts +11 -0
  149. package/src/core/stream/representation/utils/append_segment_to_buffer.ts +6 -2
  150. package/src/default_config.ts +21 -0
  151. package/src/main_thread/api/public_api.ts +19 -2
  152. package/src/main_thread/decrypt/content_decryptor.ts +2 -0
  153. package/src/main_thread/decrypt/get_media_keys.ts +1 -0
  154. package/src/main_thread/init/directfile_content_initializer.ts +20 -10
  155. package/src/main_thread/init/multi_thread_content_initializer.ts +94 -61
  156. package/src/main_thread/init/utils/initial_seek_and_play.ts +24 -5
  157. package/src/mse/main_media_source_interface.ts +20 -0
  158. package/src/multithread_types.ts +9 -0
  159. package/src/parsers/manifest/index.ts +1 -1
  160. package/src/transports/smooth/pipelines.ts +1 -0
  161. package/src/transports/utils/parse_text_track.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## Current dev build: v4.2.0-dev.2024091600
3
+ ## Current dev build: v4.2.0-dev.2024100200
4
4
 
5
5
  ### Features
6
6
 
@@ -14,6 +14,7 @@
14
14
  information on ALL representations, even those that won't be played [#1501]
15
15
  - Add `LogFormat` static property to the `RxPlayer` to try improving on bug reports
16
16
  [#1469]
17
+ - Experimentally re-export config in v4 (only intended for debugging matters) [#1510]
17
18
 
18
19
  ### Bug fixes
19
20
 
@@ -22,26 +23,39 @@
22
23
  - Work-around the "hulu issue" seen on firefox 129 and 130 (`1911283` and `1912238` on
23
24
  bugzilla) which also impacted the RxPlayer [#1495, #1498]
24
25
  - Fix rare cases where the active Period would not be advertised by the RxPlayer [#1502]
26
+ - Actually trigger a `BUFFER_FULL_ERROR` when `QuotaExceededError` mitigations after
27
+ `appendBuffer` MSE calls don't work #1546
28
+ - Fix issues when handling a `QuotaExceededError` after an `appendBuffer` MSE call [#1546, #1559]
29
+ - Directfile/Compat: Fix `startAt.fromLastPosition` handling on Safari when playing
30
+ directfile contents [#1548]
25
31
  - DRM/Compat: Re-create MediaKeys for each content on Philips' NETTV, and `KSTB40XX`
26
32
  set-top boxes [#1515]
27
33
  - DRM/Compat: fix content not starting on Safari because key are never considered usable
28
34
  for a track [#1479, #1512]
29
35
  - DASH_WASM: fix `Label` element never being parsed [#1541, #1540]
30
36
  - Fix RxPlayer not being exposed in release bundles [#1542]
37
+ - Consider `stpp.ttml` codec for text format [#1557]
38
+ - Prevent very rare cases of infinite rebuffering after getting errors from calling the
39
+ `SourceBuffer.prototype.appendBuffer` and `SourceBuffer.prototype.remove` MSE API
40
+ [#1560, #1561]
31
41
  - MULTI_THREAD: Fix rare `CancellationError` error happening when reloading while a reload
32
42
  is pending. [#1528]
33
43
  - MULTI_THREAD: fix wrong Period considered as current in multi-Period DASH contents with
34
44
  the multi-thread feature [#1527]
45
+ - MULTI_THREAD: Fix rare occurrences of infinite loading on constrained devices [#1556]
35
46
 
36
47
  ### Other improvements
37
48
 
38
49
  - DASH: provide a more precize calculation for the timeshift buffer depth [#1483]
39
50
  - Handle `hev1` codec and `hvc1` codecs as part of the same family of codecs when trying
40
51
  to check for compatibility between the two [#1499]
52
+ - Better handle `QuotaExceededError` issue after `appendBuffer` MSE calls when
53
+ `wantedBufferAhead` is set to `Infinity` [#1546]
41
54
  - Code: Forbid the direct usage of MSE and HTML5 media TypeScript type in profit of our
42
55
  own compatible ones to facilitate testing and the addition of platform-specific
43
56
  differences [#1397].
44
57
  - Demo: Remove standalone demo as we never relied on it [#1473]
58
+ - Scripts: Automatize official releases and CHANGELOG.md updating through a script [#1524]
45
59
 
46
60
  ## v4.1.0 (2024-07-08)
47
61
 
@@ -51,8 +65,7 @@
51
65
 
52
66
  ### Bug fixes
53
67
 
54
- - DASH: support absolute path in URL resolution with RFC 3986 implementation [#1443,
55
- #1440]
68
+ - DASH: support absolute path in URL resolution with RFC 3986 implementation [#1443, #1440]
56
69
  - DASH: fix cases of blinking subtitles [#1416, #1424]
57
70
  - Fix precision issues of the `maxVideoBufferSize` API [#1421]
58
71
  - DASH: Prevent multiple loading of the same segment for some DASH low-latency contents
@@ -66,8 +79,7 @@
66
79
  - MULTI_THREAD: Perform several actions so that our `MULTI_THREAD` experimental feature
67
80
  now works on older browser and on the Playstation 4 [#1401, #1402]
68
81
  - Directfile/Compat: On safari on iOS no longer stay stuck in buffering when `autoPlay` is
69
- set to `false` or not set and the video element has the attribute "playsinline" [#1408,
70
- #1390]
82
+ set to `false` or not set and the video element has the attribute "playsinline" [#1408, #1390]
71
83
  - Directfile/compat: On safari mobile in directfile mode, do not stay in an infinite
72
84
  `LOADING` state if the `duration` is set to `NaN` (rare issue in a normally-unsupported
73
85
  multiple RxPlayer-per-media-element scenario) [#1393]
@@ -706,8 +718,7 @@
706
718
  - TypeScript: Add IBitrateEstimate, IPositionUpdate and IPlayerState types to the exported
707
719
  types [#1084]
708
720
  - Remove dependency on pinkie's promise ponyfill [#1058, #1090]
709
- - tests: add performance tests, to better catch and avoid performance regressions [#1053,
710
- #1062]
721
+ - tests: add performance tests, to better catch and avoid performance regressions [#1053, #1062]
711
722
  - DRM: Refactor DRM logic for better maintainability. DRM-linked logs are now prefixed by
712
723
  `DRM:` instead of `EME:` like previously [#1042]
713
724
 
@@ -851,8 +862,7 @@
851
862
  - Update used RxJS version to 7.0.0, which might bring with it a smaller size and better
852
863
  performances [#954]
853
864
  - demo: remove Chart.js dependency (we found that its new API documentation and errors
854
- were too impenetrable) and replace the "Buffer Size" chart by a homemade one. [#955,
855
- #957]
865
+ were too impenetrable) and replace the "Buffer Size" chart by a homemade one. [#955, #957]
856
866
 
857
867
  ## v3.24.0 (2021-04-01)
858
868
 
@@ -860,8 +870,7 @@
860
870
 
861
871
  - Add `inbandEvent` event for when an event is encountered in a media segment [#892]
862
872
  - DRM: Add `singleLicensePer` `keySystems` option to be able to signal in advance that the
863
- current content has a single license, even if it has multiple encryption keys [#863,
864
- #904]
873
+ current content has a single license, even if it has multiple encryption keys [#863, #904]
865
874
  - DRM: Add `keySystems[].licenseStorage.disableRetroCompatibility` boolean to unlock
866
875
  optimizations when compatibility with EME sessions persisted in older RxPlayer versions
867
876
  is not important [#919]
package/VERSION CHANGED
@@ -1 +1 @@
1
- 4.2.0-dev.2024091600
1
+ 4.2.0-dev.2024100200
@@ -1 +1 @@
1
- {"version":3,"file":"embedded_worker.d.ts","sourceRoot":"","sources":["../../../src/__GENERATED_CODE/embedded_worker.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,IAAI,MAAyjqT,CAAC;AACpkqT,OAAO,EAAE,IAAI,IAAI,eAAe,EAAE,CAAC;AACnC,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"embedded_worker.d.ts","sourceRoot":"","sources":["../../../src/__GENERATED_CODE/embedded_worker.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,IAAI,MAAkyrT,CAAC;AAC7yrT,OAAO,EAAE,IAAI,IAAI,eAAe,EAAE,CAAC;AACnC,eAAe,IAAI,CAAC"}