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

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 (124) hide show
  1. package/CHANGELOG.md +13 -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 +4 -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 +20 -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/utils/append_segment_to_buffer.d.ts.map +1 -1
  34. package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.js +16 -11
  35. package/dist/commonjs/core/stream/representation/utils/push_init_segment.js +2 -2
  36. package/dist/commonjs/core/stream/representation/utils/push_media_segment.js +2 -2
  37. package/dist/commonjs/default_config.js +4 -0
  38. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +2 -2
  39. package/dist/commonjs/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +2 -2
  40. package/dist/commonjs/main_thread/api/public_api.d.ts.map +1 -1
  41. package/dist/commonjs/main_thread/api/public_api.js +19 -4
  42. package/dist/commonjs/main_thread/decrypt/attach_media_keys.js +2 -2
  43. package/dist/commonjs/main_thread/decrypt/content_decryptor.d.ts.map +1 -1
  44. package/dist/commonjs/main_thread/decrypt/content_decryptor.js +4 -2
  45. package/dist/commonjs/main_thread/decrypt/create_or_load_session.js +2 -2
  46. package/dist/commonjs/main_thread/decrypt/create_session.js +2 -2
  47. package/dist/commonjs/main_thread/decrypt/dispose_decryption_resources.js +2 -2
  48. package/dist/commonjs/main_thread/decrypt/find_key_system.js +2 -2
  49. package/dist/commonjs/main_thread/decrypt/get_media_keys.d.ts.map +1 -1
  50. package/dist/commonjs/main_thread/decrypt/get_media_keys.js +3 -2
  51. package/dist/commonjs/main_thread/decrypt/init_media_keys.js +2 -2
  52. package/dist/commonjs/main_thread/decrypt/session_events_listener.js +2 -2
  53. package/dist/commonjs/main_thread/decrypt/set_server_certificate.js +2 -4
  54. package/dist/commonjs/main_thread/decrypt/utils/clean_old_loaded_sessions.js +2 -2
  55. package/dist/commonjs/main_thread/decrypt/utils/loaded_sessions_store.js +2 -2
  56. package/dist/commonjs/main_thread/init/media_source_content_initializer.js +2 -2
  57. package/dist/commonjs/main_thread/init/multi_thread_content_initializer.js +2 -2
  58. package/dist/commonjs/multithread_types.d.ts +8 -1
  59. package/dist/commonjs/multithread_types.d.ts.map +1 -1
  60. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +2 -2
  61. package/dist/commonjs/parsers/manifest/index.d.ts +1 -1
  62. package/dist/commonjs/parsers/manifest/index.d.ts.map +1 -1
  63. package/dist/commonjs/parsers/manifest/index.js +0 -15
  64. package/dist/commonjs/transports/dash/integrity_checks.js +2 -2
  65. package/dist/commonjs/transports/dash/load_chunked_segment_data.js +2 -2
  66. package/dist/commonjs/transports/dash/segment_loader.js +2 -2
  67. package/dist/commonjs/transports/dash/text_loader.js +2 -2
  68. package/dist/commonjs/transports/smooth/segment_loader.js +2 -2
  69. package/dist/commonjs/utils/request/fetch.js +2 -2
  70. package/dist/commonjs/utils/retry_promise_with_backoff.js +2 -2
  71. package/dist/es2017/__GENERATED_CODE/embedded_worker.d.ts.map +1 -1
  72. package/dist/es2017/__GENERATED_CODE/embedded_worker.js +1 -1
  73. package/dist/es2017/compat/patch_webkit_source_buffer.d.ts.map +1 -1
  74. package/dist/es2017/compat/patch_webkit_source_buffer.js +0 -3
  75. package/dist/es2017/config.d.ts +7 -156
  76. package/dist/es2017/config.d.ts.map +1 -1
  77. package/dist/es2017/config.js +6 -1
  78. package/dist/es2017/core/main/worker/worker_main.d.ts.map +1 -1
  79. package/dist/es2017/core/main/worker/worker_main.js +4 -0
  80. package/dist/es2017/core/stream/adaptation/adaptation_stream.d.ts.map +1 -1
  81. package/dist/es2017/core/stream/adaptation/adaptation_stream.js +18 -7
  82. package/dist/es2017/core/stream/adaptation/index.d.ts +1 -1
  83. package/dist/es2017/core/stream/adaptation/index.d.ts.map +1 -1
  84. package/dist/es2017/core/stream/adaptation/index.js +0 -1
  85. package/dist/es2017/core/stream/period/index.d.ts +1 -1
  86. package/dist/es2017/core/stream/period/index.d.ts.map +1 -1
  87. package/dist/es2017/core/stream/period/index.js +0 -1
  88. package/dist/es2017/core/stream/representation/index.d.ts +1 -1
  89. package/dist/es2017/core/stream/representation/index.d.ts.map +1 -1
  90. package/dist/es2017/core/stream/representation/index.js +0 -1
  91. package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.d.ts.map +1 -1
  92. package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.js +6 -2
  93. package/dist/es2017/default_config.js +4 -0
  94. package/dist/es2017/main_thread/api/public_api.d.ts.map +1 -1
  95. package/dist/es2017/main_thread/api/public_api.js +17 -2
  96. package/dist/es2017/main_thread/decrypt/content_decryptor.d.ts.map +1 -1
  97. package/dist/es2017/main_thread/decrypt/content_decryptor.js +2 -0
  98. package/dist/es2017/main_thread/decrypt/get_media_keys.d.ts.map +1 -1
  99. package/dist/es2017/main_thread/decrypt/get_media_keys.js +1 -0
  100. package/dist/es2017/multithread_types.d.ts +8 -1
  101. package/dist/es2017/multithread_types.d.ts.map +1 -1
  102. package/dist/es2017/parsers/manifest/index.d.ts +1 -1
  103. package/dist/es2017/parsers/manifest/index.d.ts.map +1 -1
  104. package/dist/es2017/parsers/manifest/index.js +1 -1
  105. package/dist/rx-player.js +50 -11
  106. package/dist/rx-player.min.js +14 -14
  107. package/dist/worker.js +6 -6
  108. package/package.json +20 -15
  109. package/src/__GENERATED_CODE/embedded_worker.ts +1 -1
  110. package/src/compat/patch_webkit_source_buffer.ts +0 -3
  111. package/src/config.ts +10 -2
  112. package/src/core/main/worker/worker_main.ts +5 -0
  113. package/src/core/stream/adaptation/adaptation_stream.ts +18 -7
  114. package/src/core/stream/adaptation/index.ts +1 -1
  115. package/src/core/stream/period/index.ts +1 -1
  116. package/src/core/stream/representation/index.ts +1 -1
  117. package/src/core/stream/representation/utils/append_segment_to_buffer.ts +6 -2
  118. package/src/default_config.ts +21 -0
  119. package/src/main_thread/api/public_api.ts +19 -2
  120. package/src/main_thread/decrypt/content_decryptor.ts +2 -0
  121. package/src/main_thread/decrypt/get_media_keys.ts +1 -0
  122. package/src/main_thread/init/multi_thread_content_initializer.ts +0 -18
  123. package/src/multithread_types.ts +9 -0
  124. package/src/parsers/manifest/index.ts +1 -1
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.2024092400
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,6 +23,10 @@
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 issue if a `QuotaExceededError` after an `appendBuffer` MSE call is received while
29
+ the current position is `0` [#1546]
25
30
  - DRM/Compat: Re-create MediaKeys for each content on Philips' NETTV, and `KSTB40XX`
26
31
  set-top boxes [#1515]
27
32
  - DRM/Compat: fix content not starting on Safari because key are never considered usable
@@ -38,6 +43,8 @@
38
43
  - DASH: provide a more precize calculation for the timeshift buffer depth [#1483]
39
44
  - Handle `hev1` codec and `hvc1` codecs as part of the same family of codecs when trying
40
45
  to check for compatibility between the two [#1499]
46
+ - Better handle `QuotaExceededError` issue after `appendBuffer` MSE calls when
47
+ `wantedBufferAhead` is set to `Infinity` [#1546]
41
48
  - Code: Forbid the direct usage of MSE and HTML5 media TypeScript type in profit of our
42
49
  own compatible ones to facilitate testing and the addition of platform-specific
43
50
  differences [#1397].
@@ -51,8 +58,7 @@
51
58
 
52
59
  ### Bug fixes
53
60
 
54
- - DASH: support absolute path in URL resolution with RFC 3986 implementation [#1443,
55
- #1440]
61
+ - DASH: support absolute path in URL resolution with RFC 3986 implementation [#1443, #1440]
56
62
  - DASH: fix cases of blinking subtitles [#1416, #1424]
57
63
  - Fix precision issues of the `maxVideoBufferSize` API [#1421]
58
64
  - DASH: Prevent multiple loading of the same segment for some DASH low-latency contents
@@ -66,8 +72,7 @@
66
72
  - MULTI_THREAD: Perform several actions so that our `MULTI_THREAD` experimental feature
67
73
  now works on older browser and on the Playstation 4 [#1401, #1402]
68
74
  - 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]
75
+ set to `false` or not set and the video element has the attribute "playsinline" [#1408, #1390]
71
76
  - Directfile/compat: On safari mobile in directfile mode, do not stay in an infinite
72
77
  `LOADING` state if the `duration` is set to `NaN` (rare issue in a normally-unsupported
73
78
  multiple RxPlayer-per-media-element scenario) [#1393]
@@ -706,8 +711,7 @@
706
711
  - TypeScript: Add IBitrateEstimate, IPositionUpdate and IPlayerState types to the exported
707
712
  types [#1084]
708
713
  - Remove dependency on pinkie's promise ponyfill [#1058, #1090]
709
- - tests: add performance tests, to better catch and avoid performance regressions [#1053,
710
- #1062]
714
+ - tests: add performance tests, to better catch and avoid performance regressions [#1053, #1062]
711
715
  - DRM: Refactor DRM logic for better maintainability. DRM-linked logs are now prefixed by
712
716
  `DRM:` instead of `EME:` like previously [#1042]
713
717
 
@@ -851,8 +855,7 @@
851
855
  - Update used RxJS version to 7.0.0, which might bring with it a smaller size and better
852
856
  performances [#954]
853
857
  - 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]
858
+ were too impenetrable) and replace the "Buffer Size" chart by a homemade one. [#955, #957]
856
859
 
857
860
  ## v3.24.0 (2021-04-01)
858
861
 
@@ -860,8 +863,7 @@
860
863
 
861
864
  - Add `inbandEvent` event for when an event is encountered in a media segment [#892]
862
865
  - 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]
866
+ current content has a single license, even if it has multiple encryption keys [#863, #904]
865
867
  - DRM: Add `keySystems[].licenseStorage.disableRetroCompatibility` boolean to unlock
866
868
  optimizations when compatibility with EME sessions persisted in older RxPlayer versions
867
869
  is not important [#919]
package/VERSION CHANGED
@@ -1 +1 @@
1
- 4.2.0-dev.2024091600
1
+ 4.2.0-dev.2024092400
@@ -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,MAAowqT,CAAC;AAC/wqT,OAAO,EAAE,IAAI,IAAI,eAAe,EAAE,CAAC;AACnC,eAAe,IAAI,CAAC"}