rx-player 4.0.0-dev.2023121900 → 4.0.0-rc.2

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 (2597) hide show
  1. package/CHANGELOG.md +79 -108
  2. package/VERSION +1 -1
  3. package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.d.ts +3 -0
  4. package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.js +6 -0
  5. package/dist/commonjs/__GENERATED_CODE/embedded_worker.d.ts +3 -0
  6. package/dist/commonjs/__GENERATED_CODE/embedded_worker.js +6 -0
  7. package/dist/commonjs/__GENERATED_CODE/index.d.ts +2 -0
  8. package/dist/commonjs/__GENERATED_CODE/index.js +7 -0
  9. package/dist/commonjs/compat/browser_compatibility_types.js +1 -1
  10. package/dist/commonjs/compat/browser_detection.d.ts +3 -1
  11. package/dist/commonjs/compat/browser_detection.js +27 -6
  12. package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.js +1 -1
  13. package/dist/commonjs/compat/eme/custom_media_keys/ms_media_keys_constructor.js +1 -1
  14. package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +1 -1
  15. package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.js +1 -2
  16. package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +1 -1
  17. package/dist/commonjs/compat/eme/eme-api-implementation.js +4 -3
  18. package/dist/commonjs/compat/event_listeners.js +1 -1
  19. package/dist/commonjs/compat/has_mse_in_worker.d.ts +2 -0
  20. package/dist/commonjs/compat/has_mse_in_worker.js +6 -0
  21. package/dist/commonjs/compat/has_webassembly.d.ts +6 -0
  22. package/dist/commonjs/compat/has_webassembly.js +9 -0
  23. package/dist/commonjs/compat/index.d.ts +1 -2
  24. package/dist/commonjs/compat/index.js +1 -3
  25. package/dist/commonjs/compat/is_codec_supported.js +5 -0
  26. package/dist/commonjs/compat/is_vtt_cue.js +1 -1
  27. package/dist/commonjs/compat/make_vtt_cue.js +1 -1
  28. package/dist/commonjs/compat/on_height_width_change.js +1 -1
  29. package/dist/commonjs/compat/patch_webkit_source_buffer.js +2 -2
  30. package/dist/commonjs/config.d.ts +6 -17
  31. package/dist/commonjs/config.js +4 -12
  32. package/dist/commonjs/core/adaptive/adaptive_representation_selector.d.ts +2 -1
  33. package/dist/commonjs/core/adaptive/adaptive_representation_selector.js +1 -1
  34. package/dist/commonjs/core/api/debug/buffer_graph.js +3 -3
  35. package/dist/commonjs/core/api/debug/modules/general_info.js +23 -11
  36. package/dist/commonjs/core/api/debug/modules/segment_buffer_content.js +5 -4
  37. package/dist/commonjs/core/api/option_utils.d.ts +3 -2
  38. package/dist/commonjs/core/api/option_utils.js +14 -4
  39. package/dist/commonjs/core/api/playback_observer.d.ts +55 -24
  40. package/dist/commonjs/core/api/playback_observer.js +105 -72
  41. package/dist/commonjs/core/api/public_api.d.ts +35 -12
  42. package/dist/commonjs/core/api/public_api.js +351 -154
  43. package/dist/commonjs/core/api/track_management/track_dispatcher.d.ts +12 -8
  44. package/dist/commonjs/core/api/track_management/track_dispatcher.js +28 -22
  45. package/dist/commonjs/core/api/track_management/tracks_store.d.ts +26 -14
  46. package/dist/commonjs/core/api/track_management/tracks_store.js +134 -66
  47. package/dist/commonjs/core/decrypt/attach_media_keys.d.ts +2 -1
  48. package/dist/commonjs/core/decrypt/attach_media_keys.js +2 -1
  49. package/dist/commonjs/core/decrypt/content_decryptor.js +70 -181
  50. package/dist/commonjs/core/decrypt/init_media_keys.js +13 -5
  51. package/dist/commonjs/core/decrypt/types.d.ts +11 -5
  52. package/dist/commonjs/core/decrypt/utils/check_key_statuses.js +4 -4
  53. package/dist/commonjs/core/fetchers/segment/initialization_segment_cache.d.ts +42 -0
  54. package/dist/commonjs/core/fetchers/segment/segment_fetcher.js +2 -2
  55. package/dist/commonjs/core/fetchers/utils/error_selector.js +2 -1
  56. package/dist/commonjs/core/fetchers/utils/schedule_request.js +2 -1
  57. package/dist/commonjs/core/init/directfile_content_initializer.js +8 -3
  58. package/dist/commonjs/core/init/media_source_content_initializer.d.ts +7 -22
  59. package/dist/commonjs/core/init/media_source_content_initializer.js +313 -115
  60. package/dist/commonjs/core/init/multithread/main_thread/multi_thread_content_initializer.d.ts +167 -0
  61. package/dist/commonjs/core/init/multithread/main_thread/multi_thread_content_initializer.js +1393 -0
  62. package/dist/commonjs/core/init/multithread/main_thread/send_message.d.ts +2 -0
  63. package/dist/commonjs/core/init/multithread/main_thread/send_message.js +13 -0
  64. package/dist/commonjs/core/init/multithread/worker/content_preparer.d.ts +92 -0
  65. package/dist/commonjs/core/init/multithread/worker/content_preparer.js +259 -0
  66. package/dist/commonjs/core/init/multithread/worker/globals.d.ts +13 -0
  67. package/dist/commonjs/core/init/multithread/worker/globals.js +26 -0
  68. package/dist/commonjs/core/init/multithread/worker/index.d.ts +2 -0
  69. package/dist/commonjs/core/init/multithread/worker/index.js +4 -0
  70. package/dist/commonjs/core/init/multithread/worker/send_message.d.ts +3 -0
  71. package/dist/commonjs/core/init/multithread/worker/send_message.js +25 -0
  72. package/dist/commonjs/core/init/multithread/worker/track_choice_setter.d.ts +19 -0
  73. package/dist/commonjs/core/init/multithread/worker/track_choice_setter.js +140 -0
  74. package/dist/commonjs/core/init/multithread/worker/worker_playback_observer.d.ts +21 -0
  75. package/dist/commonjs/core/init/multithread/worker/worker_playback_observer.js +47 -0
  76. package/dist/commonjs/core/init/multithread/worker/worker_portal.d.ts +1 -0
  77. package/dist/commonjs/core/init/multithread/worker/worker_portal.js +727 -0
  78. package/dist/commonjs/core/init/multithread/worker/worker_text_displayer_interface.d.ts +64 -0
  79. package/dist/commonjs/core/init/multithread/worker/worker_text_displayer_interface.js +127 -0
  80. package/dist/commonjs/core/init/types.d.ts +21 -12
  81. package/dist/commonjs/core/init/types.js +0 -1
  82. package/dist/commonjs/core/init/utils/DecipherabilityFreezeDetector.d.ts +54 -0
  83. package/dist/commonjs/core/init/utils/DecipherabilityFreezeDetector.js +129 -0
  84. package/dist/commonjs/core/init/utils/create_content_time_boundaries_observer.d.ts +28 -0
  85. package/dist/commonjs/core/init/utils/create_content_time_boundaries_observer.js +48 -0
  86. package/dist/commonjs/core/init/utils/create_core_playback_observer.d.ts +61 -0
  87. package/dist/commonjs/core/init/utils/create_core_playback_observer.js +130 -0
  88. package/dist/commonjs/core/init/utils/create_media_source.d.ts +3 -3
  89. package/dist/commonjs/core/init/utils/create_media_source.js +29 -38
  90. package/dist/commonjs/core/init/utils/get_initial_time.d.ts +2 -2
  91. package/dist/commonjs/core/init/utils/get_initial_time.js +6 -5
  92. package/dist/commonjs/core/init/utils/get_loaded_reference.js +7 -5
  93. package/dist/commonjs/core/init/utils/initial_seek_and_play.js +55 -6
  94. package/dist/commonjs/core/init/utils/initialize_content_decryption.d.ts +7 -1
  95. package/dist/commonjs/core/init/utils/initialize_content_decryption.js +6 -0
  96. package/dist/commonjs/core/init/utils/main_thread_text_displayer_interface.d.ts +35 -0
  97. package/dist/commonjs/core/init/utils/main_thread_text_displayer_interface.js +54 -0
  98. package/dist/commonjs/core/init/utils/rebuffering_controller.d.ts +5 -38
  99. package/dist/commonjs/core/init/utils/rebuffering_controller.js +3 -112
  100. package/dist/commonjs/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +2 -2
  101. package/dist/commonjs/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +24 -1
  102. package/dist/commonjs/core/init/utils/stream_events_emitter/stream_events_emitter.d.ts +3 -2
  103. package/dist/commonjs/core/init/utils/stream_events_emitter/stream_events_emitter.js +4 -4
  104. package/dist/commonjs/core/segment_buffers/garbage_collector.d.ts +3 -1
  105. package/dist/commonjs/core/segment_buffers/garbage_collector.js +13 -4
  106. package/dist/commonjs/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.d.ts +26 -74
  107. package/dist/commonjs/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.js +183 -297
  108. package/dist/commonjs/core/segment_buffers/implementations/index.d.ts +2 -1
  109. package/dist/commonjs/core/segment_buffers/implementations/text/index.d.ts +3 -0
  110. package/dist/commonjs/core/segment_buffers/implementations/text/index.js +4 -0
  111. package/dist/commonjs/core/segment_buffers/implementations/text/text_segment_buffer.d.ts +89 -0
  112. package/dist/commonjs/core/segment_buffers/implementations/text/text_segment_buffer.js +253 -0
  113. package/dist/commonjs/core/segment_buffers/implementations/types.d.ts +46 -57
  114. package/dist/commonjs/core/segment_buffers/implementations/types.js +22 -29
  115. package/dist/commonjs/core/segment_buffers/index.d.ts +3 -3
  116. package/dist/commonjs/core/segment_buffers/inventory/segment_inventory.d.ts +23 -9
  117. package/dist/commonjs/core/segment_buffers/inventory/segment_inventory.js +53 -22
  118. package/dist/commonjs/core/segment_buffers/segment_buffers_store.d.ts +7 -16
  119. package/dist/commonjs/core/segment_buffers/segment_buffers_store.js +14 -24
  120. package/dist/commonjs/core/stream/adaptation/adaptation_stream.js +15 -8
  121. package/dist/commonjs/core/stream/adaptation/get_representations_switch_strategy.d.ts +19 -5
  122. package/dist/commonjs/core/stream/adaptation/get_representations_switch_strategy.js +62 -57
  123. package/dist/commonjs/core/stream/adaptation/types.d.ts +17 -28
  124. package/dist/commonjs/core/stream/index.d.ts +2 -1
  125. package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.d.ts +4 -4
  126. package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.js +1 -2
  127. package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.js +11 -2
  128. package/dist/commonjs/core/stream/period/period_stream.js +55 -21
  129. package/dist/commonjs/core/stream/period/types.d.ts +11 -4
  130. package/dist/commonjs/core/stream/period/utils/get_adaptation_switch_strategy.js +75 -72
  131. package/dist/commonjs/core/stream/representation/representation_stream.js +4 -4
  132. package/dist/commonjs/core/stream/representation/types.d.ts +30 -3
  133. package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.d.ts +5 -2
  134. package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.js +36 -19
  135. package/dist/commonjs/core/stream/representation/utils/get_buffer_status.d.ts +2 -2
  136. package/dist/commonjs/core/stream/representation/utils/get_buffer_status.js +22 -12
  137. package/dist/commonjs/core/stream/representation/utils/get_needed_segments.d.ts +2 -2
  138. package/dist/commonjs/core/stream/representation/utils/get_needed_segments.js +2 -6
  139. package/dist/commonjs/core/stream/representation/utils/push_init_segment.d.ts +3 -1
  140. package/dist/commonjs/core/stream/representation/utils/push_init_segment.js +3 -4
  141. package/dist/commonjs/core/stream/representation/utils/push_media_segment.d.ts +3 -1
  142. package/dist/commonjs/core/stream/representation/utils/push_media_segment.js +3 -4
  143. package/dist/commonjs/default_config.d.ts +31 -34
  144. package/dist/commonjs/default_config.js +44 -47
  145. package/dist/commonjs/errors/encrypted_media_error.d.ts +17 -0
  146. package/dist/commonjs/errors/encrypted_media_error.js +13 -0
  147. package/dist/commonjs/errors/error_codes.d.ts +4 -3
  148. package/dist/commonjs/errors/error_codes.js +3 -8
  149. package/dist/commonjs/errors/index.d.ts +7 -8
  150. package/dist/commonjs/errors/index.js +3 -5
  151. package/dist/commonjs/errors/media_error.d.ts +21 -18
  152. package/dist/commonjs/errors/media_error.js +15 -19
  153. package/dist/commonjs/errors/network_error.d.ts +15 -1
  154. package/dist/commonjs/errors/network_error.js +12 -0
  155. package/dist/commonjs/errors/other_error.d.ts +14 -0
  156. package/dist/commonjs/errors/other_error.js +12 -0
  157. package/dist/commonjs/errors/source_buffer_error.d.ts +40 -0
  158. package/dist/commonjs/errors/source_buffer_error.js +62 -0
  159. package/dist/commonjs/errors/worker_initialization_error.d.ts +19 -0
  160. package/dist/commonjs/errors/worker_initialization_error.js +43 -0
  161. package/dist/commonjs/experimental/features/index.d.ts +1 -2
  162. package/dist/commonjs/experimental/features/index.js +3 -5
  163. package/dist/commonjs/experimental/features/local.js +3 -1
  164. package/dist/commonjs/experimental/features/metaplaylist.js +3 -1
  165. package/dist/commonjs/experimental/features/multi_thread.d.ts +8 -0
  166. package/dist/commonjs/experimental/features/multi_thread.js +14 -0
  167. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +3 -3
  168. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +13 -14
  169. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +3 -3
  170. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +24 -17
  171. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +3 -5
  172. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +4 -5
  173. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +17 -12
  174. package/dist/commonjs/experimental/tools/index.d.ts +1 -2
  175. package/dist/commonjs/experimental/tools/index.js +1 -3
  176. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/index.d.ts +2 -0
  177. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +4 -4
  178. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.js +1 -1
  179. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +1 -1
  180. package/dist/commonjs/features/features_object.js +5 -3
  181. package/dist/commonjs/features/list/dash.js +3 -1
  182. package/dist/commonjs/features/list/dash_wasm.js +39 -0
  183. package/dist/commonjs/features/list/html_sami_parser.js +4 -4
  184. package/dist/commonjs/features/list/html_srt_parser.js +4 -4
  185. package/dist/commonjs/features/list/html_text_buffer.js +2 -2
  186. package/dist/commonjs/features/list/html_ttml_parser.js +4 -4
  187. package/dist/commonjs/features/list/html_vtt_parser.js +4 -4
  188. package/dist/commonjs/features/list/index.d.ts +3 -0
  189. package/dist/commonjs/features/list/index.js +7 -1
  190. package/dist/commonjs/features/list/media_source_main.d.ts +8 -0
  191. package/dist/commonjs/features/list/media_source_main.js +14 -0
  192. package/dist/commonjs/features/list/native_sami_parser.js +4 -5
  193. package/dist/commonjs/features/list/native_srt_parser.js +4 -5
  194. package/dist/commonjs/features/list/native_text_buffer.js +2 -3
  195. package/dist/commonjs/features/list/native_ttml_parser.js +4 -5
  196. package/dist/commonjs/features/list/native_vtt_parser.js +4 -5
  197. package/dist/commonjs/features/list/smooth.d.ts +1 -1
  198. package/dist/commonjs/features/list/smooth.js +7 -3
  199. package/dist/commonjs/features/types.d.ts +28 -5
  200. package/dist/commonjs/manifest/adaptation.d.ts +66 -44
  201. package/dist/commonjs/manifest/adaptation.js +97 -78
  202. package/dist/commonjs/manifest/index.d.ts +4 -3
  203. package/dist/commonjs/manifest/index.js +16 -1
  204. package/dist/commonjs/manifest/manifest.d.ts +132 -9
  205. package/dist/commonjs/manifest/manifest.js +115 -72
  206. package/dist/commonjs/manifest/period.d.ts +41 -3
  207. package/dist/commonjs/manifest/period.js +120 -24
  208. package/dist/commonjs/manifest/representation.d.ts +61 -74
  209. package/dist/commonjs/manifest/representation.js +125 -45
  210. package/dist/commonjs/manifest/types.d.ts +382 -0
  211. package/dist/commonjs/manifest/types.js +0 -15
  212. package/dist/commonjs/manifest/update_period_in_place.d.ts +12 -9
  213. package/dist/commonjs/manifest/update_period_in_place.js +10 -6
  214. package/dist/commonjs/manifest/update_periods.d.ts +7 -4
  215. package/dist/commonjs/manifest/update_periods.js +53 -14
  216. package/dist/commonjs/manifest/utils.d.ts +156 -0
  217. package/dist/commonjs/manifest/utils.js +689 -1
  218. package/dist/commonjs/minimal.d.ts +3 -0
  219. package/dist/commonjs/minimal.js +6 -0
  220. package/dist/commonjs/mse/index.d.ts +1 -0
  221. package/dist/commonjs/mse/index.js +2 -0
  222. package/dist/commonjs/mse/main_codec_support_prober.d.ts +26 -0
  223. package/dist/commonjs/mse/main_codec_support_prober.js +44 -0
  224. package/dist/commonjs/mse/main_media_source_interface.d.ts +112 -0
  225. package/dist/commonjs/mse/main_media_source_interface.js +504 -0
  226. package/dist/commonjs/mse/types.d.ts +301 -0
  227. package/dist/commonjs/mse/types.js +2 -0
  228. package/dist/commonjs/mse/worker_codec_support_prober.d.ts +42 -0
  229. package/dist/commonjs/mse/worker_codec_support_prober.js +61 -0
  230. package/dist/commonjs/mse/worker_media_source_interface.d.ts +105 -0
  231. package/dist/commonjs/mse/worker_media_source_interface.js +368 -0
  232. package/dist/commonjs/multithread_types.d.ts +818 -0
  233. package/dist/commonjs/multithread_types.js +7 -0
  234. package/dist/commonjs/parsers/manifest/dash/common/parse_periods.js +14 -16
  235. package/dist/commonjs/parsers/manifest/dash/js-parser/parse_from_document.js +2 -2
  236. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +1 -1
  237. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +22 -7
  238. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/types.d.ts +55 -55
  239. package/dist/commonjs/parsers/manifest/metaplaylist/metaplaylist_parser.js +13 -1
  240. package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.js +1 -1
  241. package/dist/commonjs/parsers/manifest/types.d.ts +8 -1
  242. package/dist/commonjs/public_types.d.ts +66 -21
  243. package/dist/commonjs/public_types.js +3 -13
  244. package/dist/commonjs/text_displayer/html/html_parsers.d.ts +15 -0
  245. package/dist/commonjs/text_displayer/html/html_parsers.js +25 -0
  246. package/dist/commonjs/text_displayer/html/html_text_displayer.d.ts +100 -0
  247. package/dist/commonjs/text_displayer/html/html_text_displayer.js +317 -0
  248. package/dist/commonjs/text_displayer/html/index.d.ts +2 -0
  249. package/dist/commonjs/text_displayer/html/index.js +4 -0
  250. package/dist/commonjs/text_displayer/html/text_track_cues_store.d.ts +65 -0
  251. package/dist/commonjs/text_displayer/html/text_track_cues_store.js +378 -0
  252. package/dist/commonjs/text_displayer/html/update_proportional_elements.d.ts +15 -0
  253. package/dist/commonjs/text_displayer/html/update_proportional_elements.js +65 -0
  254. package/dist/commonjs/text_displayer/html/utils.d.ts +39 -0
  255. package/dist/commonjs/text_displayer/html/utils.js +115 -0
  256. package/dist/commonjs/text_displayer/index.d.ts +2 -0
  257. package/dist/commonjs/text_displayer/index.js +2 -0
  258. package/dist/commonjs/text_displayer/manual_time_ranges.d.ts +14 -0
  259. package/dist/commonjs/text_displayer/manual_time_ranges.js +52 -0
  260. package/dist/commonjs/text_displayer/native/index.d.ts +2 -0
  261. package/dist/commonjs/text_displayer/native/index.js +4 -0
  262. package/dist/commonjs/text_displayer/native/native_parsers.d.ts +11 -0
  263. package/dist/commonjs/text_displayer/native/native_parsers.js +25 -0
  264. package/dist/commonjs/text_displayer/native/native_text_displayer.d.ts +56 -0
  265. package/dist/commonjs/text_displayer/native/native_text_displayer.js +207 -0
  266. package/dist/commonjs/text_displayer/types.d.ts +74 -0
  267. package/dist/commonjs/text_displayer/types.js +2 -0
  268. package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.d.ts +1 -1
  269. package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.js +11 -15
  270. package/dist/commonjs/tools/index.d.ts +2 -1
  271. package/dist/commonjs/tools/index.js +3 -1
  272. package/dist/commonjs/tools/parseBIFThumbnails/index.js +32 -0
  273. package/dist/commonjs/transports/dash/extract_complete_chunks.d.ts +1 -1
  274. package/dist/commonjs/transports/dash/extract_complete_chunks.js +35 -6
  275. package/dist/commonjs/transports/dash/get_events_out_of_emsgs.js +0 -1
  276. package/dist/commonjs/transports/dash/low_latency_segment_loader.js +2 -2
  277. package/dist/commonjs/transports/utils/generate_manifest_loader.js +2 -2
  278. package/dist/commonjs/utils/assert.d.ts +41 -0
  279. package/dist/commonjs/utils/assert.js +69 -3
  280. package/dist/commonjs/utils/event_emitter.js +8 -2
  281. package/dist/commonjs/utils/languages/ISO_639-1_to_ISO_639-3.js +182 -182
  282. package/dist/commonjs/utils/languages/ISO_639-2_to_ISO_639-3.js +19 -19
  283. package/dist/commonjs/utils/logger.d.ts +13 -3
  284. package/dist/commonjs/utils/logger.js +78 -21
  285. package/dist/commonjs/utils/monotonic_timestamp.d.ts +20 -4
  286. package/dist/commonjs/utils/monotonic_timestamp.js +22 -5
  287. package/dist/commonjs/utils/object_assign.d.ts +26 -5
  288. package/dist/commonjs/utils/object_assign.js +14 -3
  289. package/dist/commonjs/utils/request/fetch.js +8 -8
  290. package/dist/commonjs/utils/request/index.d.ts +2 -1
  291. package/dist/commonjs/utils/request/index.js +4 -1
  292. package/dist/commonjs/utils/request/request_error.d.ts +47 -0
  293. package/dist/commonjs/utils/request/request_error.js +87 -0
  294. package/dist/commonjs/utils/request/xhr.d.ts +4 -4
  295. package/dist/commonjs/utils/request/xhr.js +7 -7
  296. package/dist/commonjs/utils/retry_promise_with_backoff.d.ts +1 -2
  297. package/dist/commonjs/utils/string_parsing.js +1 -1
  298. package/dist/commonjs/utils/sync_or_async.d.ts +70 -0
  299. package/dist/commonjs/utils/sync_or_async.js +47 -0
  300. package/dist/commonjs/worker_entry_point.d.ts +5 -0
  301. package/dist/commonjs/worker_entry_point.js +8 -0
  302. package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.d.ts +3 -0
  303. package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.js +3 -0
  304. package/dist/es2017/__GENERATED_CODE/embedded_worker.d.ts +3 -0
  305. package/dist/es2017/__GENERATED_CODE/embedded_worker.js +3 -0
  306. package/dist/es2017/__GENERATED_CODE/index.d.ts +2 -0
  307. package/dist/es2017/__GENERATED_CODE/index.js +2 -0
  308. package/dist/es2017/compat/browser_compatibility_types.js +1 -1
  309. package/dist/es2017/compat/browser_detection.d.ts +3 -1
  310. package/dist/es2017/compat/browser_detection.js +26 -6
  311. package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.js +1 -1
  312. package/dist/es2017/compat/eme/custom_media_keys/ms_media_keys_constructor.js +1 -1
  313. package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +1 -1
  314. package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.js +1 -2
  315. package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +1 -1
  316. package/dist/es2017/compat/eme/eme-api-implementation.js +4 -3
  317. package/dist/es2017/compat/event_listeners.js +1 -1
  318. package/dist/es2017/compat/has_mse_in_worker.d.ts +2 -0
  319. package/dist/es2017/compat/has_mse_in_worker.js +4 -0
  320. package/dist/es2017/compat/has_webassembly.d.ts +6 -0
  321. package/dist/es2017/compat/has_webassembly.js +7 -0
  322. package/dist/es2017/compat/index.d.ts +1 -2
  323. package/dist/es2017/compat/index.js +1 -2
  324. package/dist/es2017/compat/is_codec_supported.js +5 -0
  325. package/dist/es2017/compat/is_vtt_cue.js +1 -1
  326. package/dist/es2017/compat/make_vtt_cue.js +1 -1
  327. package/dist/es2017/compat/on_height_width_change.js +1 -1
  328. package/dist/es2017/compat/patch_webkit_source_buffer.js +2 -2
  329. package/dist/es2017/config.d.ts +6 -17
  330. package/dist/es2017/config.js +4 -12
  331. package/dist/es2017/core/adaptive/adaptive_representation_selector.d.ts +2 -1
  332. package/dist/es2017/core/adaptive/adaptive_representation_selector.js +2 -2
  333. package/dist/es2017/core/api/debug/buffer_graph.js +3 -3
  334. package/dist/es2017/core/api/debug/modules/general_info.js +20 -8
  335. package/dist/es2017/core/api/debug/modules/segment_buffer_content.js +5 -4
  336. package/dist/es2017/core/api/option_utils.d.ts +3 -2
  337. package/dist/es2017/core/api/option_utils.js +15 -4
  338. package/dist/es2017/core/api/playback_observer.d.ts +55 -24
  339. package/dist/es2017/core/api/playback_observer.js +103 -75
  340. package/dist/es2017/core/api/public_api.d.ts +35 -12
  341. package/dist/es2017/core/api/public_api.js +353 -143
  342. package/dist/es2017/core/api/track_management/track_dispatcher.d.ts +12 -8
  343. package/dist/es2017/core/api/track_management/track_dispatcher.js +30 -23
  344. package/dist/es2017/core/api/track_management/tracks_store.d.ts +26 -14
  345. package/dist/es2017/core/api/track_management/tracks_store.js +95 -58
  346. package/dist/es2017/core/decrypt/attach_media_keys.d.ts +2 -1
  347. package/dist/es2017/core/decrypt/attach_media_keys.js +2 -1
  348. package/dist/es2017/core/decrypt/content_decryptor.js +35 -89
  349. package/dist/es2017/core/decrypt/init_media_keys.js +11 -1
  350. package/dist/es2017/core/decrypt/types.d.ts +11 -5
  351. package/dist/es2017/core/decrypt/utils/check_key_statuses.js +1 -1
  352. package/dist/es2017/core/fetchers/segment/initialization_segment_cache.d.ts +42 -0
  353. package/dist/es2017/core/fetchers/segment/segment_fetcher.js +2 -2
  354. package/dist/es2017/core/fetchers/utils/error_selector.js +2 -1
  355. package/dist/es2017/core/fetchers/utils/schedule_request.js +2 -1
  356. package/dist/es2017/core/init/directfile_content_initializer.js +8 -3
  357. package/dist/es2017/core/init/media_source_content_initializer.d.ts +7 -22
  358. package/dist/es2017/core/init/media_source_content_initializer.js +214 -106
  359. package/dist/es2017/core/init/multithread/main_thread/multi_thread_content_initializer.d.ts +167 -0
  360. package/dist/es2017/core/init/multithread/main_thread/multi_thread_content_initializer.js +1317 -0
  361. package/dist/es2017/core/init/multithread/main_thread/send_message.d.ts +2 -0
  362. package/dist/es2017/core/init/multithread/main_thread/send_message.js +10 -0
  363. package/dist/es2017/core/init/multithread/worker/content_preparer.d.ts +92 -0
  364. package/dist/es2017/core/init/multithread/worker/content_preparer.js +236 -0
  365. package/dist/es2017/core/init/multithread/worker/globals.d.ts +13 -0
  366. package/dist/es2017/core/init/multithread/worker/globals.js +18 -0
  367. package/dist/es2017/core/init/multithread/worker/index.d.ts +2 -0
  368. package/dist/es2017/core/init/multithread/worker/index.js +2 -0
  369. package/dist/es2017/core/init/multithread/worker/send_message.d.ts +3 -0
  370. package/dist/es2017/core/init/multithread/worker/send_message.js +20 -0
  371. package/dist/es2017/core/init/multithread/worker/track_choice_setter.d.ts +19 -0
  372. package/dist/es2017/core/init/multithread/worker/track_choice_setter.js +114 -0
  373. package/dist/es2017/core/init/multithread/worker/worker_playback_observer.d.ts +21 -0
  374. package/dist/es2017/core/init/multithread/worker/worker_playback_observer.js +43 -0
  375. package/dist/es2017/core/init/multithread/worker/worker_portal.d.ts +1 -0
  376. package/dist/es2017/core/init/multithread/worker/worker_portal.js +671 -0
  377. package/dist/es2017/core/init/multithread/worker/worker_text_displayer_interface.d.ts +64 -0
  378. package/dist/es2017/core/init/multithread/worker/worker_text_displayer_interface.js +121 -0
  379. package/dist/es2017/core/init/types.d.ts +21 -12
  380. package/dist/es2017/core/init/types.js +0 -1
  381. package/dist/es2017/core/init/utils/DecipherabilityFreezeDetector.d.ts +54 -0
  382. package/dist/es2017/core/init/utils/DecipherabilityFreezeDetector.js +93 -0
  383. package/dist/es2017/core/init/utils/create_content_time_boundaries_observer.d.ts +28 -0
  384. package/dist/es2017/core/init/utils/create_content_time_boundaries_observer.js +41 -0
  385. package/dist/es2017/core/init/utils/create_core_playback_observer.d.ts +61 -0
  386. package/dist/es2017/core/init/utils/create_core_playback_observer.js +122 -0
  387. package/dist/es2017/core/init/utils/create_media_source.d.ts +3 -3
  388. package/dist/es2017/core/init/utils/create_media_source.js +28 -37
  389. package/dist/es2017/core/init/utils/get_initial_time.d.ts +2 -2
  390. package/dist/es2017/core/init/utils/get_initial_time.js +6 -5
  391. package/dist/es2017/core/init/utils/get_loaded_reference.js +7 -5
  392. package/dist/es2017/core/init/utils/initial_seek_and_play.js +55 -6
  393. package/dist/es2017/core/init/utils/initialize_content_decryption.d.ts +7 -1
  394. package/dist/es2017/core/init/utils/initialize_content_decryption.js +6 -0
  395. package/dist/es2017/core/init/utils/main_thread_text_displayer_interface.d.ts +35 -0
  396. package/dist/es2017/core/init/utils/main_thread_text_displayer_interface.js +50 -0
  397. package/dist/es2017/core/init/utils/rebuffering_controller.d.ts +5 -38
  398. package/dist/es2017/core/init/utils/rebuffering_controller.js +3 -80
  399. package/dist/es2017/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +2 -2
  400. package/dist/es2017/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +24 -1
  401. package/dist/es2017/core/init/utils/stream_events_emitter/stream_events_emitter.d.ts +3 -2
  402. package/dist/es2017/core/init/utils/stream_events_emitter/stream_events_emitter.js +4 -4
  403. package/dist/es2017/core/segment_buffers/garbage_collector.d.ts +3 -1
  404. package/dist/es2017/core/segment_buffers/garbage_collector.js +14 -5
  405. package/dist/es2017/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.d.ts +26 -74
  406. package/dist/es2017/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.js +111 -294
  407. package/dist/es2017/core/segment_buffers/implementations/index.d.ts +2 -1
  408. package/dist/es2017/core/segment_buffers/implementations/index.js +1 -1
  409. package/dist/es2017/core/segment_buffers/implementations/text/index.d.ts +3 -0
  410. package/dist/es2017/core/segment_buffers/implementations/text/index.js +2 -0
  411. package/dist/es2017/core/segment_buffers/implementations/text/text_segment_buffer.d.ts +89 -0
  412. package/dist/es2017/core/segment_buffers/implementations/text/text_segment_buffer.js +152 -0
  413. package/dist/es2017/core/segment_buffers/implementations/types.d.ts +46 -57
  414. package/dist/es2017/core/segment_buffers/implementations/types.js +22 -29
  415. package/dist/es2017/core/segment_buffers/index.d.ts +3 -3
  416. package/dist/es2017/core/segment_buffers/inventory/segment_inventory.d.ts +23 -9
  417. package/dist/es2017/core/segment_buffers/inventory/segment_inventory.js +53 -21
  418. package/dist/es2017/core/segment_buffers/segment_buffers_store.d.ts +7 -16
  419. package/dist/es2017/core/segment_buffers/segment_buffers_store.js +14 -23
  420. package/dist/es2017/core/stream/adaptation/adaptation_stream.js +14 -7
  421. package/dist/es2017/core/stream/adaptation/get_representations_switch_strategy.d.ts +19 -5
  422. package/dist/es2017/core/stream/adaptation/get_representations_switch_strategy.js +33 -60
  423. package/dist/es2017/core/stream/adaptation/types.d.ts +17 -28
  424. package/dist/es2017/core/stream/index.d.ts +2 -1
  425. package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.d.ts +4 -4
  426. package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.js +1 -2
  427. package/dist/es2017/core/stream/orchestrator/stream_orchestrator.js +11 -2
  428. package/dist/es2017/core/stream/period/period_stream.js +55 -21
  429. package/dist/es2017/core/stream/period/types.d.ts +11 -4
  430. package/dist/es2017/core/stream/period/utils/get_adaptation_switch_strategy.js +44 -73
  431. package/dist/es2017/core/stream/representation/representation_stream.js +4 -2
  432. package/dist/es2017/core/stream/representation/types.d.ts +30 -3
  433. package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.d.ts +5 -2
  434. package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.js +28 -11
  435. package/dist/es2017/core/stream/representation/utils/get_buffer_status.d.ts +2 -2
  436. package/dist/es2017/core/stream/representation/utils/get_buffer_status.js +22 -12
  437. package/dist/es2017/core/stream/representation/utils/get_needed_segments.d.ts +2 -2
  438. package/dist/es2017/core/stream/representation/utils/get_needed_segments.js +2 -6
  439. package/dist/es2017/core/stream/representation/utils/push_init_segment.d.ts +3 -1
  440. package/dist/es2017/core/stream/representation/utils/push_init_segment.js +2 -3
  441. package/dist/es2017/core/stream/representation/utils/push_media_segment.d.ts +3 -1
  442. package/dist/es2017/core/stream/representation/utils/push_media_segment.js +2 -3
  443. package/dist/es2017/default_config.d.ts +31 -34
  444. package/dist/es2017/default_config.js +44 -47
  445. package/dist/es2017/errors/encrypted_media_error.d.ts +17 -0
  446. package/dist/es2017/errors/encrypted_media_error.js +13 -0
  447. package/dist/es2017/errors/error_codes.d.ts +4 -3
  448. package/dist/es2017/errors/error_codes.js +3 -7
  449. package/dist/es2017/errors/index.d.ts +7 -8
  450. package/dist/es2017/errors/index.js +2 -3
  451. package/dist/es2017/errors/media_error.d.ts +21 -18
  452. package/dist/es2017/errors/media_error.js +15 -19
  453. package/dist/es2017/errors/network_error.d.ts +15 -1
  454. package/dist/es2017/errors/network_error.js +12 -0
  455. package/dist/es2017/errors/other_error.d.ts +14 -0
  456. package/dist/es2017/errors/other_error.js +12 -0
  457. package/dist/es2017/errors/source_buffer_error.d.ts +40 -0
  458. package/dist/es2017/errors/source_buffer_error.js +41 -0
  459. package/dist/es2017/errors/worker_initialization_error.d.ts +19 -0
  460. package/dist/es2017/errors/worker_initialization_error.js +22 -0
  461. package/dist/es2017/experimental/features/index.d.ts +1 -2
  462. package/dist/es2017/experimental/features/index.js +1 -2
  463. package/dist/es2017/experimental/features/local.js +3 -1
  464. package/dist/es2017/experimental/features/metaplaylist.js +3 -1
  465. package/dist/es2017/experimental/features/multi_thread.d.ts +8 -0
  466. package/dist/es2017/experimental/features/multi_thread.js +11 -0
  467. package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +3 -3
  468. package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +11 -15
  469. package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +3 -3
  470. package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +25 -18
  471. package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +3 -5
  472. package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +4 -5
  473. package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +17 -12
  474. package/dist/es2017/experimental/tools/index.d.ts +1 -2
  475. package/dist/es2017/experimental/tools/index.js +1 -2
  476. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/index.d.ts +2 -0
  477. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +4 -4
  478. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.js +1 -1
  479. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +1 -1
  480. package/dist/es2017/features/features_object.js +5 -3
  481. package/dist/es2017/features/list/dash.js +3 -1
  482. package/dist/es2017/features/list/dash_wasm.js +36 -0
  483. package/dist/es2017/features/list/html_sami_parser.js +2 -2
  484. package/dist/es2017/features/list/html_srt_parser.js +2 -2
  485. package/dist/es2017/features/list/html_text_buffer.js +2 -2
  486. package/dist/es2017/features/list/html_ttml_parser.js +2 -2
  487. package/dist/es2017/features/list/html_vtt_parser.js +2 -2
  488. package/dist/es2017/features/list/index.d.ts +3 -0
  489. package/dist/es2017/features/list/index.js +3 -0
  490. package/dist/es2017/features/list/media_source_main.d.ts +8 -0
  491. package/dist/es2017/features/list/media_source_main.js +11 -0
  492. package/dist/es2017/features/list/native_sami_parser.js +2 -3
  493. package/dist/es2017/features/list/native_srt_parser.js +2 -3
  494. package/dist/es2017/features/list/native_text_buffer.js +2 -3
  495. package/dist/es2017/features/list/native_ttml_parser.js +2 -3
  496. package/dist/es2017/features/list/native_vtt_parser.js +2 -3
  497. package/dist/es2017/features/list/smooth.d.ts +1 -1
  498. package/dist/es2017/features/list/smooth.js +7 -3
  499. package/dist/es2017/features/types.d.ts +28 -5
  500. package/dist/es2017/manifest/adaptation.d.ts +66 -44
  501. package/dist/es2017/manifest/adaptation.js +61 -79
  502. package/dist/es2017/manifest/index.d.ts +4 -3
  503. package/dist/es2017/manifest/index.js +2 -2
  504. package/dist/es2017/manifest/manifest.d.ts +132 -9
  505. package/dist/es2017/manifest/manifest.js +74 -53
  506. package/dist/es2017/manifest/period.d.ts +41 -3
  507. package/dist/es2017/manifest/period.js +87 -24
  508. package/dist/es2017/manifest/representation.d.ts +61 -74
  509. package/dist/es2017/manifest/representation.js +111 -55
  510. package/dist/es2017/manifest/types.d.ts +382 -0
  511. package/dist/es2017/manifest/types.js +0 -15
  512. package/dist/es2017/manifest/update_period_in_place.d.ts +12 -9
  513. package/dist/es2017/manifest/update_period_in_place.js +11 -7
  514. package/dist/es2017/manifest/update_periods.d.ts +7 -4
  515. package/dist/es2017/manifest/update_periods.js +54 -15
  516. package/dist/es2017/manifest/utils.d.ts +156 -0
  517. package/dist/es2017/manifest/utils.js +470 -0
  518. package/dist/es2017/minimal.d.ts +3 -0
  519. package/dist/es2017/minimal.js +6 -0
  520. package/dist/es2017/mse/index.d.ts +1 -0
  521. package/dist/es2017/mse/main_codec_support_prober.d.ts +26 -0
  522. package/dist/es2017/mse/main_codec_support_prober.js +41 -0
  523. package/dist/es2017/mse/main_media_source_interface.d.ts +112 -0
  524. package/dist/es2017/mse/main_media_source_interface.js +406 -0
  525. package/dist/es2017/mse/types.d.ts +301 -0
  526. package/dist/es2017/mse/worker_codec_support_prober.d.ts +42 -0
  527. package/dist/es2017/mse/worker_codec_support_prober.js +58 -0
  528. package/dist/es2017/mse/worker_media_source_interface.d.ts +105 -0
  529. package/dist/es2017/mse/worker_media_source_interface.js +303 -0
  530. package/dist/es2017/multithread_types.d.ts +818 -0
  531. package/dist/es2017/multithread_types.js +6 -0
  532. package/dist/es2017/parsers/manifest/dash/common/parse_periods.js +15 -16
  533. package/dist/es2017/parsers/manifest/dash/js-parser/parse_from_document.js +1 -1
  534. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +1 -1
  535. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +21 -5
  536. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/types.d.ts +55 -55
  537. package/dist/es2017/parsers/manifest/metaplaylist/metaplaylist_parser.js +13 -1
  538. package/dist/es2017/parsers/manifest/smooth/parse_protection_node.js +1 -1
  539. package/dist/es2017/parsers/manifest/types.d.ts +8 -1
  540. package/dist/es2017/public_types.d.ts +66 -21
  541. package/dist/es2017/public_types.js +3 -13
  542. package/dist/es2017/text_displayer/html/html_parsers.d.ts +15 -0
  543. package/dist/es2017/text_displayer/html/html_parsers.js +22 -0
  544. package/dist/es2017/text_displayer/html/html_text_displayer.d.ts +100 -0
  545. package/dist/es2017/text_displayer/html/html_text_displayer.js +311 -0
  546. package/dist/es2017/text_displayer/html/index.d.ts +2 -0
  547. package/dist/es2017/text_displayer/html/index.js +2 -0
  548. package/dist/es2017/text_displayer/html/text_track_cues_store.d.ts +65 -0
  549. package/dist/es2017/text_displayer/html/text_track_cues_store.js +358 -0
  550. package/dist/es2017/text_displayer/html/update_proportional_elements.d.ts +15 -0
  551. package/dist/es2017/text_displayer/html/update_proportional_elements.js +62 -0
  552. package/dist/es2017/text_displayer/html/utils.d.ts +39 -0
  553. package/dist/es2017/text_displayer/html/utils.js +107 -0
  554. package/dist/es2017/text_displayer/index.d.ts +2 -0
  555. package/dist/es2017/text_displayer/manual_time_ranges.d.ts +14 -0
  556. package/dist/es2017/text_displayer/manual_time_ranges.js +48 -0
  557. package/dist/es2017/text_displayer/native/index.d.ts +2 -0
  558. package/dist/es2017/text_displayer/native/index.js +2 -0
  559. package/dist/es2017/text_displayer/native/native_parsers.d.ts +11 -0
  560. package/dist/es2017/text_displayer/native/native_parsers.js +22 -0
  561. package/dist/es2017/text_displayer/native/native_text_displayer.d.ts +56 -0
  562. package/dist/es2017/text_displayer/native/native_text_displayer.js +203 -0
  563. package/dist/es2017/text_displayer/types.d.ts +74 -0
  564. package/dist/es2017/text_displayer/types.js +1 -0
  565. package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.d.ts +1 -1
  566. package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.js +12 -17
  567. package/dist/es2017/tools/index.d.ts +2 -1
  568. package/dist/es2017/tools/index.js +4 -2
  569. package/dist/es2017/tools/parseBIFThumbnails/index.js +29 -0
  570. package/dist/es2017/transports/dash/extract_complete_chunks.d.ts +1 -1
  571. package/dist/es2017/transports/dash/extract_complete_chunks.js +11 -7
  572. package/dist/es2017/transports/dash/get_events_out_of_emsgs.js +0 -1
  573. package/dist/es2017/transports/dash/low_latency_segment_loader.js +2 -2
  574. package/dist/es2017/transports/utils/generate_manifest_loader.js +1 -1
  575. package/dist/es2017/utils/assert.d.ts +41 -0
  576. package/dist/es2017/utils/assert.js +47 -1
  577. package/dist/es2017/utils/event_emitter.js +8 -2
  578. package/dist/es2017/utils/languages/ISO_639-1_to_ISO_639-3.js +182 -182
  579. package/dist/es2017/utils/languages/ISO_639-2_to_ISO_639-3.js +19 -19
  580. package/dist/es2017/utils/logger.d.ts +13 -3
  581. package/dist/es2017/utils/logger.js +30 -14
  582. package/dist/es2017/utils/monotonic_timestamp.d.ts +20 -4
  583. package/dist/es2017/utils/monotonic_timestamp.js +21 -5
  584. package/dist/es2017/utils/object_assign.d.ts +26 -5
  585. package/dist/es2017/utils/object_assign.js +14 -3
  586. package/dist/es2017/utils/request/fetch.js +7 -7
  587. package/dist/es2017/utils/request/index.d.ts +2 -1
  588. package/dist/es2017/utils/request/index.js +2 -1
  589. package/dist/es2017/utils/request/request_error.d.ts +47 -0
  590. package/dist/es2017/utils/request/request_error.js +65 -0
  591. package/dist/es2017/utils/request/xhr.d.ts +4 -4
  592. package/dist/es2017/utils/request/xhr.js +7 -7
  593. package/dist/es2017/utils/retry_promise_with_backoff.d.ts +1 -2
  594. package/dist/es2017/utils/string_parsing.js +1 -1
  595. package/dist/es2017/utils/sync_or_async.d.ts +70 -0
  596. package/dist/es2017/utils/sync_or_async.js +45 -0
  597. package/dist/es2017/worker_entry_point.d.ts +5 -0
  598. package/dist/es2017/worker_entry_point.js +6 -0
  599. package/dist/mpd-parser.wasm +0 -0
  600. package/dist/rx-player.js +28252 -26269
  601. package/dist/rx-player.min.js +1 -1
  602. package/dist/worker.js +3 -0
  603. package/package.json +102 -86
  604. package/.editorconfig +0 -22
  605. package/.eslintrc.js +0 -415
  606. package/.github/workflows/checks.yml +0 -101
  607. package/.github/workflows/perfs.yml +0 -22
  608. package/.github/workflows/sonarcloud_analysis.yml +0 -20
  609. package/CONTRIBUTING.md +0 -272
  610. package/FILES.md +0 -277
  611. package/dist/_esm5.processed/compat/add_class_name.d.ts +0 -22
  612. package/dist/_esm5.processed/compat/add_class_name.js +0 -39
  613. package/dist/_esm5.processed/compat/add_text_track.d.ts +0 -33
  614. package/dist/_esm5.processed/compat/add_text_track.js +0 -50
  615. package/dist/_esm5.processed/compat/browser_compatibility_types.d.ts +0 -172
  616. package/dist/_esm5.processed/compat/browser_compatibility_types.js +0 -32
  617. package/dist/_esm5.processed/compat/browser_detection.d.ts +0 -42
  618. package/dist/_esm5.processed/compat/browser_detection.js +0 -103
  619. package/dist/_esm5.processed/compat/browser_version.d.ts +0 -24
  620. package/dist/_esm5.processed/compat/browser_version.js +0 -41
  621. package/dist/_esm5.processed/compat/can_patch_isobmff.d.ts +0 -25
  622. package/dist/_esm5.processed/compat/can_patch_isobmff.js +0 -28
  623. package/dist/_esm5.processed/compat/can_rely_on_video_visibility_and_size.d.ts +0 -37
  624. package/dist/_esm5.processed/compat/can_rely_on_video_visibility_and_size.js +0 -49
  625. package/dist/_esm5.processed/compat/can_reuse_media_keys.d.ts +0 -13
  626. package/dist/_esm5.processed/compat/can_reuse_media_keys.js +0 -16
  627. package/dist/_esm5.processed/compat/change_source_buffer_type.d.ts +0 -48
  628. package/dist/_esm5.processed/compat/change_source_buffer_type.js +0 -37
  629. package/dist/_esm5.processed/compat/clear_element_src.d.ts +0 -20
  630. package/dist/_esm5.processed/compat/clear_element_src.js +0 -53
  631. package/dist/_esm5.processed/compat/eme/close_session.d.ts +0 -30
  632. package/dist/_esm5.processed/compat/eme/close_session.js +0 -162
  633. package/dist/_esm5.processed/compat/eme/constants.d.ts +0 -16
  634. package/dist/_esm5.processed/compat/eme/constants.js +0 -19
  635. package/dist/_esm5.processed/compat/eme/custom_key_system_access.d.ts +0 -54
  636. package/dist/_esm5.processed/compat/eme/custom_key_system_access.js +0 -47
  637. package/dist/_esm5.processed/compat/eme/custom_media_keys/ie11_media_keys.d.ts +0 -31
  638. package/dist/_esm5.processed/compat/eme/custom_media_keys/ie11_media_keys.js +0 -170
  639. package/dist/_esm5.processed/compat/eme/custom_media_keys/index.d.ts +0 -7
  640. package/dist/_esm5.processed/compat/eme/custom_media_keys/index.js +0 -6
  641. package/dist/_esm5.processed/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +0 -27
  642. package/dist/_esm5.processed/compat/eme/custom_media_keys/moz_media_keys_constructor.js +0 -63
  643. package/dist/_esm5.processed/compat/eme/custom_media_keys/ms_media_keys_constructor.d.ts +0 -43
  644. package/dist/_esm5.processed/compat/eme/custom_media_keys/ms_media_keys_constructor.js +0 -30
  645. package/dist/_esm5.processed/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +0 -41
  646. package/dist/_esm5.processed/compat/eme/custom_media_keys/old_webkit_media_keys.js +0 -192
  647. package/dist/_esm5.processed/compat/eme/custom_media_keys/types.d.ts +0 -43
  648. package/dist/_esm5.processed/compat/eme/custom_media_keys/types.js +0 -16
  649. package/dist/_esm5.processed/compat/eme/custom_media_keys/webkit_media_keys.d.ts +0 -37
  650. package/dist/_esm5.processed/compat/eme/custom_media_keys/webkit_media_keys.js +0 -260
  651. package/dist/_esm5.processed/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts +0 -22
  652. package/dist/_esm5.processed/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +0 -32
  653. package/dist/_esm5.processed/compat/eme/eme-api-implementation.d.ts +0 -78
  654. package/dist/_esm5.processed/compat/eme/eme-api-implementation.js +0 -198
  655. package/dist/_esm5.processed/compat/eme/generate_key_request.d.ts +0 -54
  656. package/dist/_esm5.processed/compat/eme/generate_key_request.js +0 -147
  657. package/dist/_esm5.processed/compat/eme/get_init_data.d.ts +0 -57
  658. package/dist/_esm5.processed/compat/eme/get_init_data.js +0 -112
  659. package/dist/_esm5.processed/compat/eme/get_uuid_kid_from_keystatus_kid.d.ts +0 -23
  660. package/dist/_esm5.processed/compat/eme/get_uuid_kid_from_keystatus_kid.js +0 -31
  661. package/dist/_esm5.processed/compat/eme/get_webkit_fairplay_initdata.d.ts +0 -25
  662. package/dist/_esm5.processed/compat/eme/get_webkit_fairplay_initdata.js +0 -57
  663. package/dist/_esm5.processed/compat/eme/index.d.ts +0 -24
  664. package/dist/_esm5.processed/compat/eme/index.js +0 -22
  665. package/dist/_esm5.processed/compat/eme/load_session.d.ts +0 -30
  666. package/dist/_esm5.processed/compat/eme/load_session.js +0 -99
  667. package/dist/_esm5.processed/compat/enable_audio_track.d.ts +0 -11
  668. package/dist/_esm5.processed/compat/enable_audio_track.js +0 -26
  669. package/dist/_esm5.processed/compat/event_listeners.d.ts +0 -166
  670. package/dist/_esm5.processed/compat/event_listeners.js +0 -422
  671. package/dist/_esm5.processed/compat/fullscreen.d.ts +0 -32
  672. package/dist/_esm5.processed/compat/fullscreen.js +0 -78
  673. package/dist/_esm5.processed/compat/get_start_date.d.ts +0 -30
  674. package/dist/_esm5.processed/compat/get_start_date.js +0 -44
  675. package/dist/_esm5.processed/compat/has_issues_with_high_media_source_duration.d.ts +0 -21
  676. package/dist/_esm5.processed/compat/has_issues_with_high_media_source_duration.js +0 -26
  677. package/dist/_esm5.processed/compat/index.d.ts +0 -39
  678. package/dist/_esm5.processed/compat/index.js +0 -45
  679. package/dist/_esm5.processed/compat/is_codec_supported.d.ts +0 -25
  680. package/dist/_esm5.processed/compat/is_codec_supported.js +0 -36
  681. package/dist/_esm5.processed/compat/is_debug_mode_enabled.d.ts +0 -7
  682. package/dist/_esm5.processed/compat/is_debug_mode_enabled.js +0 -9
  683. package/dist/_esm5.processed/compat/is_node.d.ts +0 -17
  684. package/dist/_esm5.processed/compat/is_node.js +0 -17
  685. package/dist/_esm5.processed/compat/is_offline.d.ts +0 -39
  686. package/dist/_esm5.processed/compat/is_offline.js +0 -43
  687. package/dist/_esm5.processed/compat/is_seeking_approximate.d.ts +0 -28
  688. package/dist/_esm5.processed/compat/is_seeking_approximate.js +0 -29
  689. package/dist/_esm5.processed/compat/is_vtt_cue.d.ts +0 -22
  690. package/dist/_esm5.processed/compat/is_vtt_cue.js +0 -25
  691. package/dist/_esm5.processed/compat/make_vtt_cue.d.ts +0 -26
  692. package/dist/_esm5.processed/compat/make_vtt_cue.js +0 -43
  693. package/dist/_esm5.processed/compat/on_height_width_change.d.ts +0 -33
  694. package/dist/_esm5.processed/compat/on_height_width_change.js +0 -77
  695. package/dist/_esm5.processed/compat/patch_webkit_source_buffer.d.ts +0 -16
  696. package/dist/_esm5.processed/compat/patch_webkit_source_buffer.js +0 -74
  697. package/dist/_esm5.processed/compat/remove_cue.d.ts +0 -21
  698. package/dist/_esm5.processed/compat/remove_cue.js +0 -63
  699. package/dist/_esm5.processed/compat/should_favour_custom_safari_EME.d.ts +0 -23
  700. package/dist/_esm5.processed/compat/should_favour_custom_safari_EME.js +0 -27
  701. package/dist/_esm5.processed/compat/should_reload_media_source_on_decipherability_update.d.ts +0 -26
  702. package/dist/_esm5.processed/compat/should_reload_media_source_on_decipherability_update.js +0 -29
  703. package/dist/_esm5.processed/compat/should_renew_media_key_system_access.d.ts +0 -21
  704. package/dist/_esm5.processed/compat/should_renew_media_key_system_access.js +0 -24
  705. package/dist/_esm5.processed/compat/should_unset_media_keys.d.ts +0 -22
  706. package/dist/_esm5.processed/compat/should_unset_media_keys.js +0 -25
  707. package/dist/_esm5.processed/compat/should_validate_metadata.d.ts +0 -22
  708. package/dist/_esm5.processed/compat/should_validate_metadata.js +0 -25
  709. package/dist/_esm5.processed/compat/should_wait_for_data_before_loaded.d.ts +0 -24
  710. package/dist/_esm5.processed/compat/should_wait_for_data_before_loaded.js +0 -30
  711. package/dist/_esm5.processed/compat/should_wait_for_have_enough_data.d.ts +0 -13
  712. package/dist/_esm5.processed/compat/should_wait_for_have_enough_data.js +0 -16
  713. package/dist/_esm5.processed/config.d.ts +0 -191
  714. package/dist/_esm5.processed/config.js +0 -32
  715. package/dist/_esm5.processed/core/adaptive/adaptive_representation_selector.d.ts +0 -363
  716. package/dist/_esm5.processed/core/adaptive/adaptive_representation_selector.js +0 -399
  717. package/dist/_esm5.processed/core/adaptive/buffer_based_chooser.d.ts +0 -89
  718. package/dist/_esm5.processed/core/adaptive/buffer_based_chooser.js +0 -192
  719. package/dist/_esm5.processed/core/adaptive/guess_based_chooser.d.ts +0 -95
  720. package/dist/_esm5.processed/core/adaptive/guess_based_chooser.js +0 -242
  721. package/dist/_esm5.processed/core/adaptive/index.d.ts +0 -18
  722. package/dist/_esm5.processed/core/adaptive/index.js +0 -17
  723. package/dist/_esm5.processed/core/adaptive/network_analyzer.d.ts +0 -73
  724. package/dist/_esm5.processed/core/adaptive/network_analyzer.js +0 -336
  725. package/dist/_esm5.processed/core/adaptive/utils/bandwidth_estimator.d.ts +0 -47
  726. package/dist/_esm5.processed/core/adaptive/utils/bandwidth_estimator.js +0 -70
  727. package/dist/_esm5.processed/core/adaptive/utils/ewma.d.ts +0 -39
  728. package/dist/_esm5.processed/core/adaptive/utils/ewma.js +0 -52
  729. package/dist/_esm5.processed/core/adaptive/utils/filter_by_bitrate.d.ts +0 -25
  730. package/dist/_esm5.processed/core/adaptive/utils/filter_by_bitrate.js +0 -37
  731. package/dist/_esm5.processed/core/adaptive/utils/filter_by_width.d.ts +0 -25
  732. package/dist/_esm5.processed/core/adaptive/utils/filter_by_width.js +0 -42
  733. package/dist/_esm5.processed/core/adaptive/utils/get_buffer_levels.d.ts +0 -24
  734. package/dist/_esm5.processed/core/adaptive/utils/get_buffer_levels.js +0 -47
  735. package/dist/_esm5.processed/core/adaptive/utils/last_estimate_storage.d.ts +0 -61
  736. package/dist/_esm5.processed/core/adaptive/utils/last_estimate_storage.js +0 -37
  737. package/dist/_esm5.processed/core/adaptive/utils/pending_requests_store.d.ts +0 -100
  738. package/dist/_esm5.processed/core/adaptive/utils/pending_requests_store.js +0 -76
  739. package/dist/_esm5.processed/core/adaptive/utils/representation_score_calculator.d.ts +0 -104
  740. package/dist/_esm5.processed/core/adaptive/utils/representation_score_calculator.js +0 -114
  741. package/dist/_esm5.processed/core/adaptive/utils/select_optimal_representation.d.ts +0 -33
  742. package/dist/_esm5.processed/core/adaptive/utils/select_optimal_representation.js +0 -45
  743. package/dist/_esm5.processed/core/api/debug/buffer_graph.d.ts +0 -28
  744. package/dist/_esm5.processed/core/api/debug/buffer_graph.js +0 -171
  745. package/dist/_esm5.processed/core/api/debug/buffer_size_graph.d.ts +0 -10
  746. package/dist/_esm5.processed/core/api/debug/buffer_size_graph.js +0 -104
  747. package/dist/_esm5.processed/core/api/debug/constants.d.ts +0 -2
  748. package/dist/_esm5.processed/core/api/debug/constants.js +0 -2
  749. package/dist/_esm5.processed/core/api/debug/index.d.ts +0 -2
  750. package/dist/_esm5.processed/core/api/debug/index.js +0 -2
  751. package/dist/_esm5.processed/core/api/debug/modules/general_info.d.ts +0 -3
  752. package/dist/_esm5.processed/core/api/debug/modules/general_info.js +0 -209
  753. package/dist/_esm5.processed/core/api/debug/modules/segment_buffer_content.d.ts +0 -4
  754. package/dist/_esm5.processed/core/api/debug/modules/segment_buffer_content.js +0 -121
  755. package/dist/_esm5.processed/core/api/debug/modules/segment_buffer_size.d.ts +0 -3
  756. package/dist/_esm5.processed/core/api/debug/modules/segment_buffer_size.js +0 -35
  757. package/dist/_esm5.processed/core/api/debug/render.d.ts +0 -3
  758. package/dist/_esm5.processed/core/api/debug/render.js +0 -32
  759. package/dist/_esm5.processed/core/api/debug/utils.d.ts +0 -39
  760. package/dist/_esm5.processed/core/api/debug/utils.js +0 -57
  761. package/dist/_esm5.processed/core/api/index.d.ts +0 -20
  762. package/dist/_esm5.processed/core/api/index.js +0 -19
  763. package/dist/_esm5.processed/core/api/option_utils.d.ts +0 -142
  764. package/dist/_esm5.processed/core/api/option_utils.js +0 -476
  765. package/dist/_esm5.processed/core/api/playback_observer.d.ts +0 -364
  766. package/dist/_esm5.processed/core/api/playback_observer.js +0 -582
  767. package/dist/_esm5.processed/core/api/public_api.d.ts +0 -879
  768. package/dist/_esm5.processed/core/api/public_api.js +0 -2445
  769. package/dist/_esm5.processed/core/api/tracks_management/media_element_track_choice_manager.d.ts +0 -257
  770. package/dist/_esm5.processed/core/api/tracks_management/media_element_track_choice_manager.js +0 -805
  771. package/dist/_esm5.processed/core/api/tracks_management/track_choice_manager.d.ts +0 -258
  772. package/dist/_esm5.processed/core/api/tracks_management/track_choice_manager.js +0 -989
  773. package/dist/_esm5.processed/core/api/utils.d.ts +0 -65
  774. package/dist/_esm5.processed/core/api/utils.js +0 -156
  775. package/dist/_esm5.processed/core/decrypt/__tests__/__global__/utils.d.ts +0 -178
  776. package/dist/_esm5.processed/core/decrypt/__tests__/__global__/utils.js +0 -405
  777. package/dist/_esm5.processed/core/decrypt/attach_media_keys.d.ts +0 -52
  778. package/dist/_esm5.processed/core/decrypt/attach_media_keys.js +0 -115
  779. package/dist/_esm5.processed/core/decrypt/clear_on_stop.d.ts +0 -22
  780. package/dist/_esm5.processed/core/decrypt/clear_on_stop.js +0 -40
  781. package/dist/_esm5.processed/core/decrypt/content_decryptor.d.ts +0 -184
  782. package/dist/_esm5.processed/core/decrypt/content_decryptor.js +0 -967
  783. package/dist/_esm5.processed/core/decrypt/create_or_load_session.d.ts +0 -63
  784. package/dist/_esm5.processed/core/decrypt/create_or_load_session.js +0 -124
  785. package/dist/_esm5.processed/core/decrypt/create_session.d.ts +0 -53
  786. package/dist/_esm5.processed/core/decrypt/create_session.js +0 -212
  787. package/dist/_esm5.processed/core/decrypt/dispose_decryption_resources.d.ts +0 -21
  788. package/dist/_esm5.processed/core/decrypt/dispose_decryption_resources.js +0 -88
  789. package/dist/_esm5.processed/core/decrypt/find_key_system.d.ts +0 -48
  790. package/dist/_esm5.processed/core/decrypt/find_key_system.js +0 -333
  791. package/dist/_esm5.processed/core/decrypt/get_key_system_configuration.d.ts +0 -30
  792. package/dist/_esm5.processed/core/decrypt/get_key_system_configuration.js +0 -44
  793. package/dist/_esm5.processed/core/decrypt/get_media_keys.d.ts +0 -44
  794. package/dist/_esm5.processed/core/decrypt/get_media_keys.js +0 -156
  795. package/dist/_esm5.processed/core/decrypt/index.d.ts +0 -26
  796. package/dist/_esm5.processed/core/decrypt/index.js +0 -26
  797. package/dist/_esm5.processed/core/decrypt/init_media_keys.d.ts +0 -26
  798. package/dist/_esm5.processed/core/decrypt/init_media_keys.js +0 -82
  799. package/dist/_esm5.processed/core/decrypt/session_events_listener.d.ts +0 -75
  800. package/dist/_esm5.processed/core/decrypt/session_events_listener.js +0 -388
  801. package/dist/_esm5.processed/core/decrypt/set_server_certificate.d.ts +0 -51
  802. package/dist/_esm5.processed/core/decrypt/set_server_certificate.js +0 -141
  803. package/dist/_esm5.processed/core/decrypt/types.d.ts +0 -368
  804. package/dist/_esm5.processed/core/decrypt/types.js +0 -55
  805. package/dist/_esm5.processed/core/decrypt/utils/are_init_values_compatible.d.ts +0 -34
  806. package/dist/_esm5.processed/core/decrypt/utils/are_init_values_compatible.js +0 -113
  807. package/dist/_esm5.processed/core/decrypt/utils/check_key_statuses.d.ts +0 -52
  808. package/dist/_esm5.processed/core/decrypt/utils/check_key_statuses.js +0 -156
  809. package/dist/_esm5.processed/core/decrypt/utils/clean_old_loaded_sessions.d.ts +0 -26
  810. package/dist/_esm5.processed/core/decrypt/utils/clean_old_loaded_sessions.js +0 -86
  811. package/dist/_esm5.processed/core/decrypt/utils/clean_old_stored_persistent_info.d.ts +0 -32
  812. package/dist/_esm5.processed/core/decrypt/utils/clean_old_stored_persistent_info.js +0 -40
  813. package/dist/_esm5.processed/core/decrypt/utils/get_drm_system_id.d.ts +0 -20
  814. package/dist/_esm5.processed/core/decrypt/utils/get_drm_system_id.js +0 -37
  815. package/dist/_esm5.processed/core/decrypt/utils/init_data_values_container.d.ts +0 -69
  816. package/dist/_esm5.processed/core/decrypt/utils/init_data_values_container.js +0 -99
  817. package/dist/_esm5.processed/core/decrypt/utils/is_session_usable.d.ts +0 -24
  818. package/dist/_esm5.processed/core/decrypt/utils/is_session_usable.js +0 -49
  819. package/dist/_esm5.processed/core/decrypt/utils/key_id_comparison.d.ts +0 -31
  820. package/dist/_esm5.processed/core/decrypt/utils/key_id_comparison.js +0 -60
  821. package/dist/_esm5.processed/core/decrypt/utils/key_session_record.d.ts +0 -104
  822. package/dist/_esm5.processed/core/decrypt/utils/key_session_record.js +0 -157
  823. package/dist/_esm5.processed/core/decrypt/utils/loaded_sessions_store.d.ts +0 -215
  824. package/dist/_esm5.processed/core/decrypt/utils/loaded_sessions_store.js +0 -472
  825. package/dist/_esm5.processed/core/decrypt/utils/media_keys_infos_store.d.ts +0 -56
  826. package/dist/_esm5.processed/core/decrypt/utils/media_keys_infos_store.js +0 -44
  827. package/dist/_esm5.processed/core/decrypt/utils/persistent_sessions_store.d.ts +0 -94
  828. package/dist/_esm5.processed/core/decrypt/utils/persistent_sessions_store.js +0 -321
  829. package/dist/_esm5.processed/core/decrypt/utils/serializable_bytes.d.ts +0 -44
  830. package/dist/_esm5.processed/core/decrypt/utils/serializable_bytes.js +0 -48
  831. package/dist/_esm5.processed/core/decrypt/utils/server_certificate_store.d.ts +0 -64
  832. package/dist/_esm5.processed/core/decrypt/utils/server_certificate_store.js +0 -112
  833. package/dist/_esm5.processed/core/fetchers/cdn_prioritizer.d.ts +0 -107
  834. package/dist/_esm5.processed/core/fetchers/cdn_prioritizer.js +0 -177
  835. package/dist/_esm5.processed/core/fetchers/index.d.ts +0 -18
  836. package/dist/_esm5.processed/core/fetchers/index.js +0 -18
  837. package/dist/_esm5.processed/core/fetchers/manifest/index.d.ts +0 -18
  838. package/dist/_esm5.processed/core/fetchers/manifest/index.js +0 -17
  839. package/dist/_esm5.processed/core/fetchers/manifest/manifest_fetcher.d.ts +0 -223
  840. package/dist/_esm5.processed/core/fetchers/manifest/manifest_fetcher.js +0 -624
  841. package/dist/_esm5.processed/core/fetchers/segment/index.d.ts +0 -19
  842. package/dist/_esm5.processed/core/fetchers/segment/index.js +0 -17
  843. package/dist/_esm5.processed/core/fetchers/segment/prioritized_segment_fetcher.d.ts +0 -38
  844. package/dist/_esm5.processed/core/fetchers/segment/prioritized_segment_fetcher.js +0 -67
  845. package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher.d.ts +0 -154
  846. package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher.js +0 -308
  847. package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher_creator.d.ts +0 -79
  848. package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher_creator.js +0 -58
  849. package/dist/_esm5.processed/core/fetchers/segment/task_prioritizer.d.ts +0 -145
  850. package/dist/_esm5.processed/core/fetchers/segment/task_prioritizer.js +0 -323
  851. package/dist/_esm5.processed/core/fetchers/utils/error_selector.d.ts +0 -23
  852. package/dist/_esm5.processed/core/fetchers/utils/error_selector.js +0 -31
  853. package/dist/_esm5.processed/core/fetchers/utils/schedule_request.d.ts +0 -103
  854. package/dist/_esm5.processed/core/fetchers/utils/schedule_request.js +0 -424
  855. package/dist/_esm5.processed/core/init/directfile_content_initializer.d.ts +0 -97
  856. package/dist/_esm5.processed/core/init/directfile_content_initializer.js +0 -239
  857. package/dist/_esm5.processed/core/init/index.d.ts +0 -16
  858. package/dist/_esm5.processed/core/init/index.js +0 -16
  859. package/dist/_esm5.processed/core/init/media_source_content_initializer.d.ts +0 -181
  860. package/dist/_esm5.processed/core/init/media_source_content_initializer.js +0 -625
  861. package/dist/_esm5.processed/core/init/types.d.ts +0 -241
  862. package/dist/_esm5.processed/core/init/types.js +0 -51
  863. package/dist/_esm5.processed/core/init/utils/content_time_boundaries_observer.d.ts +0 -191
  864. package/dist/_esm5.processed/core/init/utils/content_time_boundaries_observer.js +0 -497
  865. package/dist/_esm5.processed/core/init/utils/create_media_source.d.ts +0 -37
  866. package/dist/_esm5.processed/core/init/utils/create_media_source.js +0 -112
  867. package/dist/_esm5.processed/core/init/utils/create_stream_playback_observer.d.ts +0 -45
  868. package/dist/_esm5.processed/core/init/utils/create_stream_playback_observer.js +0 -86
  869. package/dist/_esm5.processed/core/init/utils/end_of_stream.d.ts +0 -33
  870. package/dist/_esm5.processed/core/init/utils/end_of_stream.js +0 -89
  871. package/dist/_esm5.processed/core/init/utils/get_initial_time.d.ts +0 -62
  872. package/dist/_esm5.processed/core/init/utils/get_initial_time.js +0 -109
  873. package/dist/_esm5.processed/core/init/utils/get_loaded_reference.d.ts +0 -28
  874. package/dist/_esm5.processed/core/init/utils/get_loaded_reference.js +0 -56
  875. package/dist/_esm5.processed/core/init/utils/initial_seek_and_play.d.ts +0 -63
  876. package/dist/_esm5.processed/core/init/utils/initial_seek_and_play.js +0 -128
  877. package/dist/_esm5.processed/core/init/utils/initialize_content_decryption.d.ts +0 -80
  878. package/dist/_esm5.processed/core/init/utils/initialize_content_decryption.js +0 -104
  879. package/dist/_esm5.processed/core/init/utils/media_source_duration_updater.d.ts +0 -58
  880. package/dist/_esm5.processed/core/init/utils/media_source_duration_updater.js +0 -268
  881. package/dist/_esm5.processed/core/init/utils/rebuffering_controller.d.ts +0 -113
  882. package/dist/_esm5.processed/core/init/utils/rebuffering_controller.js +0 -483
  883. package/dist/_esm5.processed/core/init/utils/stream_events_emitter/are_same_stream_events.d.ts +0 -39
  884. package/dist/_esm5.processed/core/init/utils/stream_events_emitter/are_same_stream_events.js +0 -35
  885. package/dist/_esm5.processed/core/init/utils/stream_events_emitter/index.d.ts +0 -18
  886. package/dist/_esm5.processed/core/init/utils/stream_events_emitter/index.js +0 -17
  887. package/dist/_esm5.processed/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +0 -25
  888. package/dist/_esm5.processed/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +0 -66
  889. package/dist/_esm5.processed/core/init/utils/stream_events_emitter/stream_events_emitter.d.ts +0 -52
  890. package/dist/_esm5.processed/core/init/utils/stream_events_emitter/stream_events_emitter.js +0 -200
  891. package/dist/_esm5.processed/core/init/utils/stream_events_emitter/types.d.ts +0 -41
  892. package/dist/_esm5.processed/core/init/utils/stream_events_emitter/types.js +0 -16
  893. package/dist/_esm5.processed/core/init/utils/throw_on_media_error.d.ts +0 -23
  894. package/dist/_esm5.processed/core/init/utils/throw_on_media_error.js +0 -58
  895. package/dist/_esm5.processed/core/segment_buffers/garbage_collector.d.ts +0 -41
  896. package/dist/_esm5.processed/core/segment_buffers/garbage_collector.js +0 -183
  897. package/dist/_esm5.processed/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.d.ts +0 -182
  898. package/dist/_esm5.processed/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.js +0 -462
  899. package/dist/_esm5.processed/core/segment_buffers/implementations/audio_video/index.d.ts +0 -17
  900. package/dist/_esm5.processed/core/segment_buffers/implementations/audio_video/index.js +0 -17
  901. package/dist/_esm5.processed/core/segment_buffers/implementations/image/image_segment_buffer.d.ts +0 -75
  902. package/dist/_esm5.processed/core/segment_buffers/implementations/image/image_segment_buffer.js +0 -133
  903. package/dist/_esm5.processed/core/segment_buffers/implementations/image/index.d.ts +0 -17
  904. package/dist/_esm5.processed/core/segment_buffers/implementations/image/index.js +0 -17
  905. package/dist/_esm5.processed/core/segment_buffers/implementations/index.d.ts +0 -18
  906. package/dist/_esm5.processed/core/segment_buffers/implementations/index.js +0 -18
  907. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/html_text_segment_buffer.d.ts +0 -141
  908. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/html_text_segment_buffer.js +0 -405
  909. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/index.d.ts +0 -21
  910. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/index.js +0 -21
  911. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/parsers.d.ts +0 -30
  912. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/parsers.js +0 -37
  913. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/text_track_cues_store.d.ts +0 -79
  914. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/text_track_cues_store.js +0 -372
  915. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/types.d.ts +0 -25
  916. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/types.js +0 -16
  917. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/update_proportional_elements.d.ts +0 -30
  918. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/update_proportional_elements.js +0 -77
  919. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/utils.d.ts +0 -45
  920. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/utils.js +0 -124
  921. package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/index.d.ts +0 -17
  922. package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/index.js +0 -17
  923. package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/native_text_segment_buffer.d.ts +0 -84
  924. package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/native_text_segment_buffer.js +0 -272
  925. package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/parsers.d.ts +0 -26
  926. package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/parsers.js +0 -37
  927. package/dist/_esm5.processed/core/segment_buffers/implementations/types.d.ts +0 -320
  928. package/dist/_esm5.processed/core/segment_buffers/implementations/types.js +0 -121
  929. package/dist/_esm5.processed/core/segment_buffers/implementations/utils/manual_time_ranges.d.ts +0 -29
  930. package/dist/_esm5.processed/core/segment_buffers/implementations/utils/manual_time_ranges.js +0 -65
  931. package/dist/_esm5.processed/core/segment_buffers/index.d.ts +0 -21
  932. package/dist/_esm5.processed/core/segment_buffers/index.js +0 -20
  933. package/dist/_esm5.processed/core/segment_buffers/inventory/buffered_history.d.ts +0 -89
  934. package/dist/_esm5.processed/core/segment_buffers/inventory/buffered_history.js +0 -90
  935. package/dist/_esm5.processed/core/segment_buffers/inventory/index.d.ts +0 -20
  936. package/dist/_esm5.processed/core/segment_buffers/inventory/index.js +0 -17
  937. package/dist/_esm5.processed/core/segment_buffers/inventory/segment_inventory.d.ts +0 -224
  938. package/dist/_esm5.processed/core/segment_buffers/inventory/segment_inventory.js +0 -833
  939. package/dist/_esm5.processed/core/segment_buffers/inventory/types.d.ts +0 -27
  940. package/dist/_esm5.processed/core/segment_buffers/inventory/types.js +0 -16
  941. package/dist/_esm5.processed/core/segment_buffers/segment_buffers_store.d.ts +0 -181
  942. package/dist/_esm5.processed/core/segment_buffers/segment_buffers_store.js +0 -314
  943. package/dist/_esm5.processed/core/stream/adaptation/adaptation_stream.d.ts +0 -48
  944. package/dist/_esm5.processed/core/stream/adaptation/adaptation_stream.js +0 -292
  945. package/dist/_esm5.processed/core/stream/adaptation/index.d.ts +0 -18
  946. package/dist/_esm5.processed/core/stream/adaptation/index.js +0 -18
  947. package/dist/_esm5.processed/core/stream/adaptation/types.d.ts +0 -178
  948. package/dist/_esm5.processed/core/stream/adaptation/utils/create_representation_estimator.d.ts +0 -47
  949. package/dist/_esm5.processed/core/stream/adaptation/utils/create_representation_estimator.js +0 -70
  950. package/dist/_esm5.processed/core/stream/index.d.ts +0 -21
  951. package/dist/_esm5.processed/core/stream/index.js +0 -17
  952. package/dist/_esm5.processed/core/stream/orchestrator/get_time_ranges_for_content.d.ts +0 -30
  953. package/dist/_esm5.processed/core/stream/orchestrator/get_time_ranges_for_content.js +0 -60
  954. package/dist/_esm5.processed/core/stream/orchestrator/index.d.ts +0 -18
  955. package/dist/_esm5.processed/core/stream/orchestrator/index.js +0 -17
  956. package/dist/_esm5.processed/core/stream/orchestrator/stream_orchestrator.d.ts +0 -172
  957. package/dist/_esm5.processed/core/stream/orchestrator/stream_orchestrator.js +0 -481
  958. package/dist/_esm5.processed/core/stream/period/index.d.ts +0 -18
  959. package/dist/_esm5.processed/core/stream/period/index.js +0 -18
  960. package/dist/_esm5.processed/core/stream/period/period_stream.d.ts +0 -49
  961. package/dist/_esm5.processed/core/stream/period/period_stream.js +0 -384
  962. package/dist/_esm5.processed/core/stream/period/types.d.ts +0 -110
  963. package/dist/_esm5.processed/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +0 -70
  964. package/dist/_esm5.processed/core/stream/period/utils/get_adaptation_switch_strategy.js +0 -198
  965. package/dist/_esm5.processed/core/stream/representation/index.d.ts +0 -18
  966. package/dist/_esm5.processed/core/stream/representation/index.js +0 -18
  967. package/dist/_esm5.processed/core/stream/representation/representation_stream.d.ts +0 -53
  968. package/dist/_esm5.processed/core/stream/representation/representation_stream.js +0 -369
  969. package/dist/_esm5.processed/core/stream/representation/types.d.ts +0 -267
  970. package/dist/_esm5.processed/core/stream/representation/utils/append_segment_to_buffer.d.ts +0 -32
  971. package/dist/_esm5.processed/core/stream/representation/utils/append_segment_to_buffer.js +0 -114
  972. package/dist/_esm5.processed/core/stream/representation/utils/check_for_discontinuity.d.ts +0 -53
  973. package/dist/_esm5.processed/core/stream/representation/utils/check_for_discontinuity.js +0 -235
  974. package/dist/_esm5.processed/core/stream/representation/utils/downloading_queue.d.ts +0 -231
  975. package/dist/_esm5.processed/core/stream/representation/utils/downloading_queue.js +0 -388
  976. package/dist/_esm5.processed/core/stream/representation/utils/force_garbage_collection.d.ts +0 -29
  977. package/dist/_esm5.processed/core/stream/representation/utils/force_garbage_collection.js +0 -150
  978. package/dist/_esm5.processed/core/stream/representation/utils/get_buffer_status.d.ts +0 -72
  979. package/dist/_esm5.processed/core/stream/representation/utils/get_buffer_status.js +0 -203
  980. package/dist/_esm5.processed/core/stream/representation/utils/get_needed_segments.d.ts +0 -92
  981. package/dist/_esm5.processed/core/stream/representation/utils/get_needed_segments.js +0 -426
  982. package/dist/_esm5.processed/core/stream/representation/utils/get_segment_priority.d.ts +0 -28
  983. package/dist/_esm5.processed/core/stream/representation/utils/get_segment_priority.js +0 -38
  984. package/dist/_esm5.processed/core/stream/representation/utils/push_init_segment.d.ts +0 -39
  985. package/dist/_esm5.processed/core/stream/representation/utils/push_init_segment.js +0 -85
  986. package/dist/_esm5.processed/core/stream/representation/utils/push_media_segment.d.ts +0 -40
  987. package/dist/_esm5.processed/core/stream/representation/utils/push_media_segment.js +0 -108
  988. package/dist/_esm5.processed/default_config.d.ts +0 -1143
  989. package/dist/_esm5.processed/default_config.js +0 -1178
  990. package/dist/_esm5.processed/errors/assertion_error.d.ts +0 -31
  991. package/dist/_esm5.processed/errors/assertion_error.js +0 -54
  992. package/dist/_esm5.processed/errors/custom_loader_error.d.ts +0 -38
  993. package/dist/_esm5.processed/errors/custom_loader_error.js +0 -61
  994. package/dist/_esm5.processed/errors/encrypted_media_error.d.ts +0 -39
  995. package/dist/_esm5.processed/errors/encrypted_media_error.js +0 -57
  996. package/dist/_esm5.processed/errors/error_codes.d.ts +0 -31
  997. package/dist/_esm5.processed/errors/error_codes.js +0 -70
  998. package/dist/_esm5.processed/errors/error_message.d.ts +0 -23
  999. package/dist/_esm5.processed/errors/error_message.js +0 -25
  1000. package/dist/_esm5.processed/errors/format_error.d.ts +0 -20
  1001. package/dist/_esm5.processed/errors/format_error.js +0 -31
  1002. package/dist/_esm5.processed/errors/index.d.ts +0 -26
  1003. package/dist/_esm5.processed/errors/index.js +0 -26
  1004. package/dist/_esm5.processed/errors/is_known_error.d.ts +0 -22
  1005. package/dist/_esm5.processed/errors/is_known_error.js +0 -32
  1006. package/dist/_esm5.processed/errors/media_error.d.ts +0 -56
  1007. package/dist/_esm5.processed/errors/media_error.js +0 -71
  1008. package/dist/_esm5.processed/errors/network_error.d.ts +0 -45
  1009. package/dist/_esm5.processed/errors/network_error.js +0 -71
  1010. package/dist/_esm5.processed/errors/other_error.d.ts +0 -32
  1011. package/dist/_esm5.processed/errors/other_error.js +0 -56
  1012. package/dist/_esm5.processed/errors/request_error.d.ts +0 -39
  1013. package/dist/_esm5.processed/errors/request_error.js +0 -77
  1014. package/dist/_esm5.processed/experimental/features/dash_wasm.js +0 -34
  1015. package/dist/_esm5.processed/experimental/features/index.d.ts +0 -19
  1016. package/dist/_esm5.processed/experimental/features/index.js +0 -19
  1017. package/dist/_esm5.processed/experimental/features/local.d.ts +0 -19
  1018. package/dist/_esm5.processed/experimental/features/local.js +0 -24
  1019. package/dist/_esm5.processed/experimental/features/metaplaylist.d.ts +0 -19
  1020. package/dist/_esm5.processed/experimental/features/metaplaylist.js +0 -24
  1021. package/dist/_esm5.processed/experimental/index.d.ts +0 -2
  1022. package/dist/_esm5.processed/experimental/index.js +0 -2
  1023. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/features/dash.d.ts +0 -17
  1024. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/features/dash.js +0 -20
  1025. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts +0 -17
  1026. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/features/metaplaylist.js +0 -20
  1027. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/index.d.ts +0 -18
  1028. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/index.js +0 -18
  1029. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +0 -26
  1030. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +0 -61
  1031. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +0 -25
  1032. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +0 -63
  1033. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +0 -30
  1034. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +0 -41
  1035. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/types.d.ts +0 -25
  1036. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/types.js +0 -16
  1037. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts +0 -54
  1038. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +0 -343
  1039. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.d.ts +0 -25
  1040. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.js +0 -48
  1041. package/dist/_esm5.processed/experimental/tools/createMetaplaylist/get_duration_from_manifest.d.ts +0 -23
  1042. package/dist/_esm5.processed/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +0 -169
  1043. package/dist/_esm5.processed/experimental/tools/createMetaplaylist/index.d.ts +0 -30
  1044. package/dist/_esm5.processed/experimental/tools/createMetaplaylist/index.js +0 -50
  1045. package/dist/_esm5.processed/experimental/tools/index.d.ts +0 -20
  1046. package/dist/_esm5.processed/experimental/tools/index.js +0 -20
  1047. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/api/index.d.ts +0 -60
  1048. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/api/index.js +0 -158
  1049. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.d.ts +0 -45
  1050. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.js +0 -102
  1051. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/capabilities.d.ts +0 -24
  1052. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/capabilities.js +0 -142
  1053. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/index.d.ts +0 -17
  1054. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/index.js +0 -17
  1055. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/log.d.ts +0 -18
  1056. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/log.js +0 -18
  1057. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.d.ts +0 -25
  1058. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.js +0 -50
  1059. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts +0 -22
  1060. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.js +0 -69
  1061. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts +0 -26
  1062. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +0 -79
  1063. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.d.ts +0 -29
  1064. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.js +0 -65
  1065. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/index.d.ts +0 -21
  1066. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/index.js +0 -30
  1067. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts +0 -21
  1068. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.js +0 -57
  1069. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.d.ts +0 -21
  1070. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.js +0 -89
  1071. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.d.ts +0 -26
  1072. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.js +0 -83
  1073. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts +0 -21
  1074. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +0 -45
  1075. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/types.d.ts +0 -69
  1076. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/types.js +0 -21
  1077. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/utils.d.ts +0 -31
  1078. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/utils.js +0 -83
  1079. package/dist/_esm5.processed/experimental/tools/parseBIFThumbnails.d.ts +0 -29
  1080. package/dist/_esm5.processed/experimental/tools/parseBIFThumbnails.js +0 -29
  1081. package/dist/_esm5.processed/features/add_features.d.ts +0 -20
  1082. package/dist/_esm5.processed/features/add_features.js +0 -35
  1083. package/dist/_esm5.processed/features/features_object.d.ts +0 -22
  1084. package/dist/_esm5.processed/features/features_object.js +0 -33
  1085. package/dist/_esm5.processed/features/index.d.ts +0 -34
  1086. package/dist/_esm5.processed/features/index.js +0 -33
  1087. package/dist/_esm5.processed/features/list/bif_parser.d.ts +0 -23
  1088. package/dist/_esm5.processed/features/list/bif_parser.js +0 -27
  1089. package/dist/_esm5.processed/features/list/dash.d.ts +0 -23
  1090. package/dist/_esm5.processed/features/list/dash.js +0 -32
  1091. package/dist/_esm5.processed/features/list/directfile.d.ts +0 -24
  1092. package/dist/_esm5.processed/features/list/directfile.js +0 -31
  1093. package/dist/_esm5.processed/features/list/eme.d.ts +0 -23
  1094. package/dist/_esm5.processed/features/list/eme.js +0 -25
  1095. package/dist/_esm5.processed/features/list/html_sami_parser.d.ts +0 -23
  1096. package/dist/_esm5.processed/features/list/html_sami_parser.js +0 -27
  1097. package/dist/_esm5.processed/features/list/html_srt_parser.d.ts +0 -23
  1098. package/dist/_esm5.processed/features/list/html_srt_parser.js +0 -27
  1099. package/dist/_esm5.processed/features/list/html_text_buffer.d.ts +0 -23
  1100. package/dist/_esm5.processed/features/list/html_text_buffer.js +0 -25
  1101. package/dist/_esm5.processed/features/list/html_ttml_parser.d.ts +0 -23
  1102. package/dist/_esm5.processed/features/list/html_ttml_parser.js +0 -27
  1103. package/dist/_esm5.processed/features/list/html_vtt_parser.d.ts +0 -23
  1104. package/dist/_esm5.processed/features/list/html_vtt_parser.js +0 -27
  1105. package/dist/_esm5.processed/features/list/image_buffer.d.ts +0 -23
  1106. package/dist/_esm5.processed/features/list/image_buffer.js +0 -25
  1107. package/dist/_esm5.processed/features/list/index.d.ts +0 -31
  1108. package/dist/_esm5.processed/features/list/index.js +0 -31
  1109. package/dist/_esm5.processed/features/list/native_sami_parser.d.ts +0 -23
  1110. package/dist/_esm5.processed/features/list/native_sami_parser.js +0 -28
  1111. package/dist/_esm5.processed/features/list/native_srt_parser.d.ts +0 -23
  1112. package/dist/_esm5.processed/features/list/native_srt_parser.js +0 -28
  1113. package/dist/_esm5.processed/features/list/native_text_buffer.d.ts +0 -23
  1114. package/dist/_esm5.processed/features/list/native_text_buffer.js +0 -26
  1115. package/dist/_esm5.processed/features/list/native_ttml_parser.d.ts +0 -23
  1116. package/dist/_esm5.processed/features/list/native_ttml_parser.js +0 -28
  1117. package/dist/_esm5.processed/features/list/native_vtt_parser.d.ts +0 -23
  1118. package/dist/_esm5.processed/features/list/native_vtt_parser.js +0 -28
  1119. package/dist/_esm5.processed/features/list/smooth.d.ts +0 -23
  1120. package/dist/_esm5.processed/features/list/smooth.js +0 -28
  1121. package/dist/_esm5.processed/features/types.d.ts +0 -154
  1122. package/dist/_esm5.processed/features/types.js +0 -16
  1123. package/dist/_esm5.processed/log.d.ts +0 -18
  1124. package/dist/_esm5.processed/log.js +0 -19
  1125. package/dist/_esm5.processed/manifest/adaptation.d.ts +0 -115
  1126. package/dist/_esm5.processed/manifest/adaptation.js +0 -208
  1127. package/dist/_esm5.processed/manifest/index.d.ts +0 -25
  1128. package/dist/_esm5.processed/manifest/index.js +0 -28
  1129. package/dist/_esm5.processed/manifest/manifest.d.ts +0 -317
  1130. package/dist/_esm5.processed/manifest/manifest.js +0 -487
  1131. package/dist/_esm5.processed/manifest/period.d.ts +0 -74
  1132. package/dist/_esm5.processed/manifest/period.js +0 -141
  1133. package/dist/_esm5.processed/manifest/representation.d.ts +0 -246
  1134. package/dist/_esm5.processed/manifest/representation.js +0 -265
  1135. package/dist/_esm5.processed/manifest/representation_index/index.d.ts +0 -18
  1136. package/dist/_esm5.processed/manifest/representation_index/index.js +0 -17
  1137. package/dist/_esm5.processed/manifest/representation_index/static.d.ts +0 -99
  1138. package/dist/_esm5.processed/manifest/representation_index/static.js +0 -135
  1139. package/dist/_esm5.processed/manifest/representation_index/types.d.ts +0 -399
  1140. package/dist/_esm5.processed/manifest/representation_index/types.js +0 -16
  1141. package/dist/_esm5.processed/manifest/types.d.ts +0 -31
  1142. package/dist/_esm5.processed/manifest/types.js +0 -30
  1143. package/dist/_esm5.processed/manifest/update_period_in_place.d.ts +0 -49
  1144. package/dist/_esm5.processed/manifest/update_period_in_place.js +0 -119
  1145. package/dist/_esm5.processed/manifest/update_periods.d.ts +0 -47
  1146. package/dist/_esm5.processed/manifest/update_periods.js +0 -168
  1147. package/dist/_esm5.processed/manifest/utils.d.ts +0 -39
  1148. package/dist/_esm5.processed/manifest/utils.js +0 -42
  1149. package/dist/_esm5.processed/minimal.d.ts +0 -17
  1150. package/dist/_esm5.processed/minimal.js +0 -31
  1151. package/dist/_esm5.processed/parsers/containers/isobmff/constants.d.ts +0 -23
  1152. package/dist/_esm5.processed/parsers/containers/isobmff/constants.js +0 -23
  1153. package/dist/_esm5.processed/parsers/containers/isobmff/create_box.d.ts +0 -30
  1154. package/dist/_esm5.processed/parsers/containers/isobmff/create_box.js +0 -64
  1155. package/dist/_esm5.processed/parsers/containers/isobmff/drm/index.d.ts +0 -16
  1156. package/dist/_esm5.processed/parsers/containers/isobmff/drm/index.js +0 -16
  1157. package/dist/_esm5.processed/parsers/containers/isobmff/drm/playready.d.ts +0 -21
  1158. package/dist/_esm5.processed/parsers/containers/isobmff/drm/playready.js +0 -36
  1159. package/dist/_esm5.processed/parsers/containers/isobmff/get_box.d.ts +0 -107
  1160. package/dist/_esm5.processed/parsers/containers/isobmff/get_box.js +0 -228
  1161. package/dist/_esm5.processed/parsers/containers/isobmff/index.d.ts +0 -21
  1162. package/dist/_esm5.processed/parsers/containers/isobmff/index.js +0 -21
  1163. package/dist/_esm5.processed/parsers/containers/isobmff/read.d.ts +0 -57
  1164. package/dist/_esm5.processed/parsers/containers/isobmff/read.js +0 -88
  1165. package/dist/_esm5.processed/parsers/containers/isobmff/take_pssh_out.d.ts +0 -41
  1166. package/dist/_esm5.processed/parsers/containers/isobmff/take_pssh_out.js +0 -83
  1167. package/dist/_esm5.processed/parsers/containers/isobmff/utils.d.ts +0 -123
  1168. package/dist/_esm5.processed/parsers/containers/isobmff/utils.js +0 -434
  1169. package/dist/_esm5.processed/parsers/containers/matroska/index.d.ts +0 -16
  1170. package/dist/_esm5.processed/parsers/containers/matroska/index.js +0 -16
  1171. package/dist/_esm5.processed/parsers/containers/matroska/utils.d.ts +0 -34
  1172. package/dist/_esm5.processed/parsers/containers/matroska/utils.js +0 -236
  1173. package/dist/_esm5.processed/parsers/images/bif.d.ts +0 -39
  1174. package/dist/_esm5.processed/parsers/images/bif.js +0 -88
  1175. package/dist/_esm5.processed/parsers/manifest/dash/common/attach_trickmode_track.d.ts +0 -28
  1176. package/dist/_esm5.processed/parsers/manifest/dash/common/attach_trickmode_track.js +0 -48
  1177. package/dist/_esm5.processed/parsers/manifest/dash/common/convert_supplemental_codecs.d.ts +0 -17
  1178. package/dist/_esm5.processed/parsers/manifest/dash/common/convert_supplemental_codecs.js +0 -26
  1179. package/dist/_esm5.processed/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts +0 -43
  1180. package/dist/_esm5.processed/parsers/manifest/dash/common/flatten_overlapping_periods.js +0 -79
  1181. package/dist/_esm5.processed/parsers/manifest/dash/common/get_clock_offset.d.ts +0 -29
  1182. package/dist/_esm5.processed/parsers/manifest/dash/common/get_clock_offset.js +0 -37
  1183. package/dist/_esm5.processed/parsers/manifest/dash/common/get_hdr_information.d.ts +0 -50
  1184. package/dist/_esm5.processed/parsers/manifest/dash/common/get_hdr_information.js +0 -58
  1185. package/dist/_esm5.processed/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts +0 -21
  1186. package/dist/_esm5.processed/parsers/manifest/dash/common/get_http_utc-timing_url.js +0 -28
  1187. package/dist/_esm5.processed/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts +0 -25
  1188. package/dist/_esm5.processed/parsers/manifest/dash/common/get_minimum_and_maximum_positions.js +0 -30
  1189. package/dist/_esm5.processed/parsers/manifest/dash/common/get_periods_time_infos.d.ts +0 -43
  1190. package/dist/_esm5.processed/parsers/manifest/dash/common/get_periods_time_infos.js +0 -64
  1191. package/dist/_esm5.processed/parsers/manifest/dash/common/index.d.ts +0 -20
  1192. package/dist/_esm5.processed/parsers/manifest/dash/common/index.js +0 -19
  1193. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/base.d.ts +0 -260
  1194. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/base.js +0 -247
  1195. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/get_init_segment.d.ts +0 -32
  1196. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/get_init_segment.js +0 -40
  1197. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts +0 -36
  1198. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/get_segments_from_timeline.js +0 -94
  1199. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/index.d.ts +0 -20
  1200. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/index.js +0 -20
  1201. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/list.d.ts +0 -191
  1202. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/list.js +0 -192
  1203. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/template.d.ts +0 -258
  1204. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/template.js +0 -422
  1205. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +0 -26
  1206. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +0 -47
  1207. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +0 -17
  1208. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +0 -83
  1209. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts +0 -37
  1210. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.js +0 -56
  1211. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +0 -41
  1212. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +0 -127
  1213. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/index.d.ts +0 -17
  1214. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/index.js +0 -17
  1215. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts +0 -34
  1216. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/parse_s_element.js +0 -57
  1217. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +0 -334
  1218. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +0 -458
  1219. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/tokens.d.ts +0 -40
  1220. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/tokens.js +0 -109
  1221. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/utils.d.ts +0 -25
  1222. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/utils.js +0 -28
  1223. package/dist/_esm5.processed/parsers/manifest/dash/common/infer_adaptation_type.d.ts +0 -42
  1224. package/dist/_esm5.processed/parsers/manifest/dash/common/infer_adaptation_type.js +0 -114
  1225. package/dist/_esm5.processed/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts +0 -88
  1226. package/dist/_esm5.processed/parsers/manifest/dash/common/manifest_bounds_calculator.js +0 -111
  1227. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_adaptation_sets.d.ts +0 -49
  1228. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_adaptation_sets.js +0 -373
  1229. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_availability_start_time.d.ts +0 -22
  1230. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_availability_start_time.js +0 -29
  1231. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_mpd.d.ts +0 -97
  1232. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_mpd.js +0 -247
  1233. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_periods.d.ts +0 -63
  1234. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_periods.js +0 -259
  1235. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representation_index.d.ts +0 -75
  1236. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representation_index.js +0 -96
  1237. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representations.d.ts +0 -46
  1238. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representations.js +0 -268
  1239. package/dist/_esm5.processed/parsers/manifest/dash/common/resolve_base_urls.d.ts +0 -26
  1240. package/dist/_esm5.processed/parsers/manifest/dash/common/resolve_base_urls.js +0 -44
  1241. package/dist/_esm5.processed/parsers/manifest/dash/index.d.ts +0 -16
  1242. package/dist/_esm5.processed/parsers/manifest/dash/index.js +0 -16
  1243. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/index.d.ts +0 -17
  1244. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/index.js +0 -17
  1245. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts +0 -23
  1246. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +0 -307
  1247. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts +0 -23
  1248. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/BaseURL.js +0 -30
  1249. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts +0 -22
  1250. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.js +0 -41
  1251. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts +0 -21
  1252. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.js +0 -75
  1253. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts +0 -23
  1254. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/EventStream.js +0 -94
  1255. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts +0 -21
  1256. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Initialization.js +0 -39
  1257. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts +0 -21
  1258. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/MPD.js +0 -144
  1259. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts +0 -21
  1260. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Period.js +0 -112
  1261. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts +0 -21
  1262. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Representation.js +0 -187
  1263. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts +0 -22
  1264. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.js +0 -89
  1265. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts +0 -21
  1266. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentList.js +0 -40
  1267. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts +0 -23
  1268. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.js +0 -73
  1269. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts +0 -21
  1270. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.js +0 -30
  1271. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts +0 -23
  1272. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.js +0 -49
  1273. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts +0 -178
  1274. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/utils.js +0 -308
  1275. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/parse_from_document.d.ts +0 -24
  1276. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/parse_from_document.js +0 -103
  1277. package/dist/_esm5.processed/parsers/manifest/dash/node_parser_types.d.ts +0 -395
  1278. package/dist/_esm5.processed/parsers/manifest/dash/node_parser_types.js +0 -16
  1279. package/dist/_esm5.processed/parsers/manifest/dash/parsers_types.d.ts +0 -83
  1280. package/dist/_esm5.processed/parsers/manifest/dash/parsers_types.js +0 -16
  1281. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/index.d.ts +0 -18
  1282. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/index.js +0 -17
  1283. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +0 -111
  1284. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +0 -377
  1285. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts +0 -31
  1286. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +0 -277
  1287. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts +0 -24
  1288. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.js +0 -30
  1289. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts +0 -24
  1290. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.js +0 -41
  1291. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts +0 -23
  1292. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +0 -49
  1293. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts +0 -32
  1294. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.js +0 -112
  1295. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts +0 -27
  1296. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +0 -145
  1297. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts +0 -32
  1298. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +0 -130
  1299. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts +0 -31
  1300. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +0 -172
  1301. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts +0 -24
  1302. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.js +0 -35
  1303. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts +0 -18
  1304. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.js +0 -93
  1305. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts +0 -25
  1306. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.js +0 -45
  1307. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts +0 -18
  1308. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.js +0 -108
  1309. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts +0 -25
  1310. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.js +0 -54
  1311. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts +0 -28
  1312. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/XLink.js +0 -47
  1313. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts +0 -16
  1314. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/index.js +0 -16
  1315. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts +0 -27
  1316. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/root.js +0 -45
  1317. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts +0 -38
  1318. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/parsers_stack.js +0 -57
  1319. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/types.d.ts +0 -145
  1320. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/types.js +0 -16
  1321. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/utils.d.ts +0 -29
  1322. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/utils.js +0 -36
  1323. package/dist/_esm5.processed/parsers/manifest/index.d.ts +0 -16
  1324. package/dist/_esm5.processed/parsers/manifest/index.js +0 -16
  1325. package/dist/_esm5.processed/parsers/manifest/local/index.d.ts +0 -18
  1326. package/dist/_esm5.processed/parsers/manifest/local/index.js +0 -17
  1327. package/dist/_esm5.processed/parsers/manifest/local/parse_local_manifest.d.ts +0 -22
  1328. package/dist/_esm5.processed/parsers/manifest/local/parse_local_manifest.js +0 -125
  1329. package/dist/_esm5.processed/parsers/manifest/local/representation_index.d.ts +0 -81
  1330. package/dist/_esm5.processed/parsers/manifest/local/representation_index.js +0 -234
  1331. package/dist/_esm5.processed/parsers/manifest/local/types.d.ts +0 -285
  1332. package/dist/_esm5.processed/parsers/manifest/local/types.js +0 -16
  1333. package/dist/_esm5.processed/parsers/manifest/metaplaylist/index.d.ts +0 -18
  1334. package/dist/_esm5.processed/parsers/manifest/metaplaylist/index.js +0 -17
  1335. package/dist/_esm5.processed/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts +0 -64
  1336. package/dist/_esm5.processed/parsers/manifest/metaplaylist/metaplaylist_parser.js +0 -254
  1337. package/dist/_esm5.processed/parsers/manifest/metaplaylist/representation_index.d.ts +0 -145
  1338. package/dist/_esm5.processed/parsers/manifest/metaplaylist/representation_index.js +0 -216
  1339. package/dist/_esm5.processed/parsers/manifest/smooth/create_parser.d.ts +0 -34
  1340. package/dist/_esm5.processed/parsers/manifest/smooth/create_parser.js +0 -499
  1341. package/dist/_esm5.processed/parsers/manifest/smooth/get_codecs.d.ts +0 -26
  1342. package/dist/_esm5.processed/parsers/manifest/smooth/get_codecs.js +0 -50
  1343. package/dist/_esm5.processed/parsers/manifest/smooth/index.d.ts +0 -19
  1344. package/dist/_esm5.processed/parsers/manifest/smooth/index.js +0 -19
  1345. package/dist/_esm5.processed/parsers/manifest/smooth/parse_C_nodes.d.ts +0 -26
  1346. package/dist/_esm5.processed/parsers/manifest/smooth/parse_C_nodes.js +0 -60
  1347. package/dist/_esm5.processed/parsers/manifest/smooth/parse_protection_node.d.ts +0 -29
  1348. package/dist/_esm5.processed/parsers/manifest/smooth/parse_protection_node.js +0 -58
  1349. package/dist/_esm5.processed/parsers/manifest/smooth/representation_index.d.ts +0 -288
  1350. package/dist/_esm5.processed/parsers/manifest/smooth/representation_index.js +0 -454
  1351. package/dist/_esm5.processed/parsers/manifest/smooth/utils/add_segment_infos.d.ts +0 -41
  1352. package/dist/_esm5.processed/parsers/manifest/smooth/utils/add_segment_infos.js +0 -60
  1353. package/dist/_esm5.processed/parsers/manifest/smooth/utils/parseBoolean.d.ts +0 -20
  1354. package/dist/_esm5.processed/parsers/manifest/smooth/utils/parseBoolean.js +0 -30
  1355. package/dist/_esm5.processed/parsers/manifest/smooth/utils/reduceChildren.d.ts +0 -23
  1356. package/dist/_esm5.processed/parsers/manifest/smooth/utils/reduceChildren.js +0 -31
  1357. package/dist/_esm5.processed/parsers/manifest/smooth/utils/tokens.d.ts +0 -28
  1358. package/dist/_esm5.processed/parsers/manifest/smooth/utils/tokens.js +0 -35
  1359. package/dist/_esm5.processed/parsers/manifest/types.d.ts +0 -379
  1360. package/dist/_esm5.processed/parsers/manifest/types.js +0 -16
  1361. package/dist/_esm5.processed/parsers/manifest/utils/check_manifest_ids.d.ts +0 -25
  1362. package/dist/_esm5.processed/parsers/manifest/utils/check_manifest_ids.js +0 -76
  1363. package/dist/_esm5.processed/parsers/manifest/utils/clear_timeline_from_position.d.ts +0 -24
  1364. package/dist/_esm5.processed/parsers/manifest/utils/clear_timeline_from_position.js +0 -69
  1365. package/dist/_esm5.processed/parsers/manifest/utils/get_first_time_from_adaptation.d.ts +0 -27
  1366. package/dist/_esm5.processed/parsers/manifest/utils/get_first_time_from_adaptation.js +0 -43
  1367. package/dist/_esm5.processed/parsers/manifest/utils/get_last_time_from_adaptation.d.ts +0 -29
  1368. package/dist/_esm5.processed/parsers/manifest/utils/get_last_time_from_adaptation.js +0 -45
  1369. package/dist/_esm5.processed/parsers/manifest/utils/get_maximum_positions.d.ts +0 -24
  1370. package/dist/_esm5.processed/parsers/manifest/utils/get_maximum_positions.js +0 -72
  1371. package/dist/_esm5.processed/parsers/manifest/utils/get_minimum_position.d.ts +0 -21
  1372. package/dist/_esm5.processed/parsers/manifest/utils/get_minimum_position.js +0 -68
  1373. package/dist/_esm5.processed/parsers/manifest/utils/index_helpers.d.ts +0 -88
  1374. package/dist/_esm5.processed/parsers/manifest/utils/index_helpers.js +0 -147
  1375. package/dist/_esm5.processed/parsers/manifest/utils/is_segment_still_available.d.ts +0 -29
  1376. package/dist/_esm5.processed/parsers/manifest/utils/is_segment_still_available.js +0 -51
  1377. package/dist/_esm5.processed/parsers/manifest/utils/update_segment_timeline.d.ts +0 -33
  1378. package/dist/_esm5.processed/parsers/manifest/utils/update_segment_timeline.js +0 -138
  1379. package/dist/_esm5.processed/parsers/texttracks/index.d.ts +0 -16
  1380. package/dist/_esm5.processed/parsers/texttracks/index.js +0 -16
  1381. package/dist/_esm5.processed/parsers/texttracks/sami/html.d.ts +0 -29
  1382. package/dist/_esm5.processed/parsers/texttracks/sami/html.js +0 -189
  1383. package/dist/_esm5.processed/parsers/texttracks/sami/native.d.ts +0 -34
  1384. package/dist/_esm5.processed/parsers/texttracks/sami/native.js +0 -160
  1385. package/dist/_esm5.processed/parsers/texttracks/srt/find_end_of_cue_block.d.ts +0 -29
  1386. package/dist/_esm5.processed/parsers/texttracks/srt/find_end_of_cue_block.js +0 -39
  1387. package/dist/_esm5.processed/parsers/texttracks/srt/get_cue_blocks.d.ts +0 -22
  1388. package/dist/_esm5.processed/parsers/texttracks/srt/get_cue_blocks.js +0 -47
  1389. package/dist/_esm5.processed/parsers/texttracks/srt/html.d.ts +0 -26
  1390. package/dist/_esm5.processed/parsers/texttracks/srt/html.js +0 -153
  1391. package/dist/_esm5.processed/parsers/texttracks/srt/native.d.ts +0 -28
  1392. package/dist/_esm5.processed/parsers/texttracks/srt/native.js +0 -57
  1393. package/dist/_esm5.processed/parsers/texttracks/srt/parse_cue.d.ts +0 -30
  1394. package/dist/_esm5.processed/parsers/texttracks/srt/parse_cue.js +0 -60
  1395. package/dist/_esm5.processed/parsers/texttracks/srt/parse_timestamp.d.ts +0 -21
  1396. package/dist/_esm5.processed/parsers/texttracks/srt/parse_timestamp.js +0 -33
  1397. package/dist/_esm5.processed/parsers/texttracks/ttml/get_parameters.d.ts +0 -32
  1398. package/dist/_esm5.processed/parsers/texttracks/ttml/get_parameters.js +0 -84
  1399. package/dist/_esm5.processed/parsers/texttracks/ttml/get_styling.d.ts +0 -41
  1400. package/dist/_esm5.processed/parsers/texttracks/ttml/get_styling.js +0 -132
  1401. package/dist/_esm5.processed/parsers/texttracks/ttml/get_time_delimiters.d.ts +0 -26
  1402. package/dist/_esm5.processed/parsers/texttracks/ttml/get_time_delimiters.js +0 -41
  1403. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.d.ts +0 -48
  1404. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.js +0 -61
  1405. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_extent.d.ts +0 -21
  1406. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_extent.js +0 -61
  1407. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_font_size.d.ts +0 -21
  1408. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_font_size.js +0 -59
  1409. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_line_height.d.ts +0 -20
  1410. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_line_height.js +0 -45
  1411. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_origin.d.ts +0 -20
  1412. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_origin.js +0 -60
  1413. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_padding.d.ts +0 -20
  1414. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_padding.js +0 -139
  1415. package/dist/_esm5.processed/parsers/texttracks/ttml/html/create_element.d.ts +0 -32
  1416. package/dist/_esm5.processed/parsers/texttracks/ttml/html/create_element.js +0 -451
  1417. package/dist/_esm5.processed/parsers/texttracks/ttml/html/generate_css_test_outline.d.ts +0 -26
  1418. package/dist/_esm5.processed/parsers/texttracks/ttml/html/generate_css_test_outline.js +0 -41
  1419. package/dist/_esm5.processed/parsers/texttracks/ttml/html/index.d.ts +0 -21
  1420. package/dist/_esm5.processed/parsers/texttracks/ttml/html/index.js +0 -21
  1421. package/dist/_esm5.processed/parsers/texttracks/ttml/html/parse_cue.d.ts +0 -26
  1422. package/dist/_esm5.processed/parsers/texttracks/ttml/html/parse_cue.js +0 -38
  1423. package/dist/_esm5.processed/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts +0 -34
  1424. package/dist/_esm5.processed/parsers/texttracks/ttml/html/parse_ttml_to_div.js +0 -50
  1425. package/dist/_esm5.processed/parsers/texttracks/ttml/html/ttml_color_to_css_color.d.ts +0 -21
  1426. package/dist/_esm5.processed/parsers/texttracks/ttml/html/ttml_color_to_css_color.js +0 -57
  1427. package/dist/_esm5.processed/parsers/texttracks/ttml/native/index.d.ts +0 -21
  1428. package/dist/_esm5.processed/parsers/texttracks/ttml/native/index.js +0 -21
  1429. package/dist/_esm5.processed/parsers/texttracks/ttml/native/parse_cue.d.ts +0 -30
  1430. package/dist/_esm5.processed/parsers/texttracks/ttml/native/parse_cue.js +0 -202
  1431. package/dist/_esm5.processed/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts +0 -21
  1432. package/dist/_esm5.processed/parsers/texttracks/ttml/native/parse_ttml_to_vtt.js +0 -33
  1433. package/dist/_esm5.processed/parsers/texttracks/ttml/parse_ttml.d.ts +0 -43
  1434. package/dist/_esm5.processed/parsers/texttracks/ttml/parse_ttml.js +0 -156
  1435. package/dist/_esm5.processed/parsers/texttracks/ttml/regexps.d.ts +0 -28
  1436. package/dist/_esm5.processed/parsers/texttracks/ttml/regexps.js +0 -35
  1437. package/dist/_esm5.processed/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts +0 -49
  1438. package/dist/_esm5.processed/parsers/texttracks/ttml/resolve_styles_inheritance.js +0 -83
  1439. package/dist/_esm5.processed/parsers/texttracks/ttml/time_parsing.d.ts +0 -30
  1440. package/dist/_esm5.processed/parsers/texttracks/ttml/time_parsing.js +0 -124
  1441. package/dist/_esm5.processed/parsers/texttracks/ttml/xml_utils.d.ts +0 -70
  1442. package/dist/_esm5.processed/parsers/texttracks/ttml/xml_utils.js +0 -149
  1443. package/dist/_esm5.processed/parsers/texttracks/types.d.ts +0 -23
  1444. package/dist/_esm5.processed/parsers/texttracks/types.js +0 -16
  1445. package/dist/_esm5.processed/parsers/texttracks/webvtt/get_cue_blocks.d.ts +0 -24
  1446. package/dist/_esm5.processed/parsers/texttracks/webvtt/get_cue_blocks.js +0 -44
  1447. package/dist/_esm5.processed/parsers/texttracks/webvtt/get_style_blocks.d.ts +0 -24
  1448. package/dist/_esm5.processed/parsers/texttracks/webvtt/get_style_blocks.js +0 -51
  1449. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts +0 -22
  1450. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/convert_payload_to_html.js +0 -35
  1451. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_default_style_elements.d.ts +0 -2
  1452. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_default_style_elements.js +0 -22
  1453. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_style_attribute.d.ts +0 -21
  1454. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_style_attribute.js +0 -175
  1455. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_styled_element.d.ts +0 -25
  1456. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_styled_element.js +0 -83
  1457. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/index.d.ts +0 -22
  1458. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/index.js +0 -21
  1459. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/parse_style_block.d.ts +0 -27
  1460. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/parse_style_block.js +0 -72
  1461. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/parse_webvtt_to_div.d.ts +0 -31
  1462. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/parse_webvtt_to_div.js +0 -55
  1463. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/to_html.d.ts +0 -43
  1464. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/to_html.js +0 -70
  1465. package/dist/_esm5.processed/parsers/texttracks/webvtt/native/index.d.ts +0 -21
  1466. package/dist/_esm5.processed/parsers/texttracks/webvtt/native/index.js +0 -21
  1467. package/dist/_esm5.processed/parsers/texttracks/webvtt/native/parse_vtt_to_cues.d.ts +0 -28
  1468. package/dist/_esm5.processed/parsers/texttracks/webvtt/native/parse_vtt_to_cues.js +0 -58
  1469. package/dist/_esm5.processed/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts +0 -23
  1470. package/dist/_esm5.processed/parsers/texttracks/webvtt/native/set_settings_on_cue.js +0 -80
  1471. package/dist/_esm5.processed/parsers/texttracks/webvtt/native/to_native_cue.d.ts +0 -25
  1472. package/dist/_esm5.processed/parsers/texttracks/webvtt/native/to_native_cue.js +0 -25
  1473. package/dist/_esm5.processed/parsers/texttracks/webvtt/parse_cue_block.d.ts +0 -33
  1474. package/dist/_esm5.processed/parsers/texttracks/webvtt/parse_cue_block.js +0 -96
  1475. package/dist/_esm5.processed/parsers/texttracks/webvtt/parse_timestamp.d.ts +0 -21
  1476. package/dist/_esm5.processed/parsers/texttracks/webvtt/parse_timestamp.js +0 -34
  1477. package/dist/_esm5.processed/parsers/texttracks/webvtt/utils.d.ts +0 -56
  1478. package/dist/_esm5.processed/parsers/texttracks/webvtt/utils.js +0 -113
  1479. package/dist/_esm5.processed/public_types.d.ts +0 -737
  1480. package/dist/_esm5.processed/public_types.js +0 -16
  1481. package/dist/_esm5.processed/tools/TextTrackRenderer/index.d.ts +0 -22
  1482. package/dist/_esm5.processed/tools/TextTrackRenderer/index.js +0 -22
  1483. package/dist/_esm5.processed/tools/TextTrackRenderer/text_track_renderer.d.ts +0 -69
  1484. package/dist/_esm5.processed/tools/TextTrackRenderer/text_track_renderer.js +0 -78
  1485. package/dist/_esm5.processed/tools/index.d.ts +0 -18
  1486. package/dist/_esm5.processed/tools/index.js +0 -19
  1487. package/dist/_esm5.processed/tools/string_utils.d.ts +0 -16
  1488. package/dist/_esm5.processed/tools/string_utils.js +0 -16
  1489. package/dist/_esm5.processed/transports/dash/add_segment_integrity_checks_to_loader.d.ts +0 -24
  1490. package/dist/_esm5.processed/transports/dash/add_segment_integrity_checks_to_loader.js +0 -93
  1491. package/dist/_esm5.processed/transports/dash/construct_segment_url.d.ts +0 -18
  1492. package/dist/_esm5.processed/transports/dash/construct_segment_url.js +0 -21
  1493. package/dist/_esm5.processed/transports/dash/extract_complete_chunks.d.ts +0 -24
  1494. package/dist/_esm5.processed/transports/dash/extract_complete_chunks.js +0 -59
  1495. package/dist/_esm5.processed/transports/dash/get_events_out_of_emsgs.d.ts +0 -28
  1496. package/dist/_esm5.processed/transports/dash/get_events_out_of_emsgs.js +0 -92
  1497. package/dist/_esm5.processed/transports/dash/image_pipelines.d.ts +0 -38
  1498. package/dist/_esm5.processed/transports/dash/image_pipelines.js +0 -129
  1499. package/dist/_esm5.processed/transports/dash/index.d.ts +0 -21
  1500. package/dist/_esm5.processed/transports/dash/index.js +0 -21
  1501. package/dist/_esm5.processed/transports/dash/init_segment_loader.d.ts +0 -28
  1502. package/dist/_esm5.processed/transports/dash/init_segment_loader.js +0 -68
  1503. package/dist/_esm5.processed/transports/dash/low_latency_segment_loader.d.ts +0 -30
  1504. package/dist/_esm5.processed/transports/dash/low_latency_segment_loader.js +0 -64
  1505. package/dist/_esm5.processed/transports/dash/manifest_parser.d.ts +0 -18
  1506. package/dist/_esm5.processed/transports/dash/manifest_parser.js +0 -277
  1507. package/dist/_esm5.processed/transports/dash/pipelines.d.ts +0 -23
  1508. package/dist/_esm5.processed/transports/dash/pipelines.js +0 -58
  1509. package/dist/_esm5.processed/transports/dash/segment_loader.d.ts +0 -38
  1510. package/dist/_esm5.processed/transports/dash/segment_loader.js +0 -162
  1511. package/dist/_esm5.processed/transports/dash/segment_parser.d.ts +0 -23
  1512. package/dist/_esm5.processed/transports/dash/segment_parser.js +0 -129
  1513. package/dist/_esm5.processed/transports/dash/text_loader.d.ts +0 -25
  1514. package/dist/_esm5.processed/transports/dash/text_loader.js +0 -82
  1515. package/dist/_esm5.processed/transports/dash/text_parser.d.ts +0 -25
  1516. package/dist/_esm5.processed/transports/dash/text_parser.js +0 -169
  1517. package/dist/_esm5.processed/transports/index.d.ts +0 -16
  1518. package/dist/_esm5.processed/transports/index.js +0 -16
  1519. package/dist/_esm5.processed/transports/local/index.d.ts +0 -17
  1520. package/dist/_esm5.processed/transports/local/index.js +0 -17
  1521. package/dist/_esm5.processed/transports/local/pipelines.d.ts +0 -22
  1522. package/dist/_esm5.processed/transports/local/pipelines.js +0 -73
  1523. package/dist/_esm5.processed/transports/local/segment_loader.d.ts +0 -28
  1524. package/dist/_esm5.processed/transports/local/segment_loader.js +0 -144
  1525. package/dist/_esm5.processed/transports/local/segment_parser.d.ts +0 -20
  1526. package/dist/_esm5.processed/transports/local/segment_parser.js +0 -69
  1527. package/dist/_esm5.processed/transports/local/text_parser.d.ts +0 -27
  1528. package/dist/_esm5.processed/transports/local/text_parser.js +0 -131
  1529. package/dist/_esm5.processed/transports/metaplaylist/index.d.ts +0 -21
  1530. package/dist/_esm5.processed/transports/metaplaylist/index.js +0 -21
  1531. package/dist/_esm5.processed/transports/metaplaylist/manifest_loader.d.ts +0 -26
  1532. package/dist/_esm5.processed/transports/metaplaylist/manifest_loader.js +0 -41
  1533. package/dist/_esm5.processed/transports/metaplaylist/pipelines.d.ts +0 -17
  1534. package/dist/_esm5.processed/transports/metaplaylist/pipelines.js +0 -254
  1535. package/dist/_esm5.processed/transports/smooth/extract_timings_infos.d.ts +0 -62
  1536. package/dist/_esm5.processed/transports/smooth/extract_timings_infos.js +0 -78
  1537. package/dist/_esm5.processed/transports/smooth/index.d.ts +0 -21
  1538. package/dist/_esm5.processed/transports/smooth/index.js +0 -21
  1539. package/dist/_esm5.processed/transports/smooth/isobmff/create_audio_init_segment.d.ts +0 -29
  1540. package/dist/_esm5.processed/transports/smooth/isobmff/create_audio_init_segment.js +0 -52
  1541. package/dist/_esm5.processed/transports/smooth/isobmff/create_boxes.d.ts +0 -171
  1542. package/dist/_esm5.processed/transports/smooth/isobmff/create_boxes.js +0 -328
  1543. package/dist/_esm5.processed/transports/smooth/isobmff/create_init_segment.d.ts +0 -33
  1544. package/dist/_esm5.processed/transports/smooth/isobmff/create_init_segment.js +0 -65
  1545. package/dist/_esm5.processed/transports/smooth/isobmff/create_traf_box.d.ts +0 -16
  1546. package/dist/_esm5.processed/transports/smooth/isobmff/create_traf_box.js +0 -24
  1547. package/dist/_esm5.processed/transports/smooth/isobmff/create_video_init_segment.d.ts +0 -29
  1548. package/dist/_esm5.processed/transports/smooth/isobmff/create_video_init_segment.js +0 -57
  1549. package/dist/_esm5.processed/transports/smooth/isobmff/get_aaces_header.d.ts +0 -27
  1550. package/dist/_esm5.processed/transports/smooth/isobmff/get_aaces_header.js +0 -55
  1551. package/dist/_esm5.processed/transports/smooth/isobmff/index.d.ts +0 -21
  1552. package/dist/_esm5.processed/transports/smooth/isobmff/index.js +0 -21
  1553. package/dist/_esm5.processed/transports/smooth/isobmff/parse_tfrf.d.ts +0 -24
  1554. package/dist/_esm5.processed/transports/smooth/isobmff/parse_tfrf.js +0 -47
  1555. package/dist/_esm5.processed/transports/smooth/isobmff/parse_tfxd.d.ts +0 -24
  1556. package/dist/_esm5.processed/transports/smooth/isobmff/parse_tfxd.js +0 -31
  1557. package/dist/_esm5.processed/transports/smooth/isobmff/patch_segment.d.ts +0 -23
  1558. package/dist/_esm5.processed/transports/smooth/isobmff/patch_segment.js +0 -127
  1559. package/dist/_esm5.processed/transports/smooth/pipelines.d.ts +0 -17
  1560. package/dist/_esm5.processed/transports/smooth/pipelines.js +0 -440
  1561. package/dist/_esm5.processed/transports/smooth/segment_loader.d.ts +0 -27
  1562. package/dist/_esm5.processed/transports/smooth/segment_loader.js +0 -198
  1563. package/dist/_esm5.processed/transports/smooth/utils.d.ts +0 -51
  1564. package/dist/_esm5.processed/transports/smooth/utils.js +0 -86
  1565. package/dist/_esm5.processed/transports/types.d.ts +0 -687
  1566. package/dist/_esm5.processed/transports/types.js +0 -16
  1567. package/dist/_esm5.processed/transports/utils/byte_range.d.ts +0 -21
  1568. package/dist/_esm5.processed/transports/utils/byte_range.js +0 -25
  1569. package/dist/_esm5.processed/transports/utils/call_custom_manifest_loader.d.ts +0 -19
  1570. package/dist/_esm5.processed/transports/utils/call_custom_manifest_loader.js +0 -91
  1571. package/dist/_esm5.processed/transports/utils/check_isobmff_integrity.d.ts +0 -23
  1572. package/dist/_esm5.processed/transports/utils/check_isobmff_integrity.js +0 -46
  1573. package/dist/_esm5.processed/transports/utils/find_complete_box.d.ts +0 -25
  1574. package/dist/_esm5.processed/transports/utils/find_complete_box.js +0 -53
  1575. package/dist/_esm5.processed/transports/utils/generate_manifest_loader.d.ts +0 -26
  1576. package/dist/_esm5.processed/transports/utils/generate_manifest_loader.js +0 -59
  1577. package/dist/_esm5.processed/transports/utils/get_isobmff_timing_infos.d.ts +0 -29
  1578. package/dist/_esm5.processed/transports/utils/get_isobmff_timing_infos.js +0 -66
  1579. package/dist/_esm5.processed/transports/utils/infer_segment_container.d.ts +0 -29
  1580. package/dist/_esm5.processed/transports/utils/infer_segment_container.js +0 -46
  1581. package/dist/_esm5.processed/transports/utils/parse_text_track.d.ts +0 -60
  1582. package/dist/_esm5.processed/transports/utils/parse_text_track.js +0 -136
  1583. package/dist/_esm5.processed/utils/are_arrays_of_numbers_equal.d.ts +0 -22
  1584. package/dist/_esm5.processed/utils/are_arrays_of_numbers_equal.js +0 -35
  1585. package/dist/_esm5.processed/utils/are_codecs_compatible.d.ts +0 -25
  1586. package/dist/_esm5.processed/utils/are_codecs_compatible.js +0 -44
  1587. package/dist/_esm5.processed/utils/array_find.d.ts +0 -23
  1588. package/dist/_esm5.processed/utils/array_find.js +0 -35
  1589. package/dist/_esm5.processed/utils/array_find_index.d.ts +0 -23
  1590. package/dist/_esm5.processed/utils/array_find_index.js +0 -34
  1591. package/dist/_esm5.processed/utils/array_includes.d.ts +0 -53
  1592. package/dist/_esm5.processed/utils/array_includes.js +0 -83
  1593. package/dist/_esm5.processed/utils/assert.d.ts +0 -34
  1594. package/dist/_esm5.processed/utils/assert.js +0 -52
  1595. package/dist/_esm5.processed/utils/assert_unreachable.d.ts +0 -40
  1596. package/dist/_esm5.processed/utils/assert_unreachable.js +0 -43
  1597. package/dist/_esm5.processed/utils/base64.d.ts +0 -14
  1598. package/dist/_esm5.processed/utils/base64.js +0 -147
  1599. package/dist/_esm5.processed/utils/byte_parsing.d.ts +0 -123
  1600. package/dist/_esm5.processed/utils/byte_parsing.js +0 -231
  1601. package/dist/_esm5.processed/utils/cancellable_sleep.d.ts +0 -30
  1602. package/dist/_esm5.processed/utils/cancellable_sleep.js +0 -35
  1603. package/dist/_esm5.processed/utils/create_cancellable_promise.d.ts +0 -26
  1604. package/dist/_esm5.processed/utils/create_cancellable_promise.js +0 -52
  1605. package/dist/_esm5.processed/utils/deep_merge.d.ts +0 -9
  1606. package/dist/_esm5.processed/utils/deep_merge.js +0 -54
  1607. package/dist/_esm5.processed/utils/event_emitter.d.ts +0 -62
  1608. package/dist/_esm5.processed/utils/event_emitter.js +0 -103
  1609. package/dist/_esm5.processed/utils/flat_map.d.ts +0 -22
  1610. package/dist/_esm5.processed/utils/flat_map.js +0 -37
  1611. package/dist/_esm5.processed/utils/get_fuzzed_delay.d.ts +0 -21
  1612. package/dist/_esm5.processed/utils/get_fuzzed_delay.js +0 -25
  1613. package/dist/_esm5.processed/utils/hash_buffer.d.ts +0 -32
  1614. package/dist/_esm5.processed/utils/hash_buffer.js +0 -41
  1615. package/dist/_esm5.processed/utils/id_generator.d.ts +0 -21
  1616. package/dist/_esm5.processed/utils/id_generator.js +0 -33
  1617. package/dist/_esm5.processed/utils/initialization_segment_cache.d.ts +0 -42
  1618. package/dist/_esm5.processed/utils/initialization_segment_cache.js +0 -51
  1619. package/dist/_esm5.processed/utils/is_non_empty_string.d.ts +0 -20
  1620. package/dist/_esm5.processed/utils/is_non_empty_string.js +0 -22
  1621. package/dist/_esm5.processed/utils/is_null_or_undefined.d.ts +0 -24
  1622. package/dist/_esm5.processed/utils/is_null_or_undefined.js +0 -26
  1623. package/dist/_esm5.processed/utils/languages/ISO_639-1_to_ISO_639-3.d.ts +0 -22
  1624. package/dist/_esm5.processed/utils/languages/ISO_639-1_to_ISO_639-3.js +0 -205
  1625. package/dist/_esm5.processed/utils/languages/ISO_639-2_to_ISO_639-3.d.ts +0 -22
  1626. package/dist/_esm5.processed/utils/languages/ISO_639-2_to_ISO_639-3.js +0 -41
  1627. package/dist/_esm5.processed/utils/languages/index.d.ts +0 -18
  1628. package/dist/_esm5.processed/utils/languages/index.js +0 -18
  1629. package/dist/_esm5.processed/utils/languages/normalize.d.ts +0 -68
  1630. package/dist/_esm5.processed/utils/languages/normalize.js +0 -117
  1631. package/dist/_esm5.processed/utils/list_to_map.d.ts +0 -22
  1632. package/dist/_esm5.processed/utils/list_to_map.js +0 -28
  1633. package/dist/_esm5.processed/utils/logger.d.ts +0 -46
  1634. package/dist/_esm5.processed/utils/logger.js +0 -79
  1635. package/dist/_esm5.processed/utils/noop.d.ts +0 -23
  1636. package/dist/_esm5.processed/utils/noop.js +0 -25
  1637. package/dist/_esm5.processed/utils/object_assign.d.ts +0 -22
  1638. package/dist/_esm5.processed/utils/object_assign.js +0 -44
  1639. package/dist/_esm5.processed/utils/object_values.d.ts +0 -30
  1640. package/dist/_esm5.processed/utils/object_values.js +0 -26
  1641. package/dist/_esm5.processed/utils/ranges.d.ts +0 -170
  1642. package/dist/_esm5.processed/utils/ranges.js +0 -427
  1643. package/dist/_esm5.processed/utils/reference.d.ts +0 -214
  1644. package/dist/_esm5.processed/utils/reference.js +0 -295
  1645. package/dist/_esm5.processed/utils/request/fetch.d.ts +0 -76
  1646. package/dist/_esm5.processed/utils/request/fetch.js +0 -181
  1647. package/dist/_esm5.processed/utils/request/index.d.ts +0 -19
  1648. package/dist/_esm5.processed/utils/request/index.js +0 -19
  1649. package/dist/_esm5.processed/utils/request/xhr.d.ts +0 -95
  1650. package/dist/_esm5.processed/utils/request/xhr.js +0 -152
  1651. package/dist/_esm5.processed/utils/resolve_url.d.ts +0 -35
  1652. package/dist/_esm5.processed/utils/resolve_url.js +0 -117
  1653. package/dist/_esm5.processed/utils/retry_promise_with_backoff.d.ts +0 -46
  1654. package/dist/_esm5.processed/utils/retry_promise_with_backoff.js +0 -119
  1655. package/dist/_esm5.processed/utils/simple_set.d.ts +0 -51
  1656. package/dist/_esm5.processed/utils/simple_set.js +0 -57
  1657. package/dist/_esm5.processed/utils/sleep.d.ts +0 -10
  1658. package/dist/_esm5.processed/utils/sleep.js +0 -14
  1659. package/dist/_esm5.processed/utils/slice_uint8array.d.ts +0 -27
  1660. package/dist/_esm5.processed/utils/slice_uint8array.js +0 -42
  1661. package/dist/_esm5.processed/utils/sorted_list.d.ts +0 -127
  1662. package/dist/_esm5.processed/utils/sorted_list.js +0 -183
  1663. package/dist/_esm5.processed/utils/starts_with.d.ts +0 -26
  1664. package/dist/_esm5.processed/utils/starts_with.js +0 -36
  1665. package/dist/_esm5.processed/utils/string_parsing.d.ts +0 -88
  1666. package/dist/_esm5.processed/utils/string_parsing.js +0 -372
  1667. package/dist/_esm5.processed/utils/task_canceller.d.ts +0 -263
  1668. package/dist/_esm5.processed/utils/task_canceller.js +0 -325
  1669. package/dist/_esm5.processed/utils/uniq.d.ts +0 -36
  1670. package/dist/_esm5.processed/utils/uniq.js +0 -43
  1671. package/dist/_esm5.processed/utils/warn_once.d.ts +0 -23
  1672. package/dist/_esm5.processed/utils/warn_once.js +0 -31
  1673. package/dist/_esm5.processed/utils/weak_map_memory.d.ts +0 -70
  1674. package/dist/_esm5.processed/utils/weak_map_memory.js +0 -86
  1675. package/dist/_esm5.processed/utils/wrapInPromise.d.ts +0 -7
  1676. package/dist/_esm5.processed/utils/wrapInPromise.js +0 -22
  1677. package/dist/commonjs/core/init/utils/create_stream_playback_observer.d.ts +0 -41
  1678. package/dist/commonjs/core/init/utils/create_stream_playback_observer.js +0 -91
  1679. package/dist/commonjs/core/segment_buffers/implementations/text/html/html_text_segment_buffer.d.ts +0 -141
  1680. package/dist/commonjs/core/segment_buffers/implementations/text/html/html_text_segment_buffer.js +0 -407
  1681. package/dist/commonjs/core/segment_buffers/implementations/text/html/index.d.ts +0 -21
  1682. package/dist/commonjs/core/segment_buffers/implementations/text/html/index.js +0 -23
  1683. package/dist/commonjs/core/segment_buffers/implementations/text/html/parsers.d.ts +0 -30
  1684. package/dist/commonjs/core/segment_buffers/implementations/text/html/parsers.js +0 -40
  1685. package/dist/commonjs/core/segment_buffers/implementations/text/html/text_track_cues_store.d.ts +0 -79
  1686. package/dist/commonjs/core/segment_buffers/implementations/text/html/text_track_cues_store.js +0 -390
  1687. package/dist/commonjs/core/segment_buffers/implementations/text/html/types.d.ts +0 -25
  1688. package/dist/commonjs/core/segment_buffers/implementations/text/html/types.js +0 -17
  1689. package/dist/commonjs/core/segment_buffers/implementations/text/html/update_proportional_elements.d.ts +0 -30
  1690. package/dist/commonjs/core/segment_buffers/implementations/text/html/update_proportional_elements.js +0 -80
  1691. package/dist/commonjs/core/segment_buffers/implementations/text/html/utils.d.ts +0 -45
  1692. package/dist/commonjs/core/segment_buffers/implementations/text/html/utils.js +0 -131
  1693. package/dist/commonjs/core/segment_buffers/implementations/text/native/index.d.ts +0 -17
  1694. package/dist/commonjs/core/segment_buffers/implementations/text/native/index.js +0 -19
  1695. package/dist/commonjs/core/segment_buffers/implementations/text/native/native_text_segment_buffer.d.ts +0 -83
  1696. package/dist/commonjs/core/segment_buffers/implementations/text/native/native_text_segment_buffer.js +0 -273
  1697. package/dist/commonjs/core/segment_buffers/implementations/text/native/parsers.d.ts +0 -26
  1698. package/dist/commonjs/core/segment_buffers/implementations/text/native/parsers.js +0 -40
  1699. package/dist/commonjs/core/stream/representation/utils/force_garbage_collection.d.ts +0 -29
  1700. package/dist/commonjs/core/stream/representation/utils/force_garbage_collection.js +0 -179
  1701. package/dist/commonjs/errors/assertion_error.d.ts +0 -31
  1702. package/dist/commonjs/errors/assertion_error.js +0 -56
  1703. package/dist/commonjs/errors/request_error.d.ts +0 -38
  1704. package/dist/commonjs/errors/request_error.js +0 -76
  1705. package/dist/commonjs/experimental/features/dash_wasm.js +0 -37
  1706. package/dist/commonjs/experimental/tools/parseBIFThumbnails/index.js +0 -32
  1707. package/dist/commonjs/utils/assert_unreachable.d.ts +0 -40
  1708. package/dist/commonjs/utils/assert_unreachable.js +0 -46
  1709. package/dist/commonjs/utils/initialization_segment_cache.d.ts +0 -42
  1710. package/dist/es2017/core/init/utils/create_stream_playback_observer.d.ts +0 -41
  1711. package/dist/es2017/core/init/utils/create_stream_playback_observer.js +0 -87
  1712. package/dist/es2017/core/segment_buffers/implementations/text/html/html_text_segment_buffer.d.ts +0 -141
  1713. package/dist/es2017/core/segment_buffers/implementations/text/html/html_text_segment_buffer.js +0 -383
  1714. package/dist/es2017/core/segment_buffers/implementations/text/html/index.d.ts +0 -21
  1715. package/dist/es2017/core/segment_buffers/implementations/text/html/index.js +0 -21
  1716. package/dist/es2017/core/segment_buffers/implementations/text/html/parsers.d.ts +0 -30
  1717. package/dist/es2017/core/segment_buffers/implementations/text/html/parsers.js +0 -37
  1718. package/dist/es2017/core/segment_buffers/implementations/text/html/text_track_cues_store.d.ts +0 -79
  1719. package/dist/es2017/core/segment_buffers/implementations/text/html/text_track_cues_store.js +0 -370
  1720. package/dist/es2017/core/segment_buffers/implementations/text/html/types.d.ts +0 -25
  1721. package/dist/es2017/core/segment_buffers/implementations/text/html/types.js +0 -16
  1722. package/dist/es2017/core/segment_buffers/implementations/text/html/update_proportional_elements.d.ts +0 -30
  1723. package/dist/es2017/core/segment_buffers/implementations/text/html/update_proportional_elements.js +0 -77
  1724. package/dist/es2017/core/segment_buffers/implementations/text/html/utils.d.ts +0 -45
  1725. package/dist/es2017/core/segment_buffers/implementations/text/html/utils.js +0 -123
  1726. package/dist/es2017/core/segment_buffers/implementations/text/native/index.d.ts +0 -17
  1727. package/dist/es2017/core/segment_buffers/implementations/text/native/index.js +0 -17
  1728. package/dist/es2017/core/segment_buffers/implementations/text/native/native_text_segment_buffer.d.ts +0 -83
  1729. package/dist/es2017/core/segment_buffers/implementations/text/native/native_text_segment_buffer.js +0 -251
  1730. package/dist/es2017/core/segment_buffers/implementations/text/native/parsers.d.ts +0 -26
  1731. package/dist/es2017/core/segment_buffers/implementations/text/native/parsers.js +0 -37
  1732. package/dist/es2017/core/stream/representation/utils/force_garbage_collection.d.ts +0 -29
  1733. package/dist/es2017/core/stream/representation/utils/force_garbage_collection.js +0 -91
  1734. package/dist/es2017/errors/assertion_error.d.ts +0 -31
  1735. package/dist/es2017/errors/assertion_error.js +0 -35
  1736. package/dist/es2017/errors/request_error.d.ts +0 -38
  1737. package/dist/es2017/errors/request_error.js +0 -55
  1738. package/dist/es2017/experimental/features/dash_wasm.d.ts +0 -23
  1739. package/dist/es2017/experimental/features/dash_wasm.js +0 -34
  1740. package/dist/es2017/experimental/features/debug_element.d.ts +0 -8
  1741. package/dist/es2017/experimental/features/debug_element.js +0 -10
  1742. package/dist/es2017/experimental/tools/parseBIFThumbnails/index.js +0 -29
  1743. package/dist/es2017/utils/assert_unreachable.d.ts +0 -40
  1744. package/dist/es2017/utils/assert_unreachable.js +0 -43
  1745. package/dist/es2017/utils/initialization_segment_cache.d.ts +0 -42
  1746. package/dist/rx-player.d.ts +0 -3
  1747. package/dist/rx-player.min.d.ts +0 -3
  1748. package/experimental/features/index.d.ts +0 -16
  1749. package/experimental/features/index.js +0 -16
  1750. package/experimental/index.d.ts +0 -16
  1751. package/experimental/index.js +0 -16
  1752. package/experimental/tools/VideoThumbnailLoader.d.ts +0 -18
  1753. package/experimental/tools/VideoThumbnailLoader.js +0 -18
  1754. package/experimental/tools/createMetaplaylist.d.ts +0 -18
  1755. package/experimental/tools/createMetaplaylist.js +0 -18
  1756. package/experimental/tools/index.d.ts +0 -16
  1757. package/experimental/tools/index.js +0 -16
  1758. package/experimental/tools/mediaCapabilitiesProber.d.ts +0 -18
  1759. package/experimental/tools/mediaCapabilitiesProber.js +0 -18
  1760. package/experimental/tools/parseBIFThumbnails.d.ts +0 -18
  1761. package/experimental/tools/parseBIFThumbnails.js +0 -18
  1762. package/features/index.d.ts +0 -16
  1763. package/features/index.js +0 -16
  1764. package/jest.config.js +0 -33
  1765. package/logger/index.d.ts +0 -17
  1766. package/logger/index.js +0 -17
  1767. package/manifest.mpd +0 -149
  1768. package/minimal/index.d.ts +0 -17
  1769. package/minimal/index.js +0 -17
  1770. package/scripts/README.md +0 -11
  1771. package/scripts/build/generate_build.mjs +0 -194
  1772. package/scripts/build/templates/experimental/features/index.d.ts +0 -16
  1773. package/scripts/build/templates/experimental/features/index.js +0 -16
  1774. package/scripts/build/templates/experimental/index.d.ts +0 -16
  1775. package/scripts/build/templates/experimental/index.js +0 -16
  1776. package/scripts/build/templates/experimental/tools/VideoThumbnailLoader.d.ts +0 -18
  1777. package/scripts/build/templates/experimental/tools/VideoThumbnailLoader.js +0 -18
  1778. package/scripts/build/templates/experimental/tools/createMetaplaylist.d.ts +0 -18
  1779. package/scripts/build/templates/experimental/tools/createMetaplaylist.js +0 -18
  1780. package/scripts/build/templates/experimental/tools/index.d.ts +0 -16
  1781. package/scripts/build/templates/experimental/tools/index.js +0 -16
  1782. package/scripts/build/templates/experimental/tools/mediaCapabilitiesProber.d.ts +0 -18
  1783. package/scripts/build/templates/experimental/tools/mediaCapabilitiesProber.js +0 -18
  1784. package/scripts/build/templates/experimental/tools/parseBIFThumbnails.d.ts +0 -18
  1785. package/scripts/build/templates/experimental/tools/parseBIFThumbnails.js +0 -18
  1786. package/scripts/build/templates/features/index.d.ts +0 -16
  1787. package/scripts/build/templates/features/index.js +0 -16
  1788. package/scripts/build/templates/logger/index.d.ts +0 -17
  1789. package/scripts/build/templates/logger/index.js +0 -17
  1790. package/scripts/build/templates/minimal/index.d.ts +0 -17
  1791. package/scripts/build/templates/minimal/index.js +0 -17
  1792. package/scripts/build/templates/tools/TextTrackRenderer.d.ts +0 -18
  1793. package/scripts/build/templates/tools/TextTrackRenderer.js +0 -18
  1794. package/scripts/build/templates/tools/index.d.ts +0 -16
  1795. package/scripts/build/templates/tools/index.js +0 -16
  1796. package/scripts/build/templates/tools/string-utils.d.ts +0 -18
  1797. package/scripts/build/templates/tools/string-utils.js +0 -18
  1798. package/scripts/build/templates/types/index.d.ts +0 -16
  1799. package/scripts/build/templates/types/index.js +0 -15
  1800. package/scripts/build_demo.mjs +0 -130
  1801. package/scripts/canal-release.patch +0 -78
  1802. package/scripts/check_nodejs_import_compatibility.js +0 -60
  1803. package/scripts/deploy_new_demo +0 -123
  1804. package/scripts/generate_certificate +0 -19
  1805. package/scripts/generate_demo_list.mjs +0 -110
  1806. package/scripts/generate_documentation_list.mjs +0 -114
  1807. package/scripts/generate_standalone_demo.mjs +0 -109
  1808. package/scripts/launch_static_server.mjs +0 -163
  1809. package/scripts/list-npm-scripts.mjs +0 -207
  1810. package/scripts/make-dev-releases +0 -65
  1811. package/scripts/run_standalone_demo.mjs +0 -32
  1812. package/scripts/start_demo_web_server.mjs +0 -59
  1813. package/scripts/update-version +0 -45
  1814. package/scripts/update_gh-pages_demo +0 -132
  1815. package/scripts/update_gh-pages_doc +0 -106
  1816. package/scripts/utils/display_webpack_errors.mjs +0 -33
  1817. package/scripts/utils/get_human_readable_hours.mjs +0 -12
  1818. package/scripts/utils/project_root_directory.mjs +0 -4
  1819. package/scripts/wasm-strip.mjs +0 -364
  1820. package/sonar-project.properties +0 -7
  1821. package/src/README.md +0 -137
  1822. package/src/compat/README.md +0 -29
  1823. package/src/compat/__tests__/add_text_track.test.ts +0 -131
  1824. package/src/compat/__tests__/browser_compatibility_types.test.ts +0 -131
  1825. package/src/compat/__tests__/browser_version.test.ts +0 -84
  1826. package/src/compat/__tests__/can_patch_isobmff.test.ts +0 -50
  1827. package/src/compat/__tests__/can_rely_on_video_visibility_and_size.test.ts +0 -78
  1828. package/src/compat/__tests__/can_reuse_media_keys.test.ts +0 -31
  1829. package/src/compat/__tests__/change_source_buffer_type.test.ts +0 -60
  1830. package/src/compat/__tests__/clear_element_src.test.ts +0 -252
  1831. package/src/compat/__tests__/enable_audio_track.test.ts +0 -341
  1832. package/src/compat/__tests__/is_codec_supported.test.ts +0 -78
  1833. package/src/compat/__tests__/is_seeking_approximate.test.ts +0 -48
  1834. package/src/compat/__tests__/is_vtt_cue.test.ts +0 -75
  1835. package/src/compat/__tests__/make_vtt_cue.test.ts +0 -99
  1836. package/src/compat/__tests__/patch_webkit_source_buffer.test.ts +0 -145
  1837. package/src/compat/__tests__/remove_cue.test.ts +0 -229
  1838. package/src/compat/__tests__/should_favour_custom_safari_EME.test.ts +0 -130
  1839. package/src/compat/__tests__/should_reload_media_source_on_decipherability_update.test.ts +0 -50
  1840. package/src/compat/__tests__/should_renew_media_key_system_access.test.ts +0 -55
  1841. package/src/compat/__tests__/should_unset_media_keys.test.ts +0 -53
  1842. package/src/compat/__tests__/should_validate_metadata.test.ts +0 -53
  1843. package/src/compat/__tests__/should_wait_for_data_before_loaded.test.ts +0 -121
  1844. package/src/compat/__tests__/should_wait_for_have_enough_data.test.ts +0 -36
  1845. package/src/compat/add_class_name.ts +0 -41
  1846. package/src/compat/add_text_track.ts +0 -54
  1847. package/src/compat/browser_compatibility_types.ts +0 -208
  1848. package/src/compat/browser_detection.ts +0 -155
  1849. package/src/compat/browser_version.ts +0 -44
  1850. package/src/compat/can_patch_isobmff.ts +0 -30
  1851. package/src/compat/can_rely_on_video_visibility_and_size.ts +0 -52
  1852. package/src/compat/can_reuse_media_keys.ts +0 -20
  1853. package/src/compat/change_source_buffer_type.ts +0 -66
  1854. package/src/compat/clear_element_src.ts +0 -55
  1855. package/src/compat/eme/close_session.ts +0 -111
  1856. package/src/compat/eme/constants.ts +0 -21
  1857. package/src/compat/eme/custom_key_system_access.ts +0 -67
  1858. package/src/compat/eme/custom_media_keys/ie11_media_keys.ts +0 -186
  1859. package/src/compat/eme/custom_media_keys/index.ts +0 -28
  1860. package/src/compat/eme/custom_media_keys/moz_media_keys_constructor.ts +0 -86
  1861. package/src/compat/eme/custom_media_keys/ms_media_keys_constructor.ts +0 -67
  1862. package/src/compat/eme/custom_media_keys/old_webkit_media_keys.ts +0 -235
  1863. package/src/compat/eme/custom_media_keys/types.ts +0 -67
  1864. package/src/compat/eme/custom_media_keys/webkit_media_keys.ts +0 -308
  1865. package/src/compat/eme/custom_media_keys/webkit_media_keys_constructor.ts +0 -48
  1866. package/src/compat/eme/eme-api-implementation.ts +0 -319
  1867. package/src/compat/eme/generate_key_request.ts +0 -162
  1868. package/src/compat/eme/get_init_data.ts +0 -159
  1869. package/src/compat/eme/get_uuid_kid_from_keystatus_kid.ts +0 -37
  1870. package/src/compat/eme/get_webkit_fairplay_initdata.ts +0 -75
  1871. package/src/compat/eme/index.ts +0 -47
  1872. package/src/compat/eme/load_session.ts +0 -67
  1873. package/src/compat/enable_audio_track.ts +0 -33
  1874. package/src/compat/event_listeners.ts +0 -589
  1875. package/src/compat/get_start_date.ts +0 -48
  1876. package/src/compat/global_scope.ts +0 -18
  1877. package/src/compat/has_issues_with_high_media_source_duration.ts +0 -27
  1878. package/src/compat/index.ts +0 -77
  1879. package/src/compat/is_codec_supported.ts +0 -62
  1880. package/src/compat/is_debug_mode_enabled.ts +0 -12
  1881. package/src/compat/is_node.ts +0 -21
  1882. package/src/compat/is_seeking_approximate.ts +0 -32
  1883. package/src/compat/is_vtt_cue.ts +0 -31
  1884. package/src/compat/is_worker.ts +0 -9
  1885. package/src/compat/make_vtt_cue.ts +0 -52
  1886. package/src/compat/on_height_width_change.ts +0 -114
  1887. package/src/compat/patch_webkit_source_buffer.ts +0 -90
  1888. package/src/compat/remove_cue.ts +0 -64
  1889. package/src/compat/should_favour_custom_safari_EME.ts +0 -34
  1890. package/src/compat/should_reload_media_source_on_decipherability_update.ts +0 -32
  1891. package/src/compat/should_renew_media_key_system_access.ts +0 -26
  1892. package/src/compat/should_unset_media_keys.ts +0 -27
  1893. package/src/compat/should_validate_metadata.ts +0 -27
  1894. package/src/compat/should_wait_for_data_before_loaded.ts +0 -35
  1895. package/src/compat/should_wait_for_have_enough_data.ts +0 -17
  1896. package/src/config.ts +0 -33
  1897. package/src/core/README.md +0 -56
  1898. package/src/core/adaptive/README.md +0 -147
  1899. package/src/core/adaptive/__tests__/buffer_based_chooser.test.ts +0 -548
  1900. package/src/core/adaptive/adaptive_representation_selector.ts +0 -800
  1901. package/src/core/adaptive/buffer_based_chooser.ts +0 -265
  1902. package/src/core/adaptive/guess_based_chooser.ts +0 -310
  1903. package/src/core/adaptive/index.ts +0 -45
  1904. package/src/core/adaptive/network_analyzer.ts +0 -421
  1905. package/src/core/adaptive/utils/__tests__/bandwith_estimator.test.ts +0 -134
  1906. package/src/core/adaptive/utils/__tests__/ewma.test.ts +0 -79
  1907. package/src/core/adaptive/utils/__tests__/filter_by_bitrate.test.ts +0 -56
  1908. package/src/core/adaptive/utils/__tests__/filter_by_resolution.test.ts +0 -82
  1909. package/src/core/adaptive/utils/__tests__/get_buffer_levels.test.ts +0 -48
  1910. package/src/core/adaptive/utils/__tests__/select_optimal_representation.test.ts +0 -67
  1911. package/src/core/adaptive/utils/bandwidth_estimator.ts +0 -88
  1912. package/src/core/adaptive/utils/ewma.ts +0 -59
  1913. package/src/core/adaptive/utils/filter_by_bitrate.ts +0 -46
  1914. package/src/core/adaptive/utils/filter_by_resolution.ts +0 -63
  1915. package/src/core/adaptive/utils/get_buffer_levels.ts +0 -50
  1916. package/src/core/adaptive/utils/last_estimate_storage.ts +0 -79
  1917. package/src/core/adaptive/utils/pending_requests_store.ts +0 -157
  1918. package/src/core/adaptive/utils/representation_score_calculator.ts +0 -168
  1919. package/src/core/adaptive/utils/select_optimal_representation.ts +0 -43
  1920. package/src/core/api/README.md +0 -36
  1921. package/src/core/api/__tests__/option_utils.test.ts +0 -996
  1922. package/src/core/api/__tests__/public_api.test.ts +0 -470
  1923. package/src/core/api/__tests__/utils.test.ts +0 -195
  1924. package/src/core/api/debug/buffer_graph.ts +0 -244
  1925. package/src/core/api/debug/buffer_size_graph.ts +0 -132
  1926. package/src/core/api/debug/constants.ts +0 -2
  1927. package/src/core/api/debug/index.ts +0 -3
  1928. package/src/core/api/debug/modules/general_info.ts +0 -189
  1929. package/src/core/api/debug/modules/segment_buffer_content.ts +0 -155
  1930. package/src/core/api/debug/modules/segment_buffer_size.ts +0 -48
  1931. package/src/core/api/debug/render.ts +0 -40
  1932. package/src/core/api/debug/utils.ts +0 -103
  1933. package/src/core/api/index.ts +0 -28
  1934. package/src/core/api/option_utils.ts +0 -438
  1935. package/src/core/api/playback_observer.ts +0 -1221
  1936. package/src/core/api/public_api.ts +0 -2908
  1937. package/src/core/api/track_management/README.md +0 -15
  1938. package/src/core/api/track_management/__tests__/media_element_tracks_store.test.ts +0 -184
  1939. package/src/core/api/track_management/index.ts +0 -20
  1940. package/src/core/api/track_management/media_element_tracks_store.ts +0 -806
  1941. package/src/core/api/track_management/track_dispatcher.ts +0 -267
  1942. package/src/core/api/track_management/tracks_store.ts +0 -1380
  1943. package/src/core/api/utils.ts +0 -228
  1944. package/src/core/decrypt/README.md +0 -22
  1945. package/src/core/decrypt/__tests__/__global__/get_license.test.ts +0 -422
  1946. package/src/core/decrypt/__tests__/__global__/init_data.test.ts +0 -677
  1947. package/src/core/decrypt/__tests__/__global__/media_key_system_access.test.ts +0 -644
  1948. package/src/core/decrypt/__tests__/__global__/media_keys.test.ts +0 -343
  1949. package/src/core/decrypt/__tests__/__global__/server_certificate.test.ts +0 -264
  1950. package/src/core/decrypt/__tests__/__global__/utils.ts +0 -491
  1951. package/src/core/decrypt/attach_media_keys.ts +0 -118
  1952. package/src/core/decrypt/clear_on_stop.ts +0 -47
  1953. package/src/core/decrypt/content_decryptor.ts +0 -1246
  1954. package/src/core/decrypt/create_or_load_session.ts +0 -133
  1955. package/src/core/decrypt/create_session.ts +0 -214
  1956. package/src/core/decrypt/dispose_decryption_resources.ts +0 -54
  1957. package/src/core/decrypt/find_key_system.ts +0 -386
  1958. package/src/core/decrypt/get_key_system_configuration.ts +0 -36
  1959. package/src/core/decrypt/get_media_keys.ts +0 -142
  1960. package/src/core/decrypt/index.ts +0 -33
  1961. package/src/core/decrypt/init_media_keys.ts +0 -51
  1962. package/src/core/decrypt/session_events_listener.ts +0 -343
  1963. package/src/core/decrypt/set_server_certificate.ts +0 -105
  1964. package/src/core/decrypt/types.ts +0 -404
  1965. package/src/core/decrypt/utils/__tests__/are_init_values_compatible.test.ts +0 -261
  1966. package/src/core/decrypt/utils/__tests__/clean_old_loaded_sessions.test.ts +0 -158
  1967. package/src/core/decrypt/utils/__tests__/clean_old_stored_persistent_info.test.ts +0 -133
  1968. package/src/core/decrypt/utils/are_init_values_compatible.ts +0 -140
  1969. package/src/core/decrypt/utils/check_key_statuses.ts +0 -229
  1970. package/src/core/decrypt/utils/clean_old_loaded_sessions.ts +0 -45
  1971. package/src/core/decrypt/utils/clean_old_stored_persistent_info.ts +0 -48
  1972. package/src/core/decrypt/utils/get_drm_system_id.ts +0 -42
  1973. package/src/core/decrypt/utils/init_data_values_container.ts +0 -119
  1974. package/src/core/decrypt/utils/is_session_usable.ts +0 -62
  1975. package/src/core/decrypt/utils/key_id_comparison.ts +0 -57
  1976. package/src/core/decrypt/utils/key_session_record.ts +0 -174
  1977. package/src/core/decrypt/utils/loaded_sessions_store.ts +0 -505
  1978. package/src/core/decrypt/utils/media_keys_infos_store.ts +0 -85
  1979. package/src/core/decrypt/utils/persistent_sessions_store.ts +0 -360
  1980. package/src/core/decrypt/utils/serializable_bytes.ts +0 -59
  1981. package/src/core/decrypt/utils/server_certificate_store.ts +0 -133
  1982. package/src/core/fetchers/README.md +0 -84
  1983. package/src/core/fetchers/cdn_prioritizer.ts +0 -207
  1984. package/src/core/fetchers/index.ts +0 -38
  1985. package/src/core/fetchers/manifest/index.ts +0 -28
  1986. package/src/core/fetchers/manifest/manifest_fetcher.ts +0 -792
  1987. package/src/core/fetchers/segment/__tests__/task_prioritizer.test.ts +0 -763
  1988. package/src/core/fetchers/segment/index.ts +0 -28
  1989. package/src/core/fetchers/segment/prioritized_segment_fetcher.ts +0 -113
  1990. package/src/core/fetchers/segment/segment_fetcher.ts +0 -499
  1991. package/src/core/fetchers/segment/segment_fetcher_creator.ts +0 -128
  1992. package/src/core/fetchers/segment/task_prioritizer.ts +0 -455
  1993. package/src/core/fetchers/utils/error_selector.ts +0 -38
  1994. package/src/core/fetchers/utils/schedule_request.ts +0 -442
  1995. package/src/core/init/README.md +0 -81
  1996. package/src/core/init/directfile_content_initializer.ts +0 -310
  1997. package/src/core/init/index.ts +0 -22
  1998. package/src/core/init/media_source_content_initializer.ts +0 -891
  1999. package/src/core/init/types.ts +0 -247
  2000. package/src/core/init/utils/__tests__/are_same_stream_events.test.ts +0 -84
  2001. package/src/core/init/utils/__tests__/refresh_scheduled_events_list.test.ts +0 -94
  2002. package/src/core/init/utils/content_time_boundaries_observer.ts +0 -646
  2003. package/src/core/init/utils/create_media_source.ts +0 -139
  2004. package/src/core/init/utils/create_stream_playback_observer.ts +0 -131
  2005. package/src/core/init/utils/end_of_stream.ts +0 -108
  2006. package/src/core/init/utils/get_initial_time.ts +0 -167
  2007. package/src/core/init/utils/get_loaded_reference.ts +0 -80
  2008. package/src/core/init/utils/initial_seek_and_play.ts +0 -215
  2009. package/src/core/init/utils/initialize_content_decryption.ts +0 -172
  2010. package/src/core/init/utils/media_source_duration_updater.ts +0 -349
  2011. package/src/core/init/utils/rebuffering_controller.ts +0 -711
  2012. package/src/core/init/utils/stream_events_emitter/are_same_stream_events.ts +0 -42
  2013. package/src/core/init/utils/stream_events_emitter/index.ts +0 -22
  2014. package/src/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.ts +0 -74
  2015. package/src/core/init/utils/stream_events_emitter/stream_events_emitter.ts +0 -255
  2016. package/src/core/init/utils/stream_events_emitter/types.ts +0 -46
  2017. package/src/core/init/utils/throw_on_media_error.ts +0 -74
  2018. package/src/core/segment_buffers/README.md +0 -219
  2019. package/src/core/segment_buffers/garbage_collector.ts +0 -177
  2020. package/src/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.ts +0 -650
  2021. package/src/core/segment_buffers/implementations/audio_video/index.ts +0 -18
  2022. package/src/core/segment_buffers/implementations/index.ts +0 -20
  2023. package/src/core/segment_buffers/implementations/text/html/__tests__/utils.test.ts +0 -343
  2024. package/src/core/segment_buffers/implementations/text/html/html_text_segment_buffer.ts +0 -527
  2025. package/src/core/segment_buffers/implementations/text/html/index.ts +0 -24
  2026. package/src/core/segment_buffers/implementations/text/html/parsers.ts +0 -49
  2027. package/src/core/segment_buffers/implementations/text/html/text_track_cues_store.ts +0 -391
  2028. package/src/core/segment_buffers/implementations/text/html/types.ts +0 -23
  2029. package/src/core/segment_buffers/implementations/text/html/update_proportional_elements.ts +0 -93
  2030. package/src/core/segment_buffers/implementations/text/html/utils.ts +0 -139
  2031. package/src/core/segment_buffers/implementations/text/native/index.ts +0 -19
  2032. package/src/core/segment_buffers/implementations/text/native/native_text_segment_buffer.ts +0 -335
  2033. package/src/core/segment_buffers/implementations/text/native/parsers.ts +0 -47
  2034. package/src/core/segment_buffers/implementations/types.ts +0 -380
  2035. package/src/core/segment_buffers/implementations/utils/manual_time_ranges.ts +0 -80
  2036. package/src/core/segment_buffers/index.ts +0 -72
  2037. package/src/core/segment_buffers/inventory/buffered_history.ts +0 -132
  2038. package/src/core/segment_buffers/inventory/index.ts +0 -34
  2039. package/src/core/segment_buffers/inventory/segment_inventory.ts +0 -1106
  2040. package/src/core/segment_buffers/inventory/types.ts +0 -35
  2041. package/src/core/segment_buffers/inventory/utils.ts +0 -61
  2042. package/src/core/segment_buffers/segment_buffers_store.ts +0 -369
  2043. package/src/core/stream/README.md +0 -59
  2044. package/src/core/stream/adaptation/adaptation_stream.ts +0 -438
  2045. package/src/core/stream/adaptation/get_representations_switch_strategy.ts +0 -203
  2046. package/src/core/stream/adaptation/index.ts +0 -20
  2047. package/src/core/stream/adaptation/types.ts +0 -229
  2048. package/src/core/stream/index.ts +0 -40
  2049. package/src/core/stream/orchestrator/README.md +0 -346
  2050. package/src/core/stream/orchestrator/get_time_ranges_for_content.ts +0 -70
  2051. package/src/core/stream/orchestrator/index.ts +0 -30
  2052. package/src/core/stream/orchestrator/stream_orchestrator.ts +0 -726
  2053. package/src/core/stream/period/index.ts +0 -20
  2054. package/src/core/stream/period/period_stream.ts +0 -501
  2055. package/src/core/stream/period/types.ts +0 -125
  2056. package/src/core/stream/period/utils/get_adaptation_switch_strategy.ts +0 -248
  2057. package/src/core/stream/representation/README.md +0 -16
  2058. package/src/core/stream/representation/index.ts +0 -20
  2059. package/src/core/stream/representation/representation_stream.ts +0 -480
  2060. package/src/core/stream/representation/types.ts +0 -308
  2061. package/src/core/stream/representation/utils/append_segment_to_buffer.ts +0 -77
  2062. package/src/core/stream/representation/utils/check_for_discontinuity.ts +0 -305
  2063. package/src/core/stream/representation/utils/downloading_queue.ts +0 -603
  2064. package/src/core/stream/representation/utils/force_garbage_collection.ts +0 -113
  2065. package/src/core/stream/representation/utils/get_buffer_status.ts +0 -321
  2066. package/src/core/stream/representation/utils/get_needed_segments.ts +0 -617
  2067. package/src/core/stream/representation/utils/get_segment_priority.ts +0 -43
  2068. package/src/core/stream/representation/utils/push_init_segment.ts +0 -84
  2069. package/src/core/stream/representation/utils/push_media_segment.ts +0 -113
  2070. package/src/default_config.ts +0 -1200
  2071. package/src/errors/README.md +0 -6
  2072. package/src/errors/__tests__/assertion_error.test.ts +0 -26
  2073. package/src/errors/__tests__/encrypted_media_error.test.ts +0 -45
  2074. package/src/errors/__tests__/error_message.test.ts +0 -23
  2075. package/src/errors/__tests__/format_error.test.ts +0 -62
  2076. package/src/errors/__tests__/is_known_error.test.ts +0 -61
  2077. package/src/errors/__tests__/media_error.test.ts +0 -55
  2078. package/src/errors/__tests__/network_error.test.ts +0 -72
  2079. package/src/errors/__tests__/other_error.test.ts +0 -53
  2080. package/src/errors/__tests__/request_error.test.ts +0 -29
  2081. package/src/errors/assertion_error.ts +0 -40
  2082. package/src/errors/custom_loader_error.ts +0 -52
  2083. package/src/errors/encrypted_media_error.ts +0 -73
  2084. package/src/errors/error_codes.ts +0 -149
  2085. package/src/errors/error_message.ts +0 -25
  2086. package/src/errors/format_error.ts +0 -39
  2087. package/src/errors/index.ts +0 -52
  2088. package/src/errors/is_known_error.ts +0 -35
  2089. package/src/errors/media_error.ts +0 -124
  2090. package/src/errors/network_error.ts +0 -72
  2091. package/src/errors/other_error.ts +0 -50
  2092. package/src/errors/request_error.ts +0 -70
  2093. package/src/experimental/README.md +0 -20
  2094. package/src/experimental/features/__tests__/dash_wasm.test.ts +0 -44
  2095. package/src/experimental/features/__tests__/debug_element.test.ts +0 -12
  2096. package/src/experimental/features/__tests__/index.test.ts +0 -19
  2097. package/src/experimental/features/__tests__/local.test.ts +0 -35
  2098. package/src/experimental/features/__tests__/metaplaylist.test.ts +0 -35
  2099. package/src/experimental/features/dash_wasm.ts +0 -41
  2100. package/src/experimental/features/debug_element.ts +0 -13
  2101. package/src/experimental/features/index.ts +0 -20
  2102. package/src/experimental/features/local.ts +0 -28
  2103. package/src/experimental/features/metaplaylist.ts +0 -28
  2104. package/src/experimental/index.ts +0 -5
  2105. package/src/experimental/tools/VideoThumbnailLoader/features/dash.ts +0 -23
  2106. package/src/experimental/tools/VideoThumbnailLoader/features/metaplaylist.ts +0 -23
  2107. package/src/experimental/tools/VideoThumbnailLoader/index.ts +0 -25
  2108. package/src/experimental/tools/VideoThumbnailLoader/load_and_push_segment.ts +0 -77
  2109. package/src/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.ts +0 -75
  2110. package/src/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.ts +0 -54
  2111. package/src/experimental/tools/VideoThumbnailLoader/types.ts +0 -39
  2112. package/src/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.ts +0 -425
  2113. package/src/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.ts +0 -34
  2114. package/src/experimental/tools/createMetaplaylist/get_duration_from_manifest.ts +0 -143
  2115. package/src/experimental/tools/createMetaplaylist/index.ts +0 -72
  2116. package/src/experimental/tools/index.ts +0 -27
  2117. package/src/experimental/tools/mediaCapabilitiesProber/__tests__/capabilities.test.ts +0 -37
  2118. package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/DRMInfos.test.ts +0 -140
  2119. package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/HDCPPolicy.test.ts +0 -153
  2120. package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/decodingInfos.test.ts +0 -405
  2121. package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/defaultCodecFinder.test.ts +0 -136
  2122. package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/mediaContentType.test.ts +0 -294
  2123. package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/mediaDisplayInfos.test.ts +0 -190
  2124. package/src/experimental/tools/mediaCapabilitiesProber/__tests__/utils.test.ts +0 -361
  2125. package/src/experimental/tools/mediaCapabilitiesProber/api/index.ts +0 -184
  2126. package/src/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.ts +0 -136
  2127. package/src/experimental/tools/mediaCapabilitiesProber/capabilities.ts +0 -169
  2128. package/src/experimental/tools/mediaCapabilitiesProber/index.ts +0 -18
  2129. package/src/experimental/tools/mediaCapabilitiesProber/log.ts +0 -21
  2130. package/src/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.ts +0 -67
  2131. package/src/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.ts +0 -89
  2132. package/src/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.ts +0 -100
  2133. package/src/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.ts +0 -66
  2134. package/src/experimental/tools/mediaCapabilitiesProber/probers/index.ts +0 -44
  2135. package/src/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.ts +0 -66
  2136. package/src/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.ts +0 -100
  2137. package/src/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.ts +0 -106
  2138. package/src/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.ts +0 -55
  2139. package/src/experimental/tools/mediaCapabilitiesProber/types.ts +0 -75
  2140. package/src/experimental/tools/mediaCapabilitiesProber/utils.ts +0 -107
  2141. package/src/experimental/tools/parseBIFThumbnails/index.ts +0 -39
  2142. package/src/features/README.md +0 -11
  2143. package/src/features/__tests__/add_features.test.ts +0 -69
  2144. package/src/features/add_features.ts +0 -37
  2145. package/src/features/features_object.ts +0 -35
  2146. package/src/features/index.ts +0 -40
  2147. package/src/features/list/__tests__/dash.test.ts +0 -41
  2148. package/src/features/list/__tests__/directfile.test.ts +0 -35
  2149. package/src/features/list/__tests__/eme.test.ts +0 -28
  2150. package/src/features/list/__tests__/html_sami_parser.test.ts +0 -33
  2151. package/src/features/list/__tests__/html_srt_parser.test.ts +0 -33
  2152. package/src/features/list/__tests__/html_text_buffer.test.ts +0 -29
  2153. package/src/features/list/__tests__/html_ttml_parser.test.ts +0 -33
  2154. package/src/features/list/__tests__/html_vtt_parser.test.ts +0 -33
  2155. package/src/features/list/__tests__/index.test.ts +0 -49
  2156. package/src/features/list/__tests__/native_sami_parser.test.ts +0 -33
  2157. package/src/features/list/__tests__/native_srt_parser.test.ts +0 -33
  2158. package/src/features/list/__tests__/native_text_buffer.test.ts +0 -29
  2159. package/src/features/list/__tests__/native_ttml_parser.test.ts +0 -33
  2160. package/src/features/list/__tests__/native_vtt_parser.test.ts +0 -33
  2161. package/src/features/list/__tests__/smooth.test.ts +0 -36
  2162. package/src/features/list/dash.ts +0 -36
  2163. package/src/features/list/directfile.ts +0 -33
  2164. package/src/features/list/eme.ts +0 -29
  2165. package/src/features/list/html_sami_parser.ts +0 -31
  2166. package/src/features/list/html_srt_parser.ts +0 -31
  2167. package/src/features/list/html_text_buffer.ts +0 -29
  2168. package/src/features/list/html_ttml_parser.ts +0 -31
  2169. package/src/features/list/html_vtt_parser.ts +0 -31
  2170. package/src/features/list/index.ts +0 -30
  2171. package/src/features/list/native_sami_parser.ts +0 -32
  2172. package/src/features/list/native_srt_parser.ts +0 -32
  2173. package/src/features/list/native_text_buffer.ts +0 -30
  2174. package/src/features/list/native_ttml_parser.ts +0 -32
  2175. package/src/features/list/native_vtt_parser.ts +0 -32
  2176. package/src/features/list/smooth.ts +0 -32
  2177. package/src/features/types.ts +0 -156
  2178. package/src/globals.dev.d.ts +0 -15
  2179. package/src/globals.prod.d.ts +0 -15
  2180. package/src/index.ts +0 -60
  2181. package/src/log.ts +0 -22
  2182. package/src/manifest/README.md +0 -55
  2183. package/src/manifest/__tests__/adaptation.test.ts +0 -448
  2184. package/src/manifest/__tests__/manifest.test.ts +0 -487
  2185. package/src/manifest/__tests__/period.test.ts +0 -799
  2186. package/src/manifest/__tests__/representation.test.ts +0 -297
  2187. package/src/manifest/__tests__/update_period_in_place.test.ts +0 -1074
  2188. package/src/manifest/__tests__/update_periods.test.ts +0 -845
  2189. package/src/manifest/adaptation.ts +0 -308
  2190. package/src/manifest/index.ts +0 -59
  2191. package/src/manifest/manifest.ts +0 -650
  2192. package/src/manifest/period.ts +0 -188
  2193. package/src/manifest/representation.ts +0 -479
  2194. package/src/manifest/representation_index/__tests__/static.test.ts +0 -74
  2195. package/src/manifest/representation_index/index.ts +0 -29
  2196. package/src/manifest/representation_index/static.ts +0 -166
  2197. package/src/manifest/representation_index/types.ts +0 -458
  2198. package/src/manifest/types.ts +0 -30
  2199. package/src/manifest/update_period_in_place.ts +0 -142
  2200. package/src/manifest/update_periods.ts +0 -201
  2201. package/src/manifest/utils.ts +0 -60
  2202. package/src/minimal.ts +0 -34
  2203. package/src/parsers/README.md +0 -12
  2204. package/src/parsers/containers/isobmff/constants.ts +0 -24
  2205. package/src/parsers/containers/isobmff/create_box.ts +0 -81
  2206. package/src/parsers/containers/isobmff/drm/index.ts +0 -17
  2207. package/src/parsers/containers/isobmff/drm/playready.ts +0 -45
  2208. package/src/parsers/containers/isobmff/get_box.ts +0 -278
  2209. package/src/parsers/containers/isobmff/index.ts +0 -51
  2210. package/src/parsers/containers/isobmff/read.ts +0 -105
  2211. package/src/parsers/containers/isobmff/take_pssh_out.ts +0 -101
  2212. package/src/parsers/containers/isobmff/utils.ts +0 -555
  2213. package/src/parsers/containers/matroska/index.ts +0 -21
  2214. package/src/parsers/containers/matroska/utils.ts +0 -313
  2215. package/src/parsers/images/bif.ts +0 -128
  2216. package/src/parsers/manifest/dash/common/__tests__/attach_trickmode_track.test.ts +0 -65
  2217. package/src/parsers/manifest/dash/common/__tests__/convert_supplemental_codecs.test.ts +0 -37
  2218. package/src/parsers/manifest/dash/common/__tests__/flatten_overlapping_period.test.ts +0 -162
  2219. package/src/parsers/manifest/dash/common/__tests__/get_clock_offset.test.ts +0 -66
  2220. package/src/parsers/manifest/dash/common/__tests__/get_http_utc-timing_url.test.ts +0 -165
  2221. package/src/parsers/manifest/dash/common/__tests__/get_periods_time_infos.test.ts +0 -118
  2222. package/src/parsers/manifest/dash/common/__tests__/manifest_bounds_calculator.test.ts +0 -290
  2223. package/src/parsers/manifest/dash/common/__tests__/parse_availability_start_time.test.ts +0 -63
  2224. package/src/parsers/manifest/dash/common/attach_trickmode_track.ts +0 -55
  2225. package/src/parsers/manifest/dash/common/convert_supplemental_codecs.ts +0 -32
  2226. package/src/parsers/manifest/dash/common/flatten_overlapping_periods.ts +0 -87
  2227. package/src/parsers/manifest/dash/common/get_clock_offset.ts +0 -42
  2228. package/src/parsers/manifest/dash/common/get_hdr_information.ts +0 -94
  2229. package/src/parsers/manifest/dash/common/get_http_utc-timing_url.ts +0 -46
  2230. package/src/parsers/manifest/dash/common/get_minimum_and_maximum_positions.ts +0 -39
  2231. package/src/parsers/manifest/dash/common/get_periods_time_infos.ts +0 -91
  2232. package/src/parsers/manifest/dash/common/index.ts +0 -40
  2233. package/src/parsers/manifest/dash/common/indexes/__tests__/tokens.test.ts +0 -60
  2234. package/src/parsers/manifest/dash/common/indexes/base.ts +0 -435
  2235. package/src/parsers/manifest/dash/common/indexes/get_init_segment.ts +0 -55
  2236. package/src/parsers/manifest/dash/common/indexes/get_segments_from_timeline.ts +0 -148
  2237. package/src/parsers/manifest/dash/common/indexes/index.ts +0 -39
  2238. package/src/parsers/manifest/dash/common/indexes/list.ts +0 -346
  2239. package/src/parsers/manifest/dash/common/indexes/template.ts +0 -661
  2240. package/src/parsers/manifest/dash/common/indexes/timeline/__tests__/parse_s_element.test.ts +0 -115
  2241. package/src/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.ts +0 -54
  2242. package/src/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.ts +0 -102
  2243. package/src/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.ts +0 -66
  2244. package/src/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.ts +0 -153
  2245. package/src/parsers/manifest/dash/common/indexes/timeline/index.ts +0 -21
  2246. package/src/parsers/manifest/dash/common/indexes/timeline/parse_s_element.ts +0 -72
  2247. package/src/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.ts +0 -1060
  2248. package/src/parsers/manifest/dash/common/indexes/tokens.ts +0 -127
  2249. package/src/parsers/manifest/dash/common/indexes/utils.ts +0 -32
  2250. package/src/parsers/manifest/dash/common/infer_adaptation_type.ts +0 -136
  2251. package/src/parsers/manifest/dash/common/manifest_bounds_calculator.ts +0 -171
  2252. package/src/parsers/manifest/dash/common/parse_adaptation_sets.ts +0 -568
  2253. package/src/parsers/manifest/dash/common/parse_availability_start_time.ts +0 -35
  2254. package/src/parsers/manifest/dash/common/parse_mpd.ts +0 -400
  2255. package/src/parsers/manifest/dash/common/parse_periods.ts +0 -369
  2256. package/src/parsers/manifest/dash/common/parse_representation_index.ts +0 -199
  2257. package/src/parsers/manifest/dash/common/parse_representations.ts +0 -352
  2258. package/src/parsers/manifest/dash/common/resolve_base_urls.ts +0 -58
  2259. package/src/parsers/manifest/dash/index.ts +0 -22
  2260. package/src/parsers/manifest/dash/js-parser/__tests__/parse_from_document.test.ts +0 -43
  2261. package/src/parsers/manifest/dash/js-parser/index.ts +0 -18
  2262. package/src/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.ts +0 -387
  2263. package/src/parsers/manifest/dash/js-parser/node_parsers/BaseURL.ts +0 -35
  2264. package/src/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.ts +0 -49
  2265. package/src/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.ts +0 -94
  2266. package/src/parsers/manifest/dash/js-parser/node_parsers/EventStream.ts +0 -117
  2267. package/src/parsers/manifest/dash/js-parser/node_parsers/Initialization.ts +0 -48
  2268. package/src/parsers/manifest/dash/js-parser/node_parsers/MPD.ts +0 -180
  2269. package/src/parsers/manifest/dash/js-parser/node_parsers/Period.ts +0 -152
  2270. package/src/parsers/manifest/dash/js-parser/node_parsers/Representation.ts +0 -237
  2271. package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.ts +0 -112
  2272. package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentList.ts +0 -50
  2273. package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.ts +0 -98
  2274. package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.ts +0 -35
  2275. package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.ts +0 -63
  2276. package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/AdaptationSet.test.ts +0 -573
  2277. package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/ContentComponent.test.ts +0 -67
  2278. package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/ContentProtection.test.ts +0 -223
  2279. package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/Initialization.test.ts +0 -139
  2280. package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/SegmentTimeline.test.ts +0 -119
  2281. package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/SegmentURL.test.ts +0 -205
  2282. package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/utils.test.ts +0 -218
  2283. package/src/parsers/manifest/dash/js-parser/node_parsers/utils.ts +0 -404
  2284. package/src/parsers/manifest/dash/js-parser/parse_from_document.ts +0 -129
  2285. package/src/parsers/manifest/dash/node_parser_types.ts +0 -431
  2286. package/src/parsers/manifest/dash/parsers_types.ts +0 -91
  2287. package/src/parsers/manifest/dash/wasm-parser/Cargo.lock +0 -25
  2288. package/src/parsers/manifest/dash/wasm-parser/Cargo.toml +0 -16
  2289. package/src/parsers/manifest/dash/wasm-parser/README.md +0 -267
  2290. package/src/parsers/manifest/dash/wasm-parser/index.ts +0 -21
  2291. package/src/parsers/manifest/dash/wasm-parser/rs/errors.rs +0 -28
  2292. package/src/parsers/manifest/dash/wasm-parser/rs/events.rs +0 -383
  2293. package/src/parsers/manifest/dash/wasm-parser/rs/lib.rs +0 -85
  2294. package/src/parsers/manifest/dash/wasm-parser/rs/processor/attributes.rs +0 -414
  2295. package/src/parsers/manifest/dash/wasm-parser/rs/processor/mod.rs +0 -472
  2296. package/src/parsers/manifest/dash/wasm-parser/rs/processor/s_element.rs +0 -72
  2297. package/src/parsers/manifest/dash/wasm-parser/rs/reader.rs +0 -17
  2298. package/src/parsers/manifest/dash/wasm-parser/rs/reportable.rs +0 -147
  2299. package/src/parsers/manifest/dash/wasm-parser/rs/utils.rs +0 -266
  2300. package/src/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.ts +0 -478
  2301. package/src/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.ts +0 -340
  2302. package/src/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.ts +0 -38
  2303. package/src/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.ts +0 -53
  2304. package/src/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.ts +0 -62
  2305. package/src/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.ts +0 -144
  2306. package/src/parsers/manifest/dash/wasm-parser/ts/generators/MPD.ts +0 -183
  2307. package/src/parsers/manifest/dash/wasm-parser/ts/generators/Period.ts +0 -180
  2308. package/src/parsers/manifest/dash/wasm-parser/ts/generators/Representation.ts +0 -214
  2309. package/src/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.ts +0 -44
  2310. package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.ts +0 -115
  2311. package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.ts +0 -61
  2312. package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.ts +0 -133
  2313. package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.ts +0 -70
  2314. package/src/parsers/manifest/dash/wasm-parser/ts/generators/XLink.ts +0 -66
  2315. package/src/parsers/manifest/dash/wasm-parser/ts/generators/index.ts +0 -17
  2316. package/src/parsers/manifest/dash/wasm-parser/ts/generators/root.ts +0 -66
  2317. package/src/parsers/manifest/dash/wasm-parser/ts/parsers_stack.ts +0 -80
  2318. package/src/parsers/manifest/dash/wasm-parser/ts/types.ts +0 -298
  2319. package/src/parsers/manifest/dash/wasm-parser/ts/utils.ts +0 -47
  2320. package/src/parsers/manifest/index.ts +0 -17
  2321. package/src/parsers/manifest/local/index.ts +0 -25
  2322. package/src/parsers/manifest/local/parse_local_manifest.ts +0 -165
  2323. package/src/parsers/manifest/local/representation_index.ts +0 -254
  2324. package/src/parsers/manifest/local/types.ts +0 -291
  2325. package/src/parsers/manifest/metaplaylist/index.ts +0 -28
  2326. package/src/parsers/manifest/metaplaylist/metaplaylist_parser.ts +0 -336
  2327. package/src/parsers/manifest/metaplaylist/representation_index.ts +0 -272
  2328. package/src/parsers/manifest/smooth/create_parser.ts +0 -690
  2329. package/src/parsers/manifest/smooth/get_codecs.ts +0 -55
  2330. package/src/parsers/manifest/smooth/index.ts +0 -26
  2331. package/src/parsers/manifest/smooth/parse_C_nodes.ts +0 -69
  2332. package/src/parsers/manifest/smooth/parse_protection_node.ts +0 -72
  2333. package/src/parsers/manifest/smooth/representation_index.ts +0 -563
  2334. package/src/parsers/manifest/smooth/shared_smooth_segment_timeline.ts +0 -242
  2335. package/src/parsers/manifest/smooth/utils/add_segment_infos.ts +0 -75
  2336. package/src/parsers/manifest/smooth/utils/parseBoolean.ts +0 -31
  2337. package/src/parsers/manifest/smooth/utils/reduceChildren.ts +0 -36
  2338. package/src/parsers/manifest/smooth/utils/tokens.ts +0 -46
  2339. package/src/parsers/manifest/types.ts +0 -394
  2340. package/src/parsers/manifest/utils/__tests__/get_first_time_from_adaptations.test.ts +0 -163
  2341. package/src/parsers/manifest/utils/__tests__/get_last_time_from_adaptation.test.ts +0 -163
  2342. package/src/parsers/manifest/utils/__tests__/index_helpers.test.ts +0 -55
  2343. package/src/parsers/manifest/utils/__tests__/update_segment_timeline.test.ts +0 -545
  2344. package/src/parsers/manifest/utils/check_manifest_ids.ts +0 -83
  2345. package/src/parsers/manifest/utils/clear_timeline_from_position.ts +0 -74
  2346. package/src/parsers/manifest/utils/get_first_time_from_adaptation.ts +0 -48
  2347. package/src/parsers/manifest/utils/get_last_time_from_adaptation.ts +0 -50
  2348. package/src/parsers/manifest/utils/get_maximum_positions.ts +0 -87
  2349. package/src/parsers/manifest/utils/get_minimum_position.ts +0 -80
  2350. package/src/parsers/manifest/utils/index_helpers.ts +0 -204
  2351. package/src/parsers/manifest/utils/update_segment_timeline.ts +0 -141
  2352. package/src/parsers/texttracks/index.ts +0 -21
  2353. package/src/parsers/texttracks/sami/html.ts +0 -219
  2354. package/src/parsers/texttracks/sami/native.ts +0 -192
  2355. package/src/parsers/texttracks/srt/__tests__/find_end_of_cue_block.test.ts +0 -99
  2356. package/src/parsers/texttracks/srt/__tests__/get_cue_blocks.test.ts +0 -119
  2357. package/src/parsers/texttracks/srt/__tests__/parse_cue.test.ts +0 -123
  2358. package/src/parsers/texttracks/srt/__tests__/parse_timestamp.test.ts +0 -36
  2359. package/src/parsers/texttracks/srt/find_end_of_cue_block.ts +0 -46
  2360. package/src/parsers/texttracks/srt/get_cue_blocks.ts +0 -49
  2361. package/src/parsers/texttracks/srt/html.ts +0 -182
  2362. package/src/parsers/texttracks/srt/native.ts +0 -74
  2363. package/src/parsers/texttracks/srt/parse_cue.ts +0 -76
  2364. package/src/parsers/texttracks/srt/parse_timestamp.ts +0 -37
  2365. package/src/parsers/texttracks/ttml/__tests__/resolve_styles_inheritance.test.ts +0 -248
  2366. package/src/parsers/texttracks/ttml/get_parameters.ts +0 -106
  2367. package/src/parsers/texttracks/ttml/get_styling.ts +0 -146
  2368. package/src/parsers/texttracks/ttml/get_time_delimiters.ts +0 -49
  2369. package/src/parsers/texttracks/ttml/html/__tests__/__global__/html_ttml_parser.test.test.ts +0 -191
  2370. package/src/parsers/texttracks/ttml/html/__tests__/generate_css_test_outline.test.ts +0 -32
  2371. package/src/parsers/texttracks/ttml/html/__tests__/ttml_color_to_css_color.test.ts +0 -62
  2372. package/src/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.ts +0 -67
  2373. package/src/parsers/texttracks/ttml/html/apply_extent.ts +0 -65
  2374. package/src/parsers/texttracks/ttml/html/apply_font_size.ts +0 -62
  2375. package/src/parsers/texttracks/ttml/html/apply_line_height.ts +0 -50
  2376. package/src/parsers/texttracks/ttml/html/apply_origin.ts +0 -64
  2377. package/src/parsers/texttracks/ttml/html/apply_padding.ts +0 -141
  2378. package/src/parsers/texttracks/ttml/html/create_element.ts +0 -549
  2379. package/src/parsers/texttracks/ttml/html/generate_css_test_outline.ts +0 -46
  2380. package/src/parsers/texttracks/ttml/html/index.ts +0 -23
  2381. package/src/parsers/texttracks/ttml/html/parse_cue.ts +0 -65
  2382. package/src/parsers/texttracks/ttml/html/parse_ttml_to_div.ts +0 -58
  2383. package/src/parsers/texttracks/ttml/html/ttml_color_to_css_color.ts +0 -68
  2384. package/src/parsers/texttracks/ttml/native/index.ts +0 -23
  2385. package/src/parsers/texttracks/ttml/native/parse_cue.ts +0 -245
  2386. package/src/parsers/texttracks/ttml/native/parse_ttml_to_vtt.ts +0 -39
  2387. package/src/parsers/texttracks/ttml/parse_ttml.ts +0 -206
  2388. package/src/parsers/texttracks/ttml/regexps.ts +0 -65
  2389. package/src/parsers/texttracks/ttml/resolve_styles_inheritance.ts +0 -84
  2390. package/src/parsers/texttracks/ttml/time_parsing.ts +0 -156
  2391. package/src/parsers/texttracks/ttml/xml_utils.ts +0 -166
  2392. package/src/parsers/texttracks/types.ts +0 -34
  2393. package/src/parsers/texttracks/webvtt/__tests__/get_cue_blocks.test.ts +0 -218
  2394. package/src/parsers/texttracks/webvtt/__tests__/get_style_blocks.test.ts +0 -65
  2395. package/src/parsers/texttracks/webvtt/__tests__/parse_cue_block.test.ts +0 -249
  2396. package/src/parsers/texttracks/webvtt/__tests__/parse_timestamp.test.ts +0 -39
  2397. package/src/parsers/texttracks/webvtt/__tests__/utils.test.ts +0 -401
  2398. package/src/parsers/texttracks/webvtt/get_cue_blocks.ts +0 -51
  2399. package/src/parsers/texttracks/webvtt/get_style_blocks.ts +0 -56
  2400. package/src/parsers/texttracks/webvtt/html/__tests__/convert_payload_to_html.test.ts +0 -108
  2401. package/src/parsers/texttracks/webvtt/html/__tests__/create_default_style_elements.test.ts +0 -44
  2402. package/src/parsers/texttracks/webvtt/html/__tests__/create_style_attribute.test.ts +0 -139
  2403. package/src/parsers/texttracks/webvtt/html/__tests__/create_styled_element.test.ts +0 -140
  2404. package/src/parsers/texttracks/webvtt/html/__tests__/parse_style_block.test.ts +0 -345
  2405. package/src/parsers/texttracks/webvtt/html/__tests__/parse_webvtt_to_div.test.ts +0 -181
  2406. package/src/parsers/texttracks/webvtt/html/__tests__/to_html.test.ts +0 -234
  2407. package/src/parsers/texttracks/webvtt/html/convert_payload_to_html.ts +0 -46
  2408. package/src/parsers/texttracks/webvtt/html/create_default_style_elements.ts +0 -26
  2409. package/src/parsers/texttracks/webvtt/html/create_style_attribute.ts +0 -222
  2410. package/src/parsers/texttracks/webvtt/html/create_styled_element.ts +0 -95
  2411. package/src/parsers/texttracks/webvtt/html/index.ts +0 -25
  2412. package/src/parsers/texttracks/webvtt/html/parse_style_block.ts +0 -76
  2413. package/src/parsers/texttracks/webvtt/html/parse_webvtt_to_div.ts +0 -67
  2414. package/src/parsers/texttracks/webvtt/html/to_html.ts +0 -96
  2415. package/src/parsers/texttracks/webvtt/native/index.ts +0 -23
  2416. package/src/parsers/texttracks/webvtt/native/parse_vtt_to_cues.ts +0 -70
  2417. package/src/parsers/texttracks/webvtt/native/set_settings_on_cue.ts +0 -95
  2418. package/src/parsers/texttracks/webvtt/native/to_native_cue.ts +0 -34
  2419. package/src/parsers/texttracks/webvtt/parse_cue_block.ts +0 -128
  2420. package/src/parsers/texttracks/webvtt/parse_timestamp.ts +0 -40
  2421. package/src/parsers/texttracks/webvtt/utils.ts +0 -135
  2422. package/src/public_types.ts +0 -1040
  2423. package/src/tools/README.md +0 -8
  2424. package/src/tools/TextTrackRenderer/index.ts +0 -28
  2425. package/src/tools/TextTrackRenderer/text_track_renderer.ts +0 -108
  2426. package/src/tools/index.ts +0 -20
  2427. package/src/tools/string_utils/index.ts +0 -24
  2428. package/src/transports/README.md +0 -276
  2429. package/src/transports/dash/add_segment_integrity_checks_to_loader.ts +0 -97
  2430. package/src/transports/dash/construct_segment_url.ts +0 -28
  2431. package/src/transports/dash/extract_complete_chunks.ts +0 -66
  2432. package/src/transports/dash/get_events_out_of_emsgs.ts +0 -105
  2433. package/src/transports/dash/index.ts +0 -23
  2434. package/src/transports/dash/init_segment_loader.ts +0 -119
  2435. package/src/transports/dash/low_latency_segment_loader.ts +0 -87
  2436. package/src/transports/dash/manifest_parser.ts +0 -330
  2437. package/src/transports/dash/pipelines.ts +0 -66
  2438. package/src/transports/dash/segment_loader.ts +0 -255
  2439. package/src/transports/dash/segment_parser.ts +0 -188
  2440. package/src/transports/dash/text_loader.ts +0 -122
  2441. package/src/transports/dash/text_parser.ts +0 -228
  2442. package/src/transports/index.ts +0 -17
  2443. package/src/transports/local/index.ts +0 -18
  2444. package/src/transports/local/pipelines.ts +0 -91
  2445. package/src/transports/local/segment_loader.ts +0 -196
  2446. package/src/transports/local/segment_parser.ts +0 -102
  2447. package/src/transports/local/text_parser.ts +0 -185
  2448. package/src/transports/metaplaylist/README.md +0 -94
  2449. package/src/transports/metaplaylist/index.ts +0 -23
  2450. package/src/transports/metaplaylist/manifest_loader.ts +0 -63
  2451. package/src/transports/metaplaylist/pipelines.ts +0 -381
  2452. package/src/transports/smooth/extract_timings_infos.ts +0 -142
  2453. package/src/transports/smooth/index.ts +0 -23
  2454. package/src/transports/smooth/is_mp4_embedded_track.ts +0 -25
  2455. package/src/transports/smooth/isobmff/__tests__/create_boxes.test.ts +0 -231
  2456. package/src/transports/smooth/isobmff/create_audio_init_segment.ts +0 -84
  2457. package/src/transports/smooth/isobmff/create_boxes.ts +0 -481
  2458. package/src/transports/smooth/isobmff/create_init_segment.ts +0 -100
  2459. package/src/transports/smooth/isobmff/create_traf_box.ts +0 -40
  2460. package/src/transports/smooth/isobmff/create_video_init_segment.ts +0 -78
  2461. package/src/transports/smooth/isobmff/get_aaces_header.ts +0 -62
  2462. package/src/transports/smooth/isobmff/index.ts +0 -32
  2463. package/src/transports/smooth/isobmff/parse_tfrf.ts +0 -57
  2464. package/src/transports/smooth/isobmff/parse_tfxd.ts +0 -38
  2465. package/src/transports/smooth/isobmff/patch_segment.ts +0 -171
  2466. package/src/transports/smooth/pipelines.ts +0 -378
  2467. package/src/transports/smooth/segment_loader.ts +0 -292
  2468. package/src/transports/smooth/utils.ts +0 -45
  2469. package/src/transports/types.ts +0 -820
  2470. package/src/transports/utils/__tests__/byte_range.test.ts +0 -35
  2471. package/src/transports/utils/__tests__/check_isobmff_integrity.test.ts +0 -148
  2472. package/src/transports/utils/__tests__/find_complete_box.test.ts +0 -138
  2473. package/src/transports/utils/__tests__/infer_segment_container.test.ts +0 -80
  2474. package/src/transports/utils/byte_range.ts +0 -25
  2475. package/src/transports/utils/call_custom_manifest_loader.ts +0 -146
  2476. package/src/transports/utils/check_isobmff_integrity.ts +0 -50
  2477. package/src/transports/utils/find_complete_box.ts +0 -63
  2478. package/src/transports/utils/generate_manifest_loader.ts +0 -100
  2479. package/src/transports/utils/get_isobmff_timing_infos.ts +0 -86
  2480. package/src/transports/utils/infer_segment_container.ts +0 -50
  2481. package/src/transports/utils/parse_text_track.ts +0 -170
  2482. package/src/typings/README.md +0 -7
  2483. package/src/utils/README.md +0 -5
  2484. package/src/utils/__tests__/are_arrays_of_numbers_equal.test.ts +0 -86
  2485. package/src/utils/__tests__/are_codecs_compatible.test.ts +0 -88
  2486. package/src/utils/__tests__/array_find.test.ts +0 -113
  2487. package/src/utils/__tests__/array_find_index.test.ts +0 -113
  2488. package/src/utils/__tests__/array_includes.test.ts +0 -151
  2489. package/src/utils/__tests__/assert.test.ts +0 -237
  2490. package/src/utils/__tests__/assert_unreachable.test.ts +0 -40
  2491. package/src/utils/__tests__/base64.test.ts +0 -149
  2492. package/src/utils/__tests__/byte_parsing.test.ts +0 -267
  2493. package/src/utils/__tests__/deep_merge.test.ts +0 -48
  2494. package/src/utils/__tests__/event_emitter.test.ts +0 -579
  2495. package/src/utils/__tests__/flat_map.test.ts +0 -71
  2496. package/src/utils/__tests__/get_fuzzed_delay.test.ts +0 -32
  2497. package/src/utils/__tests__/hash_buffer.test.ts +0 -105
  2498. package/src/utils/__tests__/id_generator.test.ts +0 -83
  2499. package/src/utils/__tests__/initialization_segment_cache.test.ts +0 -245
  2500. package/src/utils/__tests__/is_non_empty_string.test.ts +0 -41
  2501. package/src/utils/__tests__/is_null_or_undefined.test.ts +0 -33
  2502. package/src/utils/__tests__/logger.test.ts +0 -214
  2503. package/src/utils/__tests__/noop.test.ts +0 -23
  2504. package/src/utils/__tests__/object_assign.test.ts +0 -56
  2505. package/src/utils/__tests__/object_values.test.ts +0 -26
  2506. package/src/utils/__tests__/ranges.test.ts +0 -1214
  2507. package/src/utils/__tests__/resolve_url.test.ts +0 -100
  2508. package/src/utils/__tests__/sorted_list.test.ts +0 -335
  2509. package/src/utils/__tests__/starts_with.test.ts +0 -65
  2510. package/src/utils/__tests__/string_parsing.test.ts +0 -267
  2511. package/src/utils/__tests__/warn_once.test.ts +0 -38
  2512. package/src/utils/__tests__/weak_map_memory.test.ts +0 -188
  2513. package/src/utils/are_arrays_of_numbers_equal.ts +0 -39
  2514. package/src/utils/are_codecs_compatible.ts +0 -51
  2515. package/src/utils/array_find.ts +0 -55
  2516. package/src/utils/array_find_index.ts +0 -54
  2517. package/src/utils/array_includes.ts +0 -93
  2518. package/src/utils/assert.ts +0 -65
  2519. package/src/utils/assert_unreachable.ts +0 -45
  2520. package/src/utils/base64.ts +0 -153
  2521. package/src/utils/byte_parsing.ts +0 -256
  2522. package/src/utils/cancellable_sleep.ts +0 -41
  2523. package/src/utils/create_cancellable_promise.ts +0 -69
  2524. package/src/utils/deep_merge.ts +0 -49
  2525. package/src/utils/event_emitter.ts +0 -147
  2526. package/src/utils/flat_map.ts +0 -50
  2527. package/src/utils/get_fuzzed_delay.ts +0 -27
  2528. package/src/utils/hash_buffer.ts +0 -42
  2529. package/src/utils/id_generator.ts +0 -35
  2530. package/src/utils/initialization_segment_cache.ts +0 -68
  2531. package/src/utils/is_non_empty_string.ts +0 -23
  2532. package/src/utils/is_null_or_undefined.ts +0 -27
  2533. package/src/utils/languages/ISO_639-1_to_ISO_639-3.ts +0 -207
  2534. package/src/utils/languages/ISO_639-2_to_ISO_639-3.ts +0 -43
  2535. package/src/utils/languages/__tests__/normalize.test.ts +0 -290
  2536. package/src/utils/languages/index.ts +0 -29
  2537. package/src/utils/languages/normalize.ts +0 -152
  2538. package/src/utils/logger.ts +0 -100
  2539. package/src/utils/monotonic_timestamp.ts +0 -12
  2540. package/src/utils/noop.ts +0 -26
  2541. package/src/utils/object_assign.ts +0 -60
  2542. package/src/utils/object_values.ts +0 -31
  2543. package/src/utils/queue_microtask.ts +0 -7
  2544. package/src/utils/ranges.ts +0 -595
  2545. package/src/utils/reference.ts +0 -390
  2546. package/src/utils/request/fetch.ts +0 -279
  2547. package/src/utils/request/index.ts +0 -38
  2548. package/src/utils/request/xhr.ts +0 -319
  2549. package/src/utils/resolve_url.ts +0 -126
  2550. package/src/utils/retry_promise_with_backoff.ts +0 -95
  2551. package/src/utils/sleep.ts +0 -14
  2552. package/src/utils/slice_uint8array.ts +0 -53
  2553. package/src/utils/sorted_list.ts +0 -240
  2554. package/src/utils/starts_with.ts +0 -42
  2555. package/src/utils/string_parsing.ts +0 -415
  2556. package/src/utils/task_canceller.ts +0 -367
  2557. package/src/utils/warn_once.ts +0 -34
  2558. package/src/utils/weak_map_memory.ts +0 -89
  2559. package/src/utils/wrapInPromise.ts +0 -24
  2560. package/tools/TextTrackRenderer.d.ts +0 -18
  2561. package/tools/TextTrackRenderer.js +0 -18
  2562. package/tools/index.d.ts +0 -16
  2563. package/tools/index.js +0 -16
  2564. package/tools/string-utils.d.ts +0 -18
  2565. package/tools/string-utils.js +0 -18
  2566. package/tsconfig.commonjs.json +0 -9
  2567. package/tsconfig.eslint.json +0 -7
  2568. package/tsconfig.jest.json +0 -15
  2569. package/tsconfig.json +0 -32
  2570. package/types/index.d.ts +0 -16
  2571. package/types/index.js +0 -15
  2572. package/webpack.config.mjs +0 -97
  2573. /package/dist/commonjs/{utils → core/fetchers/segment}/initialization_segment_cache.js +0 -0
  2574. /package/dist/{_esm5.processed/experimental/features → commonjs/features/list}/dash_wasm.d.ts +0 -0
  2575. /package/dist/{_esm5.processed/experimental/features → commonjs/features/list}/debug_element.d.ts +0 -0
  2576. /package/dist/commonjs/{experimental/features → features/list}/debug_element.js +0 -0
  2577. /package/dist/commonjs/{experimental/tools → tools}/parseBIFThumbnails/index.d.ts +0 -0
  2578. /package/dist/commonjs/{compat → utils}/global_scope.d.ts +0 -0
  2579. /package/dist/commonjs/{compat → utils}/global_scope.js +0 -0
  2580. /package/dist/commonjs/{compat → utils}/is_node.d.ts +0 -0
  2581. /package/dist/commonjs/{compat → utils}/is_node.js +0 -0
  2582. /package/dist/commonjs/{compat → utils}/is_worker.d.ts +0 -0
  2583. /package/dist/commonjs/{compat → utils}/is_worker.js +0 -0
  2584. /package/dist/es2017/{utils → core/fetchers/segment}/initialization_segment_cache.js +0 -0
  2585. /package/dist/{commonjs/experimental/features → es2017/features/list}/dash_wasm.d.ts +0 -0
  2586. /package/dist/{commonjs/experimental/features → es2017/features/list}/debug_element.d.ts +0 -0
  2587. /package/dist/{_esm5.processed/experimental/features → es2017/features/list}/debug_element.js +0 -0
  2588. /package/dist/{_esm5.processed/core/stream/adaptation/types.js → es2017/mse/index.js} +0 -0
  2589. /package/dist/{_esm5.processed/core/stream/period → es2017/mse}/types.js +0 -0
  2590. /package/dist/{_esm5.processed/core/stream/representation/types.js → es2017/text_displayer/index.js} +0 -0
  2591. /package/dist/es2017/{experimental/tools → tools}/parseBIFThumbnails/index.d.ts +0 -0
  2592. /package/dist/es2017/{compat → utils}/global_scope.d.ts +0 -0
  2593. /package/dist/es2017/{compat → utils}/global_scope.js +0 -0
  2594. /package/dist/es2017/{compat → utils}/is_node.d.ts +0 -0
  2595. /package/dist/es2017/{compat → utils}/is_node.js +0 -0
  2596. /package/dist/es2017/{compat → utils}/is_worker.d.ts +0 -0
  2597. /package/dist/es2017/{compat → utils}/is_worker.js +0 -0
