rx-player 4.4.0 → 4.4.1-dev.2025101500

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 (341) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +52 -113
  3. package/VERSION +1 -1
  4. package/dist/commonjs/__GENERATED_CODE/embedded_worker.d.ts.map +1 -1
  5. package/dist/commonjs/__GENERATED_CODE/embedded_worker.js +1 -1
  6. package/dist/commonjs/core/{main/common → entry}/FreezeResolver.d.ts +3 -3
  7. package/dist/commonjs/core/entry/FreezeResolver.d.ts.map +1 -0
  8. package/dist/commonjs/core/{main/common → entry}/FreezeResolver.js +3 -3
  9. package/dist/{es2017/core/main/worker → commonjs/core/entry}/content_preparer.d.ts +22 -15
  10. package/dist/commonjs/core/entry/content_preparer.d.ts.map +1 -0
  11. package/dist/commonjs/core/{main/worker → entry}/content_preparer.js +62 -64
  12. package/dist/{es2017/core/main/common → commonjs/core/entry}/content_time_boundaries_observer.d.ts +5 -5
  13. package/dist/commonjs/core/entry/content_time_boundaries_observer.d.ts.map +1 -0
  14. package/dist/commonjs/core/{main/common → entry}/content_time_boundaries_observer.js +6 -6
  15. package/dist/commonjs/core/entry/core_entry.d.ts +36 -0
  16. package/dist/commonjs/core/entry/core_entry.d.ts.map +1 -0
  17. package/dist/commonjs/core/{main/worker/worker_main.js → entry/core_entry.js} +192 -153
  18. package/dist/commonjs/core/{main/worker/worker_text_displayer_interface.d.ts → entry/core_text_displayer_interface.d.ts} +11 -11
  19. package/dist/commonjs/core/entry/core_text_displayer_interface.d.ts.map +1 -0
  20. package/dist/commonjs/core/{main/worker/worker_text_displayer_interface.js → entry/core_text_displayer_interface.js} +22 -22
  21. package/dist/commonjs/core/{main/common → entry}/create_content_time_boundaries_observer.d.ts +6 -6
  22. package/dist/commonjs/core/entry/create_content_time_boundaries_observer.d.ts.map +1 -0
  23. package/dist/commonjs/core/{main/common → entry}/create_content_time_boundaries_observer.js +1 -1
  24. package/dist/commonjs/core/{main/common → entry}/get_buffered_data_per_media_buffer.d.ts +4 -4
  25. package/dist/commonjs/core/entry/get_buffered_data_per_media_buffer.d.ts.map +1 -0
  26. package/dist/commonjs/core/{main/common → entry}/get_buffered_data_per_media_buffer.js +1 -1
  27. package/dist/{es2017/core/main/common → commonjs/core/entry}/get_thumbnail_data.d.ts +3 -3
  28. package/dist/commonjs/core/entry/get_thumbnail_data.d.ts.map +1 -0
  29. package/dist/commonjs/core/{main/common → entry}/get_thumbnail_data.js +2 -2
  30. package/dist/commonjs/core/entry/index.d.ts +5 -0
  31. package/dist/commonjs/core/entry/index.d.ts.map +1 -0
  32. package/dist/commonjs/core/entry/index.js +4 -0
  33. package/dist/{es2017/core/main/common → commonjs/core/entry}/synchronize_sinks_on_observation.d.ts +2 -2
  34. package/dist/commonjs/core/entry/synchronize_sinks_on_observation.d.ts.map +1 -0
  35. package/dist/commonjs/core/{main/worker → entry}/track_choice_setter.d.ts +4 -4
  36. package/dist/commonjs/core/entry/track_choice_setter.d.ts.map +1 -0
  37. package/dist/commonjs/core/{main/worker → entry}/track_choice_setter.js +4 -4
  38. package/dist/commonjs/core/entry/utils.d.ts +3 -0
  39. package/dist/commonjs/core/entry/utils.d.ts.map +1 -0
  40. package/dist/commonjs/core/entry/utils.js +11 -0
  41. package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.d.ts.map +1 -1
  42. package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.js +17 -0
  43. package/dist/commonjs/core/types.d.ts +519 -1
  44. package/dist/commonjs/core/types.d.ts.map +1 -1
  45. package/dist/commonjs/core/types.js +1 -0
  46. package/dist/commonjs/experimental/features/local.d.ts.map +1 -1
  47. package/dist/commonjs/experimental/features/local.js +7 -1
  48. package/dist/commonjs/experimental/features/metaplaylist.d.ts.map +1 -1
  49. package/dist/commonjs/experimental/features/metaplaylist.js +7 -1
  50. package/dist/commonjs/experimental/features/multi_thread.d.ts.map +1 -1
  51. package/dist/commonjs/experimental/features/multi_thread.js +6 -2
  52. package/dist/commonjs/features/features_object.js +1 -1
  53. package/dist/commonjs/features/list/dash.d.ts.map +1 -1
  54. package/dist/commonjs/features/list/dash.js +7 -1
  55. package/dist/commonjs/features/list/dash_wasm.d.ts.map +1 -1
  56. package/dist/commonjs/features/list/dash_wasm.js +7 -1
  57. package/dist/commonjs/features/list/media_source_main.d.ts.map +1 -1
  58. package/dist/commonjs/features/list/media_source_main.js +7 -1
  59. package/dist/commonjs/features/list/smooth.d.ts.map +1 -1
  60. package/dist/commonjs/features/list/smooth.js +7 -1
  61. package/dist/commonjs/features/types.d.ts +20 -4
  62. package/dist/commonjs/features/types.d.ts.map +1 -1
  63. package/dist/commonjs/main_thread/api/public_api.d.ts.map +1 -1
  64. package/dist/commonjs/main_thread/api/public_api.js +39 -42
  65. package/dist/commonjs/main_thread/core_interface/base.d.ts +13 -0
  66. package/dist/commonjs/main_thread/core_interface/base.d.ts.map +1 -0
  67. package/dist/commonjs/main_thread/core_interface/base.js +32 -0
  68. package/dist/commonjs/main_thread/core_interface/monothread.d.ts +13 -0
  69. package/dist/commonjs/main_thread/core_interface/monothread.d.ts.map +1 -0
  70. package/dist/commonjs/main_thread/core_interface/monothread.js +56 -0
  71. package/dist/commonjs/main_thread/core_interface/multithread.d.ts +25 -0
  72. package/dist/commonjs/main_thread/core_interface/multithread.d.ts.map +1 -0
  73. package/dist/commonjs/main_thread/core_interface/multithread.js +67 -0
  74. package/dist/commonjs/main_thread/core_interface/types.d.ts +6 -0
  75. package/dist/commonjs/main_thread/core_interface/types.d.ts.map +1 -0
  76. package/dist/commonjs/main_thread/core_interface/types.js +2 -0
  77. package/dist/commonjs/main_thread/init/media_source_content_initializer.d.ts +166 -108
  78. package/dist/commonjs/main_thread/init/media_source_content_initializer.d.ts.map +1 -1
  79. package/dist/commonjs/main_thread/init/media_source_content_initializer.js +1492 -919
  80. package/dist/commonjs/main_thread/init/utils/create_core_playback_observer.d.ts.map +1 -1
  81. package/dist/commonjs/main_thread/init/utils/create_core_playback_observer.js +2 -1
  82. package/dist/commonjs/main_thread/init/utils/update_manifest_codec_support.d.ts +1 -1
  83. package/dist/commonjs/main_thread/init/utils/update_manifest_codec_support.d.ts.map +1 -1
  84. package/dist/commonjs/main_thread/types.d.ts +537 -0
  85. package/dist/commonjs/main_thread/types.d.ts.map +1 -1
  86. package/dist/commonjs/manifest/utils.d.ts.map +1 -1
  87. package/dist/commonjs/manifest/utils.js +18 -4
  88. package/dist/commonjs/mse/worker_media_source_interface.d.ts +2 -2
  89. package/dist/commonjs/mse/worker_media_source_interface.d.ts.map +1 -1
  90. package/dist/commonjs/mse/worker_media_source_interface.js +12 -12
  91. package/dist/commonjs/parsers/manifest/smooth/create_parser.d.ts +1 -1
  92. package/dist/commonjs/parsers/manifest/smooth/create_parser.d.ts.map +1 -1
  93. package/dist/commonjs/parsers/manifest/smooth/create_parser.js +31 -27
  94. package/dist/commonjs/parsers/manifest/smooth/parse_C_nodes.d.ts +3 -2
  95. package/dist/commonjs/parsers/manifest/smooth/parse_C_nodes.d.ts.map +1 -1
  96. package/dist/commonjs/parsers/manifest/smooth/parse_C_nodes.js +16 -7
  97. package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.d.ts +3 -2
  98. package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.d.ts.map +1 -1
  99. package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.js +37 -6
  100. package/dist/commonjs/parsers/manifest/smooth/utils/parseBoolean.d.ts +1 -1
  101. package/dist/commonjs/parsers/manifest/smooth/utils/parseBoolean.d.ts.map +1 -1
  102. package/dist/commonjs/parsers/manifest/smooth/utils/reduceChildren.d.ts +3 -2
  103. package/dist/commonjs/parsers/manifest/smooth/utils/reduceChildren.d.ts.map +1 -1
  104. package/dist/commonjs/parsers/manifest/smooth/utils/reduceChildren.js +28 -5
  105. package/dist/{es2017/playback_observer/worker_playback_observer.d.ts → commonjs/playback_observer/core_playback_observer.d.ts} +8 -8
  106. package/dist/commonjs/playback_observer/core_playback_observer.d.ts.map +1 -0
  107. package/dist/commonjs/playback_observer/{worker_playback_observer.js → core_playback_observer.js} +13 -13
  108. package/dist/commonjs/transports/smooth/pipelines.d.ts.map +1 -1
  109. package/dist/commonjs/transports/smooth/pipelines.js +25 -3
  110. package/dist/commonjs/worker_entry_point.js +62 -2
  111. package/dist/es2017/__GENERATED_CODE/embedded_worker.d.ts.map +1 -1
  112. package/dist/es2017/__GENERATED_CODE/embedded_worker.js +1 -1
  113. package/dist/es2017/core/{main/common → entry}/FreezeResolver.d.ts +3 -3
  114. package/dist/es2017/core/entry/FreezeResolver.d.ts.map +1 -0
  115. package/dist/es2017/core/{main/common → entry}/FreezeResolver.js +3 -3
  116. package/dist/{commonjs/core/main/worker → es2017/core/entry}/content_preparer.d.ts +22 -15
  117. package/dist/es2017/core/entry/content_preparer.d.ts.map +1 -0
  118. package/dist/es2017/core/{main/worker → entry}/content_preparer.js +53 -55
  119. package/dist/{commonjs/core/main/common → es2017/core/entry}/content_time_boundaries_observer.d.ts +5 -5
  120. package/dist/es2017/core/entry/content_time_boundaries_observer.d.ts.map +1 -0
  121. package/dist/es2017/core/{main/common → entry}/content_time_boundaries_observer.js +6 -6
  122. package/dist/es2017/core/entry/core_entry.d.ts +36 -0
  123. package/dist/es2017/core/entry/core_entry.d.ts.map +1 -0
  124. package/dist/es2017/core/{main/worker/worker_main.js → entry/core_entry.js} +153 -114
  125. package/dist/es2017/core/{main/worker/worker_text_displayer_interface.d.ts → entry/core_text_displayer_interface.d.ts} +11 -11
  126. package/dist/es2017/core/entry/core_text_displayer_interface.d.ts.map +1 -0
  127. package/dist/es2017/core/{main/worker/worker_text_displayer_interface.js → entry/core_text_displayer_interface.js} +10 -10
  128. package/dist/es2017/core/{main/common → entry}/create_content_time_boundaries_observer.d.ts +6 -6
  129. package/dist/es2017/core/entry/create_content_time_boundaries_observer.d.ts.map +1 -0
  130. package/dist/es2017/core/{main/common → entry}/create_content_time_boundaries_observer.js +1 -1
  131. package/dist/es2017/core/{main/common → entry}/get_buffered_data_per_media_buffer.d.ts +4 -4
  132. package/dist/es2017/core/entry/get_buffered_data_per_media_buffer.d.ts.map +1 -0
  133. package/dist/es2017/core/{main/common → entry}/get_buffered_data_per_media_buffer.js +1 -1
  134. package/dist/{commonjs/core/main/common → es2017/core/entry}/get_thumbnail_data.d.ts +3 -3
  135. package/dist/es2017/core/entry/get_thumbnail_data.d.ts.map +1 -0
  136. package/dist/es2017/core/{main/common → entry}/get_thumbnail_data.js +2 -2
  137. package/dist/es2017/core/entry/index.d.ts +5 -0
  138. package/dist/es2017/core/entry/index.d.ts.map +1 -0
  139. package/dist/es2017/core/entry/index.js +2 -0
  140. package/dist/{commonjs/core/main/common → es2017/core/entry}/synchronize_sinks_on_observation.d.ts +2 -2
  141. package/dist/es2017/core/entry/synchronize_sinks_on_observation.d.ts.map +1 -0
  142. package/dist/es2017/core/{main/worker → entry}/track_choice_setter.d.ts +4 -4
  143. package/dist/es2017/core/entry/track_choice_setter.d.ts.map +1 -0
  144. package/dist/es2017/core/{main/worker → entry}/track_choice_setter.js +4 -4
  145. package/dist/es2017/core/entry/utils.d.ts +3 -0
  146. package/dist/es2017/core/entry/utils.d.ts.map +1 -0
  147. package/dist/es2017/core/entry/utils.js +8 -0
  148. package/dist/es2017/core/stream/orchestrator/stream_orchestrator.d.ts.map +1 -1
  149. package/dist/es2017/core/stream/orchestrator/stream_orchestrator.js +18 -1
  150. package/dist/es2017/core/types.d.ts +519 -1
  151. package/dist/es2017/core/types.d.ts.map +1 -1
  152. package/dist/es2017/core/types.js +1 -0
  153. package/dist/es2017/experimental/features/local.d.ts.map +1 -1
  154. package/dist/es2017/experimental/features/local.js +7 -1
  155. package/dist/es2017/experimental/features/metaplaylist.d.ts.map +1 -1
  156. package/dist/es2017/experimental/features/metaplaylist.js +7 -1
  157. package/dist/es2017/experimental/features/multi_thread.d.ts.map +1 -1
  158. package/dist/es2017/experimental/features/multi_thread.js +6 -2
  159. package/dist/es2017/features/features_object.js +1 -1
  160. package/dist/es2017/features/list/dash.d.ts.map +1 -1
  161. package/dist/es2017/features/list/dash.js +7 -1
  162. package/dist/es2017/features/list/dash_wasm.d.ts.map +1 -1
  163. package/dist/es2017/features/list/dash_wasm.js +7 -1
  164. package/dist/es2017/features/list/media_source_main.d.ts.map +1 -1
  165. package/dist/es2017/features/list/media_source_main.js +7 -1
  166. package/dist/es2017/features/list/smooth.d.ts.map +1 -1
  167. package/dist/es2017/features/list/smooth.js +7 -1
  168. package/dist/es2017/features/types.d.ts +20 -4
  169. package/dist/es2017/features/types.d.ts.map +1 -1
  170. package/dist/es2017/main_thread/api/public_api.d.ts.map +1 -1
  171. package/dist/es2017/main_thread/api/public_api.js +40 -43
  172. package/dist/es2017/main_thread/core_interface/base.d.ts +13 -0
  173. package/dist/es2017/main_thread/core_interface/base.d.ts.map +1 -0
  174. package/dist/es2017/main_thread/core_interface/base.js +28 -0
  175. package/dist/es2017/main_thread/core_interface/monothread.d.ts +13 -0
  176. package/dist/es2017/main_thread/core_interface/monothread.d.ts.map +1 -0
  177. package/dist/es2017/main_thread/core_interface/monothread.js +32 -0
  178. package/dist/es2017/main_thread/core_interface/multithread.d.ts +25 -0
  179. package/dist/es2017/main_thread/core_interface/multithread.d.ts.map +1 -0
  180. package/dist/es2017/main_thread/core_interface/multithread.js +45 -0
  181. package/dist/es2017/main_thread/core_interface/types.d.ts +6 -0
  182. package/dist/es2017/main_thread/core_interface/types.d.ts.map +1 -0
  183. package/dist/es2017/main_thread/core_interface/types.js +1 -0
  184. package/dist/es2017/main_thread/init/media_source_content_initializer.d.ts +166 -108
  185. package/dist/es2017/main_thread/init/media_source_content_initializer.d.ts.map +1 -1
  186. package/dist/es2017/main_thread/init/media_source_content_initializer.js +1405 -760
  187. package/dist/es2017/main_thread/init/utils/create_core_playback_observer.d.ts.map +1 -1
  188. package/dist/es2017/main_thread/init/utils/create_core_playback_observer.js +2 -1
  189. package/dist/es2017/main_thread/init/utils/update_manifest_codec_support.d.ts +1 -1
  190. package/dist/es2017/main_thread/init/utils/update_manifest_codec_support.d.ts.map +1 -1
  191. package/dist/es2017/main_thread/types.d.ts +537 -0
  192. package/dist/es2017/main_thread/types.d.ts.map +1 -1
  193. package/dist/es2017/manifest/utils.d.ts.map +1 -1
  194. package/dist/es2017/manifest/utils.js +16 -4
  195. package/dist/es2017/mse/worker_media_source_interface.d.ts +2 -2
  196. package/dist/es2017/mse/worker_media_source_interface.d.ts.map +1 -1
  197. package/dist/es2017/mse/worker_media_source_interface.js +12 -12
  198. package/dist/es2017/parsers/manifest/smooth/create_parser.d.ts +1 -1
  199. package/dist/es2017/parsers/manifest/smooth/create_parser.d.ts.map +1 -1
  200. package/dist/es2017/parsers/manifest/smooth/create_parser.js +31 -27
  201. package/dist/es2017/parsers/manifest/smooth/parse_C_nodes.d.ts +3 -2
  202. package/dist/es2017/parsers/manifest/smooth/parse_C_nodes.d.ts.map +1 -1
  203. package/dist/es2017/parsers/manifest/smooth/parse_C_nodes.js +16 -7
  204. package/dist/es2017/parsers/manifest/smooth/parse_protection_node.d.ts +3 -2
  205. package/dist/es2017/parsers/manifest/smooth/parse_protection_node.d.ts.map +1 -1
  206. package/dist/es2017/parsers/manifest/smooth/parse_protection_node.js +15 -6
  207. package/dist/es2017/parsers/manifest/smooth/utils/parseBoolean.d.ts +1 -1
  208. package/dist/es2017/parsers/manifest/smooth/utils/parseBoolean.d.ts.map +1 -1
  209. package/dist/es2017/parsers/manifest/smooth/utils/reduceChildren.d.ts +3 -2
  210. package/dist/es2017/parsers/manifest/smooth/utils/reduceChildren.d.ts.map +1 -1
  211. package/dist/es2017/parsers/manifest/smooth/utils/reduceChildren.js +6 -5
  212. package/dist/{commonjs/playback_observer/worker_playback_observer.d.ts → es2017/playback_observer/core_playback_observer.d.ts} +8 -8
  213. package/dist/es2017/playback_observer/core_playback_observer.d.ts.map +1 -0
  214. package/dist/es2017/playback_observer/{worker_playback_observer.js → core_playback_observer.js} +2 -2
  215. package/dist/es2017/transports/smooth/pipelines.d.ts.map +1 -1
  216. package/dist/es2017/transports/smooth/pipelines.js +25 -3
  217. package/dist/es2017/worker_entry_point.js +62 -2
  218. package/dist/rx-player.js +21882 -19021
  219. package/dist/rx-player.min.js +20 -20
  220. package/dist/worker.js +8 -8
  221. package/package.json +1 -1
  222. package/src/README.md +88 -198
  223. package/src/__GENERATED_CODE/embedded_worker.ts +1 -1
  224. package/src/core/{main/common → entry}/FreezeResolver.ts +7 -7
  225. package/src/core/{main → entry}/README.md +1 -1
  226. package/src/core/{main/worker → entry}/content_preparer.ts +77 -76
  227. package/src/core/{main/common → entry}/content_time_boundaries_observer.ts +10 -10
  228. package/src/core/{main/worker/worker_main.ts → entry/core_entry.ts} +223 -149
  229. package/src/core/{main/worker/worker_text_displayer_interface.ts → entry/core_text_displayer_interface.ts} +26 -26
  230. package/src/core/{main/common → entry}/create_content_time_boundaries_observer.ts +7 -7
  231. package/src/core/{main/common → entry}/get_buffered_data_per_media_buffer.ts +6 -6
  232. package/src/core/{main/common → entry}/get_thumbnail_data.ts +5 -5
  233. package/src/core/entry/index.ts +4 -0
  234. package/src/core/{main/common → entry}/synchronize_sinks_on_observation.ts +2 -2
  235. package/src/core/{main/worker → entry}/track_choice_setter.ts +7 -7
  236. package/src/core/entry/utils.ts +11 -0
  237. package/src/core/stream/orchestrator/stream_orchestrator.ts +26 -1
  238. package/src/core/types.ts +631 -3
  239. package/src/experimental/features/__tests__/local.test.ts +11 -2
  240. package/src/experimental/features/__tests__/metaplaylist.test.ts +11 -2
  241. package/src/experimental/features/__tests__/multi_thread.test.ts +8 -3
  242. package/src/experimental/features/local.ts +7 -1
  243. package/src/experimental/features/metaplaylist.ts +7 -1
  244. package/src/experimental/features/multi_thread.ts +6 -2
  245. package/src/features/features_object.ts +1 -1
  246. package/src/features/list/__tests__/dash.test.ts +12 -3
  247. package/src/features/list/__tests__/smooth.test.ts +11 -2
  248. package/src/features/list/dash.ts +7 -1
  249. package/src/features/list/dash_wasm.ts +7 -1
  250. package/src/features/list/media_source_main.ts +7 -1
  251. package/src/features/list/smooth.ts +7 -1
  252. package/src/features/types.ts +23 -4
  253. package/src/main_thread/README.md +8 -0
  254. package/src/main_thread/api/public_api.ts +46 -48
  255. package/src/main_thread/core_interface/README.md +22 -0
  256. package/src/main_thread/core_interface/base.ts +36 -0
  257. package/src/main_thread/core_interface/monothread.ts +46 -0
  258. package/src/main_thread/core_interface/multithread.ts +49 -0
  259. package/src/main_thread/core_interface/types.ts +5 -0
  260. package/src/main_thread/init/media_source_content_initializer.ts +2034 -1152
  261. package/src/main_thread/init/utils/create_core_playback_observer.ts +2 -1
  262. package/src/main_thread/init/utils/update_manifest_codec_support.ts +1 -1
  263. package/src/main_thread/types.ts +610 -0
  264. package/src/manifest/utils.ts +20 -4
  265. package/src/mse/worker_media_source_interface.ts +35 -35
  266. package/src/parsers/manifest/smooth/create_parser.ts +40 -34
  267. package/src/parsers/manifest/smooth/parse_C_nodes.ts +19 -8
  268. package/src/parsers/manifest/smooth/parse_protection_node.ts +17 -9
  269. package/src/parsers/manifest/smooth/utils/parseBoolean.ts +1 -1
  270. package/src/parsers/manifest/smooth/utils/reduceChildren.ts +10 -7
  271. package/src/playback_observer/{worker_playback_observer.ts → core_playback_observer.ts} +13 -13
  272. package/src/transports/smooth/pipelines.ts +25 -5
  273. package/src/worker_entry_point.ts +71 -2
  274. package/dist/commonjs/core/main/common/FreezeResolver.d.ts.map +0 -1
  275. package/dist/commonjs/core/main/common/content_time_boundaries_observer.d.ts.map +0 -1
  276. package/dist/commonjs/core/main/common/create_content_time_boundaries_observer.d.ts.map +0 -1
  277. package/dist/commonjs/core/main/common/get_buffered_data_per_media_buffer.d.ts.map +0 -1
  278. package/dist/commonjs/core/main/common/get_thumbnail_data.d.ts.map +0 -1
  279. package/dist/commonjs/core/main/common/synchronize_sinks_on_observation.d.ts.map +0 -1
  280. package/dist/commonjs/core/main/worker/content_preparer.d.ts.map +0 -1
  281. package/dist/commonjs/core/main/worker/globals.d.ts +0 -14
  282. package/dist/commonjs/core/main/worker/globals.d.ts.map +0 -1
  283. package/dist/commonjs/core/main/worker/globals.js +0 -26
  284. package/dist/commonjs/core/main/worker/index.d.ts +0 -3
  285. package/dist/commonjs/core/main/worker/index.d.ts.map +0 -1
  286. package/dist/commonjs/core/main/worker/index.js +0 -4
  287. package/dist/commonjs/core/main/worker/send_message.d.ts +0 -4
  288. package/dist/commonjs/core/main/worker/send_message.d.ts.map +0 -1
  289. package/dist/commonjs/core/main/worker/send_message.js +0 -23
  290. package/dist/commonjs/core/main/worker/track_choice_setter.d.ts.map +0 -1
  291. package/dist/commonjs/core/main/worker/worker_main.d.ts +0 -2
  292. package/dist/commonjs/core/main/worker/worker_main.d.ts.map +0 -1
  293. package/dist/commonjs/core/main/worker/worker_text_displayer_interface.d.ts.map +0 -1
  294. package/dist/commonjs/main_thread/init/multi_thread_content_initializer.d.ts +0 -308
  295. package/dist/commonjs/main_thread/init/multi_thread_content_initializer.d.ts.map +0 -1
  296. package/dist/commonjs/main_thread/init/multi_thread_content_initializer.js +0 -1713
  297. package/dist/commonjs/main_thread/init/send_message.d.ts +0 -3
  298. package/dist/commonjs/main_thread/init/send_message.d.ts.map +0 -1
  299. package/dist/commonjs/main_thread/init/send_message.js +0 -13
  300. package/dist/commonjs/multithread_types.d.ts +0 -915
  301. package/dist/commonjs/multithread_types.d.ts.map +0 -1
  302. package/dist/commonjs/multithread_types.js +0 -7
  303. package/dist/commonjs/playback_observer/worker_playback_observer.d.ts.map +0 -1
  304. package/dist/es2017/core/main/common/FreezeResolver.d.ts.map +0 -1
  305. package/dist/es2017/core/main/common/content_time_boundaries_observer.d.ts.map +0 -1
  306. package/dist/es2017/core/main/common/create_content_time_boundaries_observer.d.ts.map +0 -1
  307. package/dist/es2017/core/main/common/get_buffered_data_per_media_buffer.d.ts.map +0 -1
  308. package/dist/es2017/core/main/common/get_thumbnail_data.d.ts.map +0 -1
  309. package/dist/es2017/core/main/common/synchronize_sinks_on_observation.d.ts.map +0 -1
  310. package/dist/es2017/core/main/worker/content_preparer.d.ts.map +0 -1
  311. package/dist/es2017/core/main/worker/globals.d.ts +0 -14
  312. package/dist/es2017/core/main/worker/globals.d.ts.map +0 -1
  313. package/dist/es2017/core/main/worker/globals.js +0 -18
  314. package/dist/es2017/core/main/worker/index.d.ts +0 -3
  315. package/dist/es2017/core/main/worker/index.d.ts.map +0 -1
  316. package/dist/es2017/core/main/worker/index.js +0 -2
  317. package/dist/es2017/core/main/worker/send_message.d.ts +0 -4
  318. package/dist/es2017/core/main/worker/send_message.d.ts.map +0 -1
  319. package/dist/es2017/core/main/worker/send_message.js +0 -19
  320. package/dist/es2017/core/main/worker/track_choice_setter.d.ts.map +0 -1
  321. package/dist/es2017/core/main/worker/worker_main.d.ts +0 -2
  322. package/dist/es2017/core/main/worker/worker_main.d.ts.map +0 -1
  323. package/dist/es2017/core/main/worker/worker_text_displayer_interface.d.ts.map +0 -1
  324. package/dist/es2017/main_thread/init/multi_thread_content_initializer.d.ts +0 -308
  325. package/dist/es2017/main_thread/init/multi_thread_content_initializer.d.ts.map +0 -1
  326. package/dist/es2017/main_thread/init/multi_thread_content_initializer.js +0 -1559
  327. package/dist/es2017/main_thread/init/send_message.d.ts +0 -3
  328. package/dist/es2017/main_thread/init/send_message.d.ts.map +0 -1
  329. package/dist/es2017/main_thread/init/send_message.js +0 -10
  330. package/dist/es2017/multithread_types.d.ts +0 -915
  331. package/dist/es2017/multithread_types.d.ts.map +0 -1
  332. package/dist/es2017/multithread_types.js +0 -6
  333. package/dist/es2017/playback_observer/worker_playback_observer.d.ts.map +0 -1
  334. package/src/core/main/worker/globals.ts +0 -38
  335. package/src/core/main/worker/index.ts +0 -2
  336. package/src/core/main/worker/send_message.ts +0 -28
  337. package/src/main_thread/init/multi_thread_content_initializer.ts +0 -2330
  338. package/src/main_thread/init/send_message.ts +0 -15
  339. package/src/multithread_types.ts +0 -1095
  340. /package/dist/commonjs/core/{main/common → entry}/synchronize_sinks_on_observation.js +0 -0
  341. /package/dist/es2017/core/{main/common → entry}/synchronize_sinks_on_observation.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"create_core_playback_observer.d.ts","sourceRoot":"","sources":["../../../../../src/main_thread/init/utils/create_core_playback_observer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EACV,oBAAoB,EACpB,yBAAyB,EACzB,6BAA6B,EAC7B,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EAChB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,6EAA6E;AAC7E,MAAM,WAAW,8BAA8B;IAC7C,qFAAqF;IACrF,QAAQ,EAAE,OAAO,CAAC;IAClB,2CAA2C;IAC3C,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,oEAAoE;IACpE,oBAAoB,EAAE,wBAAwB,CAAC,OAAO,CAAC,CAAC;IACxD,4CAA4C;IAC5C,KAAK,EAAE,wBAAwB,CAAC,MAAM,CAAC,CAAC;IACxC;;;;OAIG;IACH,aAAa,EAAE,cAAc,GAAG,IAAI,CAAC;IACrC,oCAAoC;IACpC,WAAW,EAAE,qBAAqB,GAAG,IAAI,CAAC;CAC3C;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,MAAM,EAAE,0BAA0B,CAAC;IACnC;;;OAGG;IACH,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,mDAAmD;IACnD,QAAQ,EAAE,MAAM,CAAC;IACjB,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,eAAe,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC;IAC9C,WAAW,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACvC,QAAQ,EAAE,eAAe,GAAG,IAAI,CAAC;IACjC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;;;;;;;OAQG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB,kEAAkE;IAClE,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAChD,mBAAmB,EAAE,6BAA6B,EAClD,EACE,QAAQ,EACR,oBAAoB,EACpB,QAAQ,EACR,WAAW,EACX,KAAK,EACL,aAAa,GACd,EAAE,8BAA8B,EACjC,cAAc,EAAE,kBAAkB,GACjC,yBAAyB,CAAC,wBAAwB,CAAC,CAgErD;AAED,wBAAgB,mCAAmC,CACjD,WAAW,EAAE,oBAAoB,EACjC,QAAQ,EAAE,iBAAiB,GAC1B,IAAI,CAyBN;AAED,wBAAgB,gBAAgB,CAC9B,oBAAoB,EAAE,wBAAwB,CAAC,OAAO,CAAC,EACvD,QAAQ,EAAE,OAAO,GAChB,OAAO,GAAG,SAAS,CAErB"}
