rx-player 4.2.0-dev.2024081400 → 4.2.0-dev.2024082600

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 (117) hide show
  1. package/.vscode/settings.json +7 -0
  2. package/CHANGELOG.md +29 -0
  3. package/VERSION +1 -1
  4. package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.d.ts.map +1 -1
  5. package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.js +1 -1
  6. package/dist/commonjs/__GENERATED_CODE/embedded_worker.d.ts.map +1 -1
  7. package/dist/commonjs/__GENERATED_CODE/embedded_worker.js +1 -1
  8. package/dist/commonjs/compat/eme/custom_media_keys/types.d.ts +3 -0
  9. package/dist/commonjs/compat/eme/custom_media_keys/types.d.ts.map +1 -1
  10. package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.d.ts +1 -1
  11. package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.d.ts.map +1 -1
  12. package/dist/commonjs/compat/eme/eme-api-implementation.d.ts +2 -2
  13. package/dist/commonjs/compat/eme/eme-api-implementation.d.ts.map +1 -1
  14. package/dist/commonjs/compat/eme/eme-api-implementation.js +19 -2
  15. package/dist/commonjs/compat/eme/get_init_data.d.ts +3 -1
  16. package/dist/commonjs/compat/eme/get_init_data.d.ts.map +1 -1
  17. package/dist/commonjs/compat/eme/get_init_data.js +2 -2
  18. package/dist/commonjs/compat/event_listeners.d.ts +21 -19
  19. package/dist/commonjs/compat/event_listeners.d.ts.map +1 -1
  20. package/dist/commonjs/compat/event_listeners.js +0 -11
  21. package/dist/commonjs/core/segment_sinks/inventory/segment_inventory.js +8 -5
  22. package/dist/commonjs/main_thread/api/public_api.d.ts +22 -10
  23. package/dist/commonjs/main_thread/api/public_api.d.ts.map +1 -1
  24. package/dist/commonjs/main_thread/api/public_api.js +68 -28
  25. package/dist/commonjs/main_thread/decrypt/content_decryptor.d.ts +8 -0
  26. package/dist/commonjs/main_thread/decrypt/content_decryptor.d.ts.map +1 -1
  27. package/dist/commonjs/main_thread/decrypt/content_decryptor.js +51 -2
  28. package/dist/commonjs/main_thread/decrypt/types.d.ts +5 -0
  29. package/dist/commonjs/main_thread/decrypt/types.d.ts.map +1 -1
  30. package/dist/commonjs/main_thread/init/media_source_content_initializer.js +3 -3
  31. package/dist/commonjs/main_thread/tracks_store/tracks_store.d.ts +12 -4
  32. package/dist/commonjs/main_thread/tracks_store/tracks_store.d.ts.map +1 -1
  33. package/dist/commonjs/main_thread/tracks_store/tracks_store.js +18 -8
  34. package/dist/commonjs/manifest/classes/adaptation.d.ts.map +1 -1
  35. package/dist/commonjs/manifest/classes/adaptation.js +1 -4
  36. package/dist/commonjs/manifest/classes/representation.js +8 -8
  37. package/dist/commonjs/manifest/utils.d.ts +4 -3
  38. package/dist/commonjs/manifest/utils.d.ts.map +1 -1
  39. package/dist/commonjs/manifest/utils.js +13 -7
  40. package/dist/commonjs/parsers/manifest/dash/common/content_protection_parser.js +4 -4
  41. package/dist/commonjs/parsers/manifest/local/parse_local_manifest.js +1 -1
  42. package/dist/commonjs/parsers/manifest/smooth/create_parser.d.ts.map +1 -1
  43. package/dist/commonjs/parsers/manifest/smooth/create_parser.js +1 -4
  44. package/dist/commonjs/parsers/manifest/types.d.ts +1 -6
  45. package/dist/commonjs/parsers/manifest/types.d.ts.map +1 -1
  46. package/dist/commonjs/public_types.d.ts +69 -0
  47. package/dist/commonjs/public_types.d.ts.map +1 -1
  48. package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.d.ts.map +1 -1
  49. package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.js +1 -1
  50. package/dist/es2017/__GENERATED_CODE/embedded_worker.d.ts.map +1 -1
  51. package/dist/es2017/__GENERATED_CODE/embedded_worker.js +1 -1
  52. package/dist/es2017/compat/eme/custom_media_keys/types.d.ts +3 -0
  53. package/dist/es2017/compat/eme/custom_media_keys/types.d.ts.map +1 -1
  54. package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.d.ts +1 -1
  55. package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.d.ts.map +1 -1
  56. package/dist/es2017/compat/eme/eme-api-implementation.d.ts +2 -2
  57. package/dist/es2017/compat/eme/eme-api-implementation.d.ts.map +1 -1
  58. package/dist/es2017/compat/eme/eme-api-implementation.js +19 -2
  59. package/dist/es2017/compat/eme/get_init_data.d.ts +3 -1
  60. package/dist/es2017/compat/eme/get_init_data.d.ts.map +1 -1
  61. package/dist/es2017/compat/eme/get_init_data.js +2 -2
  62. package/dist/es2017/compat/event_listeners.d.ts +21 -19
  63. package/dist/es2017/compat/event_listeners.d.ts.map +1 -1
  64. package/dist/es2017/compat/event_listeners.js +0 -11
  65. package/dist/es2017/core/segment_sinks/inventory/segment_inventory.js +8 -5
  66. package/dist/es2017/main_thread/api/public_api.d.ts +22 -10
  67. package/dist/es2017/main_thread/api/public_api.d.ts.map +1 -1
  68. package/dist/es2017/main_thread/api/public_api.js +64 -24
  69. package/dist/es2017/main_thread/decrypt/content_decryptor.d.ts +8 -0
  70. package/dist/es2017/main_thread/decrypt/content_decryptor.d.ts.map +1 -1
  71. package/dist/es2017/main_thread/decrypt/content_decryptor.js +47 -2
  72. package/dist/es2017/main_thread/decrypt/types.d.ts +5 -0
  73. package/dist/es2017/main_thread/decrypt/types.d.ts.map +1 -1
  74. package/dist/es2017/main_thread/init/media_source_content_initializer.js +3 -3
  75. package/dist/es2017/main_thread/tracks_store/tracks_store.d.ts +12 -4
  76. package/dist/es2017/main_thread/tracks_store/tracks_store.d.ts.map +1 -1
  77. package/dist/es2017/main_thread/tracks_store/tracks_store.js +18 -8
  78. package/dist/es2017/manifest/classes/adaptation.d.ts.map +1 -1
  79. package/dist/es2017/manifest/classes/adaptation.js +1 -1
  80. package/dist/es2017/manifest/classes/representation.js +8 -8
  81. package/dist/es2017/manifest/utils.d.ts +4 -3
  82. package/dist/es2017/manifest/utils.d.ts.map +1 -1
  83. package/dist/es2017/manifest/utils.js +13 -7
  84. package/dist/es2017/parsers/manifest/dash/common/content_protection_parser.js +4 -4
  85. package/dist/es2017/parsers/manifest/local/parse_local_manifest.js +1 -1
  86. package/dist/es2017/parsers/manifest/smooth/create_parser.d.ts.map +1 -1
  87. package/dist/es2017/parsers/manifest/smooth/create_parser.js +1 -4
  88. package/dist/es2017/parsers/manifest/types.d.ts +1 -6
  89. package/dist/es2017/parsers/manifest/types.d.ts.map +1 -1
  90. package/dist/es2017/public_types.d.ts +69 -0
  91. package/dist/es2017/public_types.d.ts.map +1 -1
  92. package/dist/mpd-parser.wasm +0 -0
  93. package/dist/rx-player.js +18 -18
  94. package/dist/worker.js +3 -3
  95. package/package.json +2 -2
  96. package/src/__GENERATED_CODE/embedded_dash_wasm.ts +1 -1
  97. package/src/__GENERATED_CODE/embedded_worker.ts +1 -1
  98. package/src/compat/eme/custom_media_keys/types.ts +4 -0
  99. package/src/compat/eme/custom_media_keys/webkit_media_keys.ts +1 -1
  100. package/src/compat/eme/eme-api-implementation.ts +35 -4
  101. package/src/compat/eme/get_init_data.ts +5 -3
  102. package/src/compat/event_listeners.ts +30 -5
  103. package/src/core/segment_sinks/inventory/segment_inventory.ts +7 -4
  104. package/src/main_thread/api/public_api.ts +96 -24
  105. package/src/main_thread/decrypt/content_decryptor.ts +60 -3
  106. package/src/main_thread/decrypt/types.ts +5 -0
  107. package/src/main_thread/init/media_source_content_initializer.ts +3 -3
  108. package/src/main_thread/tracks_store/tracks_store.ts +30 -6
  109. package/src/manifest/classes/adaptation.ts +1 -3
  110. package/src/manifest/classes/representation.ts +6 -6
  111. package/src/manifest/utils.ts +14 -6
  112. package/src/parsers/manifest/dash/common/content_protection_parser.ts +4 -4
  113. package/src/parsers/manifest/local/parse_local_manifest.ts +1 -1
  114. package/src/parsers/manifest/smooth/create_parser.ts +2 -6
  115. package/src/parsers/manifest/types.ts +1 -7
  116. package/src/public_types.ts +73 -0
  117. package/vitest.config.mjs +1 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "files.watcherExclude": {
3
+ "**/node_modules/**": true,
4
+ "**/dist/**": true,
5
+ "**/build/**": true
6
+ }
7
+ }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.2.0 (upcoming)
4
+
5
+ ### Features
6
+
7
+ - Add `cmcd` object to `loadVideo` options to enable CMCD (Common Media Client Data)
8
+ [#1461]
9
+ - Add `checkManifestIntegrity` `loadVideo` option as a temporary work-around when you
10
+ suspect your packager or CDN to sometimes deliver corrupted data [#1471]
11
+ - Add `LogFormat` static property to the `RxPlayer` to try improving on bug reports
12
+ [#1469]
13
+
14
+ ### Bug fixes
15
+
16
+ - Detect cases where an encrypted media's codec is not supported specifically when the
17
+ media is encrypted and prevent the playback of such contents [#1479]
18
+ - Work-around the "hulu issue" seen on firefox 129 and 130 (`1911283` and `1912238` on
19
+ bugzilla) which also impacted the RxPlayer [#1495]
20
+ - Fix rare cases where the active Period would not be advertised by the RxPlayer [#1502]
21
+
22
+ ### Other improvements
23
+
24
+ - DASH: provide a more precize calculation for the timeshift buffer depth [#1483]
25
+ - Handle `hev1` codec and `hvc1` codecs as part of the same family of codecs when trying
26
+ to check for compatibility between the two [#1499]
27
+ - Code: Forbid the direct usage of MSE and HTML5 media TypeScript type in profit of our
28
+ own compatible ones to facilitate testing and the addition of platform-specific
29
+ differences [#1397].
30
+ - Demo: Remove standalone demo as we never relied on it [#1473]
31
+
3
32
  ## v4.1.0 (2024-07-08)
4
33
 
5
34
  ### Features
package/VERSION CHANGED
@@ -1 +1 @@
1
- 4.2.0-dev.2024081400
1
+ 4.2.0-dev.2024082600
@@ -1 +1 @@
1
- {"version":3,"file":"embedded_dash_wasm.d.ts","sourceRoot":"","sources":["../../../src/__GENERATED_CODE/embedded_dash_wasm.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,eAAe,iBAA2j0V,CAAC;AACjl0V,OAAO,EAAE,eAAe,IAAI,kBAAkB,EAAE,CAAC;AACjD,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"embedded_dash_wasm.d.ts","sourceRoot":"","sources":["../../../src/__GENERATED_CODE/embedded_dash_wasm.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,eAAe,iBAAsikU,CAAC;AAC5jkU,OAAO,EAAE,eAAe,IAAI,kBAAkB,EAAE,CAAC;AACjD,eAAe,eAAe,CAAC"}