@@ -1,1200 +0,0 @@
1
- /**
2
- * Configuration file for the whole player.
3
- * Feel free to tweak those values if you know what you're doing.
4
- *
5
- * Please not that you will need to re-build the whole project to take these
6
- * modifications into account.
7
- *
8
- * @type {Object}
9
- */
10
- const DEFAULT_CONFIG = {
11
- /**
12
- * Volume set on unMute if the volume is set to 0 and either:
13
- * - mute has never been called before
14
- * - mute has last been called while the volume was already set to 0 (either
15
- * via setVolume, or a previous mute call)
16
- * @type {Number}
17
- */
18
- DEFAULT_UNMUTED_VOLUME: 0.1,
19
-
20
- /**
21
- * Default time interval after which a request will timeout, in ms.
22
- * @type {Number}
23
- */
24
- DEFAULT_REQUEST_TIMEOUT: 30 * 1000,
25
-
26
- /**
27
- * Default connection time after which a request will timeout, in ms.
28
- * @type {Number}
29
- */
30
- DEFAULT_CONNECTION_TIMEOUT: 15 * 1000,
31
- /**
32
- * Can be either:
33
- * - "native": Subtitles are all displayed in a <track> element
34
- * - "html": Subtitles are all displayed in a <div> separated from the video
35
- * element. Can be useful to display richer TTML subtitles, for example.
36
- * @type {Object|null}
37
- */
38
- DEFAULT_TEXT_TRACK_MODE: "native" as "native" |
39
- "html",
40
-
41
-
42
- /**
43
- * Default behavior for the `enableFastSwitching` loadVideo options.
44
- *
45
- * Fast-switching allows to provide quicker transitions from lower quality
46
- * segments to higher quality segments but might be badly supported on some
47
- * devices.
48
- * When enabled, the RxPlayer might replace segments of a lower-quality
49
- * (with a lower bitrate) with segments of a higher quality (with a higher
50
- * bitrate). This allows to have a fast transition when network conditions
51
- * improve.
52
- * When disabled, segments of a lower-quality will not be replaced.
53
- */
54
- DEFAULT_ENABLE_FAST_SWITCHING: true,
55
-
56
- /**
57
- * In some cases after switching the current track or bitrate, the RxPlayer
58
- * could be led to go into the `"RELOADING"` state, which corresponds to
59
- * visually a black screen (with nothing audible) before restarting playback.
60
- *
61
- * We could want to seek back some milliseconds when doing that.
62
- * For example, when switching the current audio track, it might make sense
63
- * to restart some time before, so the beginning of the sentence can be heard
64
- * again in the new language.
65
- *
66
- * This config property allows to set the relative position the RxPlayer will
67
- * seek to after reloading, in seconds.
68
- *
69
- * For example: a value of `-0.7` means that will seek back 700 milliseconds
70
- * when reloading due to a track or bitrate switch with necessitated a
71
- * reloading.
72
- */
73
- DELTA_POSITION_AFTER_RELOAD: {
74
- /** Relative position when switching the bitrate */
75
- bitrateSwitch: -0.1,
76
- /**
77
- * Relative position when switching the track.
78
- *
79
- * From tests, I noticed that seeking back was only really "pleasant" when
80
- * switching the audio track.
81
- *
82
- * E.g. switching the video track often means changing the camera angle or
83
- * even totally changing what is being seen and rely much less on temporal
84
- * context than when an audio track is switched.
85
- * As such, I decided to only set a sensible seek-back behavior when
86
- * switching the audio track, and only a minimal one (to still ensure
87
- * nothing was missed) for video.
88
- *
89
- * "Other" mainly concern text track, where seeking back could even be
90
- * annoying, so that behavior has been disabled in that case.
91
- */
92
- trackSwitch: { audio: -0.7,
93
- video: -0.1,
94
- other: 0 },
95
- },
96
-
97
- /**
98
- * Behavior of the RxPlayer when encountering a whole other codec on a already
99
- * existing audio or video SourceBuffer.
100
- *
101
- * Can be either:
102
- *
103
- * - "continue": Segments linked to the new codec will continue to be
104
- * pushed to that same SourceBuffer. The RxPlayer will still try to call
105
- * the `changeType` API on the SourceBuffer before pushing those
106
- * segments but continue even if this call failed.
107
- *
108
- * - "reload": Every time a new incompatible codec is encountered on a
109
- * given SourceBuffer, we will reload the MediaSource.
110
- */
111
- DEFAULT_CODEC_SWITCHING_BEHAVIOR: "continue" as "continue" |
112
- "reload",
113
-
114
- /**
115
- * If set to true, video through loadVideo will auto play by default
116
- * @type {Boolean}
117
- */
118
- DEFAULT_AUTO_PLAY: false,
119
-
120
- /**
121
- * Default buffer goal in seconds.
122
- * Once enough content has been downloaded to fill the buffer up to
123
- * ``current position + DEFAULT_WANTED_BUFFER_AHEAD", we will stop downloading
124
- * content.
125
- * @type {Number}
126
- */
127
- DEFAULT_WANTED_BUFFER_AHEAD: 30,
128
-
129
- /**
130
- * Default max buffer size ahead of the current position in seconds.
131
- * The buffer _after_ this limit will be garbage collected.
132
- * Set to Infinity for no limit.
133
- * @type {Number}
134
- */
135
- DEFAULT_MAX_BUFFER_AHEAD: Infinity,
136
-
137
- /**
138
- * Default max buffer size ahead of the current position in seconds.
139
- * The buffer _before_ this limit will be garbage collected.
140
- * Set to Infinity for no limit.
141
- * @type {Number}
142
- */
143
- DEFAULT_MAX_BUFFER_BEHIND: Infinity,
144
-
145
- /**
146
- * Default video buffer memory limit in kilobytes.
147
- * Once enough video content has been downloaded to fill the buffer up to
148
- * DEFAULT_MAX_VIDEO_BUFFER_SIZE , we will stop downloading
149
- * content.
150
- * @type {Number}
151
- */
152
- DEFAULT_MAX_VIDEO_BUFFER_SIZE: Infinity,
153
-
154
- /* eslint-disable @typescript-eslint/consistent-type-assertions */
155
- /**
156
- * Maximum possible buffer ahead for each type of buffer, to avoid too much
157
- * memory usage when playing for a long time.
158
- * Equal to Infinity if not defined here.
159
- * @type {Object}
160
- */
161
- MAXIMUM_MAX_BUFFER_AHEAD: {
162
- text: 5 * 60 * 60,
163
- } as Partial<Record<"audio"|"video"|"text", number>>,
164
- /* eslint-enable @typescript-eslint/consistent-type-assertions */
165
-
166
- /* eslint-disable @typescript-eslint/consistent-type-assertions */
167
- /**
168
- * Minimum possible buffer ahead for each type of buffer, to avoid Garbage
169
- * Collecting too much data when it would have adverse effects.
170
- * Equal to `0` if not defined here.
171
- * @type {Object}
172
- */
173
- MINIMUM_MAX_BUFFER_AHEAD: {
174
- // Text segments are both much lighter on resources and might
175
- // actually be much larger than other types of segments in terms
176
- // of duration. Let's make an exception here by authorizing a
177
- // larger text buffer ahead, to avoid unnecesarily reloading the
178
- // same text track.
179
- text: 2 * 60,
180
- } as Partial<Record<"audio"|"video"|"image"|"text", number>>,
181
- /* eslint-enable @typescript-eslint/consistent-type-assertions */
182
-
183
- /* eslint-disable @typescript-eslint/consistent-type-assertions */
184
- /**
185
- * Maximum possible buffer behind for each type of buffer, to avoid too much
186
- * memory usage when playing for a long time.
187
- * Equal to Infinity if not defined here.
188
- * @type {Object}
189
- */
190
- MAXIMUM_MAX_BUFFER_BEHIND: {
191
- text: 5 * 60 * 60,
192
- } as Partial<Record<"audio"|"video"|"text", number>>,
193
- /* eslint-enable @typescript-eslint/consistent-type-assertions */
194
-
195
- /**
196
- * Default bitrate ceils initially set as the first content begins.
197
- *
198
- * If no track is found with a bitrate inferior or equal to the
199
- * bitrate there, the one with the lowest bitrate will be taken instead.
200
- *
201
- * Set to 0 for the lowest bitrate, Infinity for the highest.
202
- *
203
- * These values are only useful for the first content played, as consecutive
204
- * play will always take the last set one.
205
- * @type {Object}
206
- */
207
- DEFAULT_BASE_BANDWIDTH: 0,
208
-
209
- /**
210
- * Delay after which, if the page is hidden, the user is considered inactive
211
- * on the current video.
212
- *
213
- * Allow to enforce specific optimizations when the page is not shown.
214
- * @see DEFAULT_THROTTLE_WHEN_HIDDEN
215
- * @type {Number}
216
- */
217
- INACTIVITY_DELAY: 60 * 1000,
218
-
219
- /**
220
- * If true, if the video is considered in a "hidden" state for a delay specified by
221
- * the INACTIVITY DELAY config property, we throttle automatically to the video
222
- * representation with the lowest bitrate.
223
- * @type {Boolean}
224
- */
225
- DEFAULT_THROTTLE_VIDEO_BITRATE_WHEN_HIDDEN: false,
226
-
227
- /**
228
- * Default video resolution limit behavior.
229
- *
230
- * This option allows for example to throttle the video resolution so it
231
- * does not exceed the screen resolution.
232
- *
233
- * Here set to "none" by default to disable throttling.
234
- * @type {Boolean}
235
- */
236
- DEFAULT_VIDEO_RESOLUTION_LIMIT: "none" as const,
237
-
238
- /**
239
- * Default initial live gap considered if no presentation delay has been
240
- * suggested, in seconds.
241
- * @type {Number}
242
- */
243
- DEFAULT_LIVE_GAP: {
244
- DEFAULT: 10,
245
- LOW_LATENCY: 3.5,
246
- },
247
-
248
- /**
249
- * Maximum time, in seconds, the player should automatically skip when stalled
250
- * because of a current hole in the buffer.
251
- * Bear in mind that this might seek over not-yet-downloaded/pushed segments.
252
- * @type {Number}
253
- */
254
- BUFFER_DISCONTINUITY_THRESHOLD: 0.2,
255
-
256
- /**
257
- * Ratio used to know if an already loaded segment should be re-buffered.
258
- * We re-load the given segment if the current one times that ratio is
259
- * inferior to the new one.
260
- * @type {Number}
261
- */
262
- BITRATE_REBUFFERING_RATIO: 1.5,
263
-
264
- /**
265
- * Those are used when a "QuotaExceededError" error is received after
266
- * appending a new segment in the SourceBuffer.
267
- *
268
- * This error can arise when the browser's buffer is considered full.
269
- * In this case, the player goes into manual garbage collection (GC) mode.
270
- * @type {Object}
271
- */
272
- BUFFER_GC_GAPS: {
273
- /**
274
- * _Low_ gap (from current position) from which the buffer will be _garbage
275
- * collected_ (read removed from the buffer) when a QuotaExceededError is
276
- * received.
277
- * In seconds.
278
- * @type {Number}
279
- */
280
- CALM: 240,
281
-
282
- /**
283
- * _High_ gap (from current position) from which the buffer will be _garbage
284
- * collected_ (read removed from the buffer) when a QuotaExceededError is
285
- * received, if the low one does not clean up any buffer.
286
- * In seconds.
287
- * @type {Number}
288
- */
289
- BEEFY: 30,
290
- },
291
-
292
- /**
293
- * The default number of times a manifest request will be re-performed
294
- * when loaded/refreshed if the request finishes on an error which
295
- * justify an retry.
296
- *
297
- * Note that some errors do not use this counter:
298
- * - if the error is not due to the xhr, no retry will be peformed
299
- * - if the error is an HTTP error code, but not a 500-smthg or a 404, no
300
- * retry will be performed.
301
- * @type Number
302
- */
303
- DEFAULT_MAX_MANIFEST_REQUEST_RETRY: 4,
304
-
305
- /**
306
- * Default delay, in seconds, during which a CDN will be "downgraded".
307
- *
308
- * For example in case of media content being available on multiple CDNs, the
309
- * RxPlayer may decide that a CDN is less reliable (for example, it returned a
310
- * server error) and should thus be avoided, at least for some time
311
- *
312
- * This value is the amount of time this CDN will be "less considered" than the
313
- * alternatives.
314
- */
315
- DEFAULT_CDN_DOWNGRADE_TIME: 60,
316
-
317
- /**
318
- * The default number of times a segment request will be re-performed when
319
- * on error which justify a retry.
320
- *
321
- * Note that some errors do not use this counter:
322
- * - if the error is not due to the xhr, no retry will be peformed
323
- * - if the error is an HTTP error code, but not a 500-smthg or a 404, no
324
- * retry will be performed.
325
- * @type Number
326
- */
327
- DEFAULT_MAX_REQUESTS_RETRY_ON_ERROR: 4,
328
-
329
- /**
330
- * Initial backoff delay when a segment / manifest download fails, in
331
- * milliseconds.
332
- *
333
- * This delay will then grow exponentally by power of twos (200, 400, 800
334
- * etc.)
335
- *
336
- * Please note that this delay is not exact, as it will be fuzzed.
337
- * @type {Number}
338
- */
339
- INITIAL_BACKOFF_DELAY_BASE: {
340
- REGULAR: 200,
341
- LOW_LATENCY: 50,
342
- },
343
-
344
- /**
345
- * Maximum backoff delay when a segment / manifest download fails, in
346
- * milliseconds.
347
- *
348
- * Please note that this delay is not exact, as it will be fuzzed.
349
- * @type {Number}
350
- */
351
- MAX_BACKOFF_DELAY_BASE: {
352
- REGULAR: 3000,
353
- LOW_LATENCY: 1000,
354
- },
355
-
356
- /**
357
- * Minimum interval at which playback information samples will be taken. This
358
- * variable is for the "regular" mediasource strategy (that is, not for the
359
- * directfile API.
360
- *
361
- * At each of these interval, various different modules in the RxPlayer will
362
- * run based on the information communicated.
363
- *
364
- * Keep in mind this is the minimum interval. This logic will also be
365
- * triggered when various events of the media element are received.
366
- * @type {Number}
367
- */
368
- SAMPLING_INTERVAL_MEDIASOURCE: 1000,
369
-
370
- /**
371
- * Same than SAMPLING_INTERVAL_MEDIASOURCE but for lowLatency mode.
372
- * @type {Number}
373
- */
374
- SAMPLING_INTERVAL_LOW_LATENCY: 250,
375
-
376
- /**
377
- * Same than SAMPLING_INTERVAL_MEDIASOURCE but for the directfile API.
378
- * @type {Number}
379
- */
380
- SAMPLING_INTERVAL_NO_MEDIASOURCE: 500,
381
-
382
- /**
383
- * Amount of buffer to have ahead of the current position before we may
384
- * consider buffer-based adaptive estimates, in seconds.
385
- *
386
- * For example setting it to `10` means that we need to have ten seconds of
387
- * buffer ahead of the current position before relying on buffer-based
388
- * adaptive estimates.
389
- *
390
- * To avoid getting in-and-out of the buffer-based logic all the time, it
391
- * should be set higher than `ABR_EXIT_BUFFER_BASED_ALGO`.
392
- */
393
- ABR_ENTER_BUFFER_BASED_ALGO: 10,
394
-
395
- /**
396
- * Below this amount of buffer ahead of the current position, in seconds, we
397
- * will stop using buffer-based estimate in our adaptive logic to select a
398
- * quality.
399
- *
400
- * For example setting it to `5` means that if we have less than 5 seconds of
401
- * buffer ahead of the current position, we should stop relying on
402
- * buffer-based estimates to choose a quality.
403
- *
404
- * To avoid getting in-and-out of the buffer-based logic all the time, it
405
- * should be set lower than `ABR_ENTER_BUFFER_BASED_ALGO`.
406
- */
407
- ABR_EXIT_BUFFER_BASED_ALGO: 5,
408
-
409
- /**
410
- * Minimum number of bytes sampled before we trust the estimate.
411
- * If we have not sampled much data, our estimate may not be accurate
412
- * enough to trust.
413
- * If the total of bytes sampled is less than this value, we use a
414
- * default estimate.
415
- * This specific value is based on experimentations.
416
- * @type {Number}
417
- */
418
- ABR_MINIMUM_TOTAL_BYTES: 150e3,
419
-
420
- /**
421
- * Minimum number of bytes, under which samples are discarded.
422
- * Our models do not include latency information, so connection startup time
423
- * (time to first byte) is considered part of the download time.
424
- * Because of this, we should ignore very small downloads which would cause
425
- * our estimate to be too low.
426
- * This specific value is based on experimentation.
427
- * @type {Number}
428
- */
429
- ABR_MINIMUM_CHUNK_SIZE: 16e3,
430
-
431
- /**
432
- * Factor with which is multiplied the bandwidth estimate when the ABR is in
433
- * starvation mode.
434
- * @type {Object}
435
- */
436
- ABR_STARVATION_FACTOR: {
437
- DEFAULT: 0.72,
438
- LOW_LATENCY: 0.72,
439
- },
440
-
441
- /**
442
- * Factor with which is multiplied the bandwidth estimate when the ABR is not
443
- * in starvation mode.
444
- * @type {Object}
445
- */
446
- ABR_REGULAR_FACTOR: {
447
- DEFAULT: 0.72,
448
- LOW_LATENCY: 0.72,
449
- },
450
-
451
- /**
452
- * If a media buffer has less than ABR_STARVATION_GAP in seconds ahead of the
453
- * current position in its buffer, the adaptive logic will go into starvation
454
- * mode.
455
- *
456
- * It gets out of starvation mode when the OUT_OF_STARVATION_GAP value is
457
- * reached.
458
- *
459
- * Under this starvation mode:
460
- *
461
- * - the bandwidth considered will be a little lower than the one estimated
462
- *
463
- * - the time the next important request take will be checked
464
- * multiple times to detect when/if it takes too much time.
465
- * If the request is considered too long, the bitrate will be hastily
466
- * re-calculated from this single request.
467
- *
468
- * @type {Object}
469
- */
470
- ABR_STARVATION_GAP: {
471
- DEFAULT: 5,
472
- LOW_LATENCY: 5,
473
- },
474
- OUT_OF_STARVATION_GAP: {
475
- DEFAULT: 7,
476
- LOW_LATENCY: 7,
477
- },
478
-
479
- /**
480
- * This is a security to avoid going into starvation mode when the content is
481
- * ending (@see ABR_STARVATION_GAP).
482
- * Basically, we subtract that value from the global duration of the content
483
- * and we never enter "starvation mode" if the currently available buffer
484
- * (which equals to the current position + the available buffer ahead of it)
485
- * is equal or higher than this value.
486
- * @type {Number}
487
- */
488
- ABR_STARVATION_DURATION_DELTA: 0.1,
489
-
490
- /**
491
- * Half-life, in seconds for a fastly-evolving exponential weighted moving
492
- * average.
493
- * The lower it is, the faster the ABR logic will react to the bandwidth
494
- * falling quickly.
495
- * Should be kept to a lower number than ABR_SLOW_EMA for coherency reasons.
496
- * @type {Number}
497
- */
498
- ABR_FAST_EMA: 2,
499
-
500
- /**
501
- * Half-life, in seconds for a slowly-evolving exponential weighted moving
502
- * average.
503
- * The lower it is, the faster the ABR logic is going to react to recent
504
- * bandwidth variation, on the higher and on the lower side.
505
- * Should be kept to a higher number than ABR_FAST_EMA for coherency reasons.
506
- * @type {Number}
507
- */
508
- ABR_SLOW_EMA: 10,
509
-
510
- /**
511
- * Number of seconds ahead in the buffer after which playback will resume when
512
- * seeking on an unbuffered part of the content.
513
- * @type {Number}
514
- */
515
- RESUME_GAP_AFTER_SEEKING: {
516
- DEFAULT: 1.5,
517
- LOW_LATENCY: 0.5,
518
- },
519
-
520
- /**
521
- * Number of seconds ahead in the buffer after which playback will resume when
522
- * the player was rebuffering due to a low readyState.
523
- * @type {Number}
524
- */
525
- RESUME_GAP_AFTER_NOT_ENOUGH_DATA: {
526
- DEFAULT: 0.5,
527
- LOW_LATENCY: 0.5,
528
- },
529
-
530
- /**
531
- * Number of seconds ahead in the buffer after which playback will resume
532
- * after the player went through a buffering step.
533
- * @type {Number}
534
- */
535
- RESUME_GAP_AFTER_BUFFERING: {
536
- DEFAULT: 5,
537
- LOW_LATENCY: 0.5,
538
- },
539
-
540
- /**
541
- * Maximum number of seconds in the buffer based on which a "rebuffering"
542
- * strategy will be considered:
543
- * The player will pause playback to get enough time building a sufficient
544
- * buffer. This mostly happen when seeking in an unbuffered part or when not
545
- * enough buffer is ahead of the current position.
546
- * @type {Number}
547
- */
548
- REBUFFERING_GAP: {
549
- DEFAULT: 0.5,
550
- LOW_LATENCY: 0.2,
551
- },
552
-
553
- /**
554
- * Amount of time (in seconds) with data ahead of the current position, at
555
- * which we always consider the browser to be able to play.
556
- *
557
- * If the media element has this amount of data in advance or more but
558
- * playback cannot begin, the player will consider it "freezing".
559
- */
560
- MINIMUM_BUFFER_AMOUNT_BEFORE_FREEZING: 2,
561
-
562
- /**
563
- * A media whose position inexplicably does not increment despite playing is
564
- * called as "freezing" in the RxPlayer.
565
- *
566
- * If the media is still "freezing" after waiting for `UNFREEZING_SEEK_DELAY`
567
- * milliseconds, the RxPlayer will try to un-freeze the situation by interacting
568
- * with the media element.
569
- *
570
- * Those interactions can be costly in time before playback continue, so it
571
- * should be set at a sufficiently high value to avoid false positives.
572
- */
573
- UNFREEZING_SEEK_DELAY: 6000,
574
-
575
- /**
576
- * A media whose position inexplicably does not increment despite playing is
577
- * called as "freezing" in the RxPlayer.
578
- *
579
- * A small freezing interval may be normal as the browser may take time before
580
- * playing, e.g. after a seek.
581
- *
582
- * If the media is still "freezing" after waiting for `FREEZING_STALLED_DELAY`
583
- * milliseconds, the RxPlayer will emit a BUFFERING state through its API to
584
- * notify that the player cannot currently advance.
585
- */
586
- FREEZING_STALLED_DELAY: 600,
587
-
588
- /**
589
- * A media whose position inexplicably does not increment despite playing is
590
- * called as "freezing" in the RxPlayer.
591
- *
592
- * If the media is frozen for a sufficiently large time
593
- * (@see UNFREEZING_SEEK_DELAY), the RxPlayer will perform a seek corresponding
594
- * to its current position plus `UNFREEZING_DELTA_POSITION` seconds.
595
- *
596
- * This should be kept short enough as the goal is just to un-freeze lower-level
597
- * buffers.
598
- */
599
- UNFREEZING_DELTA_POSITION: 0.001,
600
-
601
- /**
602
- * Maximum authorized difference between what we calculated to be the
603
- * beginning or end of the segment in a media buffer and what we
604
- * actually are noticing now.
605
- *
606
- * If the segment seems to have removed more than this size in seconds, we
607
- * will infer that the segment has been garbage collected and we might try to
608
- * re-download it.
609
- * @type {Number}
610
- */
611
- MAX_TIME_MISSING_FROM_COMPLETE_SEGMENT: 0.15,
612
-
613
- /**
614
- * The maximum authorized difference, in seconds, between the real buffered
615
- * time of a given chunk and what the segment information of the Manifest
616
- * tells us.
617
- *
618
- * Setting a value too high can lead to parts of the media buffer being
619
- * linked to the wrong segments and to segments wrongly believed to be still
620
- * complete (instead of garbage collected).
621
- *
622
- * Setting a value too low can lead to parts of the media buffer not being
623
- * linked to the concerned segment and to segments wrongly believed to be
624
- * partly garbage collected (instead of complete segments).
625
- * @type {Number}
626
- */
627
- MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE: 0.4,
628
-
629
- /**
630
- * The maximum authorized difference, in seconds, between the duration a
631
- * segment should have according to the Manifest and the actual duration it
632
- * seems to have once pushed to the media buffer.
633
- *
634
- * Setting a value too high can lead to parts of the media buffer being
635
- * linked to the wrong segments and to segments wrongly believed to be still
636
- * complete (instead of garbage collected).
637
- *
638
- * Setting a value too low can lead to parts of the media buffer not being
639
- * linked to the concerned segment and to segments wrongly believed to be
640
- * partly garbage collected (instead of complete segments). This last point
641
- * could lead to unnecessary segment re-downloading.
642
- * @type {Number}
643
- */
644
- MAX_MANIFEST_BUFFERED_DURATION_DIFFERENCE: 0.3,
645
-
646
- /**
647
- * Minimum duration in seconds a segment should be into a buffered range to be
648
- * considered as part of that range.
649
- * Segments which have less than this amount of time "linked" to a buffered
650
- * range will be deleted.
651
- *
652
- * Setting a value too low can lead in worst-case scenarios to segments being
653
- * wrongly linked to the next or previous range it is truly linked too (if
654
- * those ranges are too close).
655
- *
656
- * Setting a value too high can lead to part of the buffer not being assigned
657
- * any segment. It also limits the minimum duration a segment can be.
658
- *
659
- * TODO As of now, this limits the minimum size a complete segment can be. A
660
- * better logic would be to also consider the duration of a segment. Though
661
- * this logic could lead to bugs with the current code.
662
- * @type {Number}
663
- */
664
- MINIMUM_SEGMENT_SIZE: 0.005,
665
-
666
- /**
667
- * Append windows allow to filter media data from segments if they are outside
668
- * a given limit.
669
- * Coded frames with presentation timestamp within this range are allowed to
670
- * be appended to the media buffer while coded frames outside this range are
671
- * filtered out.
672
- *
673
- * Those are often set to be the start and end of the "Period" the segment is
674
- * in.
675
- * However, we noticed that some browsers were too aggressive when the exact
676
- * limits were set: more data than needed was removed, often leading to
677
- * discontinuities.
678
- *
679
- * Those securities are added to the set windows (substracted from the window
680
- * start and added to the window end) to avoid those problems.
681
- * @type {Object}
682
- */
683
- APPEND_WINDOW_SECURITIES: {
684
- START: 0.2,
685
- END: 0.1,
686
- },
687
-
688
- /**
689
- * Maximum interval at which text tracks are refreshed in an "html"
690
- * textTrackMode.
691
- *
692
- * The text tracks are also refreshed on various video events, this interval
693
- * will only trigger a refresh if none of those events was received during
694
- * that timespan.
695
- *
696
- * Note that if the TextTrack cue did not change between two intervals or
697
- * events, the DOM won't be refreshed.
698
- * The TextTrack cues structure is also optimized for fast retrieval.
699
- * We should thus not have much of a performance impact here if we set a low
700
- * interval.
701
- *
702
- * @type {Number}
703
- */
704
- MAXIMUM_HTML_TEXT_TRACK_UPDATE_INTERVAL: 50,
705
-
706
- /**
707
- * On browsers with no ResizeObserver API, this will be the interval in
708
- * milliseconds at which we should check if the text track element has
709
- * changed its size, and updates proportional text-track data accordingly
710
- * (like a proportional font-size).
711
- *
712
- * This is only used:
713
- * - in an "html" textTrackMode
714
- * - when some styling is proportional in the text track data
715
- *
716
- * Putting a value too low will render faster but might use to much proc time.
717
- * Putting a value too high might provoke a re-render too late after the user
718
- * changed the element's size (e.g. when going to fullscreen mode).
719
- *
720
- * @type {Number}
721
- */
722
- TEXT_TRACK_SIZE_CHECKS_INTERVAL: 250,
723
-
724
- /**
725
- * The Buffer padding is a time offset from the current time that affects
726
- * the buffer.
727
- *
728
- * Basically, from a given time, if the current buffer gap number (time
729
- * between the current time and the end of the downloaded buffer) is above
730
- * the padding described here (of the corresponding type), we won't
731
- * reschedule segments for that range.
732
- *
733
- * This is to avoid excessive re-buffering.
734
- *
735
- * Keeping the padding too low would increase the risk of re-bufferings.
736
- *
737
- * Keeping the padding too high would delay visible quality increase.
738
- *
739
- * @type {Object}
740
- */
741
- BUFFER_PADDING: {
742
- audio: 1, // only "audio" segments
743
- video: 3, // only "video" segments
744
- other: 1, // tracks which are not audio/video (like text).
745
- },
746
-
747
- /**
748
- * Segments of different types are downloaded by steps:
749
- *
750
- * - first the audio/video/text Segments which are immediately needed
751
- *
752
- * - then once every of those Segments have been downloaded, less-needed
753
- * Segments
754
- *
755
- * - then once every of those less-needed Segments have been downloaded,
756
- * even less-needed Segments
757
- *
758
- * - etc.
759
- *
760
- * This stepped download strategy allows to make a better use of network
761
- * ressources.
762
- *
763
- * For example, if more than sufficient audio buffer has been downloaded but
764
- * the immediately-needed video Segment is still pending its request, we might
765
- * be in a situation of rebuffering.
766
- * In that case, a better strategy would be to make sure every network
767
- * ressource is allocated for this video Segment before rebuffering happens.
768
- *
769
- * This is where those steps become useful.
770
- *
771
- * --
772
- *
773
- * The numbers defined in this Array describe what the steps are.
774
- *
775
- * Each number is linked to a distance from the current playing position, in
776
- * seconds.
777
- * Distances which will be used as limit points, from which a new step is
778
- * reached (see example).
779
- *
780
- * In the RxPlayer's code, each step is then translated in to a priority
781
- * number.
782
- * The lower is that number, the lower is the step and the lower is the step,
783
- * the higher is the priority.
784
- *
785
- * Note: You can set an empty array to deactivate the steps feature (every
786
- * Segments have the same priority).
787
- *
788
- * @example
789
- *
790
- * let's imagine the following SEGMENT_PRIORITIES_STEPS array:
791
- * [5, 11, 17, 25]
792
- *
793
- * To link each Segments to a corresponding priority number (and thus to a
794
- * specific step), we have to consider the distance between the current
795
- * position and the start time of the Segment.
796
- *
797
- * We have in our example 5 groups, which correspond to the following possible
798
- * distances:
799
- * 1. inferior to 5 => first step (priority number = 0)
800
- * 2. between 5 and 11 => second step (priority number = 1)
801
- * 3. between 11 and 17 => third step (priority number = 2)
802
- * 4. between 17 and 25 => fourth step (priority number = 3)
803
- * 5. superior to 25 => fifth step (priority number = 4)
804
- *
805
- * Segments corresponding to a lower-step will need to all be downloaded
806
- * before Segments of a newer step begin.
807
- *
808
- * @type {Array.<Number>}
809
- */
810
- SEGMENT_PRIORITIES_STEPS : [ 2, // 1st Step (priority number = 0): < 2
811
- 4, // 2nd Step (priority number = 1): 2-4
812
- 8, // 3rd Step (priority number = 2): 4-8
813
- 12, // 4th Step (priority number = 3): 8-12
814
- 18, // 5th Step (priority number = 4): 12-18
815
- 25], // 6th Step (priority number = 5): 18-25
816
- // 7th Step (priority number = 6): >= 25
817
-
818
- /**
819
- * Some segment requests are said to be "high priority".
820
- *
821
- * Requests in that category once done will cancel any segment request that
822
- * has a low priority number (see `SEGMENT_PRIORITIES_STEPS`) - meaning a
823
- * priority number equal to `MIN_CANCELABLE_PRIORITY` or more.
824
- *
825
- * Enter here the last priority number that is considered high priority
826
- * (beginning by the first step, which has the priority number `0`).
827
- * @type {number}
828
- */
829
- MAX_HIGH_PRIORITY_LEVEL: 1, // priority number 1 and lower is high priority
830
-
831
- /**
832
- * Enter here the first priority step (see `SEGMENT_PRIORITIES_STEPS`) that
833
- * will be considered as low priority.
834
- *
835
- * Segment requests with a low priority will be cancelled if a high priority
836
- * segment request (see MAX_HIGH_PRIORITY_LEVEL) is scheduled while they are
837
- * pending.
838
- *
839
- * This number should be strictly superior to the value indicated in
840
- * `MAX_HIGH_PRIORITY_LEVEL`.
841
- * @type {number}
842
- */
843
- MIN_CANCELABLE_PRIORITY: 3, // priority number 3 onward can be cancelled
844
-
845
- /**
846
- * Codecs used in the videoCapabilities of the MediaKeySystemConfiguration
847
- * (DRM).
848
- *
849
- * Defined in order of importance (first will be tested first etc.)
850
- * @type {Array.<string>}
851
- */
852
- EME_DEFAULT_VIDEO_CODECS: [ "video/mp4;codecs=\"avc1.4d401e\"",
853
- "video/mp4;codecs=\"avc1.42e01e\"",
854
- "video/webm;codecs=\"vp8\"" ],
855
-
856
- /**
857
- * Codecs used in the audioCapabilities of the MediaKeySystemConfiguration
858
- * (DRM).
859
- *
860
- * Defined in order of importance (first will be tested first etc.)
861
- * @type {Array.<string>}
862
- */
863
- EME_DEFAULT_AUDIO_CODECS: [ "audio/mp4;codecs=\"mp4a.40.2\"",
864
- "audio/webm;codecs=opus" ],
865
-
866
- /**
867
- * Robustnesses used in the {audio,video}Capabilities of the
868
- * MediaKeySystemConfiguration (DRM).
869
- *
870
- * Only used for widevine keysystems.
871
- *
872
- * Defined in order of importance (first will be tested first etc.)
873
- * @type {Array.<string>}
874
- */
875
- EME_DEFAULT_WIDEVINE_ROBUSTNESSES: [ "HW_SECURE_ALL",
876
- "HW_SECURE_DECODE",
877
- "HW_SECURE_CRYPTO",
878
- "SW_SECURE_DECODE",
879
- "SW_SECURE_CRYPTO" ],
880
-
881
- /**
882
- * Robustnesses used in the {audio,video}Capabilities of the
883
- * MediaKeySystemConfiguration (DRM).
884
- *
885
- * Only used for "com.microsoft.playready.recommendation" keysystems.
886
- *
887
- * Defined in order of importance (first will be tested first etc.)
888
- * @type {Array.<string>}
889
- */
890
- EME_DEFAULT_PLAYREADY_RECOMMENDATION_ROBUSTNESSES: [ "3000",
891
- "2000" ],
892
-
893
- /**
894
- * Link canonical key systems names to their respective reverse domain name,
895
- * used in the EME APIs.
896
- * This allows to have a simpler API, where users just need to set "widevine"
897
- * or "playready" as a keySystem.
898
- * @type {Object}
899
- */
900
- /* eslint-disable @typescript-eslint/consistent-type-assertions */
901
- EME_KEY_SYSTEMS: {
902
- clearkey: [ "webkit-org.w3.clearkey",
903
- "org.w3.clearkey" ],
904
- widevine: [ "com.widevine.alpha" ],
905
- playready: [ "com.microsoft.playready.recommendation",
906
- "com.microsoft.playready",
907
- "com.chromecast.playready",
908
- "com.youtube.playready" ],
909
- fairplay: [ "com.apple.fps.1_0" ],
910
- } as Partial<Record<string, string[]>>,
911
- /* eslint-enable @typescript-eslint/consistent-type-assertions */
912
-
913
- /**
914
- * The Manifest parsing logic has a notion of "unsafeMode" which allows to
915
- * speed-up this process a lot with a small risk of de-synchronization with
916
- * what actually is on the server.
917
- * Because using that mode is risky, and can lead to all sort of problems, we
918
- * regularly should fall back to a regular "safe" parsing every once in a
919
- * while.
920
- * This value defines how many consecutive time maximum the "unsafeMode"
921
- * parsing can be done.
922
- */
923
- MAX_CONSECUTIVE_MANIFEST_PARSING_IN_UNSAFE_MODE: 10,
924
-
925
- /**
926
- * Minimum time spent parsing the Manifest before we can authorize parsing
927
- * it in an "unsafeMode", to speed-up the process with a little risk.
928
- * Please note that this parsing time also sometimes includes idle time such
929
- * as when the parser is waiting for a request to finish.
930
- */
931
- MIN_MANIFEST_PARSING_TIME_TO_ENTER_UNSAFE_MODE: 200,
932
-
933
- /**
934
- * Minimum amount of <S> elements in a DASH MPD's <SegmentTimeline> element
935
- * necessary to begin parsing the current SegmentTimeline element in an
936
- * unsafe manner (meaning: with risks of de-synchronization).
937
- * This is only done when the "unsafeMode" parsing mode is enabled.
938
- */
939
- MIN_DASH_S_ELEMENTS_TO_PARSE_UNSAFELY: 300,
940
-
941
- /**
942
- * When we detect that the local Manifest might be out-of-sync with the
943
- * server's one, we schedule a Manifest refresh.
944
- * However, as this "unsynchronization" is only a theory and as we do not want
945
- * to send too many Manifest requests, we keep a delay between the last
946
- * Manifest refresh done and that one.
947
- * This value indicates which delay we want. Note that the Manifest could
948
- * still be refreshed before this delay for other reasons.
949
- * @type {Number}
950
- */
951
- OUT_OF_SYNC_MANIFEST_REFRESH_DELAY: 3000,
952
-
953
- /**
954
- * When a partial Manifest update (that is an update with a partial sub-set
955
- * of the Manifest) fails, we will perform an update with the whole Manifest
956
- * instead.
957
- * To not overload the client - as parsing a Manifest can be resource heavy -
958
- * we set a minimum delay to wait before doing the corresponding request.
959
- * @type {Number}
960
- */
961
- FAILED_PARTIAL_UPDATE_MANIFEST_REFRESH_DELAY: 3000,
962
-
963
- /**
964
- * DASH Manifest based on a SegmentTimeline should normally have an
965
- * MPD@minimumUpdatePeriod attribute which should be sufficient to
966
- * know when to refresh it.
967
- * However, there is a specific case, for when it is equal to 0.
968
- * As of DASH-IF IOP (valid in v4.3), when a DASH's MPD set a
969
- * MPD@minimumUpdatePeriod to `0`, a client should not refresh the MPD
970
- * unless told to do so through inband events, in the stream.
971
- * In reality however, we found it to not always be the case (even with
972
- * DASH-IF own streams) and moreover to not always be the best thing to do.
973
- * We prefer to refresh in average at a regular interval when we do not have
974
- * this information.
975
- * /!\ This value is expressed in seconds.
976
- */
977
- DASH_FALLBACK_LIFETIME_WHEN_MINIMUM_UPDATE_PERIOD_EQUAL_0: 3,
978
-
979
- /**
980
- * Default value for the maximum number of simultaneous MediaKeySessions that
981
- * will be kept in a cache (linked to the MediaKeys instance) to avoid doing
982
- * superfluous license requests.
983
- *
984
- * If this number is reached, any new session creation will close the oldest
985
- * one.
986
- * Another value can be configured through the API, in which case this default
987
- * will be overwritten.
988
- * @type {Number}
989
- */
990
- EME_DEFAULT_MAX_SIMULTANEOUS_MEDIA_KEY_SESSIONS: 15,
991
-
992
- /**
993
- * When playing contents with a persistent license, we will usually store some
994
- * information related to that MediaKeySession, to be able to play it at a
995
- * later time.
996
- *
997
- * Those information are removed once a MediaKeySession is not considered
998
- * as "usable" anymore. But to know that, the RxPlayer has to load it.
999
- *
1000
- * But the RxPlayer does not re-load every persisted MediaKeySession every
1001
- * time to check each one of them one by one, as this would not be a
1002
- * performant thing to do.
1003
- *
1004
- * So this is only done when and if the corresponding content is encountered
1005
- * again and only if it contains the same initialization data.
1006
- *
1007
- * We have to consider that those "information" contain binary data which can
1008
- * be of arbitrary length. Size taken by an array of them can relatively
1009
- * rapidly take a lot of space in JS memory.
1010
- *
1011
- * So to avoid this storage to take too much space (would it be in the chosen
1012
- * browser's storage or in JS memory), we now set a higher bound for the
1013
- * amount of MediaKeySession information that can be stored at the same time.
1014
- *
1015
- * I set the value of 1000 here, as it seems big enough to not be considered a
1016
- * problem (though it can become one, when contents have a lot of keys per
1017
- * content), and still low enough so it should not cause much problem (my
1018
- * method to choose that number was to work with power of 10s and choosing the
1019
- * amount which seemed the most sensible one).
1020
- *
1021
- * This wasn't battle-tested however.
1022
- */
1023
- EME_MAX_STORED_PERSISTENT_SESSION_INFORMATION: 1000,
1024
-
1025
- /**
1026
- * After loading a persistent MediaKeySession, the RxPlayer needs to ensure
1027
- * that its keys still allow to decrypt a content.
1028
- *
1029
- * However on some browsers, the `keyStatuses` property that we used to check
1030
- * the keys' satuses linked to that session can be empty for some time after
1031
- * the loading operation is done.
1032
- *
1033
- * This value allows to configure a delay in milliseconds that will be the
1034
- * maximum time we will wait after a persistent session is loaded.
1035
- * If after that time, the `keyStatuses` property is still empty, we will
1036
- * consider that session as not usable.
1037
- */
1038
- EME_WAITING_DELAY_LOADED_SESSION_EMPTY_KEYSTATUSES: 100,
1039
-
1040
- /**
1041
- * The player relies on browser events and properties to update its status to
1042
- * "ENDED".
1043
- *
1044
- * Sadly in some cases, like in Chrome 54, this event is never triggered on
1045
- * some contents probably due to a browser bug.
1046
- *
1047
- * This threshold resolves this issue by forcing the status to "ENDED" when:
1048
- * 1. the player is stalling
1049
- * 2. the absolute difference between current playback time and duration is
1050
- * under this value
1051
- *
1052
- * If set to null, this workaround is disabled and the player only relies on
1053
- * browser events.
1054
- *
1055
- * @type {Number|null}
1056
- */
1057
- FORCED_ENDED_THRESHOLD: 0.0008,
1058
-
1059
- /**
1060
- * Maximum duration from the current position we will let in the buffer when
1061
- * switching an Adaptation/Representations of a given type.
1062
- *
1063
- * For example, if we have ``text: { before: 1, after: 4 }``, it means that
1064
- * when switching subtitles, we will let 1 second before and 4 second after
1065
- * the current position in the previous language (until the new segments
1066
- * overwrite it).
1067
- * This is to allow smooth transitions and avoid de-synchronization that
1068
- * can happen when removing the content being decoded.
1069
- * @type {Object}
1070
- */
1071
- ADAP_REP_SWITCH_BUFFER_PADDINGS: {
1072
- video: { before: 5, after: 5 },
1073
- audio: { before: 2, after: 2.5 },
1074
- text: { before: 0, after: 0 }, // not managed natively, so no problem here
1075
- },
1076
-
1077
- /**
1078
- * Interval, in milliseconds, at which we should manually flush
1079
- * SourceBuffers.
1080
- * Some browsers (happened with firefox 66) sometimes "forget" to send us
1081
- * `update` or `updateend` events.
1082
- * In that case, we're completely unable to continue the queue here and
1083
- * stay locked in a waiting state.
1084
- * This interval is here to check at regular intervals if the underlying
1085
- * SourceBuffer is currently updating.
1086
- * @type {Number}
1087
- */
1088
- SOURCE_BUFFER_FLUSHING_INTERVAL: 500,
1089
-
1090
- /**
1091
- * Any already-pushed segment starting before or at the current position +
1092
- * CONTENT_REPLACEMENT_PADDING won't be replaced by new segments.
1093
- *
1094
- * This allows to avoid overwriting segments that are currently being decoded
1095
- * as we encountered many decoding issues when doing so.
1096
- * @type {Number} - in seconds
1097
- */
1098
- CONTENT_REPLACEMENT_PADDING: 1.2,
1099
-
1100
- /**
1101
- * For video and audio segments, determines two thresholds below which :
1102
- * - The segment is considered as loaded from cache
1103
- * - The segment may be loaded from cache depending on the previous request
1104
- */
1105
- CACHE_LOAD_DURATION_THRESHOLDS: {
1106
- video: 50,
1107
- audio: 10,
1108
- },
1109
-
1110
- /** Interval we will use to poll for checking if an event shall be emitted */
1111
- STREAM_EVENT_EMITTER_POLL_INTERVAL: 250,
1112
-
1113
- /**
1114
- * In Javascript, numbers are encoded in a way that a floating number may be
1115
- * represented internally with a rounding error. When multiplying times in
1116
- * seconds by the timescale, we've encoutered cases were the rounding error
1117
- * was amplified by a factor which is about the timescale.
1118
- * Example :
1119
- * (192797480.641122).toFixed(20) = 192797480.64112201333045959473
1120
- * (error is 0.0000000133...)
1121
- * 192797480.641122 * 10000000 = 1927974806411220.2 (error is 0.2)
1122
- * 192797480.641122 * 10000000 * 4 = 7711899225644881 (error is 1)
1123
- * The error is much more significant here, once the timescale has been
1124
- * applied.
1125
- * Thus, we consider that our max tolerable rounding error is 1ms.
1126
- * It is much more than max rounding errors when seen into practice,
1127
- * and not significant from the media loss perspective.
1128
- */
1129
- DEFAULT_MAXIMUM_TIME_ROUNDING_ERROR: 1 / 1000,
1130
-
1131
- /**
1132
- * RxPlayer's media buffers have a linked history registering recent events
1133
- * that happened on those.
1134
- * The reason is to implement various heuristics in case of weird browser
1135
- * behavior.
1136
- *
1137
- * The `BUFFERED_HISTORY_RETENTION_TIME` is the minimum age an entry of
1138
- * that history can have before being removed from the history.
1139
- */
1140
- BUFFERED_HISTORY_RETENTION_TIME: 60000,
1141
-
1142
- /**
1143
- * RxPlayer's media buffers have a linked history registering recent events
1144
- * that happened on those.
1145
- * The reason is to implement various heuristics in case of weird browser
1146
- * behavior.
1147
- *
1148
- * The `BUFFERED_HISTORY_RETENTION_TIME` is the maximum number of entries
1149
- * there can be in that history.
1150
- */
1151
- BUFFERED_HISTORY_MAXIMUM_ENTRIES: 200,
1152
-
1153
- /**
1154
- * Minimum buffer in seconds ahead relative to current time
1155
- * we should be able to download, even in cases of saturated memory.
1156
- */
1157
- MIN_BUFFER_AHEAD: 5,
1158
-
1159
- /**
1160
- * Distance in seconds behind the current position
1161
- * the player will free up to in the case we agressively free up memory
1162
- * It is set to avoid playback issues
1163
- */
1164
- UPTO_CURRENT_POSITION_CLEANUP : 5,
1165
-
1166
- /**
1167
- * Default "switching mode" used when locking video Representations.
1168
- * That is, which behavior the RxPlayer should have by default when
1169
- * explicitely and manually switching from a previous set of video
1170
- * Representations to a new one.
1171
- */
1172
- DEFAULT_VIDEO_REPRESENTATIONS_SWITCHING_MODE: "seamless" as const,
1173
-
1174
- /**
1175
- * Default "switching mode" used when locking audio Representations.
1176
- * That is, which behavior the RxPlayer should have by default when
1177
- * explicitely and manually switching from a previous set of audio
1178
- * Representations to a new one.
1179
- */
1180
- DEFAULT_AUDIO_REPRESENTATIONS_SWITCHING_MODE: "seamless" as const,
1181
-
1182
- /**
1183
- * Default "switching mode" used when switching between video tracks.
1184
- * That is, which behavior the RxPlayer should have by default when
1185
- * explicitely and manually switching from a previous video track to a new
1186
- * one.
1187
- */
1188
- DEFAULT_VIDEO_TRACK_SWITCHING_MODE: "reload" as const,
1189
-
1190
- /**
1191
- * Default "switching mode" used when switching between audio tracks.
1192
- * That is, which behavior the RxPlayer should have by default when
1193
- * explicitely and manually switching from a previous audio track to a new
1194
- * one.
1195
- */
1196
- DEFAULT_AUDIO_TRACK_SWITCHING_MODE: "seamless" as const,
1197
- };
1198
-
1199
- export type IDefaultConfig = typeof DEFAULT_CONFIG;
1200
- export default DEFAULT_CONFIG;