1
+ {"version":3,"file":"create_core_playback_observer.d.ts","sourceRoot":"","sources":["../../../../../src/main_thread/init/utils/create_core_playback_observer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,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MAAM,CAAC;IACxB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC;IAC9C,WAAW,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACvC,QAAQ,EAAE,eAAe,GAAG,IAAI,CAAC;IACjC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;;;;;;;OAQG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB,kEAAkE;IAClE,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAChD,mBAAmB,EAAE,6BAA6B,EAClD,EACE,QAAQ,EACR,oBAAoB,EACpB,QAAQ,EACR,WAAW,EACX,KAAK,EACL,aAAa,GACd,EAAE,8BAA8B,EACjC,cAAc,EAAE,kBAAkB,GACjC,yBAAyB,CAAC,wBAAwB,CAAC,CAgErD;AAED,wBAAgB,mCAAmC,CACjD,WAAW,EAAE,oBAAoB,EACjC,QAAQ,EAAE,iBAAiB,GAC1B,IAAI,CAyBN;AAED,wBAAgB,gBAAgB,CAC9B,oBAAoB,EAAE,wBAAwB,CAAC,OAAO,CAAC,EACvD,QAAQ,EAAE,OAAO,GAChB,OAAO,GAAG,SAAS,CAErB"}
@@ -18,7 +18,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.default = createCorePlaybackObserver;
19
19
  exports.updateWantedPositionIfAfterManifest = updateWantedPositionIfAfterManifest;
20
20
  exports.getPendingPaused = getPendingPaused;
21
- var get_buffered_data_per_media_buffer_1 = require("../../../core/main/common/get_buffered_data_per_media_buffer");
21
+ // TODO: move that file somewhere else
22
+ var get_buffered_data_per_media_buffer_1 = require("../../../core/entry/get_buffered_data_per_media_buffer");
22
23
  var manifest_1 = require("../../../manifest");
23
24
  var reference_1 = require("../../../utils/reference");
24
25
  var task_canceller_1 = require("../../../utils/task_canceller");
@@ -1,8 +1,8 @@
1
1
  import type { IMediaElement } from "../../../compat/browser_compatibility_types";
2
2
  import type { IManifestMetadata } from "../../../manifest";
3
3
  import type Manifest from "../../../manifest/classes";
4
- import type { ICodecSupportInfo } from "../../../multithread_types";
5
4
  import type ContentDecryptor from "../../decrypt";
5
+ import type { ICodecSupportInfo } from "../../types";
6
6
  /**
7
7
  * Returns a list of all codecs that the support is not known yet on the given
8
8
  * Manifest.
@@ -1 +1 @@
1
- {"version":3,"file":"update_manifest_codec_support.d.ts","sourceRoot":"","sources":["../../../../../src/main_thread/init/utils/update_manifest_codec_support.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAEjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,QAAQ,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,OAAO,KAAK,gBAAgB,MAAM,eAAe,CAAC;AAGlD;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,QAAQ,GACjB,KAAK,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AA2B9C;;;;;;;;;;;;GAYG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,iBAAiB,EAC3B,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,EACzC,YAAY,EAAE,aAAa,EAC3B,wBAAwB,EAAE,OAAO,GAChC,iBAAiB,EAAE,CAyHrB"}
1
+ {"version":3,"file":"update_manifest_codec_support.d.ts","sourceRoot":"","sources":["../../../../../src/main_thread/init/utils/update_manifest_codec_support.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAEjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,QAAQ,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,gBAAgB,MAAM,eAAe,CAAC;AAElD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,QAAQ,GACjB,KAAK,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AA2B9C;;;;;;;;;;;;GAYG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,iBAAiB,EAC3B,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,EACzC,YAAY,EAAE,aAAa,EAC3B,wBAAwB,EAAE,OAAO,GAChC,iBAAiB,EAAE,CAyHrB"}
@@ -1,6 +1,543 @@
1
+ import type { IResolutionInfo, IManifestFetcherSettings, ISegmentQueueCreatorBackoffOptions, IPausedPlaybackObservation, IRepresentationsChoice, ITrackSwitchingMode } from "../core/types";
2
+ import type { IDefaultConfig } from "../default_config";
3
+ import type { ISerializedSourceBufferError } from "../errors/source_buffer_error";
4
+ import type { SourceBufferType } from "../mse";
5
+ import type { IFreezingStatus, IRebufferingStatus } from "../playback_observer";
6
+ import type { ICmcdOptions, IRepresentationFilter, ITrackType } from "../public_types";
7
+ import type { ITransportOptions } from "../transports";
8
+ import type { ILogFormat, ILoggerLevel } from "../utils/logger";
9
+ import type { IRange } from "../utils/ranges";
1
10
  import type RxPlayer from "./api";
2
11
  import type { IContentProtection, IProcessedProtectionData } from "./decrypt";
3
12
  import type { ITextDisplayer, ITextDisplayerData } from "./text_displayer";
4
13
  export type IRxPlayer = RxPlayer;
5
14
  export type { IContentProtection, IProcessedProtectionData, ITextDisplayer, ITextDisplayerData, };
15
+ /**
16
+ * First message sent by the main thread to the Core.
17
+ * The Core should only receive one `IInitMessage` at most and it should be
18
+ * always the first message received.
19
+ *
20
+ * Allows for Core initialization.
21
+ */
22
+ export interface IInitMessage {
23
+ type: MainThreadMessageType.Init;
24
+ value: {
25
+ /** Link to the DASH_WASM's feature WebAssembly file to parse DASH MPDs. */
26
+ dashWasmUrl: string | undefined;
27
+ /**
28
+ * If `true` the final element on the current page displaying the content
29
+ * can display video content.
30
+ *
31
+ * If `false`, it cannot, but it can be assumed to be able to play audio
32
+ * content.
33
+ * An example where it would be set to `false` is for `HTMLAudioElement`
34
+ * elements (`<audio>` tags).
35
+ */
36
+ hasVideo: boolean;
37
+ /** Initial logging level that should be set. */
38
+ logLevel: ILoggerLevel;
39
+ /** Intitial logger's log format that should be set. */
40
+ logFormat: ILogFormat;
41
+ /**
42
+ * If `true`, logs should be sent back to the main thread, through a
43
+ * `ILogMessageCoreMessage` message.
44
+ */
45
+ sendBackLogs: boolean;
46
+ /**
47
+ * Value of `Date.now()` at the time the `timestamp` property was generated.
48
+ *
49
+ * This is mostly useful for timestamp synchronization: by calling both
50
+ * `performance.now` (the same call on the main thread made to calculate
51
+ * `timestamp` - but which is not synchronized initially to the Core's)
52
+ * and `Date.now()` both on the main thread and on the Core,
53
+ * calculating the difference between the two and comparing both the main
54
+ * thread's difference and the Core's difference, you're able to
55
+ * produce a relatively-synchronized timestamp between the two if they run
56
+ * in different environment, e.g. a WebWorker.
57
+ */
58
+ date: number;
59
+ /**
60
+ * Value returned by `performance.now()` at the same time `date` was
61
+ * calculated.
62
+ *
63
+ * Allows for timestamp synchronization.
64
+ * @see date property.
65
+ */
66
+ timestamp: number;
67
+ };
68
+ }
69
+ /** Options needed when initializing a new content. */
70
+ export interface IContentInitializationData {
71
+ /**
72
+ * Identifier uniquely identifying a specific content.
73
+ *
74
+ * Protects against all kind of race conditions or asynchronous issues.
75
+ */
76
+ contentId: string;
77
+ /**
78
+ * When set to an object, enable "Common Media Client Data", or "CMCD".
79
+ */
80
+ cmcd?: ICmcdOptions | undefined;
81
+ /**
82
+ * If `true`, the RxPlayer can enable its "Representation avoidance"
83
+ * mechanism, where it avoid loading Representation that it suspect
84
+ * have issues being decoded on the current device.
85
+ */
86
+ enableRepresentationAvoidance: boolean;
87
+ /**
88
+ * URL at which the content's Manifest is accessible.
89
+ * `undefined` if unknown.
90
+ */
91
+ url?: string | undefined;
92
+ /** If `true`, text buffer (e.g. for subtitles) is enabled. */
93
+ hasText: boolean;
94
+ /**
95
+ * The type of "transport" wanted, e.g. "dash" or "smooth".
96
+ */
97
+ transport: string;
98
+ /** Options relative to the streaming protocol. */
99
+ transportOptions: Omit<ITransportOptions, "representationFilter"> & {
100
+ representationFilter?: IRepresentationFilter | string | undefined;
101
+ };
102
+ /** Initial video bitrate on which the adaptive logic will base itself. */
103
+ initialVideoBitrate?: number | undefined;
104
+ /** Initial audio bitrate on which the adaptive logic will base itself. */
105
+ initialAudioBitrate?: number | undefined;
106
+ /**
107
+ * Options relative to the fetching and refreshing of the Manifest.
108
+ */
109
+ manifestRetryOptions: Omit<IManifestFetcherSettings, "cmcdDataBuilder">;
110
+ /** Options relative to the fetching of media segments. */
111
+ segmentRetryOptions: ISegmentQueueCreatorBackoffOptions;
112
+ /**
113
+ * If `true`, MSE API should be used in the core part of the RxPlayer when
114
+ * relying on a WebWorker.
115
+ * If `false`, they should be relied on on main thread.
116
+ *
117
+ * This might depend on both browser capabilities and preferences. It is
118
+ * assumed that the caller perform all those checks, the core won't check
119
+ * again the validity of this value.
120
+ */
121
+ useMseInWorker: boolean;
122
+ }
123
+ export interface ILogLevelUpdateMessage {
124
+ type: MainThreadMessageType.LogLevelUpdate;
125
+ value: {
126
+ /** The new logger level that should be set. */
127
+ logLevel: ILoggerLevel;
128
+ /** Intitial logger's log format that should be set. */
129
+ logFormat: ILogFormat;
130
+ /**
131
+ * If `true`, logs should be sent back to the main thread, through a
132
+ * `ILogMessageCoreMessage` message.
133
+ */
134
+ sendBackLogs: boolean;
135
+ };
136
+ }
137
+ /** Message sent by the main thread to update the Worker's global config. */
138
+ export interface IConfigUpdateMessage {
139
+ type: MainThreadMessageType.ConfigUpdate;
140
+ value: Partial<IDefaultConfig>;
141
+ }
142
+ /**
143
+ * Message sent by the main thread when a new content should be "prepared".
144
+ *
145
+ * You can begin performing operarions which do not interrupt the previous
146
+ * content, like fetching its Manifest.
147
+ *
148
+ * Note that on the receivings-side, you only need to prepare one content at
149
+ * most. Meaning that if multiple `IPrepareContentMessage` arrive in a row, you
150
+ * can stop the preparation of previous contents.
151
+ */
152
+ export interface IPrepareContentMessage {
153
+ type: MainThreadMessageType.PrepareContent;
154
+ value: IContentInitializationData;
155
+ }
156
+ /**
157
+ * Message sent by the main thread to stop playback of the last prepared content
158
+ * (through a `IPrepareContentMessage`) - if it was playing - and dispose all
159
+ * associated resources.
160
+ */
161
+ export interface IStopContentMessage {
162
+ type: MainThreadMessageType.StopContent;
163
+ /**
164
+ * Same `contentId` than for the corresponding `IPrepareContentMessage` message.
165
+ *
166
+ * Allows to ensure no race condition lead to actually stopping another content
167
+ * than the one meant by the main thread.
168
+ */
169
+ contentId: string;
170
+ value: null;
171
+ }
172
+ /**
173
+ * Message sent by the main thread to start playback of the last prepared content
174
+ * (through a `IPrepareContentMessage`).
175
+ */
176
+ export interface IStartPreparedContentMessage {
177
+ type: MainThreadMessageType.StartPreparedContent;
178
+ /**
179
+ * Same `contentId` than for the corresponding `IPrepareContentMessage` message.
180
+ *
181
+ * Allows to ensure no race condition lead to starting another content than
182
+ * the one meant by the main thread.
183
+ */
184
+ contentId: string;
185
+ value: IStartPreparedContentMessageValue;
186
+ }
187
+ /** Options needed when starting a new content. */
188
+ export interface IStartPreparedContentMessageValue {
189
+ /** The start time at which we should play, in seconds. */
190
+ initialTime: number;
191
+ /** The current playback observation. */
192
+ initialObservation: ISerializedPlaybackObservation;
193
+ /**
194
+ * Hex-encoded string identifying the key system used.
195
+ * May be cross-referenced with the content's metadata when performing
196
+ * optimizations.
197
+ */
198
+ drmSystemId: string | undefined;
199
+ /**
200
+ * Enable/Disable fastSwitching: allow to replace lower-quality segments by
201
+ * higher-quality ones to have a faster transition.
202
+ */
203
+ enableFastSwitching: boolean;
204
+ /** Behavior when a new video and/or audio codec is encountered. */
205
+ onCodecSwitch: "continue" | "reload";
206
+ }
207
+ /**
208
+ * Message sent by the main thread when it has updated its list of supported
209
+ * codecs and has reasons to think that the Core is not aware of it
210
+ * (e.g. their support was not set in a Manifest).
211
+ */
212
+ export interface ICodecSupportUpdateMessage {
213
+ type: MainThreadMessageType.CodecSupportUpdate;
214
+ value: ICodecSupportInfo[];
215
+ }
216
+ export interface ICodecSupportInfo {
217
+ mimeType: string;
218
+ codec: string;
219
+ supported?: boolean | undefined;
220
+ supportedIfEncrypted?: boolean | undefined;
221
+ }
222
+ /**
223
+ * Message sent by the main thread to the Core regularly after an
224
+ * `IPrepareContentMessage` to provide various media-related metadata
225
+ * only obtainable on the main thread.
226
+ *
227
+ * Those messages are sent until the `IStopContentMessage` for that same
228
+ * `contentId`.
229
+ */
230
+ export interface IPlaybackObservationMessage {
231
+ type: MainThreadMessageType.PlaybackObservation;
232
+ /**
233
+ * Same `contentId` than for the corresponding `IPrepareContentMessage` message.
234
+ * Allows to prevent race conditions.
235
+ */
236
+ contentId: string;
237
+ /** The media-related metadata that has just been observed now. */
238
+ value: ISerializedPlaybackObservation;
239
+ }
240
+ /**
241
+ * Message sent by the main thread when at least one of the `Representation` of
242
+ * the current content just had a change of decipherability status.
243
+ *
244
+ * That is if one of the Representation either:
245
+ * - became undecipherable
246
+ * - became decipherable
247
+ * - had its decipherability status transition from being known to unknown
248
+ */
249
+ export interface IDecipherabilityStatusChangedMessage {
250
+ type: MainThreadMessageType.DecipherabilityStatusUpdate;
251
+ /**
252
+ * Same `contentId` than for the corresponding `IPrepareContentMessage` message.
253
+ * Allows to prevent race conditions.
254
+ */
255
+ contentId: string;
256
+ /** List of the `Representation` which had their decipherability status updated. */
257
+ value: IDecipherabilityStatusChangedPayload[];
258
+ }
259
+ /** Object describing the new decipherability status of a `Representation`. */
260
+ export interface IDecipherabilityStatusChangedPayload {
261
+ /** `uniqueId` for the concerned `Representation`. */
262
+ representationUniqueId: string;
263
+ /**
264
+ * If set to `true`, the `Representation` became decipherable.
265
+ *
266
+ * If set to `false`, the `Representation` became undecipherable.
267
+ *
268
+ * If set to `undefined`, the `Representation`'s decipherability status became
269
+ * unknown.
270
+ */
271
+ decipherable: boolean | undefined;
272
+ }
273
+ /** Message allowing to update the URL of the content being played. */
274
+ export interface IUpdateContentUrlsMessage {
275
+ type: MainThreadMessageType.ContentUrlsUpdate;
276
+ /**
277
+ * Same `contentId` than for the corresponding `IPrepareContentMessage` message.
278
+ * Allows to prevent race conditions.
279
+ */
280
+ contentId: string;
281
+ /** Information on the new URL to set. */
282
+ value: IUpdateContentUrlsMessageValue;
283
+ }
284
+ /** Payload of an `IUpdateContentUrlsMessage`. */
285
+ export interface IUpdateContentUrlsMessageValue {
286
+ /**
287
+ * URLs to reach that Manifest from the most prioritized URL to the least
288
+ * prioritized URL.
289
+ */
290
+ urls: string[] | undefined;
291
+ /**
292
+ * If `true` the resource in question (e.g. DASH's MPD) will be refreshed
293
+ * immediately.
294
+ */
295
+ refreshNow: boolean;
296
+ }
297
+ export interface ITrackUpdateMessage {
298
+ type: MainThreadMessageType.TrackUpdate;
299
+ contentId: string;
300
+ value: {
301
+ periodId: string;
302
+ bufferType: ITrackType;
303
+ choice: ITrackUpdateChoiceObject | null | undefined;
304
+ };
305
+ }
306
+ export interface ITrackUpdateChoiceObject {
307
+ /** The Adaptation choosen. */
308
+ adaptationId: string;
309
+ /** "Switching mode" in which the track switch should happen. */
310
+ switchingMode: ITrackSwitchingMode;
311
+ /**
312
+ * Shared reference allowing to indicate which Representations from
313
+ * that Adaptation are allowed.
314
+ */
315
+ initialRepresentations: IRepresentationsChoice;
316
+ /** Relative resuming position after a track change */
317
+ relativeResumingPosition: number | undefined;
318
+ }
319
+ export interface IRepresentationUpdateMessage {
320
+ type: MainThreadMessageType.RepresentationUpdate;
321
+ contentId: string;
322
+ value: {
323
+ periodId: string;
324
+ bufferType: ITrackType;
325
+ adaptationId: string;
326
+ choice: IRepresentationsChoice;
327
+ };
328
+ }
329
+ /** Media-related metadata. */
330
+ export interface ISerializedPlaybackObservation {
331
+ /**
332
+ * Information on whether the media element was paused at the time of the
333
+ * Observation.
334
+ */
335
+ paused: IPausedPlaybackObservation;
336
+ position: [number, number | null];
337
+ /** `readyState` property of the HTMLMediaElement. */
338
+ readyState: number;
339
+ /** Target playback rate at which we want to play the content. */
340
+ speed: number;
341
+ /** Theoretical maximum position on the content that can currently be played. */
342
+ maximumPosition: number;
343
+ /**
344
+ * Ranges of buffered data per type of media.
345
+ *
346
+ * `null` as a record's value if no buffer exists for that type of media.
347
+ *
348
+ * `null` as a `buffered` value if this could not have been obtained on the
349
+ * current environment (e.g. in the main thread).
350
+ */
351
+ buffered: Record<ITrackType, IRange[] | null>;
352
+ duration: number;
353
+ /**
354
+ * Set if the player is short on audio and/or video media data and is a such,
355
+ * rebuffering.
356
+ * `null` if not.
357
+ */
358
+ rebuffering: IRebufferingStatus | null;
359
+ /**
360
+ * Set if the player is frozen, that is, stuck in place for unknown reason.
361
+ * Note that this reason can be a valid one, such as a necessary license not
362
+ * being obtained yet.
363
+ *
364
+ * `null` if the player is not frozen.
365
+ */
366
+ freezing: IFreezingStatus | null;
367
+ /**
368
+ * Gap between `currentTime` and the next position with un-buffered data.
369
+ * `Infinity` if we don't have buffered data right now.
370
+ * `undefined` if we cannot determine the buffer gap.
371
+ */
372
+ bufferGap: number | undefined;
373
+ /**
374
+ * Indicates whether the user agent believes it has enough buffered data to ensure
375
+ * uninterrupted playback for a meaningful period or needs more data.
376
+ * It also reflects whether the user agent can retrieve and buffer data in an
377
+ * energy-efficient manner while maintaining the desired memory usage.
378
+ * `true` indicates that the buffer is low, and more data should be buffered.
379
+ * `false` indicates that there is enough buffered data, and no additional data needs
380
+ * to be buffered at this time.
381
+ */
382
+ canStream: boolean;
383
+ /** If `true` the content is loaded until its maximum position. */
384
+ fullyLoaded: boolean;
385
+ }
386
+ /**
387
+ * Sent when the main thread had to "reload" the media source.
388
+ * The worker should understand that this MediaSource won't be used anymore.
389
+ */
390
+ export interface ITriggerMediaSourceReloadMainMessage {
391
+ type: MainThreadMessageType.MediaSourceReload;
392
+ /** Identify the MediaSource concerned by this message. */
393
+ mediaSourceId: string;
394
+ /** No message is necessary. */
395
+ value: null;
396
+ }
397
+ /**
398
+ * Sent when the SourceBuffer linked to the given `mediaSourceId` and
399
+ * `SourceBufferType`, running on the main thread, succeeded to perform the last
400
+ * operation given to it (either through an `AppendBufferCoreMessage` or a
401
+ * `RemoveBufferCoreMessage`).
402
+ */
403
+ export interface ISourceBufferOperationSuccessMainMessage {
404
+ type: MainThreadMessageType.SourceBufferSuccess;
405
+ /**
406
+ * Identify the MediaSource which contains the SourceBuffer concerned by
407
+ * this update.
408
+ */
409
+ mediaSourceId: string;
410
+ /**
411
+ * Id uniquely identifying this SourceBuffer.
412
+ * It should be the same `SourceBufferType` than the one on the
413
+ * `CreateSourceBufferCoreMessage`.
414
+ */
415
+ sourceBufferType: SourceBufferType;
416
+ /** Identify the corresponding SourceBuffer operation. */
417
+ operationId: string;
418
+ value: {
419
+ /**
420
+ * New contiguous buffered time ranges, in chronological order in seconds.
421
+ */
422
+ buffered: IRange[];
423
+ };
424
+ }
425
+ export interface ISourceBufferErrorMainMessage {
426
+ type: MainThreadMessageType.SourceBufferError;
427
+ /**
428
+ * Identify the MediaSource which contains the SourceBuffer concerned by
429
+ * this update.
430
+ */
431
+ mediaSourceId: string;
432
+ /** Identify the SourceBuffer in question. */
433
+ sourceBufferType: SourceBufferType;
434
+ /** Identify the corresponding SourceBuffer operation. */
435
+ operationId: string;
436
+ value: ISerializedSourceBufferError | {
437
+ /**
438
+ * Identify a cancellation-specific error (the corresponding operation
439
+ * was cancelled.
440
+ */
441
+ errorName: "CancellationError";
442
+ };
443
+ }
444
+ /**
445
+ * Sent by the main thread to a Worker when the MediaSource linked to the
446
+ * `mediaSourceId` changed its readyState.
447
+ *
448
+ * This message is only sent if the MediaSource is created on the main thread.
449
+ */
450
+ export interface IMediaSourceReadyStateChangeMainMessage {
451
+ type: MainThreadMessageType.MediaSourceReadyStateChange;
452
+ /** Identify the MediaSource through this unique identifier. */
453
+ mediaSourceId: string;
454
+ value: ReadyState;
455
+ }
456
+ export interface IPushTextDataSuccessMessage {
457
+ type: MainThreadMessageType.PushTextDataSuccess;
458
+ contentId: string;
459
+ value: {
460
+ ranges: IRange[];
461
+ };
462
+ }
463
+ export interface IRemoveTextDataSuccessMessage {
464
+ type: MainThreadMessageType.RemoveTextDataSuccess;
465
+ contentId: string;
466
+ value: {
467
+ ranges: IRange[];
468
+ };
469
+ }
470
+ export interface IPushTextDataErrorMessage {
471
+ type: MainThreadMessageType.PushTextDataError;
472
+ contentId: string;
473
+ value: {
474
+ message: string;
475
+ };
476
+ }
477
+ export interface IRemoveTextDataErrorMessage {
478
+ type: MainThreadMessageType.RemoveTextDataError;
479
+ contentId: string;
480
+ value: {
481
+ message: string;
482
+ };
483
+ }
484
+ /** Message sent from main thread when it wants to fetch thumbnail data. */
485
+ export interface IThumbnailDataRequestMainMessage {
486
+ type: MainThreadMessageType.ThumbnailDataRequest;
487
+ contentId: string;
488
+ value: {
489
+ requestId: number;
490
+ periodId: string;
491
+ thumbnailTrackId: string;
492
+ time: number;
493
+ };
494
+ }
495
+ /**
496
+ * Template for a message originating from main thread to update
497
+ * `SharedReference` objects (a common abstraction of the RxPlayer allowing for
498
+ * passing values whose updates can be listened to through a callback).
499
+ *
500
+ * Here, `TRefName` is the "name" of the `SharedReference` (the identifier
501
+ * choosen for it) and `TRefType` is the type of its value.
502
+ */
503
+ export interface IReferenceUpdate<TRefName extends string, TRefType> {
504
+ type: MainThreadMessageType.ReferenceUpdate;
505
+ value: {
506
+ name: TRefName;
507
+ newVal: TRefType;
508
+ };
509
+ }
510
+ export type IReferenceUpdateMessage = IReferenceUpdate<"wantedBufferAhead", number> | IReferenceUpdate<"maxVideoBufferSize", number> | IReferenceUpdate<"maxBufferBehind", number> | IReferenceUpdate<"maxBufferAhead", number> | IReferenceUpdate<"limitVideoResolution", IResolutionInfo> | IReferenceUpdate<"throttleVideoBitrate", number>;
511
+ export interface IPullSegmentSinkStoreInfos {
512
+ type: MainThreadMessageType.PullSegmentSinkStoreInfos;
513
+ value: {
514
+ requestId: number;
515
+ };
516
+ }
517
+ export declare const enum MainThreadMessageType {
518
+ Init = "init",
519
+ PushTextDataSuccess = "add-text-success",
520
+ RemoveTextDataSuccess = "remove-text-success",
521
+ PushTextDataError = "push-text-error",
522
+ RemoveTextDataError = "remove-text-error",
523
+ CodecSupportUpdate = "codec-support-update",
524
+ ContentUrlsUpdate = "urls-update",
525
+ ConfigUpdate = "config-update",
526
+ DecipherabilityStatusUpdate = "decipherability-update",
527
+ LogLevelUpdate = "log-level-update",
528
+ MediaSourceReadyStateChange = "media-source-ready-state-change",
529
+ PlaybackObservation = "observation",
530
+ PrepareContent = "prepare",
531
+ ReferenceUpdate = "ref-update",
532
+ RepresentationUpdate = "rep-update",
533
+ MediaSourceReload = "ms-reload",
534
+ SourceBufferError = "sb-error",
535
+ SourceBufferSuccess = "sb-success",
536
+ StartPreparedContent = "start",
537
+ StopContent = "stop",
538
+ TrackUpdate = "track-update",
539
+ PullSegmentSinkStoreInfos = "pull-segment-sink-store-infos",
540
+ ThumbnailDataRequest = "thumbnail-request"
541
+ }
542
+ export type IMainThreadMessage = IInitMessage | ILogLevelUpdateMessage | IConfigUpdateMessage | IPrepareContentMessage | IStopContentMessage | IStartPreparedContentMessage | IReferenceUpdateMessage | ICodecSupportUpdateMessage | IPlaybackObservationMessage | IDecipherabilityStatusChangedMessage | IUpdateContentUrlsMessage | ITriggerMediaSourceReloadMainMessage | ISourceBufferErrorMainMessage | ISourceBufferOperationSuccessMainMessage | ITrackUpdateMessage | IRepresentationUpdateMessage | IPushTextDataSuccessMessage | IRemoveTextDataSuccessMessage | IPushTextDataErrorMessage | IRemoveTextDataErrorMessage | IMediaSourceReadyStateChangeMainMessage | IPullSegmentSinkStoreInfos | IThumbnailDataRequestMainMessage;
6
543
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/main_thread/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,OAAO,CAAC;AAClC,OAAO,KAAK,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3E,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC;AAEjC,YAAY,EAEV,kBAAkB,EAClB,wBAAwB,EAExB,cAAc,EACd,kBAAkB,GACnB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/main_thread/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,wBAAwB,EACxB,kCAAkC,EAClC,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,EAAE,YAAY,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACvF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,QAAQ,MAAM,OAAO,CAAC;AAClC,OAAO,KAAK,EA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AAM,WAAW,oCAAoC;IACnD,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,MAAM,EAAE,eAAe,CAAC;IACxB,UAAU,EAAE,mBAAmB,CAAC;IAChC,cAAc,EAAE,uBAAuB,CAAC;CACzC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,iBAAiB,EAC3B,OAAO,EAAE;IACP,iBAAiB,EAAE,UAAU,EAAE,CAAC;IAChC,iBAAiB,EAAE,UAAU,EAAE,CAAC;IAChC,cAAc,EAAE,UAAU,EAAE,CAAC;CAC9B,GACA,oCAAoC,EAAE,CAqCxC;AAED;;;;;GAKG;AACH,wBAAgB,uCAAuC,CACrD,QAAQ,EAAE,iBAAiB,EAC3B,QAAQ,EAAE,wBAAwB,GACjC,oCAAoC,EAAE,CAgCxC;AAqDD;;;;;;;GAOG;AACH,wBAAgB,kCAAkC,CAChD,YAAY,EAAE,iBAAiB,EAC/B,WAAW,EAAE,IAAI,CAAC,iBAAiB,EAAE,SAAS,CAAC,EAC/C,OAAO,EAAE,oBAAoB,QA0J9B;AAED,wBAAgB,sCAAsC,CACpD,QAAQ,EAAE,MAAM,GACf,qBAAqB,CAKvB;AAED,UAAU,iBAAiB;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,WAAW,CAAC;CACpB;AAED,UAAU,iBAAiB;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,WAAW,CAAC;CACpB;AAED,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC;CACnB;AAED,MAAM,MAAM,YAAY,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,gBAAgB,CAAC"}
@@ -333,7 +333,7 @@ function isRepresentationPlayable(representation) {
333
333
  */
334
334
  function updateDecipherabilityFromKeyIds(manifest, updates) {
335
335
  var whitelistedKeyIds = updates.whitelistedKeyIds, blacklistedKeyIds = updates.blacklistedKeyIds, delistedKeyIds = updates.delistedKeyIds;
336
- return updateRepresentationsDeciperability(manifest, function (representation) {
336
+ var isDecipherable = function (representation) {
337
337
  var e_1, _a, e_2, _b, e_3, _c, e_4, _d;
338
338
  if (representation.contentProtections === undefined) {
339
339
  return representation.decipherable;
@@ -399,7 +399,14 @@ function updateDecipherabilityFromKeyIds(manifest, updates) {
399
399
  }
400
400
  }
401
401
  return representation.decipherable;
402
- });
402
+ };
403
+ if (manifest.manifestFormat === 0 /* ManifestMetadataFormat.Class */) {
404
+ manifest.updateRepresentationsDeciperability(function (_a) {
405
+ var representation = _a.representation;
406
+ return isDecipherable(representation);
407
+ });
408
+ }
409
+ return updateRepresentationsDeciperability(manifest, isDecipherable);
403
410
  }
404
411
  /**
405
412
  * Update decipherability to `false` to any Representation which is linked to
@@ -408,7 +415,7 @@ function updateDecipherabilityFromKeyIds(manifest, updates) {
408
415
  * @param {Object} initData
409
416
  */
410
417
  function updateDecipherabilityFromProtectionData(manifest, initData) {
411
- return updateRepresentationsDeciperability(manifest, function (representation) {
418
+ var isDecipherable = function (representation) {
412
419
  var e_5, _a;
413
420
  var _b, _c;
414
421
  if (representation.decipherable === false) {
@@ -447,7 +454,14 @@ function updateDecipherabilityFromProtectionData(manifest, initData) {
447
454
  finally { if (e_5) throw e_5.error; }
448
455
  }
449
456
  return representation.decipherable;
450
- });
457
+ };
458
+ if (manifest.manifestFormat === 0 /* ManifestMetadataFormat.Class */) {
459
+ manifest.updateRepresentationsDeciperability(function (_a) {
460
+ var representation = _a.representation;
461
+ return isDecipherable(representation);
462
+ });
463
+ }
464
+ return updateRepresentationsDeciperability(manifest, isDecipherable);
451
465
  }
452
466
  /**
453
467
  * Update `decipherable` property of every `Representation` found in the