rx-player 4.0.0-dev.2023121900 → 4.0.0-dev.2024022100

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 (4026) hide show
  1. package/.prettierrc +4 -0
  2. package/.vscode/settings.json +9 -0
  3. package/CHANGELOG.md +1736 -1145
  4. package/MAINTAINERS.md +9 -12
  5. package/README.md +107 -122
  6. package/VERSION +1 -1
  7. package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.d.ts +3 -0
  8. package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.js +6 -0
  9. package/dist/commonjs/__GENERATED_CODE/embedded_worker.d.ts +3 -0
  10. package/dist/commonjs/__GENERATED_CODE/embedded_worker.js +6 -0
  11. package/dist/commonjs/__GENERATED_CODE/index.d.ts +2 -0
  12. package/dist/commonjs/__GENERATED_CODE/index.js +7 -0
  13. package/dist/commonjs/compat/add_class_name.js +4 -3
  14. package/dist/commonjs/compat/add_text_track.d.ts +1 -1
  15. package/dist/commonjs/compat/add_text_track.js +3 -2
  16. package/dist/commonjs/compat/browser_compatibility_types.js +14 -8
  17. package/dist/commonjs/compat/browser_detection.d.ts +3 -1
  18. package/dist/commonjs/compat/browser_detection.js +29 -10
  19. package/dist/commonjs/compat/change_source_buffer_type.d.ts +1 -1
  20. package/dist/commonjs/compat/eme/close_session.d.ts +1 -1
  21. package/dist/commonjs/compat/eme/close_session.js +16 -12
  22. package/dist/commonjs/compat/eme/custom_key_system_access.d.ts +1 -1
  23. package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.d.ts +1 -1
  24. package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.js +14 -9
  25. package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +1 -1
  26. package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.js +1 -1
  27. package/dist/commonjs/compat/eme/custom_media_keys/ms_media_keys_constructor.js +1 -1
  28. package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +2 -2
  29. package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.js +13 -12
  30. package/dist/commonjs/compat/eme/custom_media_keys/types.d.ts +1 -1
  31. package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.d.ts +1 -1
  32. package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.js +5 -11
  33. package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts +1 -1
  34. package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +3 -3
  35. package/dist/commonjs/compat/eme/eme-api-implementation.d.ts +3 -3
  36. package/dist/commonjs/compat/eme/eme-api-implementation.js +17 -12
  37. package/dist/commonjs/compat/eme/generate_key_request.d.ts +1 -1
  38. package/dist/commonjs/compat/eme/generate_key_request.js +16 -19
  39. package/dist/commonjs/compat/eme/get_init_data.js +5 -7
  40. package/dist/commonjs/compat/eme/get_uuid_kid_from_keystatus_kid.js +1 -2
  41. package/dist/commonjs/compat/eme/get_webkit_fairplay_initdata.js +10 -11
  42. package/dist/commonjs/compat/eme/load_session.d.ts +1 -1
  43. package/dist/commonjs/compat/enable_audio_track.d.ts +1 -1
  44. package/dist/commonjs/compat/event_listeners.d.ts +4 -4
  45. package/dist/commonjs/compat/event_listeners.js +43 -34
  46. package/dist/commonjs/compat/has_mse_in_worker.d.ts +2 -0
  47. package/dist/commonjs/compat/has_mse_in_worker.js +6 -0
  48. package/dist/commonjs/compat/has_webassembly.d.ts +6 -0
  49. package/dist/commonjs/compat/has_webassembly.js +8 -0
  50. package/dist/commonjs/compat/is_codec_supported.js +7 -1
  51. package/dist/commonjs/compat/is_vtt_cue.d.ts +1 -1
  52. package/dist/commonjs/compat/is_vtt_cue.js +1 -1
  53. package/dist/commonjs/compat/make_vtt_cue.d.ts +1 -1
  54. package/dist/commonjs/compat/make_vtt_cue.js +1 -1
  55. package/dist/commonjs/compat/on_height_width_change.d.ts +2 -2
  56. package/dist/commonjs/compat/on_height_width_change.js +1 -1
  57. package/dist/commonjs/compat/patch_webkit_source_buffer.js +31 -31
  58. package/dist/commonjs/compat/should_reload_media_source_on_decipherability_update.js +1 -2
  59. package/dist/commonjs/config.d.ts +7 -18
  60. package/dist/commonjs/config.js +4 -12
  61. package/dist/commonjs/core/adaptive/adaptive_representation_selector.d.ts +26 -22
  62. package/dist/commonjs/core/adaptive/adaptive_representation_selector.js +48 -26
  63. package/dist/commonjs/core/adaptive/buffer_based_chooser.d.ts +1 -1
  64. package/dist/commonjs/core/adaptive/buffer_based_chooser.js +13 -11
  65. package/dist/commonjs/core/adaptive/guess_based_chooser.d.ts +6 -6
  66. package/dist/commonjs/core/adaptive/guess_based_chooser.js +7 -6
  67. package/dist/commonjs/core/adaptive/index.d.ts +2 -2
  68. package/dist/commonjs/core/adaptive/network_analyzer.d.ts +6 -6
  69. package/dist/commonjs/core/adaptive/network_analyzer.js +44 -40
  70. package/dist/commonjs/core/adaptive/utils/bandwidth_estimator.js +1 -1
  71. package/dist/commonjs/core/adaptive/utils/ewma.js +1 -2
  72. package/dist/commonjs/core/adaptive/utils/filter_by_bitrate.d.ts +2 -2
  73. package/dist/commonjs/core/adaptive/utils/filter_by_resolution.d.ts +2 -2
  74. package/dist/commonjs/core/adaptive/utils/filter_by_resolution.js +2 -4
  75. package/dist/commonjs/core/adaptive/utils/get_buffer_levels.js +7 -4
  76. package/dist/commonjs/core/adaptive/utils/last_estimate_storage.d.ts +3 -3
  77. package/dist/commonjs/core/adaptive/utils/pending_requests_store.d.ts +5 -5
  78. package/dist/commonjs/core/adaptive/utils/pending_requests_store.js +4 -3
  79. package/dist/commonjs/core/adaptive/utils/representation_score_calculator.d.ts +7 -7
  80. package/dist/commonjs/core/adaptive/utils/representation_score_calculator.js +11 -8
  81. package/dist/commonjs/core/adaptive/utils/select_optimal_representation.d.ts +4 -4
  82. package/dist/commonjs/core/adaptive/utils/select_optimal_representation.js +2 -2
  83. package/dist/commonjs/core/fetchers/cdn_prioritizer.d.ts +2 -2
  84. package/dist/commonjs/core/fetchers/cdn_prioritizer.js +5 -6
  85. package/dist/commonjs/core/fetchers/manifest/index.d.ts +1 -1
  86. package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.d.ts +3 -3
  87. package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.js +80 -65
  88. package/dist/commonjs/core/fetchers/segment/index.d.ts +1 -1
  89. package/dist/commonjs/core/fetchers/segment/initialization_segment_cache.d.ts +42 -0
  90. package/dist/commonjs/core/fetchers/segment/prioritized_segment_fetcher.d.ts +4 -3
  91. package/dist/commonjs/core/fetchers/segment/segment_fetcher.d.ts +12 -12
  92. package/dist/commonjs/core/fetchers/segment/segment_fetcher.js +51 -34
  93. package/dist/commonjs/core/fetchers/segment/segment_fetcher_creator.d.ts +5 -5
  94. package/dist/commonjs/core/fetchers/segment/segment_fetcher_creator.js +4 -2
  95. package/dist/commonjs/core/fetchers/segment/task_prioritizer.d.ts +1 -1
  96. package/dist/commonjs/core/fetchers/segment/task_prioritizer.js +18 -17
  97. package/dist/commonjs/core/fetchers/utils/error_selector.d.ts +1 -2
  98. package/dist/commonjs/core/fetchers/utils/error_selector.js +2 -2
  99. package/dist/commonjs/core/fetchers/utils/schedule_request.d.ts +3 -3
  100. package/dist/commonjs/core/fetchers/utils/schedule_request.js +22 -22
  101. package/dist/commonjs/core/main/common/DecipherabilityFreezeDetector.d.ts +79 -0
  102. package/dist/commonjs/core/main/common/DecipherabilityFreezeDetector.js +127 -0
  103. package/dist/commonjs/core/main/common/content_time_boundaries_observer.d.ts +191 -0
  104. package/dist/commonjs/core/main/common/content_time_boundaries_observer.js +519 -0
  105. package/dist/commonjs/core/main/common/create_content_time_boundaries_observer.d.ts +27 -0
  106. package/dist/commonjs/core/main/common/create_content_time_boundaries_observer.js +48 -0
  107. package/dist/commonjs/core/main/common/get_buffered_data_per_media_buffer.d.ts +14 -0
  108. package/dist/commonjs/core/main/common/get_buffered_data_per_media_buffer.js +37 -0
  109. package/dist/commonjs/core/main/worker/content_preparer.d.ts +93 -0
  110. package/dist/commonjs/core/main/worker/content_preparer.js +273 -0
  111. package/dist/commonjs/core/main/worker/globals.d.ts +13 -0
  112. package/dist/commonjs/core/main/worker/globals.js +26 -0
  113. package/dist/commonjs/core/main/worker/index.d.ts +2 -0
  114. package/dist/commonjs/core/main/worker/index.js +4 -0
  115. package/dist/commonjs/core/main/worker/send_message.d.ts +3 -0
  116. package/dist/commonjs/core/main/worker/send_message.js +25 -0
  117. package/dist/commonjs/core/main/worker/track_choice_setter.d.ts +19 -0
  118. package/dist/commonjs/core/main/worker/track_choice_setter.js +140 -0
  119. package/dist/commonjs/core/main/worker/worker_main.d.ts +1 -0
  120. package/dist/commonjs/core/main/worker/worker_main.js +788 -0
  121. package/dist/commonjs/core/main/worker/worker_text_displayer_interface.d.ts +64 -0
  122. package/dist/commonjs/core/main/worker/worker_text_displayer_interface.js +126 -0
  123. package/dist/commonjs/core/segment_sinks/garbage_collector.d.ts +43 -0
  124. package/dist/commonjs/core/segment_sinks/garbage_collector.js +226 -0
  125. package/dist/commonjs/core/segment_sinks/implementations/audio_video/audio_video_segment_buffer.d.ts +135 -0
  126. package/dist/commonjs/core/segment_sinks/implementations/audio_video/audio_video_segment_buffer.js +358 -0
  127. package/dist/commonjs/core/segment_sinks/implementations/audio_video/index.d.ts +17 -0
  128. package/dist/commonjs/core/segment_sinks/implementations/index.d.ts +19 -0
  129. package/dist/commonjs/core/segment_sinks/implementations/index.js +35 -0
  130. package/dist/commonjs/core/segment_sinks/implementations/text/index.d.ts +3 -0
  131. package/dist/commonjs/core/segment_sinks/implementations/text/index.js +4 -0
  132. package/dist/commonjs/core/segment_sinks/implementations/text/text_segment_buffer.d.ts +90 -0
  133. package/dist/commonjs/core/segment_sinks/implementations/text/text_segment_buffer.js +257 -0
  134. package/dist/commonjs/core/segment_sinks/implementations/types.d.ts +307 -0
  135. package/dist/commonjs/core/segment_sinks/implementations/types.js +117 -0
  136. package/dist/commonjs/core/segment_sinks/index.d.ts +21 -0
  137. package/dist/commonjs/core/segment_sinks/index.js +28 -0
  138. package/dist/commonjs/core/segment_sinks/inventory/buffered_history.d.ts +89 -0
  139. package/dist/commonjs/core/segment_sinks/inventory/index.d.ts +21 -0
  140. package/dist/commonjs/core/segment_sinks/inventory/segment_inventory.d.ts +238 -0
  141. package/dist/commonjs/core/segment_sinks/inventory/segment_inventory.js +917 -0
  142. package/dist/commonjs/core/segment_sinks/inventory/types.d.ts +27 -0
  143. package/dist/commonjs/core/segment_sinks/inventory/utils.d.ts +33 -0
  144. package/dist/commonjs/core/segment_sinks/inventory/utils.js +53 -0
  145. package/dist/commonjs/core/segment_sinks/segment_buffers_store.d.ts +171 -0
  146. package/dist/commonjs/core/segment_sinks/segment_buffers_store.js +288 -0
  147. package/dist/commonjs/core/stream/adaptation/adaptation_stream.d.ts +4 -4
  148. package/dist/commonjs/core/stream/adaptation/adaptation_stream.js +61 -26
  149. package/dist/commonjs/core/stream/adaptation/get_representations_switch_strategy.d.ts +23 -9
  150. package/dist/commonjs/core/stream/adaptation/get_representations_switch_strategy.js +84 -80
  151. package/dist/commonjs/core/stream/adaptation/types.d.ts +34 -45
  152. package/dist/commonjs/core/stream/index.d.ts +3 -2
  153. package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.d.ts +8 -8
  154. package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.js +5 -6
  155. package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.d.ts +20 -19
  156. package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.js +86 -53
  157. package/dist/commonjs/core/stream/period/period_stream.d.ts +5 -5
  158. package/dist/commonjs/core/stream/period/period_stream.js +126 -54
  159. package/dist/commonjs/core/stream/period/types.d.ts +29 -20
  160. package/dist/commonjs/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +13 -13
  161. package/dist/commonjs/core/stream/period/utils/get_adaptation_switch_strategy.js +94 -95
  162. package/dist/commonjs/core/stream/representation/representation_stream.d.ts +5 -5
  163. package/dist/commonjs/core/stream/representation/representation_stream.js +58 -32
  164. package/dist/commonjs/core/stream/representation/types.d.ts +52 -25
  165. package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.d.ts +12 -9
  166. package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.js +43 -27
  167. package/dist/commonjs/core/stream/representation/utils/check_for_discontinuity.d.ts +7 -7
  168. package/dist/commonjs/core/stream/representation/utils/check_for_discontinuity.js +16 -18
  169. package/dist/commonjs/core/stream/representation/utils/downloading_queue.d.ts +10 -10
  170. package/dist/commonjs/core/stream/representation/utils/downloading_queue.js +11 -11
  171. package/dist/commonjs/core/stream/representation/utils/get_buffer_status.d.ts +11 -11
  172. package/dist/commonjs/core/stream/representation/utils/get_buffer_status.js +66 -35
  173. package/dist/commonjs/core/stream/representation/utils/get_needed_segments.d.ts +7 -8
  174. package/dist/commonjs/core/stream/representation/utils/get_needed_segments.js +31 -36
  175. package/dist/commonjs/core/stream/representation/utils/push_init_segment.d.ts +14 -12
  176. package/dist/commonjs/core/stream/representation/utils/push_init_segment.js +11 -10
  177. package/dist/commonjs/core/stream/representation/utils/push_media_segment.d.ts +15 -13
  178. package/dist/commonjs/core/stream/representation/utils/push_media_segment.js +17 -15
  179. package/dist/commonjs/core/types.d.ts +8 -0
  180. package/dist/commonjs/core/types.js +2 -0
  181. package/dist/commonjs/default_config.d.ts +31 -34
  182. package/dist/commonjs/default_config.js +61 -61
  183. package/dist/commonjs/errors/encrypted_media_error.d.ts +19 -2
  184. package/dist/commonjs/errors/encrypted_media_error.js +15 -0
  185. package/dist/commonjs/errors/error_codes.d.ts +4 -3
  186. package/dist/commonjs/errors/error_codes.js +3 -8
  187. package/dist/commonjs/errors/format_error.d.ts +2 -2
  188. package/dist/commonjs/errors/format_error.js +1 -2
  189. package/dist/commonjs/errors/index.d.ts +7 -8
  190. package/dist/commonjs/errors/index.js +3 -5
  191. package/dist/commonjs/errors/is_known_error.d.ts +1 -1
  192. package/dist/commonjs/errors/is_known_error.js +2 -2
  193. package/dist/commonjs/errors/media_error.d.ts +22 -19
  194. package/dist/commonjs/errors/media_error.js +17 -19
  195. package/dist/commonjs/errors/network_error.d.ts +16 -2
  196. package/dist/commonjs/errors/network_error.js +16 -2
  197. package/dist/commonjs/errors/other_error.d.ts +15 -1
  198. package/dist/commonjs/errors/other_error.js +10 -0
  199. package/dist/commonjs/errors/source_buffer_error.d.ts +40 -0
  200. package/dist/commonjs/errors/source_buffer_error.js +64 -0
  201. package/dist/commonjs/errors/worker_initialization_error.d.ts +19 -0
  202. package/dist/commonjs/errors/worker_initialization_error.js +43 -0
  203. package/dist/commonjs/experimental/features/index.d.ts +1 -2
  204. package/dist/commonjs/experimental/features/index.js +3 -5
  205. package/dist/commonjs/experimental/features/local.d.ts +1 -1
  206. package/dist/commonjs/experimental/features/local.js +4 -3
  207. package/dist/commonjs/experimental/features/metaplaylist.d.ts +1 -1
  208. package/dist/commonjs/experimental/features/metaplaylist.js +4 -3
  209. package/dist/commonjs/experimental/features/multi_thread.d.ts +8 -0
  210. package/dist/commonjs/experimental/features/multi_thread.js +13 -0
  211. package/dist/commonjs/experimental/index.d.ts +1 -1
  212. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/dash.d.ts +1 -1
  213. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts +1 -1
  214. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/index.d.ts +1 -1
  215. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +5 -5
  216. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +13 -14
  217. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +4 -4
  218. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +29 -22
  219. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +3 -5
  220. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +6 -7
  221. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/types.d.ts +6 -6
  222. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts +3 -3
  223. package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +25 -27
  224. package/dist/commonjs/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +13 -23
  225. package/dist/commonjs/experimental/tools/createMetaplaylist/index.d.ts +1 -1
  226. package/dist/commonjs/experimental/tools/createMetaplaylist/index.js +8 -7
  227. package/dist/commonjs/experimental/tools/index.d.ts +1 -2
  228. package/dist/commonjs/experimental/tools/index.js +1 -3
  229. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/index.d.ts +1 -1
  230. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/index.js +9 -15
  231. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.d.ts +4 -3
  232. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.js +6 -3
  233. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/capabilities.d.ts +1 -1
  234. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/capabilities.js +9 -46
  235. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/index.d.ts +2 -0
  236. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.d.ts +2 -1
  237. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.js +8 -5
  238. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts +2 -1
  239. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.js +21 -13
  240. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts +2 -1
  241. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +25 -21
  242. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.js +12 -12
  243. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/index.d.ts +1 -1
  244. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts +2 -1
  245. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.js +7 -8
  246. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.d.ts +1 -1
  247. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.js +6 -11
  248. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.d.ts +2 -1
  249. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.js +2 -3
  250. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts +2 -1
  251. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +4 -4
  252. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/types.d.ts +2 -2
  253. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/utils.d.ts +1 -1
  254. package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/utils.js +8 -7
  255. package/dist/commonjs/features/add_features.d.ts +1 -1
  256. package/dist/commonjs/features/features_object.d.ts +1 -1
  257. package/dist/commonjs/features/features_object.js +9 -6
  258. package/dist/commonjs/features/index.d.ts +1 -1
  259. package/dist/commonjs/features/list/dash.d.ts +1 -1
  260. package/dist/commonjs/features/list/dash.js +4 -3
  261. package/dist/commonjs/features/list/dash_wasm.d.ts +23 -0
  262. package/dist/commonjs/features/list/dash_wasm.js +38 -0
  263. package/dist/commonjs/features/list/debug_element.d.ts +8 -0
  264. package/dist/commonjs/features/list/debug_element.js +13 -0
  265. package/dist/commonjs/features/list/directfile.d.ts +1 -1
  266. package/dist/commonjs/features/list/directfile.js +2 -3
  267. package/dist/commonjs/features/list/eme.d.ts +1 -1
  268. package/dist/commonjs/features/list/eme.js +1 -1
  269. package/dist/commonjs/features/list/html_sami_parser.d.ts +1 -1
  270. package/dist/commonjs/features/list/html_sami_parser.js +2 -2
  271. package/dist/commonjs/features/list/html_srt_parser.d.ts +1 -1
  272. package/dist/commonjs/features/list/html_srt_parser.js +2 -2
  273. package/dist/commonjs/features/list/html_text_buffer.d.ts +1 -1
  274. package/dist/commonjs/features/list/html_text_buffer.js +2 -2
  275. package/dist/commonjs/features/list/html_ttml_parser.d.ts +1 -1
  276. package/dist/commonjs/features/list/html_ttml_parser.js +2 -2
  277. package/dist/commonjs/features/list/html_vtt_parser.d.ts +1 -1
  278. package/dist/commonjs/features/list/html_vtt_parser.js +2 -2
  279. package/dist/commonjs/features/list/index.d.ts +3 -0
  280. package/dist/commonjs/features/list/index.js +7 -1
  281. package/dist/commonjs/features/list/media_source_main.d.ts +8 -0
  282. package/dist/commonjs/features/list/media_source_main.js +13 -0
  283. package/dist/commonjs/features/list/native_sami_parser.d.ts +1 -1
  284. package/dist/commonjs/features/list/native_sami_parser.js +2 -3
  285. package/dist/commonjs/features/list/native_srt_parser.d.ts +1 -1
  286. package/dist/commonjs/features/list/native_srt_parser.js +2 -3
  287. package/dist/commonjs/features/list/native_text_buffer.d.ts +1 -1
  288. package/dist/commonjs/features/list/native_text_buffer.js +2 -3
  289. package/dist/commonjs/features/list/native_ttml_parser.d.ts +1 -1
  290. package/dist/commonjs/features/list/native_ttml_parser.js +2 -3
  291. package/dist/commonjs/features/list/native_vtt_parser.d.ts +1 -1
  292. package/dist/commonjs/features/list/native_vtt_parser.js +2 -3
  293. package/dist/commonjs/features/list/smooth.d.ts +2 -2
  294. package/dist/commonjs/features/list/smooth.js +8 -5
  295. package/dist/commonjs/features/types.d.ts +44 -21
  296. package/dist/commonjs/index.d.ts +1 -1
  297. package/dist/commonjs/index.js +3 -1
  298. package/dist/commonjs/main_thread/api/debug/buffer_graph.d.ts +28 -0
  299. package/dist/commonjs/main_thread/api/debug/buffer_graph.js +168 -0
  300. package/dist/commonjs/main_thread/api/debug/buffer_size_graph.js +131 -0
  301. package/dist/commonjs/main_thread/api/debug/modules/general_info.d.ts +3 -0
  302. package/dist/commonjs/main_thread/api/debug/modules/general_info.js +236 -0
  303. package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_content.d.ts +4 -0
  304. package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_content.js +127 -0
  305. package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_size.d.ts +3 -0
  306. package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_size.js +38 -0
  307. package/dist/commonjs/main_thread/api/debug/render.d.ts +3 -0
  308. package/dist/commonjs/main_thread/api/index.d.ts +17 -0
  309. package/dist/commonjs/main_thread/api/index.js +19 -0
  310. package/dist/commonjs/main_thread/api/option_utils.d.ts +124 -0
  311. package/dist/commonjs/main_thread/api/option_utils.js +335 -0
  312. package/dist/commonjs/main_thread/api/public_api.d.ts +751 -0
  313. package/dist/commonjs/main_thread/api/public_api.js +2523 -0
  314. package/dist/commonjs/main_thread/api/utils.d.ts +66 -0
  315. package/dist/commonjs/main_thread/api/utils.js +178 -0
  316. package/dist/commonjs/main_thread/decrypt/__tests__/__global__/utils.d.ts +184 -0
  317. package/dist/commonjs/main_thread/decrypt/__tests__/__global__/utils.js +439 -0
  318. package/dist/commonjs/main_thread/decrypt/attach_media_keys.d.ts +53 -0
  319. package/dist/commonjs/main_thread/decrypt/attach_media_keys.js +128 -0
  320. package/dist/commonjs/main_thread/decrypt/clear_on_stop.js +43 -0
  321. package/dist/commonjs/main_thread/decrypt/content_decryptor.d.ts +185 -0
  322. package/dist/commonjs/main_thread/decrypt/content_decryptor.js +1053 -0
  323. package/dist/commonjs/main_thread/decrypt/create_or_load_session.d.ts +64 -0
  324. package/dist/commonjs/main_thread/decrypt/create_or_load_session.js +135 -0
  325. package/dist/commonjs/main_thread/decrypt/create_session.d.ts +54 -0
  326. package/dist/commonjs/main_thread/decrypt/create_session.js +215 -0
  327. package/dist/commonjs/main_thread/decrypt/dispose_decryption_resources.js +90 -0
  328. package/dist/commonjs/main_thread/decrypt/find_key_system.d.ts +48 -0
  329. package/dist/commonjs/main_thread/decrypt/find_key_system.js +375 -0
  330. package/dist/commonjs/main_thread/decrypt/get_media_keys.d.ts +44 -0
  331. package/dist/commonjs/main_thread/decrypt/get_media_keys.js +165 -0
  332. package/dist/commonjs/main_thread/decrypt/index.d.ts +26 -0
  333. package/dist/commonjs/main_thread/decrypt/init_media_keys.d.ts +26 -0
  334. package/dist/commonjs/main_thread/decrypt/init_media_keys.js +93 -0
  335. package/dist/commonjs/main_thread/decrypt/session_events_listener.d.ts +75 -0
  336. package/dist/commonjs/main_thread/decrypt/session_events_listener.js +325 -0
  337. package/dist/commonjs/main_thread/decrypt/set_server_certificate.d.ts +51 -0
  338. package/dist/commonjs/main_thread/decrypt/set_server_certificate.js +145 -0
  339. package/dist/commonjs/main_thread/decrypt/types.d.ts +374 -0
  340. package/dist/commonjs/main_thread/decrypt/utils/are_init_values_compatible.js +144 -0
  341. package/dist/commonjs/main_thread/decrypt/utils/check_key_statuses.d.ts +52 -0
  342. package/dist/commonjs/main_thread/decrypt/utils/check_key_statuses.js +211 -0
  343. package/dist/commonjs/main_thread/decrypt/utils/clean_old_loaded_sessions.d.ts +26 -0
  344. package/dist/commonjs/main_thread/decrypt/utils/clean_old_stored_persistent_info.d.ts +32 -0
  345. package/dist/commonjs/main_thread/decrypt/utils/init_data_values_container.d.ts +69 -0
  346. package/dist/commonjs/main_thread/decrypt/utils/init_data_values_container.js +137 -0
  347. package/dist/commonjs/main_thread/decrypt/utils/is_session_usable.d.ts +24 -0
  348. package/dist/commonjs/main_thread/decrypt/utils/is_session_usable.js +51 -0
  349. package/dist/commonjs/main_thread/decrypt/utils/key_session_record.d.ts +104 -0
  350. package/dist/commonjs/main_thread/decrypt/utils/key_session_record.js +189 -0
  351. package/dist/commonjs/main_thread/decrypt/utils/loaded_sessions_store.d.ts +213 -0
  352. package/dist/commonjs/main_thread/decrypt/utils/loaded_sessions_store.js +518 -0
  353. package/dist/commonjs/main_thread/decrypt/utils/media_keys_infos_store.d.ts +56 -0
  354. package/dist/commonjs/main_thread/decrypt/utils/media_keys_infos_store.js +45 -0
  355. package/dist/commonjs/main_thread/decrypt/utils/persistent_sessions_store.d.ts +94 -0
  356. package/dist/commonjs/main_thread/decrypt/utils/persistent_sessions_store.js +356 -0
  357. package/dist/commonjs/main_thread/decrypt/utils/serializable_bytes.d.ts +44 -0
  358. package/dist/commonjs/main_thread/decrypt/utils/serializable_bytes.js +50 -0
  359. package/dist/commonjs/main_thread/decrypt/utils/server_certificate_store.d.ts +64 -0
  360. package/dist/commonjs/main_thread/decrypt/utils/server_certificate_store.js +123 -0
  361. package/dist/commonjs/main_thread/init/directfile_content_initializer.d.ts +97 -0
  362. package/dist/commonjs/main_thread/init/directfile_content_initializer.js +264 -0
  363. package/dist/commonjs/main_thread/init/media_source_content_initializer.d.ts +166 -0
  364. package/dist/commonjs/main_thread/init/media_source_content_initializer.js +897 -0
  365. package/dist/commonjs/main_thread/init/multi_thread_content_initializer.d.ts +167 -0
  366. package/dist/commonjs/main_thread/init/multi_thread_content_initializer.js +1452 -0
  367. package/dist/commonjs/main_thread/init/send_message.d.ts +2 -0
  368. package/dist/commonjs/main_thread/init/send_message.js +13 -0
  369. package/dist/commonjs/main_thread/init/types.d.ts +221 -0
  370. package/dist/commonjs/main_thread/init/types.js +53 -0
  371. package/dist/commonjs/main_thread/init/utils/create_core_playback_observer.d.ts +83 -0
  372. package/dist/commonjs/main_thread/init/utils/create_core_playback_observer.js +105 -0
  373. package/dist/commonjs/main_thread/init/utils/create_media_source.d.ts +37 -0
  374. package/dist/commonjs/main_thread/init/utils/create_media_source.js +106 -0
  375. package/dist/commonjs/main_thread/init/utils/get_initial_time.d.ts +76 -0
  376. package/dist/commonjs/main_thread/init/utils/get_initial_time.js +109 -0
  377. package/dist/commonjs/main_thread/init/utils/get_loaded_reference.d.ts +28 -0
  378. package/dist/commonjs/main_thread/init/utils/get_loaded_reference.js +62 -0
  379. package/dist/commonjs/main_thread/init/utils/initial_seek_and_play.d.ts +61 -0
  380. package/dist/commonjs/main_thread/init/utils/initial_seek_and_play.js +207 -0
  381. package/dist/commonjs/main_thread/init/utils/initialize_content_decryption.d.ts +87 -0
  382. package/dist/commonjs/main_thread/init/utils/initialize_content_decryption.js +119 -0
  383. package/dist/commonjs/main_thread/init/utils/main_thread_text_displayer_interface.d.ts +35 -0
  384. package/dist/commonjs/main_thread/init/utils/main_thread_text_displayer_interface.js +54 -0
  385. package/dist/commonjs/main_thread/init/utils/rebuffering_controller.d.ts +114 -0
  386. package/dist/commonjs/main_thread/init/utils/rebuffering_controller.js +450 -0
  387. package/dist/commonjs/main_thread/init/utils/stream_events_emitter/are_same_stream_events.js +35 -0
  388. package/dist/commonjs/main_thread/init/utils/stream_events_emitter/index.d.ts +18 -0
  389. package/dist/commonjs/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +25 -0
  390. package/dist/commonjs/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +98 -0
  391. package/dist/commonjs/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts +53 -0
  392. package/dist/commonjs/main_thread/init/utils/stream_events_emitter/stream_events_emitter.js +230 -0
  393. package/dist/commonjs/main_thread/init/utils/stream_events_emitter/types.d.ts +41 -0
  394. package/dist/commonjs/main_thread/init/utils/throw_on_media_error.d.ts +23 -0
  395. package/dist/commonjs/main_thread/init/utils/throw_on_media_error.js +66 -0
  396. package/dist/commonjs/main_thread/text_displayer/html/html_parsers.d.ts +15 -0
  397. package/dist/commonjs/main_thread/text_displayer/html/html_parsers.js +25 -0
  398. package/dist/commonjs/main_thread/text_displayer/html/html_text_displayer.d.ts +100 -0
  399. package/dist/commonjs/main_thread/text_displayer/html/html_text_displayer.js +318 -0
  400. package/dist/commonjs/main_thread/text_displayer/html/index.d.ts +2 -0
  401. package/dist/commonjs/main_thread/text_displayer/html/index.js +4 -0
  402. package/dist/commonjs/main_thread/text_displayer/html/text_track_cues_store.d.ts +65 -0
  403. package/dist/commonjs/main_thread/text_displayer/html/text_track_cues_store.js +378 -0
  404. package/dist/commonjs/main_thread/text_displayer/html/update_proportional_elements.d.ts +15 -0
  405. package/dist/commonjs/main_thread/text_displayer/html/update_proportional_elements.js +64 -0
  406. package/dist/commonjs/main_thread/text_displayer/html/utils.d.ts +39 -0
  407. package/dist/commonjs/main_thread/text_displayer/html/utils.js +119 -0
  408. package/dist/commonjs/main_thread/text_displayer/index.d.ts +2 -0
  409. package/dist/commonjs/main_thread/text_displayer/index.js +2 -0
  410. package/dist/commonjs/main_thread/text_displayer/manual_time_ranges.d.ts +14 -0
  411. package/dist/commonjs/main_thread/text_displayer/manual_time_ranges.js +52 -0
  412. package/dist/commonjs/main_thread/text_displayer/native/index.d.ts +2 -0
  413. package/dist/commonjs/main_thread/text_displayer/native/index.js +4 -0
  414. package/dist/commonjs/main_thread/text_displayer/native/native_parsers.d.ts +11 -0
  415. package/dist/commonjs/main_thread/text_displayer/native/native_parsers.js +25 -0
  416. package/dist/commonjs/main_thread/text_displayer/native/native_text_displayer.d.ts +56 -0
  417. package/dist/commonjs/main_thread/text_displayer/native/native_text_displayer.js +207 -0
  418. package/dist/commonjs/main_thread/text_displayer/types.d.ts +71 -0
  419. package/dist/commonjs/main_thread/text_displayer/types.js +2 -0
  420. package/dist/commonjs/main_thread/tracks_store/index.d.ts +20 -0
  421. package/dist/commonjs/main_thread/tracks_store/media_element_tracks_store.d.ts +197 -0
  422. package/dist/commonjs/main_thread/tracks_store/media_element_tracks_store.js +691 -0
  423. package/dist/commonjs/main_thread/tracks_store/track_dispatcher.d.ts +101 -0
  424. package/dist/commonjs/main_thread/tracks_store/track_dispatcher.js +198 -0
  425. package/dist/commonjs/main_thread/tracks_store/tracks_store.d.ts +448 -0
  426. package/dist/commonjs/main_thread/tracks_store/tracks_store.js +1096 -0
  427. package/dist/commonjs/main_thread/types.d.ts +5 -0
  428. package/dist/commonjs/main_thread/types.js +2 -0
  429. package/dist/commonjs/manifest/classes/adaptation.d.ts +134 -0
  430. package/dist/commonjs/manifest/classes/adaptation.js +237 -0
  431. package/dist/commonjs/manifest/classes/index.d.ts +25 -0
  432. package/dist/commonjs/manifest/classes/index.js +46 -0
  433. package/dist/commonjs/manifest/classes/manifest.d.ts +391 -0
  434. package/dist/commonjs/manifest/classes/manifest.js +494 -0
  435. package/dist/commonjs/manifest/classes/period.d.ts +106 -0
  436. package/dist/commonjs/manifest/classes/period.js +235 -0
  437. package/dist/commonjs/manifest/classes/representation.d.ts +238 -0
  438. package/dist/commonjs/manifest/classes/representation.js +382 -0
  439. package/dist/commonjs/manifest/classes/representation_index/index.d.ts +18 -0
  440. package/dist/commonjs/manifest/classes/representation_index/static.d.ts +101 -0
  441. package/dist/commonjs/manifest/classes/representation_index/static.js +147 -0
  442. package/dist/commonjs/manifest/classes/representation_index/types.d.ts +420 -0
  443. package/dist/commonjs/manifest/classes/types.d.ts +29 -0
  444. package/dist/commonjs/manifest/classes/types.js +33 -0
  445. package/dist/commonjs/manifest/classes/update_period_in_place.d.ts +53 -0
  446. package/dist/commonjs/manifest/classes/update_period_in_place.js +172 -0
  447. package/dist/commonjs/manifest/classes/update_periods.d.ts +50 -0
  448. package/dist/commonjs/manifest/classes/update_periods.js +229 -0
  449. package/dist/commonjs/manifest/classes/utils.d.ts +39 -0
  450. package/dist/commonjs/manifest/classes/utils.js +54 -0
  451. package/dist/commonjs/manifest/index.d.ts +15 -24
  452. package/dist/commonjs/manifest/index.js +5 -31
  453. package/dist/commonjs/manifest/types.d.ts +372 -19
  454. package/dist/commonjs/manifest/types.js +0 -31
  455. package/dist/commonjs/manifest/utils.d.ts +149 -31
  456. package/dist/commonjs/manifest/utils.js +698 -34
  457. package/dist/commonjs/minimal.d.ts +4 -1
  458. package/dist/commonjs/minimal.js +12 -1
  459. package/dist/commonjs/mse/index.d.ts +1 -0
  460. package/dist/commonjs/mse/index.js +2 -0
  461. package/dist/commonjs/mse/main_codec_support_prober.d.ts +26 -0
  462. package/dist/commonjs/mse/main_codec_support_prober.js +44 -0
  463. package/dist/commonjs/mse/main_media_source_interface.d.ts +112 -0
  464. package/dist/commonjs/mse/main_media_source_interface.js +529 -0
  465. package/dist/commonjs/mse/types.d.ts +301 -0
  466. package/dist/commonjs/mse/types.js +2 -0
  467. package/dist/commonjs/mse/utils/end_of_stream.d.ts +33 -0
  468. package/dist/commonjs/mse/utils/end_of_stream.js +114 -0
  469. package/dist/commonjs/mse/utils/media_source_duration_updater.js +272 -0
  470. package/dist/commonjs/mse/worker_codec_support_prober.d.ts +42 -0
  471. package/dist/commonjs/mse/worker_codec_support_prober.js +61 -0
  472. package/dist/commonjs/mse/worker_media_source_interface.d.ts +105 -0
  473. package/dist/commonjs/mse/worker_media_source_interface.js +370 -0
  474. package/dist/commonjs/multithread_types.d.ts +815 -0
  475. package/dist/commonjs/multithread_types.js +7 -0
  476. package/dist/commonjs/parsers/containers/isobmff/create_box.d.ts +1 -1
  477. package/dist/commonjs/parsers/containers/isobmff/create_box.js +4 -3
  478. package/dist/commonjs/parsers/containers/isobmff/drm/playready.js +1 -2
  479. package/dist/commonjs/parsers/containers/isobmff/get_box.js +2 -4
  480. package/dist/commonjs/parsers/containers/isobmff/index.d.ts +3 -3
  481. package/dist/commonjs/parsers/containers/isobmff/read.d.ts +1 -1
  482. package/dist/commonjs/parsers/containers/isobmff/read.js +7 -7
  483. package/dist/commonjs/parsers/containers/isobmff/take_pssh_out.js +3 -4
  484. package/dist/commonjs/parsers/containers/isobmff/utils.js +64 -40
  485. package/dist/commonjs/parsers/containers/matroska/index.d.ts +1 -1
  486. package/dist/commonjs/parsers/containers/matroska/utils.js +42 -29
  487. package/dist/commonjs/parsers/images/bif.js +17 -4
  488. package/dist/commonjs/parsers/manifest/dash/common/attach_trickmode_track.d.ts +1 -1
  489. package/dist/commonjs/parsers/manifest/dash/common/convert_supplemental_codecs.js +1 -3
  490. package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts +1 -1
  491. package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.js +1 -1
  492. package/dist/commonjs/parsers/manifest/dash/common/get_hdr_information.js +4 -12
  493. package/dist/commonjs/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts +1 -1
  494. package/dist/commonjs/parsers/manifest/dash/common/get_http_utc-timing_url.js +4 -5
  495. package/dist/commonjs/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts +1 -1
  496. package/dist/commonjs/parsers/manifest/dash/common/get_minimum_and_maximum_positions.js +5 -2
  497. package/dist/commonjs/parsers/manifest/dash/common/get_periods_time_infos.d.ts +1 -1
  498. package/dist/commonjs/parsers/manifest/dash/common/get_periods_time_infos.js +14 -10
  499. package/dist/commonjs/parsers/manifest/dash/common/index.d.ts +1 -1
  500. package/dist/commonjs/parsers/manifest/dash/common/indexes/base.d.ts +5 -5
  501. package/dist/commonjs/parsers/manifest/dash/common/indexes/base.js +39 -29
  502. package/dist/commonjs/parsers/manifest/dash/common/indexes/get_init_segment.d.ts +2 -2
  503. package/dist/commonjs/parsers/manifest/dash/common/indexes/get_init_segment.js +8 -4
  504. package/dist/commonjs/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts +4 -4
  505. package/dist/commonjs/parsers/manifest/dash/common/indexes/get_segments_from_timeline.js +14 -10
  506. package/dist/commonjs/parsers/manifest/dash/common/indexes/list.d.ts +2 -2
  507. package/dist/commonjs/parsers/manifest/dash/common/indexes/list.js +33 -20
  508. package/dist/commonjs/parsers/manifest/dash/common/indexes/template.d.ts +3 -3
  509. package/dist/commonjs/parsers/manifest/dash/common/indexes/template.js +58 -57
  510. package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +1 -1
  511. package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +2 -6
  512. package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +1 -1
  513. package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +11 -15
  514. package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts +1 -1
  515. package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.js +16 -9
  516. package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +1 -1
  517. package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +29 -19
  518. package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +7 -7
  519. package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +85 -66
  520. package/dist/commonjs/parsers/manifest/dash/common/indexes/tokens.js +2 -4
  521. package/dist/commonjs/parsers/manifest/dash/common/infer_adaptation_type.d.ts +1 -1
  522. package/dist/commonjs/parsers/manifest/dash/common/infer_adaptation_type.js +2 -2
  523. package/dist/commonjs/parsers/manifest/dash/common/manifest_bounds_calculator.js +9 -10
  524. package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.d.ts +5 -5
  525. package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.js +63 -56
  526. package/dist/commonjs/parsers/manifest/dash/common/parse_availability_start_time.d.ts +3 -2
  527. package/dist/commonjs/parsers/manifest/dash/common/parse_availability_start_time.js +5 -3
  528. package/dist/commonjs/parsers/manifest/dash/common/parse_mpd.d.ts +6 -6
  529. package/dist/commonjs/parsers/manifest/dash/common/parse_mpd.js +67 -41
  530. package/dist/commonjs/parsers/manifest/dash/common/parse_periods.d.ts +5 -5
  531. package/dist/commonjs/parsers/manifest/dash/common/parse_periods.js +54 -41
  532. package/dist/commonjs/parsers/manifest/dash/common/parse_representation_index.d.ts +5 -5
  533. package/dist/commonjs/parsers/manifest/dash/common/parse_representation_index.js +4 -6
  534. package/dist/commonjs/parsers/manifest/dash/common/parse_representations.d.ts +5 -5
  535. package/dist/commonjs/parsers/manifest/dash/common/parse_representations.js +66 -64
  536. package/dist/commonjs/parsers/manifest/dash/common/resolve_base_urls.d.ts +1 -1
  537. package/dist/commonjs/parsers/manifest/dash/common/resolve_base_urls.js +4 -2
  538. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts +1 -1
  539. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +88 -45
  540. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts +1 -1
  541. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/BaseURL.js +1 -2
  542. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts +1 -1
  543. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts +1 -1
  544. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts +1 -1
  545. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/EventStream.js +12 -6
  546. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts +1 -1
  547. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Initialization.js +4 -2
  548. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts +1 -1
  549. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/MPD.js +42 -25
  550. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts +1 -1
  551. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Period.js +12 -6
  552. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts +1 -1
  553. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Representation.js +42 -21
  554. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts +1 -1
  555. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.js +36 -18
  556. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts +1 -1
  557. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts +1 -1
  558. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.js +18 -8
  559. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts +1 -1
  560. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts +1 -1
  561. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.js +8 -4
  562. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts +8 -26
  563. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/utils.js +6 -14
  564. package/dist/commonjs/parsers/manifest/dash/js-parser/parse_from_document.d.ts +2 -2
  565. package/dist/commonjs/parsers/manifest/dash/js-parser/parse_from_document.js +10 -5
  566. package/dist/commonjs/parsers/manifest/dash/parsers_types.d.ts +1 -1
  567. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +2 -2
  568. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +52 -23
  569. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts +3 -2
  570. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +21 -25
  571. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts +2 -2
  572. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts +3 -3
  573. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.js +1 -1
  574. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts +3 -3
  575. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +4 -2
  576. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts +3 -2
  577. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.js +2 -4
  578. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts +3 -2
  579. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +4 -4
  580. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts +3 -2
  581. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +9 -6
  582. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts +3 -2
  583. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +13 -15
  584. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts +3 -3
  585. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.js +1 -1
  586. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts +2 -2
  587. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.js +5 -10
  588. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts +3 -2
  589. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts +2 -2
  590. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.js +11 -18
  591. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts +2 -2
  592. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.js +2 -4
  593. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts +3 -2
  594. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/XLink.js +4 -4
  595. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts +2 -2
  596. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/root.js +7 -3
  597. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/parsers_stack.js +5 -2
  598. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/types.d.ts +55 -55
  599. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/utils.d.ts +1 -1
  600. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/utils.js +7 -3
  601. package/dist/commonjs/parsers/manifest/local/parse_local_manifest.d.ts +2 -2
  602. package/dist/commonjs/parsers/manifest/local/parse_local_manifest.js +25 -16
  603. package/dist/commonjs/parsers/manifest/local/representation_index.d.ts +2 -2
  604. package/dist/commonjs/parsers/manifest/local/representation_index.js +8 -10
  605. package/dist/commonjs/parsers/manifest/metaplaylist/index.d.ts +1 -1
  606. package/dist/commonjs/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts +4 -4
  607. package/dist/commonjs/parsers/manifest/metaplaylist/metaplaylist_parser.js +59 -42
  608. package/dist/commonjs/parsers/manifest/metaplaylist/representation_index.d.ts +3 -3
  609. package/dist/commonjs/parsers/manifest/metaplaylist/representation_index.js +10 -7
  610. package/dist/commonjs/parsers/manifest/smooth/create_parser.d.ts +2 -2
  611. package/dist/commonjs/parsers/manifest/smooth/create_parser.js +130 -108
  612. package/dist/commonjs/parsers/manifest/smooth/get_codecs.js +3 -3
  613. package/dist/commonjs/parsers/manifest/smooth/index.d.ts +1 -1
  614. package/dist/commonjs/parsers/manifest/smooth/parse_C_nodes.js +9 -9
  615. package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.js +12 -8
  616. package/dist/commonjs/parsers/manifest/smooth/representation_index.d.ts +3 -3
  617. package/dist/commonjs/parsers/manifest/smooth/representation_index.js +37 -37
  618. package/dist/commonjs/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts +1 -1
  619. package/dist/commonjs/parsers/manifest/smooth/shared_smooth_segment_timeline.js +8 -9
  620. package/dist/commonjs/parsers/manifest/smooth/utils/add_segment_infos.js +10 -7
  621. package/dist/commonjs/parsers/manifest/smooth/utils/parseBoolean.d.ts +1 -1
  622. package/dist/commonjs/parsers/manifest/smooth/utils/parseBoolean.js +1 -1
  623. package/dist/commonjs/parsers/manifest/smooth/utils/tokens.d.ts +1 -1
  624. package/dist/commonjs/parsers/manifest/smooth/utils/tokens.js +1 -2
  625. package/dist/commonjs/parsers/manifest/types.d.ts +10 -3
  626. package/dist/commonjs/parsers/manifest/utils/check_manifest_ids.d.ts +1 -1
  627. package/dist/commonjs/parsers/manifest/utils/clear_timeline_from_position.d.ts +3 -2
  628. package/dist/commonjs/parsers/manifest/utils/clear_timeline_from_position.js +11 -7
  629. package/dist/commonjs/parsers/manifest/utils/get_first_time_from_adaptation.d.ts +1 -1
  630. package/dist/commonjs/parsers/manifest/utils/get_first_time_from_adaptation.js +5 -4
  631. package/dist/commonjs/parsers/manifest/utils/get_last_time_from_adaptation.d.ts +1 -1
  632. package/dist/commonjs/parsers/manifest/utils/get_last_time_from_adaptation.js +5 -4
  633. package/dist/commonjs/parsers/manifest/utils/get_maximum_positions.d.ts +2 -2
  634. package/dist/commonjs/parsers/manifest/utils/get_maximum_positions.js +11 -17
  635. package/dist/commonjs/parsers/manifest/utils/get_minimum_position.d.ts +2 -2
  636. package/dist/commonjs/parsers/manifest/utils/get_minimum_position.js +5 -11
  637. package/dist/commonjs/parsers/manifest/utils/index_helpers.js +4 -5
  638. package/dist/commonjs/parsers/manifest/utils/update_segment_timeline.d.ts +1 -1
  639. package/dist/commonjs/parsers/manifest/utils/update_segment_timeline.js +17 -17
  640. package/dist/commonjs/parsers/texttracks/index.d.ts +1 -1
  641. package/dist/commonjs/parsers/texttracks/sami/html.d.ts +1 -1
  642. package/dist/commonjs/parsers/texttracks/sami/html.js +17 -16
  643. package/dist/commonjs/parsers/texttracks/sami/native.d.ts +1 -1
  644. package/dist/commonjs/parsers/texttracks/sami/native.js +12 -18
  645. package/dist/commonjs/parsers/texttracks/srt/html.js +12 -10
  646. package/dist/commonjs/parsers/texttracks/srt/native.d.ts +1 -1
  647. package/dist/commonjs/parsers/texttracks/srt/native.js +2 -8
  648. package/dist/commonjs/parsers/texttracks/srt/parse_cue.js +4 -8
  649. package/dist/commonjs/parsers/texttracks/ttml/get_parameters.js +7 -8
  650. package/dist/commonjs/parsers/texttracks/ttml/get_time_delimiters.d.ts +1 -1
  651. package/dist/commonjs/parsers/texttracks/ttml/get_time_delimiters.js +9 -10
  652. package/dist/commonjs/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.js +2 -2
  653. package/dist/commonjs/parsers/texttracks/ttml/html/apply_extent.js +5 -9
  654. package/dist/commonjs/parsers/texttracks/ttml/html/apply_font_size.js +6 -7
  655. package/dist/commonjs/parsers/texttracks/ttml/html/apply_line_height.js +2 -2
  656. package/dist/commonjs/parsers/texttracks/ttml/html/apply_origin.js +5 -9
  657. package/dist/commonjs/parsers/texttracks/ttml/html/apply_padding.js +7 -11
  658. package/dist/commonjs/parsers/texttracks/ttml/html/create_element.d.ts +2 -2
  659. package/dist/commonjs/parsers/texttracks/ttml/html/create_element.js +29 -22
  660. package/dist/commonjs/parsers/texttracks/ttml/html/generate_css_test_outline.js +2 -2
  661. package/dist/commonjs/parsers/texttracks/ttml/html/parse_cue.d.ts +1 -1
  662. package/dist/commonjs/parsers/texttracks/ttml/html/parse_cue.js +5 -3
  663. package/dist/commonjs/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts +1 -1
  664. package/dist/commonjs/parsers/texttracks/ttml/html/ttml_color_to_css_color.js +39 -23
  665. package/dist/commonjs/parsers/texttracks/ttml/native/parse_cue.d.ts +2 -2
  666. package/dist/commonjs/parsers/texttracks/ttml/native/parse_cue.js +14 -13
  667. package/dist/commonjs/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts +1 -1
  668. package/dist/commonjs/parsers/texttracks/ttml/parse_ttml.d.ts +3 -3
  669. package/dist/commonjs/parsers/texttracks/ttml/parse_ttml.js +27 -15
  670. package/dist/commonjs/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts +1 -1
  671. package/dist/commonjs/parsers/texttracks/ttml/time_parsing.d.ts +1 -1
  672. package/dist/commonjs/parsers/texttracks/ttml/time_parsing.js +2 -2
  673. package/dist/commonjs/parsers/texttracks/ttml/xml_utils.js +2 -1
  674. package/dist/commonjs/parsers/texttracks/types.d.ts +1 -1
  675. package/dist/commonjs/parsers/texttracks/webvtt/get_style_blocks.js +2 -1
  676. package/dist/commonjs/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts +1 -1
  677. package/dist/commonjs/parsers/texttracks/webvtt/html/create_default_style_elements.d.ts +1 -1
  678. package/dist/commonjs/parsers/texttracks/webvtt/html/create_style_attribute.js +6 -12
  679. package/dist/commonjs/parsers/texttracks/webvtt/html/create_styled_element.d.ts +1 -1
  680. package/dist/commonjs/parsers/texttracks/webvtt/html/create_styled_element.js +7 -8
  681. package/dist/commonjs/parsers/texttracks/webvtt/html/parse_style_block.js +4 -4
  682. package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_to_div.d.ts +1 -1
  683. package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_to_div.js +1 -1
  684. package/dist/commonjs/parsers/texttracks/webvtt/html/to_html.d.ts +1 -1
  685. package/dist/commonjs/parsers/texttracks/webvtt/html/to_html.js +4 -10
  686. package/dist/commonjs/parsers/texttracks/webvtt/native/parse_vtt_to_cues.d.ts +1 -1
  687. package/dist/commonjs/parsers/texttracks/webvtt/native/parse_vtt_to_cues.js +5 -9
  688. package/dist/commonjs/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts +1 -1
  689. package/dist/commonjs/parsers/texttracks/webvtt/native/to_native_cue.d.ts +2 -2
  690. package/dist/commonjs/parsers/texttracks/webvtt/native/to_native_cue.js +3 -3
  691. package/dist/commonjs/parsers/texttracks/webvtt/parse_cue_block.js +9 -5
  692. package/dist/commonjs/parsers/texttracks/webvtt/parse_timestamp.js +1 -2
  693. package/dist/commonjs/parsers/texttracks/webvtt/utils.js +6 -6
  694. package/dist/commonjs/playback_observer/index.d.ts +6 -0
  695. package/dist/commonjs/playback_observer/index.js +5 -0
  696. package/dist/commonjs/playback_observer/media_element_playback_observer.d.ts +203 -0
  697. package/dist/commonjs/playback_observer/media_element_playback_observer.js +685 -0
  698. package/dist/commonjs/playback_observer/types.d.ts +223 -0
  699. package/dist/commonjs/playback_observer/types.js +2 -0
  700. package/dist/commonjs/playback_observer/utils/generate_read_only_observer.d.ts +11 -0
  701. package/dist/commonjs/playback_observer/utils/generate_read_only_observer.js +44 -0
  702. package/dist/commonjs/playback_observer/utils/observation_position.d.ts +87 -0
  703. package/dist/commonjs/playback_observer/utils/observation_position.js +88 -0
  704. package/dist/commonjs/playback_observer/worker_playback_observer.d.ts +72 -0
  705. package/dist/commonjs/playback_observer/worker_playback_observer.js +49 -0
  706. package/dist/commonjs/public_types.d.ts +75 -33
  707. package/dist/commonjs/public_types.js +2 -13
  708. package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.d.ts +3 -3
  709. package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.js +17 -18
  710. package/dist/commonjs/tools/index.d.ts +2 -1
  711. package/dist/commonjs/tools/index.js +3 -1
  712. package/dist/commonjs/tools/parseBIFThumbnails/index.js +33 -0
  713. package/dist/commonjs/transports/dash/add_segment_integrity_checks_to_loader.d.ts +1 -1
  714. package/dist/commonjs/transports/dash/add_segment_integrity_checks_to_loader.js +2 -3
  715. package/dist/commonjs/transports/dash/construct_segment_url.d.ts +2 -2
  716. package/dist/commonjs/transports/dash/construct_segment_url.js +7 -3
  717. package/dist/commonjs/transports/dash/extract_complete_chunks.d.ts +1 -1
  718. package/dist/commonjs/transports/dash/extract_complete_chunks.js +37 -8
  719. package/dist/commonjs/transports/dash/get_events_out_of_emsgs.d.ts +2 -2
  720. package/dist/commonjs/transports/dash/get_events_out_of_emsgs.js +12 -11
  721. package/dist/commonjs/transports/dash/init_segment_loader.d.ts +3 -3
  722. package/dist/commonjs/transports/dash/init_segment_loader.js +46 -22
  723. package/dist/commonjs/transports/dash/low_latency_segment_loader.d.ts +2 -2
  724. package/dist/commonjs/transports/dash/low_latency_segment_loader.js +18 -11
  725. package/dist/commonjs/transports/dash/manifest_parser.d.ts +2 -2
  726. package/dist/commonjs/transports/dash/manifest_parser.js +36 -24
  727. package/dist/commonjs/transports/dash/pipelines.d.ts +1 -1
  728. package/dist/commonjs/transports/dash/pipelines.js +15 -12
  729. package/dist/commonjs/transports/dash/segment_loader.d.ts +4 -4
  730. package/dist/commonjs/transports/dash/segment_loader.js +35 -21
  731. package/dist/commonjs/transports/dash/segment_parser.d.ts +2 -2
  732. package/dist/commonjs/transports/dash/segment_parser.js +54 -22
  733. package/dist/commonjs/transports/dash/text_loader.d.ts +2 -2
  734. package/dist/commonjs/transports/dash/text_loader.js +21 -18
  735. package/dist/commonjs/transports/dash/text_parser.d.ts +2 -2
  736. package/dist/commonjs/transports/dash/text_parser.js +49 -23
  737. package/dist/commonjs/transports/index.d.ts +1 -1
  738. package/dist/commonjs/transports/index.js +0 -15
  739. package/dist/commonjs/transports/local/pipelines.d.ts +1 -1
  740. package/dist/commonjs/transports/local/pipelines.js +15 -10
  741. package/dist/commonjs/transports/local/segment_loader.d.ts +3 -3
  742. package/dist/commonjs/transports/local/segment_loader.js +14 -6
  743. package/dist/commonjs/transports/local/segment_parser.d.ts +1 -1
  744. package/dist/commonjs/transports/local/segment_parser.js +30 -12
  745. package/dist/commonjs/transports/local/text_parser.d.ts +1 -1
  746. package/dist/commonjs/transports/local/text_parser.js +48 -18
  747. package/dist/commonjs/transports/metaplaylist/manifest_loader.d.ts +4 -4
  748. package/dist/commonjs/transports/metaplaylist/manifest_loader.js +9 -5
  749. package/dist/commonjs/transports/metaplaylist/pipelines.d.ts +1 -1
  750. package/dist/commonjs/transports/metaplaylist/pipelines.js +38 -22
  751. package/dist/commonjs/transports/smooth/extract_timings_infos.d.ts +2 -2
  752. package/dist/commonjs/transports/smooth/extract_timings_infos.js +14 -13
  753. package/dist/commonjs/transports/smooth/is_mp4_embedded_track.d.ts +1 -1
  754. package/dist/commonjs/transports/smooth/is_mp4_embedded_track.js +1 -1
  755. package/dist/commonjs/transports/smooth/isobmff/create_audio_init_segment.d.ts +0 -1
  756. package/dist/commonjs/transports/smooth/isobmff/create_audio_init_segment.js +3 -4
  757. package/dist/commonjs/transports/smooth/isobmff/create_boxes.js +22 -31
  758. package/dist/commonjs/transports/smooth/isobmff/create_init_segment.js +1 -1
  759. package/dist/commonjs/transports/smooth/isobmff/get_aaces_header.js +4 -16
  760. package/dist/commonjs/transports/smooth/isobmff/parse_tfrf.js +1 -1
  761. package/dist/commonjs/transports/smooth/isobmff/parse_tfxd.js +1 -1
  762. package/dist/commonjs/transports/smooth/isobmff/patch_segment.js +12 -11
  763. package/dist/commonjs/transports/smooth/pipelines.d.ts +1 -1
  764. package/dist/commonjs/transports/smooth/pipelines.js +101 -60
  765. package/dist/commonjs/transports/smooth/segment_loader.d.ts +3 -3
  766. package/dist/commonjs/transports/smooth/segment_loader.js +50 -27
  767. package/dist/commonjs/transports/smooth/utils.d.ts +4 -4
  768. package/dist/commonjs/transports/smooth/utils.js +9 -5
  769. package/dist/commonjs/transports/types.d.ts +22 -27
  770. package/dist/commonjs/transports/utils/byte_range.js +1 -2
  771. package/dist/commonjs/transports/utils/call_custom_manifest_loader.d.ts +3 -3
  772. package/dist/commonjs/transports/utils/call_custom_manifest_loader.js +10 -6
  773. package/dist/commonjs/transports/utils/check_isobmff_integrity.js +3 -3
  774. package/dist/commonjs/transports/utils/find_complete_box.js +2 -1
  775. package/dist/commonjs/transports/utils/generate_manifest_loader.d.ts +3 -3
  776. package/dist/commonjs/transports/utils/generate_manifest_loader.js +20 -8
  777. package/dist/commonjs/transports/utils/get_isobmff_timing_infos.d.ts +2 -2
  778. package/dist/commonjs/transports/utils/get_isobmff_timing_infos.js +12 -11
  779. package/dist/commonjs/transports/utils/infer_segment_container.d.ts +1 -1
  780. package/dist/commonjs/transports/utils/infer_segment_container.js +1 -3
  781. package/dist/commonjs/transports/utils/parse_text_track.d.ts +4 -4
  782. package/dist/commonjs/transports/utils/parse_text_track.js +4 -7
  783. package/dist/commonjs/utils/array_includes.js +2 -6
  784. package/dist/commonjs/utils/assert.d.ts +41 -0
  785. package/dist/commonjs/utils/assert.js +71 -8
  786. package/dist/commonjs/utils/base64.js +87 -29
  787. package/dist/commonjs/utils/byte_parsing.js +64 -56
  788. package/dist/commonjs/utils/cancellable_sleep.d.ts +1 -1
  789. package/dist/commonjs/utils/create_cancellable_promise.d.ts +1 -1
  790. package/dist/commonjs/utils/deep_merge.js +4 -4
  791. package/dist/commonjs/utils/event_emitter.d.ts +1 -1
  792. package/dist/commonjs/utils/event_emitter.js +7 -2
  793. package/dist/commonjs/utils/get_fuzzed_delay.js +1 -1
  794. package/dist/commonjs/utils/global_scope.d.ts +9 -0
  795. package/dist/commonjs/utils/global_scope.js +22 -0
  796. package/dist/commonjs/utils/hash_buffer.js +1 -1
  797. package/dist/commonjs/utils/languages/ISO_639-1_to_ISO_639-3.js +182 -182
  798. package/dist/commonjs/utils/languages/ISO_639-2_to_ISO_639-3.js +19 -19
  799. package/dist/commonjs/utils/languages/normalize.js +4 -2
  800. package/dist/commonjs/utils/logger.d.ts +13 -3
  801. package/dist/commonjs/utils/logger.js +73 -26
  802. package/dist/commonjs/utils/monotonic_timestamp.d.ts +20 -4
  803. package/dist/commonjs/utils/monotonic_timestamp.js +22 -5
  804. package/dist/commonjs/utils/object_assign.d.ts +29 -5
  805. package/dist/commonjs/utils/object_assign.js +17 -8
  806. package/dist/commonjs/utils/object_values.d.ts +1 -1
  807. package/dist/commonjs/utils/object_values.js +2 -3
  808. package/dist/commonjs/utils/queue_microtask.js +3 -3
  809. package/dist/commonjs/utils/ranges.js +22 -29
  810. package/dist/commonjs/utils/reference.d.ts +1 -1
  811. package/dist/commonjs/utils/reference.js +1 -3
  812. package/dist/commonjs/utils/request/fetch.d.ts +1 -1
  813. package/dist/commonjs/utils/request/fetch.js +41 -30
  814. package/dist/commonjs/utils/request/index.d.ts +2 -1
  815. package/dist/commonjs/utils/request/index.js +4 -1
  816. package/dist/commonjs/utils/request/request_error.d.ts +47 -0
  817. package/dist/commonjs/utils/request/request_error.js +87 -0
  818. package/dist/commonjs/utils/request/xhr.d.ts +5 -5
  819. package/dist/commonjs/utils/request/xhr.js +35 -24
  820. package/dist/commonjs/utils/retry_promise_with_backoff.d.ts +11 -3
  821. package/dist/commonjs/utils/retry_promise_with_backoff.js +18 -4
  822. package/dist/commonjs/utils/slice_uint8array.js +3 -3
  823. package/dist/commonjs/utils/starts_with.js +3 -3
  824. package/dist/commonjs/utils/string_parsing.js +17 -19
  825. package/dist/commonjs/utils/sync_or_async.d.ts +70 -0
  826. package/dist/commonjs/utils/sync_or_async.js +51 -0
  827. package/dist/commonjs/utils/task_canceller.js +1 -2
  828. package/dist/commonjs/utils/wrapInPromise.d.ts +1 -1
  829. package/dist/commonjs/worker_entry_point.d.ts +5 -0
  830. package/dist/commonjs/worker_entry_point.js +8 -0
  831. package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.d.ts +3 -0
  832. package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.js +3 -0
  833. package/dist/es2017/__GENERATED_CODE/embedded_worker.d.ts +3 -0
  834. package/dist/es2017/__GENERATED_CODE/embedded_worker.js +3 -0
  835. package/dist/es2017/__GENERATED_CODE/index.d.ts +2 -0
  836. package/dist/es2017/__GENERATED_CODE/index.js +2 -0
  837. package/dist/es2017/compat/add_class_name.js +4 -3
  838. package/dist/es2017/compat/add_text_track.d.ts +1 -1
  839. package/dist/es2017/compat/add_text_track.js +3 -2
  840. package/dist/es2017/compat/browser_compatibility_types.js +14 -8
  841. package/dist/es2017/compat/browser_detection.d.ts +3 -1
  842. package/dist/es2017/compat/browser_detection.js +28 -10
  843. package/dist/es2017/compat/can_reuse_media_keys.js +1 -1
  844. package/dist/es2017/compat/change_source_buffer_type.d.ts +1 -1
  845. package/dist/es2017/compat/eme/close_session.d.ts +1 -1
  846. package/dist/es2017/compat/eme/close_session.js +17 -13
  847. package/dist/es2017/compat/eme/custom_key_system_access.d.ts +1 -1
  848. package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.d.ts +1 -1
  849. package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.js +14 -7
  850. package/dist/es2017/compat/eme/custom_media_keys/index.js +1 -1
  851. package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +1 -1
  852. package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.js +1 -1
  853. package/dist/es2017/compat/eme/custom_media_keys/ms_media_keys_constructor.js +1 -1
  854. package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +2 -2
  855. package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.js +10 -11
  856. package/dist/es2017/compat/eme/custom_media_keys/types.d.ts +1 -1
  857. package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.d.ts +1 -1
  858. package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.js +5 -9
  859. package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts +1 -1
  860. package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +4 -4
  861. package/dist/es2017/compat/eme/eme-api-implementation.d.ts +3 -3
  862. package/dist/es2017/compat/eme/eme-api-implementation.js +17 -15
  863. package/dist/es2017/compat/eme/generate_key_request.d.ts +1 -1
  864. package/dist/es2017/compat/eme/generate_key_request.js +17 -20
  865. package/dist/es2017/compat/eme/get_init_data.js +5 -7
  866. package/dist/es2017/compat/eme/get_uuid_kid_from_keystatus_kid.js +2 -3
  867. package/dist/es2017/compat/eme/get_webkit_fairplay_initdata.js +12 -13
  868. package/dist/es2017/compat/eme/load_session.d.ts +1 -1
  869. package/dist/es2017/compat/enable_audio_track.d.ts +1 -1
  870. package/dist/es2017/compat/event_listeners.d.ts +4 -4
  871. package/dist/es2017/compat/event_listeners.js +40 -37
  872. package/dist/es2017/compat/has_mse_in_worker.d.ts +2 -0
  873. package/dist/es2017/compat/has_mse_in_worker.js +4 -0
  874. package/dist/es2017/compat/has_webassembly.d.ts +6 -0
  875. package/dist/es2017/compat/has_webassembly.js +6 -0
  876. package/dist/es2017/compat/is_codec_supported.js +7 -1
  877. package/dist/es2017/compat/is_vtt_cue.d.ts +1 -1
  878. package/dist/es2017/compat/is_vtt_cue.js +1 -1
  879. package/dist/es2017/compat/make_vtt_cue.d.ts +1 -1
  880. package/dist/es2017/compat/make_vtt_cue.js +1 -1
  881. package/dist/es2017/compat/on_height_width_change.d.ts +2 -2
  882. package/dist/es2017/compat/on_height_width_change.js +2 -2
  883. package/dist/es2017/compat/patch_webkit_source_buffer.js +30 -30
  884. package/dist/es2017/compat/should_favour_custom_safari_EME.js +2 -2
  885. package/dist/es2017/compat/should_reload_media_source_on_decipherability_update.js +1 -2
  886. package/dist/es2017/config.d.ts +7 -18
  887. package/dist/es2017/config.js +4 -12
  888. package/dist/es2017/core/adaptive/adaptive_representation_selector.d.ts +26 -22
  889. package/dist/es2017/core/adaptive/adaptive_representation_selector.js +42 -30
  890. package/dist/es2017/core/adaptive/buffer_based_chooser.d.ts +1 -1
  891. package/dist/es2017/core/adaptive/buffer_based_chooser.js +14 -12
  892. package/dist/es2017/core/adaptive/guess_based_chooser.d.ts +6 -6
  893. package/dist/es2017/core/adaptive/guess_based_chooser.js +8 -7
  894. package/dist/es2017/core/adaptive/index.d.ts +2 -2
  895. package/dist/es2017/core/adaptive/network_analyzer.d.ts +6 -6
  896. package/dist/es2017/core/adaptive/network_analyzer.js +45 -41
  897. package/dist/es2017/core/adaptive/utils/bandwidth_estimator.js +1 -1
  898. package/dist/es2017/core/adaptive/utils/ewma.js +1 -2
  899. package/dist/es2017/core/adaptive/utils/filter_by_bitrate.d.ts +2 -2
  900. package/dist/es2017/core/adaptive/utils/filter_by_resolution.d.ts +2 -2
  901. package/dist/es2017/core/adaptive/utils/filter_by_resolution.js +2 -4
  902. package/dist/es2017/core/adaptive/utils/get_buffer_levels.js +8 -5
  903. package/dist/es2017/core/adaptive/utils/last_estimate_storage.d.ts +3 -3
  904. package/dist/es2017/core/adaptive/utils/pending_requests_store.d.ts +5 -5
  905. package/dist/es2017/core/adaptive/utils/pending_requests_store.js +5 -6
  906. package/dist/es2017/core/adaptive/utils/representation_score_calculator.d.ts +7 -7
  907. package/dist/es2017/core/adaptive/utils/representation_score_calculator.js +10 -8
  908. package/dist/es2017/core/adaptive/utils/select_optimal_representation.d.ts +4 -4
  909. package/dist/es2017/core/adaptive/utils/select_optimal_representation.js +2 -2
  910. package/dist/es2017/core/fetchers/cdn_prioritizer.d.ts +2 -2
  911. package/dist/es2017/core/fetchers/cdn_prioritizer.js +5 -6
  912. package/dist/es2017/core/fetchers/manifest/index.d.ts +1 -1
  913. package/dist/es2017/core/fetchers/manifest/manifest_fetcher.d.ts +3 -3
  914. package/dist/es2017/core/fetchers/manifest/manifest_fetcher.js +76 -76
  915. package/dist/es2017/core/fetchers/segment/index.d.ts +1 -1
  916. package/dist/es2017/core/fetchers/segment/initialization_segment_cache.d.ts +42 -0
  917. package/dist/es2017/core/fetchers/segment/initialization_segment_cache.js +48 -0
  918. package/dist/es2017/core/fetchers/segment/prioritized_segment_fetcher.d.ts +4 -3
  919. package/dist/es2017/core/fetchers/segment/segment_fetcher.d.ts +12 -12
  920. package/dist/es2017/core/fetchers/segment/segment_fetcher.js +54 -39
  921. package/dist/es2017/core/fetchers/segment/segment_fetcher_creator.d.ts +5 -5
  922. package/dist/es2017/core/fetchers/segment/segment_fetcher_creator.js +5 -3
  923. package/dist/es2017/core/fetchers/segment/task_prioritizer.d.ts +1 -1
  924. package/dist/es2017/core/fetchers/segment/task_prioritizer.js +22 -21
  925. package/dist/es2017/core/fetchers/utils/error_selector.d.ts +1 -2
  926. package/dist/es2017/core/fetchers/utils/error_selector.js +2 -2
  927. package/dist/es2017/core/fetchers/utils/schedule_request.d.ts +3 -3
  928. package/dist/es2017/core/fetchers/utils/schedule_request.js +23 -23
  929. package/dist/es2017/core/main/common/DecipherabilityFreezeDetector.d.ts +79 -0
  930. package/dist/es2017/core/main/common/DecipherabilityFreezeDetector.js +91 -0
  931. package/dist/es2017/core/main/common/content_time_boundaries_observer.d.ts +191 -0
  932. package/dist/es2017/core/main/common/content_time_boundaries_observer.js +467 -0
  933. package/dist/es2017/core/main/common/create_content_time_boundaries_observer.d.ts +27 -0
  934. package/dist/es2017/core/main/common/create_content_time_boundaries_observer.js +41 -0
  935. package/dist/es2017/core/main/common/get_buffered_data_per_media_buffer.d.ts +14 -0
  936. package/dist/es2017/core/main/common/get_buffered_data_per_media_buffer.js +34 -0
  937. package/dist/es2017/core/main/worker/content_preparer.d.ts +93 -0
  938. package/dist/es2017/core/main/worker/content_preparer.js +239 -0
  939. package/dist/es2017/core/main/worker/globals.d.ts +13 -0
  940. package/dist/es2017/core/main/worker/globals.js +18 -0
  941. package/dist/es2017/core/main/worker/index.d.ts +2 -0
  942. package/dist/es2017/core/main/worker/index.js +2 -0
  943. package/dist/es2017/core/main/worker/send_message.d.ts +3 -0
  944. package/dist/es2017/core/main/worker/send_message.js +20 -0
  945. package/dist/es2017/core/main/worker/track_choice_setter.d.ts +19 -0
  946. package/dist/es2017/core/main/worker/track_choice_setter.js +114 -0
  947. package/dist/es2017/core/main/worker/worker_main.d.ts +1 -0
  948. package/dist/es2017/core/main/worker/worker_main.js +703 -0
  949. package/dist/es2017/core/main/worker/worker_text_displayer_interface.d.ts +64 -0
  950. package/dist/es2017/core/main/worker/worker_text_displayer_interface.js +120 -0
  951. package/dist/es2017/core/segment_sinks/garbage_collector.d.ts +43 -0
  952. package/dist/es2017/core/segment_sinks/garbage_collector.js +143 -0
  953. package/dist/es2017/core/segment_sinks/implementations/audio_video/audio_video_segment_buffer.d.ts +135 -0
  954. package/dist/es2017/core/segment_sinks/implementations/audio_video/audio_video_segment_buffer.js +265 -0
  955. package/dist/es2017/core/segment_sinks/implementations/audio_video/index.d.ts +17 -0
  956. package/dist/es2017/core/segment_sinks/implementations/audio_video/index.js +17 -0
  957. package/dist/es2017/core/segment_sinks/implementations/index.d.ts +19 -0
  958. package/dist/es2017/core/segment_sinks/implementations/index.js +18 -0
  959. package/dist/es2017/core/segment_sinks/implementations/text/index.d.ts +3 -0
  960. package/dist/es2017/core/segment_sinks/implementations/text/index.js +2 -0
  961. package/dist/es2017/core/segment_sinks/implementations/text/text_segment_buffer.d.ts +90 -0
  962. package/dist/es2017/core/segment_sinks/implementations/text/text_segment_buffer.js +156 -0
  963. package/dist/es2017/core/segment_sinks/implementations/types.d.ts +307 -0
  964. package/dist/es2017/core/segment_sinks/implementations/types.js +112 -0
  965. package/dist/es2017/core/segment_sinks/implementations/utils/manual_time_ranges.js +63 -0
  966. package/dist/es2017/core/segment_sinks/index.d.ts +21 -0
  967. package/dist/es2017/core/segment_sinks/index.js +21 -0
  968. package/dist/es2017/core/segment_sinks/inventory/buffered_history.d.ts +89 -0
  969. package/dist/es2017/core/segment_sinks/inventory/buffered_history.js +88 -0
  970. package/dist/es2017/core/segment_sinks/inventory/index.d.ts +21 -0
  971. package/dist/es2017/core/segment_sinks/inventory/index.js +18 -0
  972. package/dist/es2017/core/segment_sinks/inventory/segment_inventory.d.ts +238 -0
  973. package/dist/es2017/core/segment_sinks/inventory/segment_inventory.js +868 -0
  974. package/dist/es2017/core/segment_sinks/inventory/types.d.ts +27 -0
  975. package/dist/es2017/core/segment_sinks/inventory/utils.d.ts +33 -0
  976. package/dist/es2017/core/segment_sinks/inventory/utils.js +48 -0
  977. package/dist/es2017/core/segment_sinks/segment_buffers_store.d.ts +171 -0
  978. package/dist/es2017/core/segment_sinks/segment_buffers_store.js +281 -0
  979. package/dist/es2017/core/stream/adaptation/adaptation_stream.d.ts +4 -4
  980. package/dist/es2017/core/stream/adaptation/adaptation_stream.js +53 -35
  981. package/dist/es2017/core/stream/adaptation/get_representations_switch_strategy.d.ts +23 -9
  982. package/dist/es2017/core/stream/adaptation/get_representations_switch_strategy.js +51 -79
  983. package/dist/es2017/core/stream/adaptation/types.d.ts +34 -45
  984. package/dist/es2017/core/stream/index.d.ts +3 -2
  985. package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.d.ts +8 -8
  986. package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.js +6 -7
  987. package/dist/es2017/core/stream/orchestrator/stream_orchestrator.d.ts +20 -19
  988. package/dist/es2017/core/stream/orchestrator/stream_orchestrator.js +78 -58
  989. package/dist/es2017/core/stream/period/period_stream.d.ts +5 -5
  990. package/dist/es2017/core/stream/period/period_stream.js +119 -65
  991. package/dist/es2017/core/stream/period/types.d.ts +29 -20
  992. package/dist/es2017/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +13 -13
  993. package/dist/es2017/core/stream/period/utils/get_adaptation_switch_strategy.js +60 -93
  994. package/dist/es2017/core/stream/representation/representation_stream.d.ts +5 -5
  995. package/dist/es2017/core/stream/representation/representation_stream.js +50 -35
  996. package/dist/es2017/core/stream/representation/types.d.ts +52 -25
  997. package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.d.ts +12 -9
  998. package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.js +35 -19
  999. package/dist/es2017/core/stream/representation/utils/check_for_discontinuity.d.ts +7 -7
  1000. package/dist/es2017/core/stream/representation/utils/check_for_discontinuity.js +16 -18
  1001. package/dist/es2017/core/stream/representation/utils/downloading_queue.d.ts +10 -10
  1002. package/dist/es2017/core/stream/representation/utils/downloading_queue.js +11 -11
  1003. package/dist/es2017/core/stream/representation/utils/get_buffer_status.d.ts +11 -11
  1004. package/dist/es2017/core/stream/representation/utils/get_buffer_status.js +57 -38
  1005. package/dist/es2017/core/stream/representation/utils/get_needed_segments.d.ts +7 -8
  1006. package/dist/es2017/core/stream/representation/utils/get_needed_segments.js +28 -37
  1007. package/dist/es2017/core/stream/representation/utils/push_init_segment.d.ts +14 -12
  1008. package/dist/es2017/core/stream/representation/utils/push_init_segment.js +8 -10
  1009. package/dist/es2017/core/stream/representation/utils/push_media_segment.d.ts +15 -13
  1010. package/dist/es2017/core/stream/representation/utils/push_media_segment.js +14 -16
  1011. package/dist/es2017/core/types.d.ts +8 -0
  1012. package/dist/es2017/default_config.d.ts +31 -34
  1013. package/dist/es2017/default_config.js +61 -61
  1014. package/dist/es2017/errors/encrypted_media_error.d.ts +19 -2
  1015. package/dist/es2017/errors/encrypted_media_error.js +16 -1
  1016. package/dist/es2017/errors/error_codes.d.ts +4 -3
  1017. package/dist/es2017/errors/error_codes.js +3 -7
  1018. package/dist/es2017/errors/format_error.d.ts +2 -2
  1019. package/dist/es2017/errors/format_error.js +2 -3
  1020. package/dist/es2017/errors/index.d.ts +7 -8
  1021. package/dist/es2017/errors/index.js +2 -3
  1022. package/dist/es2017/errors/is_known_error.d.ts +1 -1
  1023. package/dist/es2017/errors/is_known_error.js +2 -2
  1024. package/dist/es2017/errors/media_error.d.ts +22 -19
  1025. package/dist/es2017/errors/media_error.js +18 -20
  1026. package/dist/es2017/errors/network_error.d.ts +16 -2
  1027. package/dist/es2017/errors/network_error.js +17 -3
  1028. package/dist/es2017/errors/other_error.d.ts +15 -1
  1029. package/dist/es2017/errors/other_error.js +11 -1
  1030. package/dist/es2017/errors/source_buffer_error.d.ts +40 -0
  1031. package/dist/es2017/errors/source_buffer_error.js +43 -0
  1032. package/dist/es2017/errors/worker_initialization_error.d.ts +19 -0
  1033. package/dist/es2017/errors/worker_initialization_error.js +22 -0
  1034. package/dist/es2017/experimental/features/index.d.ts +1 -2
  1035. package/dist/es2017/experimental/features/index.js +1 -2
  1036. package/dist/es2017/experimental/features/local.d.ts +1 -1
  1037. package/dist/es2017/experimental/features/local.js +4 -3
  1038. package/dist/es2017/experimental/features/metaplaylist.d.ts +1 -1
  1039. package/dist/es2017/experimental/features/metaplaylist.js +4 -3
  1040. package/dist/es2017/experimental/features/multi_thread.d.ts +8 -0
  1041. package/dist/es2017/experimental/features/multi_thread.js +10 -0
  1042. package/dist/es2017/experimental/index.d.ts +1 -1
  1043. package/dist/es2017/experimental/index.js +1 -1
  1044. package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/dash.d.ts +1 -1
  1045. package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts +1 -1
  1046. package/dist/es2017/experimental/tools/VideoThumbnailLoader/index.d.ts +1 -1
  1047. package/dist/es2017/experimental/tools/VideoThumbnailLoader/index.js +2 -2
  1048. package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +5 -5
  1049. package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +11 -15
  1050. package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +4 -4
  1051. package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +29 -22
  1052. package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +3 -5
  1053. package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +6 -7
  1054. package/dist/es2017/experimental/tools/VideoThumbnailLoader/types.d.ts +6 -6
  1055. package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts +3 -3
  1056. package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +29 -32
  1057. package/dist/es2017/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +13 -23
  1058. package/dist/es2017/experimental/tools/createMetaplaylist/index.d.ts +1 -1
  1059. package/dist/es2017/experimental/tools/createMetaplaylist/index.js +8 -14
  1060. package/dist/es2017/experimental/tools/index.d.ts +1 -2
  1061. package/dist/es2017/experimental/tools/index.js +1 -2
  1062. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/index.d.ts +1 -1
  1063. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/index.js +9 -13
  1064. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.d.ts +4 -3
  1065. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.js +7 -4
  1066. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/capabilities.d.ts +1 -1
  1067. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/capabilities.js +10 -47
  1068. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/index.d.ts +2 -0
  1069. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.d.ts +2 -1
  1070. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.js +9 -6
  1071. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts +2 -1
  1072. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.js +22 -14
  1073. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts +2 -1
  1074. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +26 -22
  1075. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.js +10 -10
  1076. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/index.d.ts +1 -1
  1077. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts +2 -1
  1078. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.js +6 -7
  1079. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.d.ts +1 -1
  1080. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.js +6 -11
  1081. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.d.ts +2 -1
  1082. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.js +3 -4
  1083. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts +2 -1
  1084. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +5 -5
  1085. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/types.d.ts +2 -2
  1086. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/utils.d.ts +1 -1
  1087. package/dist/es2017/experimental/tools/mediaCapabilitiesProber/utils.js +8 -7
  1088. package/dist/es2017/features/add_features.d.ts +1 -1
  1089. package/dist/es2017/features/features_object.d.ts +1 -1
  1090. package/dist/es2017/features/features_object.js +9 -6
  1091. package/dist/es2017/features/index.d.ts +1 -1
  1092. package/dist/es2017/features/index.js +1 -1
  1093. package/dist/es2017/features/list/dash.d.ts +1 -1
  1094. package/dist/es2017/features/list/dash.js +4 -3
  1095. package/dist/es2017/features/list/dash_wasm.d.ts +23 -0
  1096. package/dist/es2017/features/list/dash_wasm.js +35 -0
  1097. package/dist/es2017/features/list/debug_element.d.ts +8 -0
  1098. package/dist/es2017/features/list/debug_element.js +10 -0
  1099. package/dist/es2017/features/list/directfile.d.ts +1 -1
  1100. package/dist/es2017/features/list/directfile.js +3 -5
  1101. package/dist/es2017/features/list/eme.d.ts +1 -1
  1102. package/dist/es2017/features/list/eme.js +1 -1
  1103. package/dist/es2017/features/list/html_sami_parser.d.ts +1 -1
  1104. package/dist/es2017/features/list/html_sami_parser.js +2 -2
  1105. package/dist/es2017/features/list/html_srt_parser.d.ts +1 -1
  1106. package/dist/es2017/features/list/html_srt_parser.js +2 -2
  1107. package/dist/es2017/features/list/html_text_buffer.d.ts +1 -1
  1108. package/dist/es2017/features/list/html_text_buffer.js +2 -2
  1109. package/dist/es2017/features/list/html_ttml_parser.d.ts +1 -1
  1110. package/dist/es2017/features/list/html_ttml_parser.js +2 -2
  1111. package/dist/es2017/features/list/html_vtt_parser.d.ts +1 -1
  1112. package/dist/es2017/features/list/html_vtt_parser.js +2 -2
  1113. package/dist/es2017/features/list/index.d.ts +3 -0
  1114. package/dist/es2017/features/list/index.js +3 -0
  1115. package/dist/es2017/features/list/media_source_main.d.ts +8 -0
  1116. package/dist/es2017/features/list/media_source_main.js +10 -0
  1117. package/dist/es2017/features/list/native_sami_parser.d.ts +1 -1
  1118. package/dist/es2017/features/list/native_sami_parser.js +2 -3
  1119. package/dist/es2017/features/list/native_srt_parser.d.ts +1 -1
  1120. package/dist/es2017/features/list/native_srt_parser.js +2 -3
  1121. package/dist/es2017/features/list/native_text_buffer.d.ts +1 -1
  1122. package/dist/es2017/features/list/native_text_buffer.js +2 -3
  1123. package/dist/es2017/features/list/native_ttml_parser.d.ts +1 -1
  1124. package/dist/es2017/features/list/native_ttml_parser.js +2 -3
  1125. package/dist/es2017/features/list/native_vtt_parser.d.ts +1 -1
  1126. package/dist/es2017/features/list/native_vtt_parser.js +2 -3
  1127. package/dist/es2017/features/list/smooth.d.ts +2 -2
  1128. package/dist/es2017/features/list/smooth.js +8 -5
  1129. package/dist/es2017/features/types.d.ts +44 -21
  1130. package/dist/es2017/index.d.ts +1 -1
  1131. package/dist/es2017/index.js +3 -1
  1132. package/dist/es2017/main_thread/api/debug/buffer_graph.d.ts +28 -0
  1133. package/dist/es2017/main_thread/api/debug/buffer_graph.js +164 -0
  1134. package/dist/es2017/main_thread/api/debug/buffer_size_graph.js +102 -0
  1135. package/dist/es2017/main_thread/api/debug/modules/general_info.d.ts +3 -0
  1136. package/dist/es2017/main_thread/api/debug/modules/general_info.js +192 -0
  1137. package/dist/es2017/main_thread/api/debug/modules/segment_buffer_content.d.ts +4 -0
  1138. package/dist/es2017/main_thread/api/debug/modules/segment_buffer_content.js +124 -0
  1139. package/dist/es2017/main_thread/api/debug/modules/segment_buffer_size.d.ts +3 -0
  1140. package/dist/es2017/main_thread/api/debug/modules/segment_buffer_size.js +35 -0
  1141. package/dist/es2017/main_thread/api/debug/render.d.ts +3 -0
  1142. package/dist/es2017/main_thread/api/debug/render.js +32 -0
  1143. package/dist/es2017/main_thread/api/debug/utils.js +54 -0
  1144. package/dist/es2017/main_thread/api/index.d.ts +17 -0
  1145. package/dist/es2017/main_thread/api/index.js +17 -0
  1146. package/dist/es2017/main_thread/api/option_utils.d.ts +124 -0
  1147. package/dist/es2017/main_thread/api/option_utils.js +308 -0
  1148. package/dist/es2017/main_thread/api/public_api.d.ts +751 -0
  1149. package/dist/es2017/main_thread/api/public_api.js +2352 -0
  1150. package/dist/es2017/main_thread/api/utils.d.ts +66 -0
  1151. package/dist/es2017/main_thread/api/utils.js +170 -0
  1152. package/dist/es2017/main_thread/decrypt/__tests__/__global__/utils.d.ts +184 -0
  1153. package/dist/es2017/main_thread/decrypt/__tests__/__global__/utils.js +378 -0
  1154. package/dist/es2017/main_thread/decrypt/attach_media_keys.d.ts +53 -0
  1155. package/dist/es2017/main_thread/decrypt/attach_media_keys.js +75 -0
  1156. package/dist/es2017/main_thread/decrypt/clear_on_stop.js +40 -0
  1157. package/dist/es2017/main_thread/decrypt/content_decryptor.d.ts +185 -0
  1158. package/dist/es2017/main_thread/decrypt/content_decryptor.js +799 -0
  1159. package/dist/es2017/main_thread/decrypt/create_or_load_session.d.ts +64 -0
  1160. package/dist/es2017/main_thread/decrypt/create_or_load_session.js +83 -0
  1161. package/dist/es2017/main_thread/decrypt/create_session.d.ts +54 -0
  1162. package/dist/es2017/main_thread/decrypt/create_session.js +150 -0
  1163. package/dist/es2017/main_thread/decrypt/dispose_decryption_resources.js +41 -0
  1164. package/dist/es2017/main_thread/decrypt/find_key_system.d.ts +48 -0
  1165. package/dist/es2017/main_thread/decrypt/find_key_system.js +287 -0
  1166. package/dist/es2017/main_thread/decrypt/get_media_keys.d.ts +44 -0
  1167. package/dist/es2017/main_thread/decrypt/get_media_keys.js +103 -0
  1168. package/dist/es2017/main_thread/decrypt/index.d.ts +26 -0
  1169. package/dist/es2017/main_thread/decrypt/index.js +26 -0
  1170. package/dist/es2017/main_thread/decrypt/init_media_keys.d.ts +26 -0
  1171. package/dist/es2017/main_thread/decrypt/init_media_keys.js +47 -0
  1172. package/dist/es2017/main_thread/decrypt/session_events_listener.d.ts +75 -0
  1173. package/dist/es2017/main_thread/decrypt/session_events_listener.js +246 -0
  1174. package/dist/es2017/main_thread/decrypt/set_server_certificate.d.ts +51 -0
  1175. package/dist/es2017/main_thread/decrypt/set_server_certificate.js +82 -0
  1176. package/dist/es2017/main_thread/decrypt/types.d.ts +374 -0
  1177. package/dist/es2017/main_thread/decrypt/utils/are_init_values_compatible.js +141 -0
  1178. package/dist/es2017/main_thread/decrypt/utils/check_key_statuses.d.ts +52 -0
  1179. package/dist/es2017/main_thread/decrypt/utils/check_key_statuses.js +163 -0
  1180. package/dist/es2017/main_thread/decrypt/utils/clean_old_loaded_sessions.d.ts +26 -0
  1181. package/dist/es2017/main_thread/decrypt/utils/clean_old_stored_persistent_info.d.ts +32 -0
  1182. package/dist/es2017/main_thread/decrypt/utils/init_data_values_container.d.ts +69 -0
  1183. package/dist/es2017/main_thread/decrypt/utils/init_data_values_container.js +105 -0
  1184. package/dist/es2017/main_thread/decrypt/utils/is_session_usable.d.ts +24 -0
  1185. package/dist/es2017/main_thread/decrypt/utils/is_session_usable.js +48 -0
  1186. package/dist/es2017/main_thread/decrypt/utils/key_id_comparison.js +48 -0
  1187. package/dist/es2017/main_thread/decrypt/utils/key_session_record.d.ts +104 -0
  1188. package/dist/es2017/main_thread/decrypt/utils/key_session_record.js +152 -0
  1189. package/dist/es2017/main_thread/decrypt/utils/loaded_sessions_store.d.ts +213 -0
  1190. package/dist/es2017/main_thread/decrypt/utils/loaded_sessions_store.js +365 -0
  1191. package/dist/es2017/main_thread/decrypt/utils/media_keys_infos_store.d.ts +56 -0
  1192. package/dist/es2017/main_thread/decrypt/utils/media_keys_infos_store.js +43 -0
  1193. package/dist/es2017/main_thread/decrypt/utils/persistent_sessions_store.d.ts +94 -0
  1194. package/dist/es2017/main_thread/decrypt/utils/persistent_sessions_store.js +325 -0
  1195. package/dist/es2017/main_thread/decrypt/utils/serializable_bytes.d.ts +44 -0
  1196. package/dist/es2017/main_thread/decrypt/utils/serializable_bytes.js +46 -0
  1197. package/dist/es2017/main_thread/decrypt/utils/server_certificate_store.d.ts +64 -0
  1198. package/dist/es2017/main_thread/decrypt/utils/server_certificate_store.js +121 -0
  1199. package/dist/es2017/main_thread/init/directfile_content_initializer.d.ts +97 -0
  1200. package/dist/es2017/main_thread/init/directfile_content_initializer.js +233 -0
  1201. package/dist/es2017/main_thread/init/media_source_content_initializer.d.ts +166 -0
  1202. package/dist/es2017/main_thread/init/media_source_content_initializer.js +691 -0
  1203. package/dist/es2017/main_thread/init/multi_thread_content_initializer.d.ts +167 -0
  1204. package/dist/es2017/main_thread/init/multi_thread_content_initializer.js +1369 -0
  1205. package/dist/es2017/main_thread/init/send_message.d.ts +2 -0
  1206. package/dist/es2017/main_thread/init/send_message.js +10 -0
  1207. package/dist/es2017/main_thread/init/types.d.ts +221 -0
  1208. package/dist/es2017/main_thread/init/types.js +29 -0
  1209. package/dist/es2017/main_thread/init/utils/create_core_playback_observer.d.ts +83 -0
  1210. package/dist/es2017/main_thread/init/utils/create_core_playback_observer.js +98 -0
  1211. package/dist/es2017/main_thread/init/utils/create_media_source.d.ts +37 -0
  1212. package/dist/es2017/main_thread/init/utils/create_media_source.js +101 -0
  1213. package/dist/es2017/main_thread/init/utils/get_initial_time.d.ts +76 -0
  1214. package/dist/es2017/main_thread/init/utils/get_initial_time.js +106 -0
  1215. package/dist/es2017/main_thread/init/utils/get_loaded_reference.d.ts +28 -0
  1216. package/dist/es2017/main_thread/init/utils/get_loaded_reference.js +59 -0
  1217. package/dist/es2017/main_thread/init/utils/initial_seek_and_play.d.ts +61 -0
  1218. package/dist/es2017/main_thread/init/utils/initial_seek_and_play.js +203 -0
  1219. package/dist/es2017/main_thread/init/utils/initialize_content_decryption.d.ts +87 -0
  1220. package/dist/es2017/main_thread/init/utils/initialize_content_decryption.js +116 -0
  1221. package/dist/es2017/main_thread/init/utils/main_thread_text_displayer_interface.d.ts +35 -0
  1222. package/dist/es2017/main_thread/init/utils/main_thread_text_displayer_interface.js +50 -0
  1223. package/dist/es2017/main_thread/init/utils/rebuffering_controller.d.ts +114 -0
  1224. package/dist/es2017/main_thread/init/utils/rebuffering_controller.js +426 -0
  1225. package/dist/es2017/main_thread/init/utils/stream_events_emitter/are_same_stream_events.js +33 -0
  1226. package/dist/es2017/main_thread/init/utils/stream_events_emitter/index.d.ts +18 -0
  1227. package/dist/es2017/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +25 -0
  1228. package/dist/es2017/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +84 -0
  1229. package/dist/es2017/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts +53 -0
  1230. package/dist/es2017/main_thread/init/utils/stream_events_emitter/stream_events_emitter.js +175 -0
  1231. package/dist/es2017/main_thread/init/utils/stream_events_emitter/types.d.ts +41 -0
  1232. package/dist/es2017/main_thread/init/utils/throw_on_media_error.d.ts +23 -0
  1233. package/dist/es2017/main_thread/init/utils/throw_on_media_error.js +63 -0
  1234. package/dist/es2017/main_thread/text_displayer/html/html_parsers.d.ts +15 -0
  1235. package/dist/es2017/main_thread/text_displayer/html/html_parsers.js +22 -0
  1236. package/dist/es2017/main_thread/text_displayer/html/html_text_displayer.d.ts +100 -0
  1237. package/dist/es2017/main_thread/text_displayer/html/html_text_displayer.js +312 -0
  1238. package/dist/es2017/main_thread/text_displayer/html/index.d.ts +2 -0
  1239. package/dist/es2017/main_thread/text_displayer/html/index.js +2 -0
  1240. package/dist/es2017/main_thread/text_displayer/html/text_track_cues_store.d.ts +65 -0
  1241. package/dist/es2017/main_thread/text_displayer/html/text_track_cues_store.js +358 -0
  1242. package/dist/es2017/main_thread/text_displayer/html/update_proportional_elements.d.ts +15 -0
  1243. package/dist/es2017/main_thread/text_displayer/html/update_proportional_elements.js +61 -0
  1244. package/dist/es2017/main_thread/text_displayer/html/utils.d.ts +39 -0
  1245. package/dist/es2017/main_thread/text_displayer/html/utils.js +111 -0
  1246. package/dist/es2017/main_thread/text_displayer/index.d.ts +2 -0
  1247. package/dist/es2017/main_thread/text_displayer/manual_time_ranges.d.ts +14 -0
  1248. package/dist/es2017/main_thread/text_displayer/manual_time_ranges.js +48 -0
  1249. package/dist/es2017/main_thread/text_displayer/native/index.d.ts +2 -0
  1250. package/dist/es2017/main_thread/text_displayer/native/index.js +2 -0
  1251. package/dist/es2017/main_thread/text_displayer/native/native_parsers.d.ts +11 -0
  1252. package/dist/es2017/main_thread/text_displayer/native/native_parsers.js +22 -0
  1253. package/dist/es2017/main_thread/text_displayer/native/native_text_displayer.d.ts +56 -0
  1254. package/dist/es2017/main_thread/text_displayer/native/native_text_displayer.js +203 -0
  1255. package/dist/es2017/main_thread/text_displayer/types.d.ts +71 -0
  1256. package/dist/es2017/main_thread/tracks_store/index.d.ts +20 -0
  1257. package/dist/es2017/main_thread/tracks_store/media_element_tracks_store.d.ts +197 -0
  1258. package/dist/es2017/main_thread/tracks_store/media_element_tracks_store.js +663 -0
  1259. package/dist/es2017/main_thread/tracks_store/track_dispatcher.d.ts +101 -0
  1260. package/dist/es2017/main_thread/tracks_store/track_dispatcher.js +175 -0
  1261. package/dist/es2017/main_thread/tracks_store/tracks_store.d.ts +448 -0
  1262. package/dist/es2017/main_thread/tracks_store/tracks_store.js +998 -0
  1263. package/dist/es2017/main_thread/types.d.ts +5 -0
  1264. package/dist/es2017/main_thread/types.js +1 -0
  1265. package/dist/es2017/manifest/classes/adaptation.d.ts +134 -0
  1266. package/dist/es2017/manifest/classes/adaptation.js +193 -0
  1267. package/dist/es2017/manifest/classes/index.d.ts +25 -0
  1268. package/dist/es2017/manifest/classes/index.js +28 -0
  1269. package/dist/es2017/manifest/classes/manifest.d.ts +391 -0
  1270. package/dist/es2017/manifest/classes/manifest.js +381 -0
  1271. package/dist/es2017/manifest/classes/period.d.ts +106 -0
  1272. package/dist/es2017/manifest/classes/period.js +194 -0
  1273. package/dist/es2017/manifest/classes/representation.d.ts +238 -0
  1274. package/dist/es2017/manifest/classes/representation.js +346 -0
  1275. package/dist/es2017/manifest/classes/representation_index/index.d.ts +18 -0
  1276. package/dist/es2017/manifest/classes/representation_index/static.d.ts +101 -0
  1277. package/dist/es2017/manifest/classes/representation_index/static.js +143 -0
  1278. package/dist/es2017/manifest/classes/representation_index/types.d.ts +420 -0
  1279. package/dist/es2017/manifest/classes/types.d.ts +29 -0
  1280. package/dist/es2017/manifest/classes/update_period_in_place.d.ts +53 -0
  1281. package/dist/es2017/manifest/classes/update_period_in_place.js +109 -0
  1282. package/dist/es2017/manifest/classes/update_periods.d.ts +50 -0
  1283. package/dist/es2017/manifest/classes/update_periods.js +193 -0
  1284. package/dist/es2017/manifest/classes/utils.d.ts +39 -0
  1285. package/dist/es2017/manifest/classes/utils.js +49 -0
  1286. package/dist/es2017/manifest/index.d.ts +15 -24
  1287. package/dist/es2017/manifest/index.js +3 -28
  1288. package/dist/es2017/manifest/types.d.ts +372 -19
  1289. package/dist/es2017/manifest/types.js +1 -30
  1290. package/dist/es2017/manifest/utils.d.ts +149 -31
  1291. package/dist/es2017/manifest/utils.js +458 -30
  1292. package/dist/es2017/minimal.d.ts +4 -1
  1293. package/dist/es2017/minimal.js +12 -1
  1294. package/dist/es2017/mse/index.d.ts +1 -0
  1295. package/dist/es2017/mse/index.js +1 -0
  1296. package/dist/es2017/mse/main_codec_support_prober.d.ts +26 -0
  1297. package/dist/es2017/mse/main_codec_support_prober.js +41 -0
  1298. package/dist/es2017/mse/main_media_source_interface.d.ts +112 -0
  1299. package/dist/es2017/mse/main_media_source_interface.js +431 -0
  1300. package/dist/es2017/mse/types.d.ts +301 -0
  1301. package/dist/es2017/mse/types.js +1 -0
  1302. package/dist/es2017/mse/utils/end_of_stream.d.ts +33 -0
  1303. package/dist/es2017/mse/utils/end_of_stream.js +87 -0
  1304. package/dist/es2017/mse/utils/media_source_duration_updater.js +265 -0
  1305. package/dist/es2017/mse/worker_codec_support_prober.d.ts +42 -0
  1306. package/dist/es2017/mse/worker_codec_support_prober.js +58 -0
  1307. package/dist/es2017/mse/worker_media_source_interface.d.ts +105 -0
  1308. package/dist/es2017/mse/worker_media_source_interface.js +305 -0
  1309. package/dist/es2017/multithread_types.d.ts +815 -0
  1310. package/dist/es2017/multithread_types.js +6 -0
  1311. package/dist/es2017/parsers/containers/isobmff/create_box.d.ts +1 -1
  1312. package/dist/es2017/parsers/containers/isobmff/create_box.js +6 -5
  1313. package/dist/es2017/parsers/containers/isobmff/drm/playready.js +2 -3
  1314. package/dist/es2017/parsers/containers/isobmff/get_box.js +3 -5
  1315. package/dist/es2017/parsers/containers/isobmff/index.d.ts +3 -3
  1316. package/dist/es2017/parsers/containers/isobmff/index.js +4 -4
  1317. package/dist/es2017/parsers/containers/isobmff/read.d.ts +1 -1
  1318. package/dist/es2017/parsers/containers/isobmff/read.js +9 -9
  1319. package/dist/es2017/parsers/containers/isobmff/take_pssh_out.js +4 -5
  1320. package/dist/es2017/parsers/containers/isobmff/utils.js +60 -45
  1321. package/dist/es2017/parsers/containers/matroska/index.d.ts +1 -1
  1322. package/dist/es2017/parsers/containers/matroska/index.js +1 -1
  1323. package/dist/es2017/parsers/containers/matroska/utils.js +42 -29
  1324. package/dist/es2017/parsers/images/bif.js +10 -6
  1325. package/dist/es2017/parsers/manifest/dash/common/attach_trickmode_track.d.ts +1 -1
  1326. package/dist/es2017/parsers/manifest/dash/common/convert_supplemental_codecs.js +1 -3
  1327. package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts +1 -1
  1328. package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.js +1 -1
  1329. package/dist/es2017/parsers/manifest/dash/common/get_hdr_information.js +4 -12
  1330. package/dist/es2017/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts +1 -1
  1331. package/dist/es2017/parsers/manifest/dash/common/get_http_utc-timing_url.js +4 -5
  1332. package/dist/es2017/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts +1 -1
  1333. package/dist/es2017/parsers/manifest/dash/common/get_minimum_and_maximum_positions.js +4 -2
  1334. package/dist/es2017/parsers/manifest/dash/common/get_periods_time_infos.d.ts +1 -1
  1335. package/dist/es2017/parsers/manifest/dash/common/get_periods_time_infos.js +15 -13
  1336. package/dist/es2017/parsers/manifest/dash/common/index.d.ts +1 -1
  1337. package/dist/es2017/parsers/manifest/dash/common/indexes/base.d.ts +5 -5
  1338. package/dist/es2017/parsers/manifest/dash/common/indexes/base.js +36 -31
  1339. package/dist/es2017/parsers/manifest/dash/common/indexes/get_init_segment.d.ts +2 -2
  1340. package/dist/es2017/parsers/manifest/dash/common/indexes/get_init_segment.js +6 -4
  1341. package/dist/es2017/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts +4 -4
  1342. package/dist/es2017/parsers/manifest/dash/common/indexes/get_segments_from_timeline.js +10 -10
  1343. package/dist/es2017/parsers/manifest/dash/common/indexes/list.d.ts +2 -2
  1344. package/dist/es2017/parsers/manifest/dash/common/indexes/list.js +23 -20
  1345. package/dist/es2017/parsers/manifest/dash/common/indexes/template.d.ts +3 -3
  1346. package/dist/es2017/parsers/manifest/dash/common/indexes/template.js +54 -59
  1347. package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +1 -1
  1348. package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +2 -6
  1349. package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +1 -1
  1350. package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +12 -16
  1351. package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts +1 -1
  1352. package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.js +15 -10
  1353. package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +1 -1
  1354. package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +25 -20
  1355. package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +7 -7
  1356. package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +77 -69
  1357. package/dist/es2017/parsers/manifest/dash/common/indexes/tokens.js +2 -4
  1358. package/dist/es2017/parsers/manifest/dash/common/infer_adaptation_type.d.ts +1 -1
  1359. package/dist/es2017/parsers/manifest/dash/common/infer_adaptation_type.js +2 -2
  1360. package/dist/es2017/parsers/manifest/dash/common/manifest_bounds_calculator.js +9 -10
  1361. package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.d.ts +5 -5
  1362. package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.js +61 -66
  1363. package/dist/es2017/parsers/manifest/dash/common/parse_availability_start_time.d.ts +3 -2
  1364. package/dist/es2017/parsers/manifest/dash/common/parse_availability_start_time.js +5 -3
  1365. package/dist/es2017/parsers/manifest/dash/common/parse_mpd.d.ts +6 -6
  1366. package/dist/es2017/parsers/manifest/dash/common/parse_mpd.js +54 -42
  1367. package/dist/es2017/parsers/manifest/dash/common/parse_periods.d.ts +5 -5
  1368. package/dist/es2017/parsers/manifest/dash/common/parse_periods.js +41 -45
  1369. package/dist/es2017/parsers/manifest/dash/common/parse_representation_index.d.ts +5 -5
  1370. package/dist/es2017/parsers/manifest/dash/common/parse_representation_index.js +5 -7
  1371. package/dist/es2017/parsers/manifest/dash/common/parse_representations.d.ts +5 -5
  1372. package/dist/es2017/parsers/manifest/dash/common/parse_representations.js +63 -68
  1373. package/dist/es2017/parsers/manifest/dash/common/resolve_base_urls.d.ts +1 -1
  1374. package/dist/es2017/parsers/manifest/dash/common/resolve_base_urls.js +5 -3
  1375. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts +1 -1
  1376. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +89 -46
  1377. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts +1 -1
  1378. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/BaseURL.js +1 -2
  1379. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts +1 -1
  1380. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts +1 -1
  1381. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts +1 -1
  1382. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/EventStream.js +13 -7
  1383. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts +1 -1
  1384. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Initialization.js +5 -3
  1385. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts +1 -1
  1386. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/MPD.js +44 -27
  1387. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts +1 -1
  1388. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Period.js +14 -8
  1389. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts +1 -1
  1390. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Representation.js +42 -21
  1391. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts +1 -1
  1392. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.js +36 -18
  1393. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts +1 -1
  1394. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts +1 -1
  1395. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.js +19 -9
  1396. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts +1 -1
  1397. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts +1 -1
  1398. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.js +9 -5
  1399. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts +8 -26
  1400. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/utils.js +8 -17
  1401. package/dist/es2017/parsers/manifest/dash/js-parser/parse_from_document.d.ts +2 -2
  1402. package/dist/es2017/parsers/manifest/dash/js-parser/parse_from_document.js +9 -7
  1403. package/dist/es2017/parsers/manifest/dash/parsers_types.d.ts +1 -1
  1404. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +2 -2
  1405. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +49 -22
  1406. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts +3 -2
  1407. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +22 -26
  1408. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts +2 -2
  1409. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts +3 -3
  1410. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.js +1 -1
  1411. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts +3 -3
  1412. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +4 -2
  1413. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts +3 -2
  1414. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.js +2 -4
  1415. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts +3 -2
  1416. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +5 -5
  1417. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts +3 -2
  1418. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +9 -6
  1419. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts +3 -2
  1420. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +13 -15
  1421. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts +3 -3
  1422. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.js +1 -1
  1423. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts +2 -2
  1424. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.js +5 -10
  1425. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts +3 -2
  1426. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts +2 -2
  1427. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.js +11 -18
  1428. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts +2 -2
  1429. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.js +2 -4
  1430. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts +3 -2
  1431. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/XLink.js +5 -5
  1432. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts +2 -2
  1433. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/root.js +8 -4
  1434. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/parsers_stack.js +4 -2
  1435. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/types.d.ts +55 -55
  1436. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/utils.d.ts +1 -1
  1437. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/utils.js +8 -4
  1438. package/dist/es2017/parsers/manifest/local/parse_local_manifest.d.ts +2 -2
  1439. package/dist/es2017/parsers/manifest/local/parse_local_manifest.js +21 -16
  1440. package/dist/es2017/parsers/manifest/local/representation_index.d.ts +2 -2
  1441. package/dist/es2017/parsers/manifest/local/representation_index.js +7 -7
  1442. package/dist/es2017/parsers/manifest/metaplaylist/index.d.ts +1 -1
  1443. package/dist/es2017/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts +4 -4
  1444. package/dist/es2017/parsers/manifest/metaplaylist/metaplaylist_parser.js +52 -42
  1445. package/dist/es2017/parsers/manifest/metaplaylist/representation_index.d.ts +3 -3
  1446. package/dist/es2017/parsers/manifest/metaplaylist/representation_index.js +10 -7
  1447. package/dist/es2017/parsers/manifest/smooth/create_parser.d.ts +2 -2
  1448. package/dist/es2017/parsers/manifest/smooth/create_parser.js +120 -121
  1449. package/dist/es2017/parsers/manifest/smooth/get_codecs.js +3 -3
  1450. package/dist/es2017/parsers/manifest/smooth/index.d.ts +1 -1
  1451. package/dist/es2017/parsers/manifest/smooth/index.js +1 -1
  1452. package/dist/es2017/parsers/manifest/smooth/parse_C_nodes.js +9 -9
  1453. package/dist/es2017/parsers/manifest/smooth/parse_protection_node.js +12 -8
  1454. package/dist/es2017/parsers/manifest/smooth/representation_index.d.ts +3 -3
  1455. package/dist/es2017/parsers/manifest/smooth/representation_index.js +35 -38
  1456. package/dist/es2017/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts +1 -1
  1457. package/dist/es2017/parsers/manifest/smooth/shared_smooth_segment_timeline.js +8 -9
  1458. package/dist/es2017/parsers/manifest/smooth/utils/add_segment_infos.js +10 -7
  1459. package/dist/es2017/parsers/manifest/smooth/utils/parseBoolean.d.ts +1 -1
  1460. package/dist/es2017/parsers/manifest/smooth/utils/parseBoolean.js +1 -1
  1461. package/dist/es2017/parsers/manifest/smooth/utils/tokens.d.ts +1 -1
  1462. package/dist/es2017/parsers/manifest/smooth/utils/tokens.js +2 -3
  1463. package/dist/es2017/parsers/manifest/types.d.ts +10 -3
  1464. package/dist/es2017/parsers/manifest/utils/check_manifest_ids.d.ts +1 -1
  1465. package/dist/es2017/parsers/manifest/utils/check_manifest_ids.js +2 -2
  1466. package/dist/es2017/parsers/manifest/utils/clear_timeline_from_position.d.ts +3 -2
  1467. package/dist/es2017/parsers/manifest/utils/clear_timeline_from_position.js +11 -7
  1468. package/dist/es2017/parsers/manifest/utils/get_first_time_from_adaptation.d.ts +1 -1
  1469. package/dist/es2017/parsers/manifest/utils/get_first_time_from_adaptation.js +5 -4
  1470. package/dist/es2017/parsers/manifest/utils/get_last_time_from_adaptation.d.ts +1 -1
  1471. package/dist/es2017/parsers/manifest/utils/get_last_time_from_adaptation.js +5 -4
  1472. package/dist/es2017/parsers/manifest/utils/get_maximum_positions.d.ts +2 -2
  1473. package/dist/es2017/parsers/manifest/utils/get_maximum_positions.js +11 -17
  1474. package/dist/es2017/parsers/manifest/utils/get_minimum_position.d.ts +2 -2
  1475. package/dist/es2017/parsers/manifest/utils/get_minimum_position.js +5 -11
  1476. package/dist/es2017/parsers/manifest/utils/index_helpers.js +4 -5
  1477. package/dist/es2017/parsers/manifest/utils/update_segment_timeline.d.ts +1 -1
  1478. package/dist/es2017/parsers/manifest/utils/update_segment_timeline.js +17 -16
  1479. package/dist/es2017/parsers/texttracks/index.d.ts +1 -1
  1480. package/dist/es2017/parsers/texttracks/sami/html.d.ts +1 -1
  1481. package/dist/es2017/parsers/texttracks/sami/html.js +17 -16
  1482. package/dist/es2017/parsers/texttracks/sami/native.d.ts +1 -1
  1483. package/dist/es2017/parsers/texttracks/sami/native.js +11 -17
  1484. package/dist/es2017/parsers/texttracks/srt/html.js +12 -10
  1485. package/dist/es2017/parsers/texttracks/srt/native.d.ts +1 -1
  1486. package/dist/es2017/parsers/texttracks/srt/native.js +1 -7
  1487. package/dist/es2017/parsers/texttracks/srt/parse_cue.js +4 -9
  1488. package/dist/es2017/parsers/texttracks/ttml/get_parameters.js +8 -13
  1489. package/dist/es2017/parsers/texttracks/ttml/get_time_delimiters.d.ts +1 -1
  1490. package/dist/es2017/parsers/texttracks/ttml/get_time_delimiters.js +9 -10
  1491. package/dist/es2017/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.js +2 -2
  1492. package/dist/es2017/parsers/texttracks/ttml/html/apply_extent.js +3 -7
  1493. package/dist/es2017/parsers/texttracks/ttml/html/apply_font_size.js +4 -5
  1494. package/dist/es2017/parsers/texttracks/ttml/html/apply_line_height.js +1 -1
  1495. package/dist/es2017/parsers/texttracks/ttml/html/apply_origin.js +3 -7
  1496. package/dist/es2017/parsers/texttracks/ttml/html/apply_padding.js +3 -7
  1497. package/dist/es2017/parsers/texttracks/ttml/html/create_element.d.ts +2 -2
  1498. package/dist/es2017/parsers/texttracks/ttml/html/create_element.js +30 -23
  1499. package/dist/es2017/parsers/texttracks/ttml/html/generate_css_test_outline.js +2 -2
  1500. package/dist/es2017/parsers/texttracks/ttml/html/parse_cue.d.ts +1 -1
  1501. package/dist/es2017/parsers/texttracks/ttml/html/parse_cue.js +5 -4
  1502. package/dist/es2017/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts +1 -1
  1503. package/dist/es2017/parsers/texttracks/ttml/html/ttml_color_to_css_color.js +39 -23
  1504. package/dist/es2017/parsers/texttracks/ttml/native/parse_cue.d.ts +2 -2
  1505. package/dist/es2017/parsers/texttracks/ttml/native/parse_cue.js +14 -13
  1506. package/dist/es2017/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts +1 -1
  1507. package/dist/es2017/parsers/texttracks/ttml/parse_ttml.d.ts +3 -3
  1508. package/dist/es2017/parsers/texttracks/ttml/parse_ttml.js +22 -19
  1509. package/dist/es2017/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts +1 -1
  1510. package/dist/es2017/parsers/texttracks/ttml/time_parsing.d.ts +1 -1
  1511. package/dist/es2017/parsers/texttracks/ttml/time_parsing.js +2 -2
  1512. package/dist/es2017/parsers/texttracks/ttml/xml_utils.js +2 -1
  1513. package/dist/es2017/parsers/texttracks/types.d.ts +1 -1
  1514. package/dist/es2017/parsers/texttracks/webvtt/get_cue_blocks.js +1 -1
  1515. package/dist/es2017/parsers/texttracks/webvtt/get_style_blocks.js +2 -1
  1516. package/dist/es2017/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts +1 -1
  1517. package/dist/es2017/parsers/texttracks/webvtt/html/create_default_style_elements.d.ts +1 -1
  1518. package/dist/es2017/parsers/texttracks/webvtt/html/create_style_attribute.js +6 -12
  1519. package/dist/es2017/parsers/texttracks/webvtt/html/create_styled_element.d.ts +1 -1
  1520. package/dist/es2017/parsers/texttracks/webvtt/html/create_styled_element.js +8 -9
  1521. package/dist/es2017/parsers/texttracks/webvtt/html/parse_style_block.js +4 -4
  1522. package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_to_div.d.ts +1 -1
  1523. package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_to_div.js +1 -1
  1524. package/dist/es2017/parsers/texttracks/webvtt/html/to_html.d.ts +1 -1
  1525. package/dist/es2017/parsers/texttracks/webvtt/html/to_html.js +5 -13
  1526. package/dist/es2017/parsers/texttracks/webvtt/native/parse_vtt_to_cues.d.ts +1 -1
  1527. package/dist/es2017/parsers/texttracks/webvtt/native/parse_vtt_to_cues.js +4 -8
  1528. package/dist/es2017/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts +1 -1
  1529. package/dist/es2017/parsers/texttracks/webvtt/native/to_native_cue.d.ts +2 -2
  1530. package/dist/es2017/parsers/texttracks/webvtt/native/to_native_cue.js +2 -2
  1531. package/dist/es2017/parsers/texttracks/webvtt/parse_cue_block.js +7 -8
  1532. package/dist/es2017/parsers/texttracks/webvtt/parse_timestamp.js +1 -2
  1533. package/dist/es2017/parsers/texttracks/webvtt/utils.js +6 -6
  1534. package/dist/es2017/playback_observer/index.d.ts +6 -0
  1535. package/dist/es2017/playback_observer/index.js +2 -0
  1536. package/dist/es2017/playback_observer/media_element_playback_observer.d.ts +203 -0
  1537. package/dist/es2017/playback_observer/media_element_playback_observer.js +678 -0
  1538. package/dist/es2017/playback_observer/types.d.ts +223 -0
  1539. package/dist/es2017/playback_observer/types.js +1 -0
  1540. package/dist/es2017/playback_observer/utils/generate_read_only_observer.d.ts +11 -0
  1541. package/dist/es2017/playback_observer/utils/generate_read_only_observer.js +41 -0
  1542. package/dist/es2017/playback_observer/utils/observation_position.d.ts +87 -0
  1543. package/dist/es2017/playback_observer/utils/observation_position.js +84 -0
  1544. package/dist/es2017/playback_observer/worker_playback_observer.d.ts +72 -0
  1545. package/dist/es2017/playback_observer/worker_playback_observer.js +45 -0
  1546. package/dist/es2017/public_types.d.ts +75 -33
  1547. package/dist/es2017/public_types.js +2 -13
  1548. package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.d.ts +3 -3
  1549. package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.js +19 -22
  1550. package/dist/es2017/tools/index.d.ts +2 -1
  1551. package/dist/es2017/tools/index.js +4 -2
  1552. package/dist/es2017/tools/parseBIFThumbnails/index.js +30 -0
  1553. package/dist/es2017/transports/dash/add_segment_integrity_checks_to_loader.d.ts +1 -1
  1554. package/dist/es2017/transports/dash/add_segment_integrity_checks_to_loader.js +2 -3
  1555. package/dist/es2017/transports/dash/construct_segment_url.d.ts +2 -2
  1556. package/dist/es2017/transports/dash/construct_segment_url.js +7 -3
  1557. package/dist/es2017/transports/dash/extract_complete_chunks.d.ts +1 -1
  1558. package/dist/es2017/transports/dash/extract_complete_chunks.js +13 -9
  1559. package/dist/es2017/transports/dash/get_events_out_of_emsgs.d.ts +2 -2
  1560. package/dist/es2017/transports/dash/get_events_out_of_emsgs.js +12 -11
  1561. package/dist/es2017/transports/dash/init_segment_loader.d.ts +3 -3
  1562. package/dist/es2017/transports/dash/init_segment_loader.js +29 -23
  1563. package/dist/es2017/transports/dash/low_latency_segment_loader.d.ts +2 -2
  1564. package/dist/es2017/transports/dash/low_latency_segment_loader.js +15 -12
  1565. package/dist/es2017/transports/dash/manifest_parser.d.ts +2 -2
  1566. package/dist/es2017/transports/dash/manifest_parser.js +35 -28
  1567. package/dist/es2017/transports/dash/pipelines.d.ts +1 -1
  1568. package/dist/es2017/transports/dash/pipelines.js +15 -12
  1569. package/dist/es2017/transports/dash/segment_loader.d.ts +4 -4
  1570. package/dist/es2017/transports/dash/segment_loader.js +31 -23
  1571. package/dist/es2017/transports/dash/segment_parser.d.ts +2 -2
  1572. package/dist/es2017/transports/dash/segment_parser.js +40 -25
  1573. package/dist/es2017/transports/dash/text_loader.d.ts +2 -2
  1574. package/dist/es2017/transports/dash/text_loader.js +19 -20
  1575. package/dist/es2017/transports/dash/text_parser.d.ts +2 -2
  1576. package/dist/es2017/transports/dash/text_parser.js +44 -26
  1577. package/dist/es2017/transports/index.d.ts +1 -1
  1578. package/dist/es2017/transports/index.js +1 -1
  1579. package/dist/es2017/transports/local/pipelines.d.ts +1 -1
  1580. package/dist/es2017/transports/local/pipelines.js +14 -9
  1581. package/dist/es2017/transports/local/segment_loader.d.ts +3 -3
  1582. package/dist/es2017/transports/local/segment_loader.js +14 -6
  1583. package/dist/es2017/transports/local/segment_parser.d.ts +1 -1
  1584. package/dist/es2017/transports/local/segment_parser.js +24 -14
  1585. package/dist/es2017/transports/local/text_parser.d.ts +1 -1
  1586. package/dist/es2017/transports/local/text_parser.js +36 -18
  1587. package/dist/es2017/transports/metaplaylist/manifest_loader.d.ts +4 -4
  1588. package/dist/es2017/transports/metaplaylist/manifest_loader.js +8 -6
  1589. package/dist/es2017/transports/metaplaylist/pipelines.d.ts +1 -1
  1590. package/dist/es2017/transports/metaplaylist/pipelines.js +35 -24
  1591. package/dist/es2017/transports/smooth/extract_timings_infos.d.ts +2 -2
  1592. package/dist/es2017/transports/smooth/extract_timings_infos.js +17 -19
  1593. package/dist/es2017/transports/smooth/is_mp4_embedded_track.d.ts +1 -1
  1594. package/dist/es2017/transports/smooth/is_mp4_embedded_track.js +1 -1
  1595. package/dist/es2017/transports/smooth/isobmff/create_audio_init_segment.d.ts +0 -1
  1596. package/dist/es2017/transports/smooth/isobmff/create_audio_init_segment.js +3 -4
  1597. package/dist/es2017/transports/smooth/isobmff/create_boxes.js +23 -32
  1598. package/dist/es2017/transports/smooth/isobmff/create_init_segment.js +2 -2
  1599. package/dist/es2017/transports/smooth/isobmff/create_traf_box.js +2 -2
  1600. package/dist/es2017/transports/smooth/isobmff/get_aaces_header.js +4 -16
  1601. package/dist/es2017/transports/smooth/isobmff/parse_tfrf.js +2 -2
  1602. package/dist/es2017/transports/smooth/isobmff/parse_tfxd.js +1 -1
  1603. package/dist/es2017/transports/smooth/isobmff/patch_segment.js +12 -11
  1604. package/dist/es2017/transports/smooth/pipelines.d.ts +1 -1
  1605. package/dist/es2017/transports/smooth/pipelines.js +84 -61
  1606. package/dist/es2017/transports/smooth/segment_loader.d.ts +3 -3
  1607. package/dist/es2017/transports/smooth/segment_loader.js +44 -29
  1608. package/dist/es2017/transports/smooth/utils.d.ts +4 -4
  1609. package/dist/es2017/transports/smooth/utils.js +10 -6
  1610. package/dist/es2017/transports/types.d.ts +22 -27
  1611. package/dist/es2017/transports/utils/byte_range.js +1 -2
  1612. package/dist/es2017/transports/utils/call_custom_manifest_loader.d.ts +3 -3
  1613. package/dist/es2017/transports/utils/call_custom_manifest_loader.js +10 -8
  1614. package/dist/es2017/transports/utils/check_isobmff_integrity.js +3 -3
  1615. package/dist/es2017/transports/utils/find_complete_box.js +3 -2
  1616. package/dist/es2017/transports/utils/generate_manifest_loader.d.ts +3 -3
  1617. package/dist/es2017/transports/utils/generate_manifest_loader.js +13 -7
  1618. package/dist/es2017/transports/utils/get_isobmff_timing_infos.d.ts +2 -2
  1619. package/dist/es2017/transports/utils/get_isobmff_timing_infos.js +12 -11
  1620. package/dist/es2017/transports/utils/infer_segment_container.d.ts +1 -1
  1621. package/dist/es2017/transports/utils/infer_segment_container.js +1 -3
  1622. package/dist/es2017/transports/utils/parse_text_track.d.ts +4 -4
  1623. package/dist/es2017/transports/utils/parse_text_track.js +6 -16
  1624. package/dist/es2017/utils/array_includes.js +2 -6
  1625. package/dist/es2017/utils/assert.d.ts +41 -0
  1626. package/dist/es2017/utils/assert.js +50 -7
  1627. package/dist/es2017/utils/base64.js +87 -29
  1628. package/dist/es2017/utils/byte_parsing.js +64 -56
  1629. package/dist/es2017/utils/cancellable_sleep.d.ts +1 -1
  1630. package/dist/es2017/utils/create_cancellable_promise.d.ts +1 -1
  1631. package/dist/es2017/utils/deep_merge.js +4 -4
  1632. package/dist/es2017/utils/event_emitter.d.ts +1 -1
  1633. package/dist/es2017/utils/event_emitter.js +7 -2
  1634. package/dist/es2017/utils/get_fuzzed_delay.js +1 -1
  1635. package/dist/es2017/utils/global_scope.d.ts +9 -0
  1636. package/dist/es2017/utils/global_scope.js +20 -0
  1637. package/dist/es2017/utils/hash_buffer.js +1 -1
  1638. package/dist/es2017/utils/languages/ISO_639-1_to_ISO_639-3.js +182 -182
  1639. package/dist/es2017/utils/languages/ISO_639-2_to_ISO_639-3.js +19 -19
  1640. package/dist/es2017/utils/languages/normalize.js +5 -5
  1641. package/dist/es2017/utils/logger.d.ts +13 -3
  1642. package/dist/es2017/utils/logger.js +26 -20
  1643. package/dist/es2017/utils/monotonic_timestamp.d.ts +20 -4
  1644. package/dist/es2017/utils/monotonic_timestamp.js +21 -5
  1645. package/dist/es2017/utils/object_assign.d.ts +29 -5
  1646. package/dist/es2017/utils/object_assign.js +17 -8
  1647. package/dist/es2017/utils/object_values.d.ts +1 -1
  1648. package/dist/es2017/utils/object_values.js +4 -4
  1649. package/dist/es2017/utils/queue_microtask.js +3 -3
  1650. package/dist/es2017/utils/ranges.js +22 -29
  1651. package/dist/es2017/utils/reference.d.ts +1 -1
  1652. package/dist/es2017/utils/reference.js +1 -3
  1653. package/dist/es2017/utils/request/fetch.d.ts +1 -1
  1654. package/dist/es2017/utils/request/fetch.js +30 -29
  1655. package/dist/es2017/utils/request/index.d.ts +2 -1
  1656. package/dist/es2017/utils/request/index.js +2 -1
  1657. package/dist/es2017/utils/request/request_error.d.ts +47 -0
  1658. package/dist/es2017/utils/request/request_error.js +65 -0
  1659. package/dist/es2017/utils/request/xhr.d.ts +5 -5
  1660. package/dist/es2017/utils/request/xhr.js +25 -23
  1661. package/dist/es2017/utils/retry_promise_with_backoff.d.ts +11 -3
  1662. package/dist/es2017/utils/retry_promise_with_backoff.js +15 -3
  1663. package/dist/es2017/utils/slice_uint8array.js +3 -3
  1664. package/dist/es2017/utils/starts_with.js +3 -3
  1665. package/dist/es2017/utils/string_parsing.js +17 -19
  1666. package/dist/es2017/utils/sync_or_async.d.ts +70 -0
  1667. package/dist/es2017/utils/sync_or_async.js +49 -0
  1668. package/dist/es2017/utils/task_canceller.js +1 -2
  1669. package/dist/es2017/utils/wrapInPromise.d.ts +1 -1
  1670. package/dist/es2017/worker_entry_point.d.ts +5 -0
  1671. package/dist/es2017/worker_entry_point.js +6 -0
  1672. package/dist/mpd-parser.wasm +0 -0
  1673. package/dist/rx-player.js +45753 -43461
  1674. package/dist/rx-player.min.js +1 -1
  1675. package/dist/worker.js +3 -0
  1676. package/package.json +119 -92
  1677. package/.editorconfig +0 -22
  1678. package/.eslintrc.js +0 -415
  1679. package/.github/workflows/checks.yml +0 -101
  1680. package/.github/workflows/perfs.yml +0 -22
  1681. package/.github/workflows/sonarcloud_analysis.yml +0 -20
  1682. package/CONTRIBUTING.md +0 -272
  1683. package/FILES.md +0 -277
  1684. package/dist/_esm5.processed/compat/add_class_name.d.ts +0 -22
  1685. package/dist/_esm5.processed/compat/add_class_name.js +0 -39
  1686. package/dist/_esm5.processed/compat/add_text_track.d.ts +0 -33
  1687. package/dist/_esm5.processed/compat/add_text_track.js +0 -50
  1688. package/dist/_esm5.processed/compat/browser_compatibility_types.d.ts +0 -172
  1689. package/dist/_esm5.processed/compat/browser_compatibility_types.js +0 -32
  1690. package/dist/_esm5.processed/compat/browser_detection.d.ts +0 -42
  1691. package/dist/_esm5.processed/compat/browser_detection.js +0 -103
  1692. package/dist/_esm5.processed/compat/browser_version.d.ts +0 -24
  1693. package/dist/_esm5.processed/compat/browser_version.js +0 -41
  1694. package/dist/_esm5.processed/compat/can_patch_isobmff.d.ts +0 -25
  1695. package/dist/_esm5.processed/compat/can_patch_isobmff.js +0 -28
  1696. package/dist/_esm5.processed/compat/can_rely_on_video_visibility_and_size.d.ts +0 -37
  1697. package/dist/_esm5.processed/compat/can_rely_on_video_visibility_and_size.js +0 -49
  1698. package/dist/_esm5.processed/compat/can_reuse_media_keys.d.ts +0 -13
  1699. package/dist/_esm5.processed/compat/can_reuse_media_keys.js +0 -16
  1700. package/dist/_esm5.processed/compat/change_source_buffer_type.d.ts +0 -48
  1701. package/dist/_esm5.processed/compat/change_source_buffer_type.js +0 -37
  1702. package/dist/_esm5.processed/compat/clear_element_src.d.ts +0 -20
  1703. package/dist/_esm5.processed/compat/clear_element_src.js +0 -53
  1704. package/dist/_esm5.processed/compat/eme/close_session.d.ts +0 -30
  1705. package/dist/_esm5.processed/compat/eme/close_session.js +0 -162
  1706. package/dist/_esm5.processed/compat/eme/constants.d.ts +0 -16
  1707. package/dist/_esm5.processed/compat/eme/constants.js +0 -19
  1708. package/dist/_esm5.processed/compat/eme/custom_key_system_access.d.ts +0 -54
  1709. package/dist/_esm5.processed/compat/eme/custom_key_system_access.js +0 -47
  1710. package/dist/_esm5.processed/compat/eme/custom_media_keys/ie11_media_keys.d.ts +0 -31
  1711. package/dist/_esm5.processed/compat/eme/custom_media_keys/ie11_media_keys.js +0 -170
  1712. package/dist/_esm5.processed/compat/eme/custom_media_keys/index.d.ts +0 -7
  1713. package/dist/_esm5.processed/compat/eme/custom_media_keys/index.js +0 -6
  1714. package/dist/_esm5.processed/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +0 -27
  1715. package/dist/_esm5.processed/compat/eme/custom_media_keys/moz_media_keys_constructor.js +0 -63
  1716. package/dist/_esm5.processed/compat/eme/custom_media_keys/ms_media_keys_constructor.d.ts +0 -43
  1717. package/dist/_esm5.processed/compat/eme/custom_media_keys/ms_media_keys_constructor.js +0 -30
  1718. package/dist/_esm5.processed/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +0 -41
  1719. package/dist/_esm5.processed/compat/eme/custom_media_keys/old_webkit_media_keys.js +0 -192
  1720. package/dist/_esm5.processed/compat/eme/custom_media_keys/types.d.ts +0 -43
  1721. package/dist/_esm5.processed/compat/eme/custom_media_keys/webkit_media_keys.d.ts +0 -37
  1722. package/dist/_esm5.processed/compat/eme/custom_media_keys/webkit_media_keys.js +0 -260
  1723. package/dist/_esm5.processed/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts +0 -22
  1724. package/dist/_esm5.processed/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +0 -32
  1725. package/dist/_esm5.processed/compat/eme/eme-api-implementation.d.ts +0 -78
  1726. package/dist/_esm5.processed/compat/eme/eme-api-implementation.js +0 -198
  1727. package/dist/_esm5.processed/compat/eme/generate_key_request.d.ts +0 -54
  1728. package/dist/_esm5.processed/compat/eme/generate_key_request.js +0 -147
  1729. package/dist/_esm5.processed/compat/eme/get_init_data.d.ts +0 -57
  1730. package/dist/_esm5.processed/compat/eme/get_init_data.js +0 -112
  1731. package/dist/_esm5.processed/compat/eme/get_uuid_kid_from_keystatus_kid.d.ts +0 -23
  1732. package/dist/_esm5.processed/compat/eme/get_uuid_kid_from_keystatus_kid.js +0 -31
  1733. package/dist/_esm5.processed/compat/eme/get_webkit_fairplay_initdata.d.ts +0 -25
  1734. package/dist/_esm5.processed/compat/eme/get_webkit_fairplay_initdata.js +0 -57
  1735. package/dist/_esm5.processed/compat/eme/index.d.ts +0 -24
  1736. package/dist/_esm5.processed/compat/eme/index.js +0 -22
  1737. package/dist/_esm5.processed/compat/eme/load_session.d.ts +0 -30
  1738. package/dist/_esm5.processed/compat/eme/load_session.js +0 -99
  1739. package/dist/_esm5.processed/compat/enable_audio_track.d.ts +0 -11
  1740. package/dist/_esm5.processed/compat/enable_audio_track.js +0 -26
  1741. package/dist/_esm5.processed/compat/event_listeners.d.ts +0 -166
  1742. package/dist/_esm5.processed/compat/event_listeners.js +0 -422
  1743. package/dist/_esm5.processed/compat/fullscreen.d.ts +0 -32
  1744. package/dist/_esm5.processed/compat/fullscreen.js +0 -78
  1745. package/dist/_esm5.processed/compat/get_start_date.d.ts +0 -30
  1746. package/dist/_esm5.processed/compat/get_start_date.js +0 -44
  1747. package/dist/_esm5.processed/compat/has_issues_with_high_media_source_duration.d.ts +0 -21
  1748. package/dist/_esm5.processed/compat/has_issues_with_high_media_source_duration.js +0 -26
  1749. package/dist/_esm5.processed/compat/index.d.ts +0 -39
  1750. package/dist/_esm5.processed/compat/index.js +0 -45
  1751. package/dist/_esm5.processed/compat/is_codec_supported.d.ts +0 -25
  1752. package/dist/_esm5.processed/compat/is_codec_supported.js +0 -36
  1753. package/dist/_esm5.processed/compat/is_debug_mode_enabled.d.ts +0 -7
  1754. package/dist/_esm5.processed/compat/is_debug_mode_enabled.js +0 -9
  1755. package/dist/_esm5.processed/compat/is_node.d.ts +0 -17
  1756. package/dist/_esm5.processed/compat/is_node.js +0 -17
  1757. package/dist/_esm5.processed/compat/is_offline.d.ts +0 -39
  1758. package/dist/_esm5.processed/compat/is_offline.js +0 -43
  1759. package/dist/_esm5.processed/compat/is_seeking_approximate.d.ts +0 -28
  1760. package/dist/_esm5.processed/compat/is_seeking_approximate.js +0 -29
  1761. package/dist/_esm5.processed/compat/is_vtt_cue.d.ts +0 -22
  1762. package/dist/_esm5.processed/compat/is_vtt_cue.js +0 -25
  1763. package/dist/_esm5.processed/compat/make_vtt_cue.d.ts +0 -26
  1764. package/dist/_esm5.processed/compat/make_vtt_cue.js +0 -43
  1765. package/dist/_esm5.processed/compat/on_height_width_change.d.ts +0 -33
  1766. package/dist/_esm5.processed/compat/on_height_width_change.js +0 -77
  1767. package/dist/_esm5.processed/compat/patch_webkit_source_buffer.d.ts +0 -16
  1768. package/dist/_esm5.processed/compat/patch_webkit_source_buffer.js +0 -74
  1769. package/dist/_esm5.processed/compat/remove_cue.d.ts +0 -21
  1770. package/dist/_esm5.processed/compat/remove_cue.js +0 -63
  1771. package/dist/_esm5.processed/compat/should_favour_custom_safari_EME.d.ts +0 -23
  1772. package/dist/_esm5.processed/compat/should_favour_custom_safari_EME.js +0 -27
  1773. package/dist/_esm5.processed/compat/should_reload_media_source_on_decipherability_update.d.ts +0 -26
  1774. package/dist/_esm5.processed/compat/should_reload_media_source_on_decipherability_update.js +0 -29
  1775. package/dist/_esm5.processed/compat/should_renew_media_key_system_access.d.ts +0 -21
  1776. package/dist/_esm5.processed/compat/should_renew_media_key_system_access.js +0 -24
  1777. package/dist/_esm5.processed/compat/should_unset_media_keys.d.ts +0 -22
  1778. package/dist/_esm5.processed/compat/should_unset_media_keys.js +0 -25
  1779. package/dist/_esm5.processed/compat/should_validate_metadata.d.ts +0 -22
  1780. package/dist/_esm5.processed/compat/should_validate_metadata.js +0 -25
  1781. package/dist/_esm5.processed/compat/should_wait_for_data_before_loaded.d.ts +0 -24
  1782. package/dist/_esm5.processed/compat/should_wait_for_data_before_loaded.js +0 -30
  1783. package/dist/_esm5.processed/compat/should_wait_for_have_enough_data.d.ts +0 -13
  1784. package/dist/_esm5.processed/compat/should_wait_for_have_enough_data.js +0 -16
  1785. package/dist/_esm5.processed/config.d.ts +0 -191
  1786. package/dist/_esm5.processed/config.js +0 -32
  1787. package/dist/_esm5.processed/core/adaptive/adaptive_representation_selector.d.ts +0 -363
  1788. package/dist/_esm5.processed/core/adaptive/adaptive_representation_selector.js +0 -399
  1789. package/dist/_esm5.processed/core/adaptive/buffer_based_chooser.d.ts +0 -89
  1790. package/dist/_esm5.processed/core/adaptive/buffer_based_chooser.js +0 -192
  1791. package/dist/_esm5.processed/core/adaptive/guess_based_chooser.d.ts +0 -95
  1792. package/dist/_esm5.processed/core/adaptive/guess_based_chooser.js +0 -242
  1793. package/dist/_esm5.processed/core/adaptive/index.d.ts +0 -18
  1794. package/dist/_esm5.processed/core/adaptive/index.js +0 -17
  1795. package/dist/_esm5.processed/core/adaptive/network_analyzer.d.ts +0 -73
  1796. package/dist/_esm5.processed/core/adaptive/network_analyzer.js +0 -336
  1797. package/dist/_esm5.processed/core/adaptive/utils/bandwidth_estimator.d.ts +0 -47
  1798. package/dist/_esm5.processed/core/adaptive/utils/bandwidth_estimator.js +0 -70
  1799. package/dist/_esm5.processed/core/adaptive/utils/ewma.d.ts +0 -39
  1800. package/dist/_esm5.processed/core/adaptive/utils/ewma.js +0 -52
  1801. package/dist/_esm5.processed/core/adaptive/utils/filter_by_bitrate.d.ts +0 -25
  1802. package/dist/_esm5.processed/core/adaptive/utils/filter_by_bitrate.js +0 -37
  1803. package/dist/_esm5.processed/core/adaptive/utils/filter_by_width.d.ts +0 -25
  1804. package/dist/_esm5.processed/core/adaptive/utils/filter_by_width.js +0 -42
  1805. package/dist/_esm5.processed/core/adaptive/utils/get_buffer_levels.d.ts +0 -24
  1806. package/dist/_esm5.processed/core/adaptive/utils/get_buffer_levels.js +0 -47
  1807. package/dist/_esm5.processed/core/adaptive/utils/last_estimate_storage.d.ts +0 -61
  1808. package/dist/_esm5.processed/core/adaptive/utils/last_estimate_storage.js +0 -37
  1809. package/dist/_esm5.processed/core/adaptive/utils/pending_requests_store.d.ts +0 -100
  1810. package/dist/_esm5.processed/core/adaptive/utils/pending_requests_store.js +0 -76
  1811. package/dist/_esm5.processed/core/adaptive/utils/representation_score_calculator.d.ts +0 -104
  1812. package/dist/_esm5.processed/core/adaptive/utils/representation_score_calculator.js +0 -114
  1813. package/dist/_esm5.processed/core/adaptive/utils/select_optimal_representation.d.ts +0 -33
  1814. package/dist/_esm5.processed/core/adaptive/utils/select_optimal_representation.js +0 -45
  1815. package/dist/_esm5.processed/core/api/debug/buffer_graph.d.ts +0 -28
  1816. package/dist/_esm5.processed/core/api/debug/buffer_graph.js +0 -171
  1817. package/dist/_esm5.processed/core/api/debug/buffer_size_graph.js +0 -104
  1818. package/dist/_esm5.processed/core/api/debug/constants.js +0 -2
  1819. package/dist/_esm5.processed/core/api/debug/modules/general_info.d.ts +0 -3
  1820. package/dist/_esm5.processed/core/api/debug/modules/general_info.js +0 -209
  1821. package/dist/_esm5.processed/core/api/debug/modules/segment_buffer_content.d.ts +0 -4
  1822. package/dist/_esm5.processed/core/api/debug/modules/segment_buffer_content.js +0 -121
  1823. package/dist/_esm5.processed/core/api/debug/modules/segment_buffer_size.d.ts +0 -3
  1824. package/dist/_esm5.processed/core/api/debug/modules/segment_buffer_size.js +0 -35
  1825. package/dist/_esm5.processed/core/api/debug/render.d.ts +0 -3
  1826. package/dist/_esm5.processed/core/api/debug/render.js +0 -32
  1827. package/dist/_esm5.processed/core/api/debug/utils.js +0 -57
  1828. package/dist/_esm5.processed/core/api/index.d.ts +0 -20
  1829. package/dist/_esm5.processed/core/api/index.js +0 -19
  1830. package/dist/_esm5.processed/core/api/option_utils.d.ts +0 -142
  1831. package/dist/_esm5.processed/core/api/option_utils.js +0 -476
  1832. package/dist/_esm5.processed/core/api/playback_observer.d.ts +0 -364
  1833. package/dist/_esm5.processed/core/api/playback_observer.js +0 -582
  1834. package/dist/_esm5.processed/core/api/public_api.d.ts +0 -879
  1835. package/dist/_esm5.processed/core/api/public_api.js +0 -2445
  1836. package/dist/_esm5.processed/core/api/tracks_management/media_element_track_choice_manager.d.ts +0 -257
  1837. package/dist/_esm5.processed/core/api/tracks_management/media_element_track_choice_manager.js +0 -805
  1838. package/dist/_esm5.processed/core/api/tracks_management/track_choice_manager.d.ts +0 -258
  1839. package/dist/_esm5.processed/core/api/tracks_management/track_choice_manager.js +0 -989
  1840. package/dist/_esm5.processed/core/api/utils.d.ts +0 -65
  1841. package/dist/_esm5.processed/core/api/utils.js +0 -156
  1842. package/dist/_esm5.processed/core/decrypt/__tests__/__global__/utils.d.ts +0 -178
  1843. package/dist/_esm5.processed/core/decrypt/__tests__/__global__/utils.js +0 -405
  1844. package/dist/_esm5.processed/core/decrypt/attach_media_keys.d.ts +0 -52
  1845. package/dist/_esm5.processed/core/decrypt/attach_media_keys.js +0 -115
  1846. package/dist/_esm5.processed/core/decrypt/clear_on_stop.js +0 -40
  1847. package/dist/_esm5.processed/core/decrypt/content_decryptor.d.ts +0 -184
  1848. package/dist/_esm5.processed/core/decrypt/content_decryptor.js +0 -967
  1849. package/dist/_esm5.processed/core/decrypt/create_or_load_session.d.ts +0 -63
  1850. package/dist/_esm5.processed/core/decrypt/create_or_load_session.js +0 -124
  1851. package/dist/_esm5.processed/core/decrypt/create_session.d.ts +0 -53
  1852. package/dist/_esm5.processed/core/decrypt/create_session.js +0 -212
  1853. package/dist/_esm5.processed/core/decrypt/dispose_decryption_resources.js +0 -88
  1854. package/dist/_esm5.processed/core/decrypt/find_key_system.d.ts +0 -48
  1855. package/dist/_esm5.processed/core/decrypt/find_key_system.js +0 -333
  1856. package/dist/_esm5.processed/core/decrypt/get_key_system_configuration.d.ts +0 -30
  1857. package/dist/_esm5.processed/core/decrypt/get_key_system_configuration.js +0 -44
  1858. package/dist/_esm5.processed/core/decrypt/get_media_keys.d.ts +0 -44
  1859. package/dist/_esm5.processed/core/decrypt/get_media_keys.js +0 -156
  1860. package/dist/_esm5.processed/core/decrypt/index.d.ts +0 -26
  1861. package/dist/_esm5.processed/core/decrypt/index.js +0 -26
  1862. package/dist/_esm5.processed/core/decrypt/init_media_keys.d.ts +0 -26
  1863. package/dist/_esm5.processed/core/decrypt/init_media_keys.js +0 -82
  1864. package/dist/_esm5.processed/core/decrypt/session_events_listener.d.ts +0 -75
  1865. package/dist/_esm5.processed/core/decrypt/session_events_listener.js +0 -388
  1866. package/dist/_esm5.processed/core/decrypt/set_server_certificate.d.ts +0 -51
  1867. package/dist/_esm5.processed/core/decrypt/set_server_certificate.js +0 -141
  1868. package/dist/_esm5.processed/core/decrypt/types.d.ts +0 -368
  1869. package/dist/_esm5.processed/core/decrypt/utils/are_init_values_compatible.js +0 -113
  1870. package/dist/_esm5.processed/core/decrypt/utils/check_key_statuses.d.ts +0 -52
  1871. package/dist/_esm5.processed/core/decrypt/utils/check_key_statuses.js +0 -156
  1872. package/dist/_esm5.processed/core/decrypt/utils/clean_old_loaded_sessions.d.ts +0 -26
  1873. package/dist/_esm5.processed/core/decrypt/utils/clean_old_loaded_sessions.js +0 -86
  1874. package/dist/_esm5.processed/core/decrypt/utils/clean_old_stored_persistent_info.d.ts +0 -32
  1875. package/dist/_esm5.processed/core/decrypt/utils/clean_old_stored_persistent_info.js +0 -40
  1876. package/dist/_esm5.processed/core/decrypt/utils/init_data_values_container.d.ts +0 -69
  1877. package/dist/_esm5.processed/core/decrypt/utils/init_data_values_container.js +0 -99
  1878. package/dist/_esm5.processed/core/decrypt/utils/is_session_usable.d.ts +0 -24
  1879. package/dist/_esm5.processed/core/decrypt/utils/is_session_usable.js +0 -49
  1880. package/dist/_esm5.processed/core/decrypt/utils/key_id_comparison.js +0 -60
  1881. package/dist/_esm5.processed/core/decrypt/utils/key_session_record.d.ts +0 -104
  1882. package/dist/_esm5.processed/core/decrypt/utils/key_session_record.js +0 -157
  1883. package/dist/_esm5.processed/core/decrypt/utils/loaded_sessions_store.d.ts +0 -215
  1884. package/dist/_esm5.processed/core/decrypt/utils/loaded_sessions_store.js +0 -472
  1885. package/dist/_esm5.processed/core/decrypt/utils/media_keys_infos_store.d.ts +0 -56
  1886. package/dist/_esm5.processed/core/decrypt/utils/media_keys_infos_store.js +0 -44
  1887. package/dist/_esm5.processed/core/decrypt/utils/persistent_sessions_store.d.ts +0 -94
  1888. package/dist/_esm5.processed/core/decrypt/utils/persistent_sessions_store.js +0 -321
  1889. package/dist/_esm5.processed/core/decrypt/utils/serializable_bytes.d.ts +0 -44
  1890. package/dist/_esm5.processed/core/decrypt/utils/serializable_bytes.js +0 -48
  1891. package/dist/_esm5.processed/core/decrypt/utils/server_certificate_store.d.ts +0 -64
  1892. package/dist/_esm5.processed/core/decrypt/utils/server_certificate_store.js +0 -112
  1893. package/dist/_esm5.processed/core/fetchers/cdn_prioritizer.d.ts +0 -107
  1894. package/dist/_esm5.processed/core/fetchers/cdn_prioritizer.js +0 -177
  1895. package/dist/_esm5.processed/core/fetchers/index.d.ts +0 -18
  1896. package/dist/_esm5.processed/core/fetchers/index.js +0 -18
  1897. package/dist/_esm5.processed/core/fetchers/manifest/index.d.ts +0 -18
  1898. package/dist/_esm5.processed/core/fetchers/manifest/index.js +0 -17
  1899. package/dist/_esm5.processed/core/fetchers/manifest/manifest_fetcher.d.ts +0 -223
  1900. package/dist/_esm5.processed/core/fetchers/manifest/manifest_fetcher.js +0 -624
  1901. package/dist/_esm5.processed/core/fetchers/segment/index.d.ts +0 -19
  1902. package/dist/_esm5.processed/core/fetchers/segment/index.js +0 -17
  1903. package/dist/_esm5.processed/core/fetchers/segment/prioritized_segment_fetcher.d.ts +0 -38
  1904. package/dist/_esm5.processed/core/fetchers/segment/prioritized_segment_fetcher.js +0 -67
  1905. package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher.d.ts +0 -154
  1906. package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher.js +0 -308
  1907. package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher_creator.d.ts +0 -79
  1908. package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher_creator.js +0 -58
  1909. package/dist/_esm5.processed/core/fetchers/segment/task_prioritizer.d.ts +0 -145
  1910. package/dist/_esm5.processed/core/fetchers/segment/task_prioritizer.js +0 -323
  1911. package/dist/_esm5.processed/core/fetchers/utils/error_selector.d.ts +0 -23
  1912. package/dist/_esm5.processed/core/fetchers/utils/error_selector.js +0 -31
  1913. package/dist/_esm5.processed/core/fetchers/utils/schedule_request.d.ts +0 -103
  1914. package/dist/_esm5.processed/core/fetchers/utils/schedule_request.js +0 -424
  1915. package/dist/_esm5.processed/core/init/directfile_content_initializer.d.ts +0 -97
  1916. package/dist/_esm5.processed/core/init/directfile_content_initializer.js +0 -239
  1917. package/dist/_esm5.processed/core/init/media_source_content_initializer.d.ts +0 -181
  1918. package/dist/_esm5.processed/core/init/media_source_content_initializer.js +0 -625
  1919. package/dist/_esm5.processed/core/init/types.d.ts +0 -241
  1920. package/dist/_esm5.processed/core/init/types.js +0 -51
  1921. package/dist/_esm5.processed/core/init/utils/content_time_boundaries_observer.d.ts +0 -191
  1922. package/dist/_esm5.processed/core/init/utils/content_time_boundaries_observer.js +0 -497
  1923. package/dist/_esm5.processed/core/init/utils/create_media_source.d.ts +0 -37
  1924. package/dist/_esm5.processed/core/init/utils/create_media_source.js +0 -112
  1925. package/dist/_esm5.processed/core/init/utils/create_stream_playback_observer.d.ts +0 -45
  1926. package/dist/_esm5.processed/core/init/utils/create_stream_playback_observer.js +0 -86
  1927. package/dist/_esm5.processed/core/init/utils/end_of_stream.d.ts +0 -33
  1928. package/dist/_esm5.processed/core/init/utils/end_of_stream.js +0 -89
  1929. package/dist/_esm5.processed/core/init/utils/get_initial_time.d.ts +0 -62
  1930. package/dist/_esm5.processed/core/init/utils/get_initial_time.js +0 -109
  1931. package/dist/_esm5.processed/core/init/utils/get_loaded_reference.d.ts +0 -28
  1932. package/dist/_esm5.processed/core/init/utils/get_loaded_reference.js +0 -56
  1933. package/dist/_esm5.processed/core/init/utils/initial_seek_and_play.d.ts +0 -63
  1934. package/dist/_esm5.processed/core/init/utils/initial_seek_and_play.js +0 -128
  1935. package/dist/_esm5.processed/core/init/utils/initialize_content_decryption.d.ts +0 -80
  1936. package/dist/_esm5.processed/core/init/utils/initialize_content_decryption.js +0 -104
  1937. package/dist/_esm5.processed/core/init/utils/media_source_duration_updater.js +0 -268
  1938. package/dist/_esm5.processed/core/init/utils/rebuffering_controller.d.ts +0 -113
  1939. package/dist/_esm5.processed/core/init/utils/rebuffering_controller.js +0 -483
  1940. package/dist/_esm5.processed/core/init/utils/stream_events_emitter/are_same_stream_events.js +0 -35
  1941. package/dist/_esm5.processed/core/init/utils/stream_events_emitter/index.d.ts +0 -18
  1942. package/dist/_esm5.processed/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +0 -25
  1943. package/dist/_esm5.processed/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +0 -66
  1944. package/dist/_esm5.processed/core/init/utils/stream_events_emitter/stream_events_emitter.d.ts +0 -52
  1945. package/dist/_esm5.processed/core/init/utils/stream_events_emitter/stream_events_emitter.js +0 -200
  1946. package/dist/_esm5.processed/core/init/utils/stream_events_emitter/types.d.ts +0 -41
  1947. package/dist/_esm5.processed/core/init/utils/throw_on_media_error.d.ts +0 -23
  1948. package/dist/_esm5.processed/core/init/utils/throw_on_media_error.js +0 -58
  1949. package/dist/_esm5.processed/core/segment_buffers/garbage_collector.d.ts +0 -41
  1950. package/dist/_esm5.processed/core/segment_buffers/garbage_collector.js +0 -183
  1951. package/dist/_esm5.processed/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.d.ts +0 -182
  1952. package/dist/_esm5.processed/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.js +0 -462
  1953. package/dist/_esm5.processed/core/segment_buffers/implementations/audio_video/index.d.ts +0 -17
  1954. package/dist/_esm5.processed/core/segment_buffers/implementations/audio_video/index.js +0 -17
  1955. package/dist/_esm5.processed/core/segment_buffers/implementations/image/image_segment_buffer.d.ts +0 -75
  1956. package/dist/_esm5.processed/core/segment_buffers/implementations/image/image_segment_buffer.js +0 -133
  1957. package/dist/_esm5.processed/core/segment_buffers/implementations/image/index.d.ts +0 -17
  1958. package/dist/_esm5.processed/core/segment_buffers/implementations/image/index.js +0 -17
  1959. package/dist/_esm5.processed/core/segment_buffers/implementations/index.d.ts +0 -18
  1960. package/dist/_esm5.processed/core/segment_buffers/implementations/index.js +0 -18
  1961. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/html_text_segment_buffer.d.ts +0 -141
  1962. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/html_text_segment_buffer.js +0 -405
  1963. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/index.d.ts +0 -21
  1964. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/index.js +0 -21
  1965. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/parsers.d.ts +0 -30
  1966. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/parsers.js +0 -37
  1967. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/text_track_cues_store.d.ts +0 -79
  1968. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/text_track_cues_store.js +0 -372
  1969. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/types.d.ts +0 -25
  1970. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/update_proportional_elements.d.ts +0 -30
  1971. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/update_proportional_elements.js +0 -77
  1972. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/utils.d.ts +0 -45
  1973. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/utils.js +0 -124
  1974. package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/index.d.ts +0 -17
  1975. package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/index.js +0 -17
  1976. package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/native_text_segment_buffer.d.ts +0 -84
  1977. package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/native_text_segment_buffer.js +0 -272
  1978. package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/parsers.d.ts +0 -26
  1979. package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/parsers.js +0 -37
  1980. package/dist/_esm5.processed/core/segment_buffers/implementations/types.d.ts +0 -320
  1981. package/dist/_esm5.processed/core/segment_buffers/implementations/types.js +0 -121
  1982. package/dist/_esm5.processed/core/segment_buffers/implementations/utils/manual_time_ranges.js +0 -65
  1983. package/dist/_esm5.processed/core/segment_buffers/index.d.ts +0 -21
  1984. package/dist/_esm5.processed/core/segment_buffers/index.js +0 -20
  1985. package/dist/_esm5.processed/core/segment_buffers/inventory/buffered_history.d.ts +0 -89
  1986. package/dist/_esm5.processed/core/segment_buffers/inventory/buffered_history.js +0 -90
  1987. package/dist/_esm5.processed/core/segment_buffers/inventory/index.d.ts +0 -20
  1988. package/dist/_esm5.processed/core/segment_buffers/inventory/index.js +0 -17
  1989. package/dist/_esm5.processed/core/segment_buffers/inventory/segment_inventory.d.ts +0 -224
  1990. package/dist/_esm5.processed/core/segment_buffers/inventory/segment_inventory.js +0 -833
  1991. package/dist/_esm5.processed/core/segment_buffers/inventory/types.d.ts +0 -27
  1992. package/dist/_esm5.processed/core/segment_buffers/inventory/types.js +0 -16
  1993. package/dist/_esm5.processed/core/segment_buffers/segment_buffers_store.d.ts +0 -181
  1994. package/dist/_esm5.processed/core/segment_buffers/segment_buffers_store.js +0 -314
  1995. package/dist/_esm5.processed/core/stream/adaptation/adaptation_stream.d.ts +0 -48
  1996. package/dist/_esm5.processed/core/stream/adaptation/adaptation_stream.js +0 -292
  1997. package/dist/_esm5.processed/core/stream/adaptation/index.d.ts +0 -18
  1998. package/dist/_esm5.processed/core/stream/adaptation/index.js +0 -18
  1999. package/dist/_esm5.processed/core/stream/adaptation/types.d.ts +0 -178
  2000. package/dist/_esm5.processed/core/stream/adaptation/utils/create_representation_estimator.d.ts +0 -47
  2001. package/dist/_esm5.processed/core/stream/adaptation/utils/create_representation_estimator.js +0 -70
  2002. package/dist/_esm5.processed/core/stream/index.d.ts +0 -21
  2003. package/dist/_esm5.processed/core/stream/index.js +0 -17
  2004. package/dist/_esm5.processed/core/stream/orchestrator/get_time_ranges_for_content.d.ts +0 -30
  2005. package/dist/_esm5.processed/core/stream/orchestrator/get_time_ranges_for_content.js +0 -60
  2006. package/dist/_esm5.processed/core/stream/orchestrator/index.d.ts +0 -18
  2007. package/dist/_esm5.processed/core/stream/orchestrator/index.js +0 -17
  2008. package/dist/_esm5.processed/core/stream/orchestrator/stream_orchestrator.d.ts +0 -172
  2009. package/dist/_esm5.processed/core/stream/orchestrator/stream_orchestrator.js +0 -481
  2010. package/dist/_esm5.processed/core/stream/period/index.d.ts +0 -18
  2011. package/dist/_esm5.processed/core/stream/period/index.js +0 -18
  2012. package/dist/_esm5.processed/core/stream/period/period_stream.d.ts +0 -49
  2013. package/dist/_esm5.processed/core/stream/period/period_stream.js +0 -384
  2014. package/dist/_esm5.processed/core/stream/period/types.d.ts +0 -110
  2015. package/dist/_esm5.processed/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +0 -70
  2016. package/dist/_esm5.processed/core/stream/period/utils/get_adaptation_switch_strategy.js +0 -198
  2017. package/dist/_esm5.processed/core/stream/representation/index.d.ts +0 -18
  2018. package/dist/_esm5.processed/core/stream/representation/index.js +0 -18
  2019. package/dist/_esm5.processed/core/stream/representation/representation_stream.d.ts +0 -53
  2020. package/dist/_esm5.processed/core/stream/representation/representation_stream.js +0 -369
  2021. package/dist/_esm5.processed/core/stream/representation/types.d.ts +0 -267
  2022. package/dist/_esm5.processed/core/stream/representation/utils/append_segment_to_buffer.d.ts +0 -32
  2023. package/dist/_esm5.processed/core/stream/representation/utils/append_segment_to_buffer.js +0 -114
  2024. package/dist/_esm5.processed/core/stream/representation/utils/check_for_discontinuity.d.ts +0 -53
  2025. package/dist/_esm5.processed/core/stream/representation/utils/check_for_discontinuity.js +0 -235
  2026. package/dist/_esm5.processed/core/stream/representation/utils/downloading_queue.d.ts +0 -231
  2027. package/dist/_esm5.processed/core/stream/representation/utils/downloading_queue.js +0 -388
  2028. package/dist/_esm5.processed/core/stream/representation/utils/force_garbage_collection.d.ts +0 -29
  2029. package/dist/_esm5.processed/core/stream/representation/utils/force_garbage_collection.js +0 -150
  2030. package/dist/_esm5.processed/core/stream/representation/utils/get_buffer_status.d.ts +0 -72
  2031. package/dist/_esm5.processed/core/stream/representation/utils/get_buffer_status.js +0 -203
  2032. package/dist/_esm5.processed/core/stream/representation/utils/get_needed_segments.d.ts +0 -92
  2033. package/dist/_esm5.processed/core/stream/representation/utils/get_needed_segments.js +0 -426
  2034. package/dist/_esm5.processed/core/stream/representation/utils/get_segment_priority.d.ts +0 -28
  2035. package/dist/_esm5.processed/core/stream/representation/utils/get_segment_priority.js +0 -38
  2036. package/dist/_esm5.processed/core/stream/representation/utils/push_init_segment.d.ts +0 -39
  2037. package/dist/_esm5.processed/core/stream/representation/utils/push_init_segment.js +0 -85
  2038. package/dist/_esm5.processed/core/stream/representation/utils/push_media_segment.d.ts +0 -40
  2039. package/dist/_esm5.processed/core/stream/representation/utils/push_media_segment.js +0 -108
  2040. package/dist/_esm5.processed/default_config.d.ts +0 -1143
  2041. package/dist/_esm5.processed/default_config.js +0 -1178
  2042. package/dist/_esm5.processed/errors/assertion_error.d.ts +0 -31
  2043. package/dist/_esm5.processed/errors/assertion_error.js +0 -54
  2044. package/dist/_esm5.processed/errors/custom_loader_error.d.ts +0 -38
  2045. package/dist/_esm5.processed/errors/custom_loader_error.js +0 -61
  2046. package/dist/_esm5.processed/errors/encrypted_media_error.d.ts +0 -39
  2047. package/dist/_esm5.processed/errors/encrypted_media_error.js +0 -57
  2048. package/dist/_esm5.processed/errors/error_codes.d.ts +0 -31
  2049. package/dist/_esm5.processed/errors/error_codes.js +0 -70
  2050. package/dist/_esm5.processed/errors/error_message.d.ts +0 -23
  2051. package/dist/_esm5.processed/errors/error_message.js +0 -25
  2052. package/dist/_esm5.processed/errors/format_error.d.ts +0 -20
  2053. package/dist/_esm5.processed/errors/format_error.js +0 -31
  2054. package/dist/_esm5.processed/errors/index.d.ts +0 -26
  2055. package/dist/_esm5.processed/errors/index.js +0 -26
  2056. package/dist/_esm5.processed/errors/is_known_error.d.ts +0 -22
  2057. package/dist/_esm5.processed/errors/is_known_error.js +0 -32
  2058. package/dist/_esm5.processed/errors/media_error.d.ts +0 -56
  2059. package/dist/_esm5.processed/errors/media_error.js +0 -71
  2060. package/dist/_esm5.processed/errors/network_error.d.ts +0 -45
  2061. package/dist/_esm5.processed/errors/network_error.js +0 -71
  2062. package/dist/_esm5.processed/errors/other_error.d.ts +0 -32
  2063. package/dist/_esm5.processed/errors/other_error.js +0 -56
  2064. package/dist/_esm5.processed/errors/request_error.d.ts +0 -39
  2065. package/dist/_esm5.processed/errors/request_error.js +0 -77
  2066. package/dist/_esm5.processed/experimental/features/dash_wasm.d.ts +0 -23
  2067. package/dist/_esm5.processed/experimental/features/dash_wasm.js +0 -34
  2068. package/dist/_esm5.processed/experimental/features/debug_element.d.ts +0 -8
  2069. package/dist/_esm5.processed/experimental/features/debug_element.js +0 -10
  2070. package/dist/_esm5.processed/experimental/features/index.d.ts +0 -19
  2071. package/dist/_esm5.processed/experimental/features/index.js +0 -19
  2072. package/dist/_esm5.processed/experimental/features/local.d.ts +0 -19
  2073. package/dist/_esm5.processed/experimental/features/local.js +0 -24
  2074. package/dist/_esm5.processed/experimental/features/metaplaylist.d.ts +0 -19
  2075. package/dist/_esm5.processed/experimental/features/metaplaylist.js +0 -24
  2076. package/dist/_esm5.processed/experimental/index.d.ts +0 -2
  2077. package/dist/_esm5.processed/experimental/index.js +0 -2
  2078. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/features/dash.d.ts +0 -17
  2079. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/features/dash.js +0 -20
  2080. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts +0 -17
  2081. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/features/metaplaylist.js +0 -20
  2082. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/index.d.ts +0 -18
  2083. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/index.js +0 -18
  2084. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +0 -26
  2085. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +0 -61
  2086. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +0 -25
  2087. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +0 -63
  2088. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +0 -30
  2089. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +0 -41
  2090. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/types.d.ts +0 -25
  2091. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/types.js +0 -16
  2092. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts +0 -54
  2093. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +0 -343
  2094. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.d.ts +0 -25
  2095. package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.js +0 -48
  2096. package/dist/_esm5.processed/experimental/tools/createMetaplaylist/get_duration_from_manifest.d.ts +0 -23
  2097. package/dist/_esm5.processed/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +0 -169
  2098. package/dist/_esm5.processed/experimental/tools/createMetaplaylist/index.d.ts +0 -30
  2099. package/dist/_esm5.processed/experimental/tools/createMetaplaylist/index.js +0 -50
  2100. package/dist/_esm5.processed/experimental/tools/index.d.ts +0 -20
  2101. package/dist/_esm5.processed/experimental/tools/index.js +0 -20
  2102. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/api/index.d.ts +0 -60
  2103. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/api/index.js +0 -158
  2104. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.d.ts +0 -45
  2105. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.js +0 -102
  2106. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/capabilities.d.ts +0 -24
  2107. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/capabilities.js +0 -142
  2108. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/index.d.ts +0 -17
  2109. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/index.js +0 -17
  2110. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/log.d.ts +0 -18
  2111. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/log.js +0 -18
  2112. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.d.ts +0 -25
  2113. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.js +0 -50
  2114. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts +0 -22
  2115. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.js +0 -69
  2116. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts +0 -26
  2117. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +0 -79
  2118. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.d.ts +0 -29
  2119. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.js +0 -65
  2120. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/index.d.ts +0 -21
  2121. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/index.js +0 -30
  2122. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts +0 -21
  2123. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.js +0 -57
  2124. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.d.ts +0 -21
  2125. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.js +0 -89
  2126. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.d.ts +0 -26
  2127. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.js +0 -83
  2128. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts +0 -21
  2129. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +0 -45
  2130. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/types.d.ts +0 -69
  2131. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/types.js +0 -21
  2132. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/utils.d.ts +0 -31
  2133. package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/utils.js +0 -83
  2134. package/dist/_esm5.processed/experimental/tools/parseBIFThumbnails.d.ts +0 -29
  2135. package/dist/_esm5.processed/experimental/tools/parseBIFThumbnails.js +0 -29
  2136. package/dist/_esm5.processed/features/add_features.d.ts +0 -20
  2137. package/dist/_esm5.processed/features/add_features.js +0 -35
  2138. package/dist/_esm5.processed/features/features_object.d.ts +0 -22
  2139. package/dist/_esm5.processed/features/features_object.js +0 -33
  2140. package/dist/_esm5.processed/features/index.d.ts +0 -34
  2141. package/dist/_esm5.processed/features/index.js +0 -33
  2142. package/dist/_esm5.processed/features/list/bif_parser.d.ts +0 -23
  2143. package/dist/_esm5.processed/features/list/bif_parser.js +0 -27
  2144. package/dist/_esm5.processed/features/list/dash.d.ts +0 -23
  2145. package/dist/_esm5.processed/features/list/dash.js +0 -32
  2146. package/dist/_esm5.processed/features/list/directfile.d.ts +0 -24
  2147. package/dist/_esm5.processed/features/list/directfile.js +0 -31
  2148. package/dist/_esm5.processed/features/list/eme.d.ts +0 -23
  2149. package/dist/_esm5.processed/features/list/eme.js +0 -25
  2150. package/dist/_esm5.processed/features/list/html_sami_parser.d.ts +0 -23
  2151. package/dist/_esm5.processed/features/list/html_sami_parser.js +0 -27
  2152. package/dist/_esm5.processed/features/list/html_srt_parser.d.ts +0 -23
  2153. package/dist/_esm5.processed/features/list/html_srt_parser.js +0 -27
  2154. package/dist/_esm5.processed/features/list/html_text_buffer.d.ts +0 -23
  2155. package/dist/_esm5.processed/features/list/html_text_buffer.js +0 -25
  2156. package/dist/_esm5.processed/features/list/html_ttml_parser.d.ts +0 -23
  2157. package/dist/_esm5.processed/features/list/html_ttml_parser.js +0 -27
  2158. package/dist/_esm5.processed/features/list/html_vtt_parser.d.ts +0 -23
  2159. package/dist/_esm5.processed/features/list/html_vtt_parser.js +0 -27
  2160. package/dist/_esm5.processed/features/list/image_buffer.d.ts +0 -23
  2161. package/dist/_esm5.processed/features/list/image_buffer.js +0 -25
  2162. package/dist/_esm5.processed/features/list/index.d.ts +0 -31
  2163. package/dist/_esm5.processed/features/list/index.js +0 -31
  2164. package/dist/_esm5.processed/features/list/native_sami_parser.d.ts +0 -23
  2165. package/dist/_esm5.processed/features/list/native_sami_parser.js +0 -28
  2166. package/dist/_esm5.processed/features/list/native_srt_parser.d.ts +0 -23
  2167. package/dist/_esm5.processed/features/list/native_srt_parser.js +0 -28
  2168. package/dist/_esm5.processed/features/list/native_text_buffer.d.ts +0 -23
  2169. package/dist/_esm5.processed/features/list/native_text_buffer.js +0 -26
  2170. package/dist/_esm5.processed/features/list/native_ttml_parser.d.ts +0 -23
  2171. package/dist/_esm5.processed/features/list/native_ttml_parser.js +0 -28
  2172. package/dist/_esm5.processed/features/list/native_vtt_parser.d.ts +0 -23
  2173. package/dist/_esm5.processed/features/list/native_vtt_parser.js +0 -28
  2174. package/dist/_esm5.processed/features/list/smooth.d.ts +0 -23
  2175. package/dist/_esm5.processed/features/list/smooth.js +0 -28
  2176. package/dist/_esm5.processed/features/types.d.ts +0 -154
  2177. package/dist/_esm5.processed/features/types.js +0 -16
  2178. package/dist/_esm5.processed/log.d.ts +0 -18
  2179. package/dist/_esm5.processed/log.js +0 -19
  2180. package/dist/_esm5.processed/manifest/adaptation.d.ts +0 -115
  2181. package/dist/_esm5.processed/manifest/adaptation.js +0 -208
  2182. package/dist/_esm5.processed/manifest/index.d.ts +0 -25
  2183. package/dist/_esm5.processed/manifest/index.js +0 -28
  2184. package/dist/_esm5.processed/manifest/manifest.d.ts +0 -317
  2185. package/dist/_esm5.processed/manifest/manifest.js +0 -487
  2186. package/dist/_esm5.processed/manifest/period.d.ts +0 -74
  2187. package/dist/_esm5.processed/manifest/period.js +0 -141
  2188. package/dist/_esm5.processed/manifest/representation.d.ts +0 -246
  2189. package/dist/_esm5.processed/manifest/representation.js +0 -265
  2190. package/dist/_esm5.processed/manifest/representation_index/index.d.ts +0 -18
  2191. package/dist/_esm5.processed/manifest/representation_index/static.d.ts +0 -99
  2192. package/dist/_esm5.processed/manifest/representation_index/static.js +0 -135
  2193. package/dist/_esm5.processed/manifest/representation_index/types.d.ts +0 -399
  2194. package/dist/_esm5.processed/manifest/representation_index/types.js +0 -16
  2195. package/dist/_esm5.processed/manifest/types.d.ts +0 -31
  2196. package/dist/_esm5.processed/manifest/update_period_in_place.d.ts +0 -49
  2197. package/dist/_esm5.processed/manifest/update_period_in_place.js +0 -119
  2198. package/dist/_esm5.processed/manifest/update_periods.d.ts +0 -47
  2199. package/dist/_esm5.processed/manifest/update_periods.js +0 -168
  2200. package/dist/_esm5.processed/manifest/utils.d.ts +0 -39
  2201. package/dist/_esm5.processed/manifest/utils.js +0 -42
  2202. package/dist/_esm5.processed/minimal.d.ts +0 -17
  2203. package/dist/_esm5.processed/minimal.js +0 -31
  2204. package/dist/_esm5.processed/parsers/containers/isobmff/constants.d.ts +0 -23
  2205. package/dist/_esm5.processed/parsers/containers/isobmff/constants.js +0 -23
  2206. package/dist/_esm5.processed/parsers/containers/isobmff/create_box.d.ts +0 -30
  2207. package/dist/_esm5.processed/parsers/containers/isobmff/create_box.js +0 -64
  2208. package/dist/_esm5.processed/parsers/containers/isobmff/drm/index.d.ts +0 -16
  2209. package/dist/_esm5.processed/parsers/containers/isobmff/drm/index.js +0 -16
  2210. package/dist/_esm5.processed/parsers/containers/isobmff/drm/playready.d.ts +0 -21
  2211. package/dist/_esm5.processed/parsers/containers/isobmff/drm/playready.js +0 -36
  2212. package/dist/_esm5.processed/parsers/containers/isobmff/get_box.d.ts +0 -107
  2213. package/dist/_esm5.processed/parsers/containers/isobmff/get_box.js +0 -228
  2214. package/dist/_esm5.processed/parsers/containers/isobmff/index.d.ts +0 -21
  2215. package/dist/_esm5.processed/parsers/containers/isobmff/index.js +0 -21
  2216. package/dist/_esm5.processed/parsers/containers/isobmff/read.d.ts +0 -57
  2217. package/dist/_esm5.processed/parsers/containers/isobmff/read.js +0 -88
  2218. package/dist/_esm5.processed/parsers/containers/isobmff/take_pssh_out.d.ts +0 -41
  2219. package/dist/_esm5.processed/parsers/containers/isobmff/take_pssh_out.js +0 -83
  2220. package/dist/_esm5.processed/parsers/containers/isobmff/utils.d.ts +0 -123
  2221. package/dist/_esm5.processed/parsers/containers/isobmff/utils.js +0 -434
  2222. package/dist/_esm5.processed/parsers/containers/matroska/index.d.ts +0 -16
  2223. package/dist/_esm5.processed/parsers/containers/matroska/index.js +0 -16
  2224. package/dist/_esm5.processed/parsers/containers/matroska/utils.d.ts +0 -34
  2225. package/dist/_esm5.processed/parsers/containers/matroska/utils.js +0 -236
  2226. package/dist/_esm5.processed/parsers/images/bif.d.ts +0 -39
  2227. package/dist/_esm5.processed/parsers/images/bif.js +0 -88
  2228. package/dist/_esm5.processed/parsers/manifest/dash/common/attach_trickmode_track.d.ts +0 -28
  2229. package/dist/_esm5.processed/parsers/manifest/dash/common/attach_trickmode_track.js +0 -48
  2230. package/dist/_esm5.processed/parsers/manifest/dash/common/convert_supplemental_codecs.d.ts +0 -17
  2231. package/dist/_esm5.processed/parsers/manifest/dash/common/convert_supplemental_codecs.js +0 -26
  2232. package/dist/_esm5.processed/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts +0 -43
  2233. package/dist/_esm5.processed/parsers/manifest/dash/common/flatten_overlapping_periods.js +0 -79
  2234. package/dist/_esm5.processed/parsers/manifest/dash/common/get_clock_offset.d.ts +0 -29
  2235. package/dist/_esm5.processed/parsers/manifest/dash/common/get_clock_offset.js +0 -37
  2236. package/dist/_esm5.processed/parsers/manifest/dash/common/get_hdr_information.d.ts +0 -50
  2237. package/dist/_esm5.processed/parsers/manifest/dash/common/get_hdr_information.js +0 -58
  2238. package/dist/_esm5.processed/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts +0 -21
  2239. package/dist/_esm5.processed/parsers/manifest/dash/common/get_http_utc-timing_url.js +0 -28
  2240. package/dist/_esm5.processed/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts +0 -25
  2241. package/dist/_esm5.processed/parsers/manifest/dash/common/get_minimum_and_maximum_positions.js +0 -30
  2242. package/dist/_esm5.processed/parsers/manifest/dash/common/get_periods_time_infos.d.ts +0 -43
  2243. package/dist/_esm5.processed/parsers/manifest/dash/common/get_periods_time_infos.js +0 -64
  2244. package/dist/_esm5.processed/parsers/manifest/dash/common/index.d.ts +0 -20
  2245. package/dist/_esm5.processed/parsers/manifest/dash/common/index.js +0 -19
  2246. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/base.d.ts +0 -260
  2247. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/base.js +0 -247
  2248. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/get_init_segment.d.ts +0 -32
  2249. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/get_init_segment.js +0 -40
  2250. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts +0 -36
  2251. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/get_segments_from_timeline.js +0 -94
  2252. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/index.d.ts +0 -20
  2253. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/index.js +0 -20
  2254. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/list.d.ts +0 -191
  2255. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/list.js +0 -192
  2256. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/template.d.ts +0 -258
  2257. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/template.js +0 -422
  2258. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +0 -26
  2259. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +0 -47
  2260. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +0 -17
  2261. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +0 -83
  2262. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts +0 -37
  2263. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.js +0 -56
  2264. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +0 -41
  2265. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +0 -127
  2266. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/index.d.ts +0 -17
  2267. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/index.js +0 -17
  2268. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts +0 -34
  2269. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/parse_s_element.js +0 -57
  2270. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +0 -334
  2271. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +0 -458
  2272. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/tokens.d.ts +0 -40
  2273. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/tokens.js +0 -109
  2274. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/utils.d.ts +0 -25
  2275. package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/utils.js +0 -28
  2276. package/dist/_esm5.processed/parsers/manifest/dash/common/infer_adaptation_type.d.ts +0 -42
  2277. package/dist/_esm5.processed/parsers/manifest/dash/common/infer_adaptation_type.js +0 -114
  2278. package/dist/_esm5.processed/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts +0 -88
  2279. package/dist/_esm5.processed/parsers/manifest/dash/common/manifest_bounds_calculator.js +0 -111
  2280. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_adaptation_sets.d.ts +0 -49
  2281. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_adaptation_sets.js +0 -373
  2282. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_availability_start_time.d.ts +0 -22
  2283. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_availability_start_time.js +0 -29
  2284. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_mpd.d.ts +0 -97
  2285. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_mpd.js +0 -247
  2286. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_periods.d.ts +0 -63
  2287. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_periods.js +0 -259
  2288. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representation_index.d.ts +0 -75
  2289. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representation_index.js +0 -96
  2290. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representations.d.ts +0 -46
  2291. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representations.js +0 -268
  2292. package/dist/_esm5.processed/parsers/manifest/dash/common/resolve_base_urls.d.ts +0 -26
  2293. package/dist/_esm5.processed/parsers/manifest/dash/common/resolve_base_urls.js +0 -44
  2294. package/dist/_esm5.processed/parsers/manifest/dash/index.d.ts +0 -16
  2295. package/dist/_esm5.processed/parsers/manifest/dash/index.js +0 -16
  2296. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/index.d.ts +0 -17
  2297. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/index.js +0 -17
  2298. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts +0 -23
  2299. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +0 -307
  2300. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts +0 -23
  2301. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/BaseURL.js +0 -30
  2302. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts +0 -22
  2303. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.js +0 -41
  2304. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts +0 -21
  2305. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.js +0 -75
  2306. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts +0 -23
  2307. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/EventStream.js +0 -94
  2308. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts +0 -21
  2309. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Initialization.js +0 -39
  2310. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts +0 -21
  2311. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/MPD.js +0 -144
  2312. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts +0 -21
  2313. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Period.js +0 -112
  2314. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts +0 -21
  2315. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Representation.js +0 -187
  2316. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts +0 -22
  2317. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.js +0 -89
  2318. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts +0 -21
  2319. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentList.js +0 -40
  2320. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts +0 -23
  2321. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.js +0 -73
  2322. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts +0 -21
  2323. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.js +0 -30
  2324. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts +0 -23
  2325. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.js +0 -49
  2326. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts +0 -178
  2327. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/utils.js +0 -308
  2328. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/parse_from_document.d.ts +0 -24
  2329. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/parse_from_document.js +0 -103
  2330. package/dist/_esm5.processed/parsers/manifest/dash/node_parser_types.d.ts +0 -395
  2331. package/dist/_esm5.processed/parsers/manifest/dash/node_parser_types.js +0 -16
  2332. package/dist/_esm5.processed/parsers/manifest/dash/parsers_types.d.ts +0 -83
  2333. package/dist/_esm5.processed/parsers/manifest/dash/parsers_types.js +0 -16
  2334. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/index.d.ts +0 -18
  2335. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/index.js +0 -17
  2336. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +0 -111
  2337. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +0 -377
  2338. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts +0 -31
  2339. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +0 -277
  2340. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts +0 -24
  2341. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.js +0 -30
  2342. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts +0 -24
  2343. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.js +0 -41
  2344. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts +0 -23
  2345. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +0 -49
  2346. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts +0 -32
  2347. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.js +0 -112
  2348. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts +0 -27
  2349. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +0 -145
  2350. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts +0 -32
  2351. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +0 -130
  2352. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts +0 -31
  2353. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +0 -172
  2354. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts +0 -24
  2355. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.js +0 -35
  2356. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts +0 -18
  2357. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.js +0 -93
  2358. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts +0 -25
  2359. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.js +0 -45
  2360. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts +0 -18
  2361. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.js +0 -108
  2362. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts +0 -25
  2363. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.js +0 -54
  2364. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts +0 -28
  2365. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/XLink.js +0 -47
  2366. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts +0 -16
  2367. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/index.js +0 -16
  2368. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts +0 -27
  2369. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/root.js +0 -45
  2370. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts +0 -38
  2371. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/parsers_stack.js +0 -57
  2372. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/types.d.ts +0 -145
  2373. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/types.js +0 -16
  2374. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/utils.d.ts +0 -29
  2375. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/utils.js +0 -36
  2376. package/dist/_esm5.processed/parsers/manifest/index.d.ts +0 -16
  2377. package/dist/_esm5.processed/parsers/manifest/index.js +0 -16
  2378. package/dist/_esm5.processed/parsers/manifest/local/index.d.ts +0 -18
  2379. package/dist/_esm5.processed/parsers/manifest/local/index.js +0 -17
  2380. package/dist/_esm5.processed/parsers/manifest/local/parse_local_manifest.d.ts +0 -22
  2381. package/dist/_esm5.processed/parsers/manifest/local/parse_local_manifest.js +0 -125
  2382. package/dist/_esm5.processed/parsers/manifest/local/representation_index.d.ts +0 -81
  2383. package/dist/_esm5.processed/parsers/manifest/local/representation_index.js +0 -234
  2384. package/dist/_esm5.processed/parsers/manifest/local/types.d.ts +0 -285
  2385. package/dist/_esm5.processed/parsers/manifest/local/types.js +0 -16
  2386. package/dist/_esm5.processed/parsers/manifest/metaplaylist/index.d.ts +0 -18
  2387. package/dist/_esm5.processed/parsers/manifest/metaplaylist/index.js +0 -17
  2388. package/dist/_esm5.processed/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts +0 -64
  2389. package/dist/_esm5.processed/parsers/manifest/metaplaylist/metaplaylist_parser.js +0 -254
  2390. package/dist/_esm5.processed/parsers/manifest/metaplaylist/representation_index.d.ts +0 -145
  2391. package/dist/_esm5.processed/parsers/manifest/metaplaylist/representation_index.js +0 -216
  2392. package/dist/_esm5.processed/parsers/manifest/smooth/create_parser.d.ts +0 -34
  2393. package/dist/_esm5.processed/parsers/manifest/smooth/create_parser.js +0 -499
  2394. package/dist/_esm5.processed/parsers/manifest/smooth/get_codecs.d.ts +0 -26
  2395. package/dist/_esm5.processed/parsers/manifest/smooth/get_codecs.js +0 -50
  2396. package/dist/_esm5.processed/parsers/manifest/smooth/index.d.ts +0 -19
  2397. package/dist/_esm5.processed/parsers/manifest/smooth/index.js +0 -19
  2398. package/dist/_esm5.processed/parsers/manifest/smooth/parse_C_nodes.d.ts +0 -26
  2399. package/dist/_esm5.processed/parsers/manifest/smooth/parse_C_nodes.js +0 -60
  2400. package/dist/_esm5.processed/parsers/manifest/smooth/parse_protection_node.d.ts +0 -29
  2401. package/dist/_esm5.processed/parsers/manifest/smooth/parse_protection_node.js +0 -58
  2402. package/dist/_esm5.processed/parsers/manifest/smooth/representation_index.d.ts +0 -288
  2403. package/dist/_esm5.processed/parsers/manifest/smooth/representation_index.js +0 -454
  2404. package/dist/_esm5.processed/parsers/manifest/smooth/utils/add_segment_infos.d.ts +0 -41
  2405. package/dist/_esm5.processed/parsers/manifest/smooth/utils/add_segment_infos.js +0 -60
  2406. package/dist/_esm5.processed/parsers/manifest/smooth/utils/parseBoolean.d.ts +0 -20
  2407. package/dist/_esm5.processed/parsers/manifest/smooth/utils/parseBoolean.js +0 -30
  2408. package/dist/_esm5.processed/parsers/manifest/smooth/utils/reduceChildren.d.ts +0 -23
  2409. package/dist/_esm5.processed/parsers/manifest/smooth/utils/reduceChildren.js +0 -31
  2410. package/dist/_esm5.processed/parsers/manifest/smooth/utils/tokens.d.ts +0 -28
  2411. package/dist/_esm5.processed/parsers/manifest/smooth/utils/tokens.js +0 -35
  2412. package/dist/_esm5.processed/parsers/manifest/types.d.ts +0 -379
  2413. package/dist/_esm5.processed/parsers/manifest/types.js +0 -16
  2414. package/dist/_esm5.processed/parsers/manifest/utils/check_manifest_ids.d.ts +0 -25
  2415. package/dist/_esm5.processed/parsers/manifest/utils/check_manifest_ids.js +0 -76
  2416. package/dist/_esm5.processed/parsers/manifest/utils/clear_timeline_from_position.d.ts +0 -24
  2417. package/dist/_esm5.processed/parsers/manifest/utils/clear_timeline_from_position.js +0 -69
  2418. package/dist/_esm5.processed/parsers/manifest/utils/get_first_time_from_adaptation.d.ts +0 -27
  2419. package/dist/_esm5.processed/parsers/manifest/utils/get_first_time_from_adaptation.js +0 -43
  2420. package/dist/_esm5.processed/parsers/manifest/utils/get_last_time_from_adaptation.d.ts +0 -29
  2421. package/dist/_esm5.processed/parsers/manifest/utils/get_last_time_from_adaptation.js +0 -45
  2422. package/dist/_esm5.processed/parsers/manifest/utils/get_maximum_positions.d.ts +0 -24
  2423. package/dist/_esm5.processed/parsers/manifest/utils/get_maximum_positions.js +0 -72
  2424. package/dist/_esm5.processed/parsers/manifest/utils/get_minimum_position.d.ts +0 -21
  2425. package/dist/_esm5.processed/parsers/manifest/utils/get_minimum_position.js +0 -68
  2426. package/dist/_esm5.processed/parsers/manifest/utils/index_helpers.d.ts +0 -88
  2427. package/dist/_esm5.processed/parsers/manifest/utils/index_helpers.js +0 -147
  2428. package/dist/_esm5.processed/parsers/manifest/utils/is_segment_still_available.d.ts +0 -29
  2429. package/dist/_esm5.processed/parsers/manifest/utils/is_segment_still_available.js +0 -51
  2430. package/dist/_esm5.processed/parsers/manifest/utils/update_segment_timeline.d.ts +0 -33
  2431. package/dist/_esm5.processed/parsers/manifest/utils/update_segment_timeline.js +0 -138
  2432. package/dist/_esm5.processed/parsers/texttracks/index.d.ts +0 -16
  2433. package/dist/_esm5.processed/parsers/texttracks/index.js +0 -16
  2434. package/dist/_esm5.processed/parsers/texttracks/sami/html.d.ts +0 -29
  2435. package/dist/_esm5.processed/parsers/texttracks/sami/html.js +0 -189
  2436. package/dist/_esm5.processed/parsers/texttracks/sami/native.d.ts +0 -34
  2437. package/dist/_esm5.processed/parsers/texttracks/sami/native.js +0 -160
  2438. package/dist/_esm5.processed/parsers/texttracks/srt/find_end_of_cue_block.d.ts +0 -29
  2439. package/dist/_esm5.processed/parsers/texttracks/srt/find_end_of_cue_block.js +0 -39
  2440. package/dist/_esm5.processed/parsers/texttracks/srt/get_cue_blocks.d.ts +0 -22
  2441. package/dist/_esm5.processed/parsers/texttracks/srt/get_cue_blocks.js +0 -47
  2442. package/dist/_esm5.processed/parsers/texttracks/srt/html.d.ts +0 -26
  2443. package/dist/_esm5.processed/parsers/texttracks/srt/html.js +0 -153
  2444. package/dist/_esm5.processed/parsers/texttracks/srt/native.d.ts +0 -28
  2445. package/dist/_esm5.processed/parsers/texttracks/srt/native.js +0 -57
  2446. package/dist/_esm5.processed/parsers/texttracks/srt/parse_cue.d.ts +0 -30
  2447. package/dist/_esm5.processed/parsers/texttracks/srt/parse_cue.js +0 -60
  2448. package/dist/_esm5.processed/parsers/texttracks/srt/parse_timestamp.d.ts +0 -21
  2449. package/dist/_esm5.processed/parsers/texttracks/srt/parse_timestamp.js +0 -33
  2450. package/dist/_esm5.processed/parsers/texttracks/ttml/get_parameters.d.ts +0 -32
  2451. package/dist/_esm5.processed/parsers/texttracks/ttml/get_parameters.js +0 -84
  2452. package/dist/_esm5.processed/parsers/texttracks/ttml/get_styling.d.ts +0 -41
  2453. package/dist/_esm5.processed/parsers/texttracks/ttml/get_styling.js +0 -132
  2454. package/dist/_esm5.processed/parsers/texttracks/ttml/get_time_delimiters.d.ts +0 -26
  2455. package/dist/_esm5.processed/parsers/texttracks/ttml/get_time_delimiters.js +0 -41
  2456. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.d.ts +0 -48
  2457. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.js +0 -61
  2458. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_extent.d.ts +0 -21
  2459. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_extent.js +0 -61
  2460. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_font_size.d.ts +0 -21
  2461. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_font_size.js +0 -59
  2462. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_line_height.d.ts +0 -20
  2463. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_line_height.js +0 -45
  2464. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_origin.d.ts +0 -20
  2465. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_origin.js +0 -60
  2466. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_padding.d.ts +0 -20
  2467. package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_padding.js +0 -139
  2468. package/dist/_esm5.processed/parsers/texttracks/ttml/html/create_element.d.ts +0 -32
  2469. package/dist/_esm5.processed/parsers/texttracks/ttml/html/create_element.js +0 -451
  2470. package/dist/_esm5.processed/parsers/texttracks/ttml/html/generate_css_test_outline.d.ts +0 -26
  2471. package/dist/_esm5.processed/parsers/texttracks/ttml/html/generate_css_test_outline.js +0 -41
  2472. package/dist/_esm5.processed/parsers/texttracks/ttml/html/index.d.ts +0 -21
  2473. package/dist/_esm5.processed/parsers/texttracks/ttml/html/index.js +0 -21
  2474. package/dist/_esm5.processed/parsers/texttracks/ttml/html/parse_cue.d.ts +0 -26
  2475. package/dist/_esm5.processed/parsers/texttracks/ttml/html/parse_cue.js +0 -38
  2476. package/dist/_esm5.processed/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts +0 -34
  2477. package/dist/_esm5.processed/parsers/texttracks/ttml/html/parse_ttml_to_div.js +0 -50
  2478. package/dist/_esm5.processed/parsers/texttracks/ttml/html/ttml_color_to_css_color.d.ts +0 -21
  2479. package/dist/_esm5.processed/parsers/texttracks/ttml/html/ttml_color_to_css_color.js +0 -57
  2480. package/dist/_esm5.processed/parsers/texttracks/ttml/native/index.d.ts +0 -21
  2481. package/dist/_esm5.processed/parsers/texttracks/ttml/native/index.js +0 -21
  2482. package/dist/_esm5.processed/parsers/texttracks/ttml/native/parse_cue.d.ts +0 -30
  2483. package/dist/_esm5.processed/parsers/texttracks/ttml/native/parse_cue.js +0 -202
  2484. package/dist/_esm5.processed/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts +0 -21
  2485. package/dist/_esm5.processed/parsers/texttracks/ttml/native/parse_ttml_to_vtt.js +0 -33
  2486. package/dist/_esm5.processed/parsers/texttracks/ttml/parse_ttml.d.ts +0 -43
  2487. package/dist/_esm5.processed/parsers/texttracks/ttml/parse_ttml.js +0 -156
  2488. package/dist/_esm5.processed/parsers/texttracks/ttml/regexps.d.ts +0 -28
  2489. package/dist/_esm5.processed/parsers/texttracks/ttml/regexps.js +0 -35
  2490. package/dist/_esm5.processed/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts +0 -49
  2491. package/dist/_esm5.processed/parsers/texttracks/ttml/resolve_styles_inheritance.js +0 -83
  2492. package/dist/_esm5.processed/parsers/texttracks/ttml/time_parsing.d.ts +0 -30
  2493. package/dist/_esm5.processed/parsers/texttracks/ttml/time_parsing.js +0 -124
  2494. package/dist/_esm5.processed/parsers/texttracks/ttml/xml_utils.d.ts +0 -70
  2495. package/dist/_esm5.processed/parsers/texttracks/ttml/xml_utils.js +0 -149
  2496. package/dist/_esm5.processed/parsers/texttracks/types.d.ts +0 -23
  2497. package/dist/_esm5.processed/parsers/texttracks/types.js +0 -16
  2498. package/dist/_esm5.processed/parsers/texttracks/webvtt/get_cue_blocks.d.ts +0 -24
  2499. package/dist/_esm5.processed/parsers/texttracks/webvtt/get_cue_blocks.js +0 -44
  2500. package/dist/_esm5.processed/parsers/texttracks/webvtt/get_style_blocks.d.ts +0 -24
  2501. package/dist/_esm5.processed/parsers/texttracks/webvtt/get_style_blocks.js +0 -51
  2502. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts +0 -22
  2503. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/convert_payload_to_html.js +0 -35
  2504. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_default_style_elements.d.ts +0 -2
  2505. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_default_style_elements.js +0 -22
  2506. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_style_attribute.d.ts +0 -21
  2507. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_style_attribute.js +0 -175
  2508. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_styled_element.d.ts +0 -25
  2509. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_styled_element.js +0 -83
  2510. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/index.d.ts +0 -22
  2511. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/index.js +0 -21
  2512. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/parse_style_block.d.ts +0 -27
  2513. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/parse_style_block.js +0 -72
  2514. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/parse_webvtt_to_div.d.ts +0 -31
  2515. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/parse_webvtt_to_div.js +0 -55
  2516. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/to_html.d.ts +0 -43
  2517. package/dist/_esm5.processed/parsers/texttracks/webvtt/html/to_html.js +0 -70
  2518. package/dist/_esm5.processed/parsers/texttracks/webvtt/native/index.d.ts +0 -21
  2519. package/dist/_esm5.processed/parsers/texttracks/webvtt/native/index.js +0 -21
  2520. package/dist/_esm5.processed/parsers/texttracks/webvtt/native/parse_vtt_to_cues.d.ts +0 -28
  2521. package/dist/_esm5.processed/parsers/texttracks/webvtt/native/parse_vtt_to_cues.js +0 -58
  2522. package/dist/_esm5.processed/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts +0 -23
  2523. package/dist/_esm5.processed/parsers/texttracks/webvtt/native/set_settings_on_cue.js +0 -80
  2524. package/dist/_esm5.processed/parsers/texttracks/webvtt/native/to_native_cue.d.ts +0 -25
  2525. package/dist/_esm5.processed/parsers/texttracks/webvtt/native/to_native_cue.js +0 -25
  2526. package/dist/_esm5.processed/parsers/texttracks/webvtt/parse_cue_block.d.ts +0 -33
  2527. package/dist/_esm5.processed/parsers/texttracks/webvtt/parse_cue_block.js +0 -96
  2528. package/dist/_esm5.processed/parsers/texttracks/webvtt/parse_timestamp.d.ts +0 -21
  2529. package/dist/_esm5.processed/parsers/texttracks/webvtt/parse_timestamp.js +0 -34
  2530. package/dist/_esm5.processed/parsers/texttracks/webvtt/utils.d.ts +0 -56
  2531. package/dist/_esm5.processed/parsers/texttracks/webvtt/utils.js +0 -113
  2532. package/dist/_esm5.processed/public_types.d.ts +0 -737
  2533. package/dist/_esm5.processed/public_types.js +0 -16
  2534. package/dist/_esm5.processed/tools/TextTrackRenderer/index.d.ts +0 -22
  2535. package/dist/_esm5.processed/tools/TextTrackRenderer/index.js +0 -22
  2536. package/dist/_esm5.processed/tools/TextTrackRenderer/text_track_renderer.d.ts +0 -69
  2537. package/dist/_esm5.processed/tools/TextTrackRenderer/text_track_renderer.js +0 -78
  2538. package/dist/_esm5.processed/tools/index.d.ts +0 -18
  2539. package/dist/_esm5.processed/tools/index.js +0 -19
  2540. package/dist/_esm5.processed/tools/string_utils.d.ts +0 -16
  2541. package/dist/_esm5.processed/tools/string_utils.js +0 -16
  2542. package/dist/_esm5.processed/transports/dash/add_segment_integrity_checks_to_loader.d.ts +0 -24
  2543. package/dist/_esm5.processed/transports/dash/add_segment_integrity_checks_to_loader.js +0 -93
  2544. package/dist/_esm5.processed/transports/dash/construct_segment_url.d.ts +0 -18
  2545. package/dist/_esm5.processed/transports/dash/construct_segment_url.js +0 -21
  2546. package/dist/_esm5.processed/transports/dash/extract_complete_chunks.d.ts +0 -24
  2547. package/dist/_esm5.processed/transports/dash/extract_complete_chunks.js +0 -59
  2548. package/dist/_esm5.processed/transports/dash/get_events_out_of_emsgs.d.ts +0 -28
  2549. package/dist/_esm5.processed/transports/dash/get_events_out_of_emsgs.js +0 -92
  2550. package/dist/_esm5.processed/transports/dash/image_pipelines.d.ts +0 -38
  2551. package/dist/_esm5.processed/transports/dash/image_pipelines.js +0 -129
  2552. package/dist/_esm5.processed/transports/dash/index.d.ts +0 -21
  2553. package/dist/_esm5.processed/transports/dash/index.js +0 -21
  2554. package/dist/_esm5.processed/transports/dash/init_segment_loader.d.ts +0 -28
  2555. package/dist/_esm5.processed/transports/dash/init_segment_loader.js +0 -68
  2556. package/dist/_esm5.processed/transports/dash/low_latency_segment_loader.d.ts +0 -30
  2557. package/dist/_esm5.processed/transports/dash/low_latency_segment_loader.js +0 -64
  2558. package/dist/_esm5.processed/transports/dash/manifest_parser.d.ts +0 -18
  2559. package/dist/_esm5.processed/transports/dash/manifest_parser.js +0 -277
  2560. package/dist/_esm5.processed/transports/dash/pipelines.d.ts +0 -23
  2561. package/dist/_esm5.processed/transports/dash/pipelines.js +0 -58
  2562. package/dist/_esm5.processed/transports/dash/segment_loader.d.ts +0 -38
  2563. package/dist/_esm5.processed/transports/dash/segment_loader.js +0 -162
  2564. package/dist/_esm5.processed/transports/dash/segment_parser.d.ts +0 -23
  2565. package/dist/_esm5.processed/transports/dash/segment_parser.js +0 -129
  2566. package/dist/_esm5.processed/transports/dash/text_loader.d.ts +0 -25
  2567. package/dist/_esm5.processed/transports/dash/text_loader.js +0 -82
  2568. package/dist/_esm5.processed/transports/dash/text_parser.d.ts +0 -25
  2569. package/dist/_esm5.processed/transports/dash/text_parser.js +0 -169
  2570. package/dist/_esm5.processed/transports/index.d.ts +0 -16
  2571. package/dist/_esm5.processed/transports/index.js +0 -16
  2572. package/dist/_esm5.processed/transports/local/index.d.ts +0 -17
  2573. package/dist/_esm5.processed/transports/local/index.js +0 -17
  2574. package/dist/_esm5.processed/transports/local/pipelines.d.ts +0 -22
  2575. package/dist/_esm5.processed/transports/local/pipelines.js +0 -73
  2576. package/dist/_esm5.processed/transports/local/segment_loader.d.ts +0 -28
  2577. package/dist/_esm5.processed/transports/local/segment_loader.js +0 -144
  2578. package/dist/_esm5.processed/transports/local/segment_parser.d.ts +0 -20
  2579. package/dist/_esm5.processed/transports/local/segment_parser.js +0 -69
  2580. package/dist/_esm5.processed/transports/local/text_parser.d.ts +0 -27
  2581. package/dist/_esm5.processed/transports/local/text_parser.js +0 -131
  2582. package/dist/_esm5.processed/transports/metaplaylist/index.d.ts +0 -21
  2583. package/dist/_esm5.processed/transports/metaplaylist/index.js +0 -21
  2584. package/dist/_esm5.processed/transports/metaplaylist/manifest_loader.d.ts +0 -26
  2585. package/dist/_esm5.processed/transports/metaplaylist/manifest_loader.js +0 -41
  2586. package/dist/_esm5.processed/transports/metaplaylist/pipelines.d.ts +0 -17
  2587. package/dist/_esm5.processed/transports/metaplaylist/pipelines.js +0 -254
  2588. package/dist/_esm5.processed/transports/smooth/extract_timings_infos.d.ts +0 -62
  2589. package/dist/_esm5.processed/transports/smooth/extract_timings_infos.js +0 -78
  2590. package/dist/_esm5.processed/transports/smooth/index.d.ts +0 -21
  2591. package/dist/_esm5.processed/transports/smooth/index.js +0 -21
  2592. package/dist/_esm5.processed/transports/smooth/isobmff/create_audio_init_segment.d.ts +0 -29
  2593. package/dist/_esm5.processed/transports/smooth/isobmff/create_audio_init_segment.js +0 -52
  2594. package/dist/_esm5.processed/transports/smooth/isobmff/create_boxes.d.ts +0 -171
  2595. package/dist/_esm5.processed/transports/smooth/isobmff/create_boxes.js +0 -328
  2596. package/dist/_esm5.processed/transports/smooth/isobmff/create_init_segment.d.ts +0 -33
  2597. package/dist/_esm5.processed/transports/smooth/isobmff/create_init_segment.js +0 -65
  2598. package/dist/_esm5.processed/transports/smooth/isobmff/create_traf_box.d.ts +0 -16
  2599. package/dist/_esm5.processed/transports/smooth/isobmff/create_traf_box.js +0 -24
  2600. package/dist/_esm5.processed/transports/smooth/isobmff/create_video_init_segment.d.ts +0 -29
  2601. package/dist/_esm5.processed/transports/smooth/isobmff/create_video_init_segment.js +0 -57
  2602. package/dist/_esm5.processed/transports/smooth/isobmff/get_aaces_header.d.ts +0 -27
  2603. package/dist/_esm5.processed/transports/smooth/isobmff/get_aaces_header.js +0 -55
  2604. package/dist/_esm5.processed/transports/smooth/isobmff/index.d.ts +0 -21
  2605. package/dist/_esm5.processed/transports/smooth/isobmff/index.js +0 -21
  2606. package/dist/_esm5.processed/transports/smooth/isobmff/parse_tfrf.d.ts +0 -24
  2607. package/dist/_esm5.processed/transports/smooth/isobmff/parse_tfrf.js +0 -47
  2608. package/dist/_esm5.processed/transports/smooth/isobmff/parse_tfxd.d.ts +0 -24
  2609. package/dist/_esm5.processed/transports/smooth/isobmff/parse_tfxd.js +0 -31
  2610. package/dist/_esm5.processed/transports/smooth/isobmff/patch_segment.d.ts +0 -23
  2611. package/dist/_esm5.processed/transports/smooth/isobmff/patch_segment.js +0 -127
  2612. package/dist/_esm5.processed/transports/smooth/pipelines.d.ts +0 -17
  2613. package/dist/_esm5.processed/transports/smooth/pipelines.js +0 -440
  2614. package/dist/_esm5.processed/transports/smooth/segment_loader.d.ts +0 -27
  2615. package/dist/_esm5.processed/transports/smooth/segment_loader.js +0 -198
  2616. package/dist/_esm5.processed/transports/smooth/utils.d.ts +0 -51
  2617. package/dist/_esm5.processed/transports/smooth/utils.js +0 -86
  2618. package/dist/_esm5.processed/transports/types.d.ts +0 -687
  2619. package/dist/_esm5.processed/transports/types.js +0 -16
  2620. package/dist/_esm5.processed/transports/utils/byte_range.d.ts +0 -21
  2621. package/dist/_esm5.processed/transports/utils/byte_range.js +0 -25
  2622. package/dist/_esm5.processed/transports/utils/call_custom_manifest_loader.d.ts +0 -19
  2623. package/dist/_esm5.processed/transports/utils/call_custom_manifest_loader.js +0 -91
  2624. package/dist/_esm5.processed/transports/utils/check_isobmff_integrity.d.ts +0 -23
  2625. package/dist/_esm5.processed/transports/utils/check_isobmff_integrity.js +0 -46
  2626. package/dist/_esm5.processed/transports/utils/find_complete_box.d.ts +0 -25
  2627. package/dist/_esm5.processed/transports/utils/find_complete_box.js +0 -53
  2628. package/dist/_esm5.processed/transports/utils/generate_manifest_loader.d.ts +0 -26
  2629. package/dist/_esm5.processed/transports/utils/generate_manifest_loader.js +0 -59
  2630. package/dist/_esm5.processed/transports/utils/get_isobmff_timing_infos.d.ts +0 -29
  2631. package/dist/_esm5.processed/transports/utils/get_isobmff_timing_infos.js +0 -66
  2632. package/dist/_esm5.processed/transports/utils/infer_segment_container.d.ts +0 -29
  2633. package/dist/_esm5.processed/transports/utils/infer_segment_container.js +0 -46
  2634. package/dist/_esm5.processed/transports/utils/parse_text_track.d.ts +0 -60
  2635. package/dist/_esm5.processed/transports/utils/parse_text_track.js +0 -136
  2636. package/dist/_esm5.processed/utils/are_arrays_of_numbers_equal.d.ts +0 -22
  2637. package/dist/_esm5.processed/utils/are_arrays_of_numbers_equal.js +0 -35
  2638. package/dist/_esm5.processed/utils/are_codecs_compatible.d.ts +0 -25
  2639. package/dist/_esm5.processed/utils/are_codecs_compatible.js +0 -44
  2640. package/dist/_esm5.processed/utils/array_find.d.ts +0 -23
  2641. package/dist/_esm5.processed/utils/array_find.js +0 -35
  2642. package/dist/_esm5.processed/utils/array_find_index.d.ts +0 -23
  2643. package/dist/_esm5.processed/utils/array_find_index.js +0 -34
  2644. package/dist/_esm5.processed/utils/array_includes.d.ts +0 -53
  2645. package/dist/_esm5.processed/utils/array_includes.js +0 -83
  2646. package/dist/_esm5.processed/utils/assert.d.ts +0 -34
  2647. package/dist/_esm5.processed/utils/assert.js +0 -52
  2648. package/dist/_esm5.processed/utils/assert_unreachable.d.ts +0 -40
  2649. package/dist/_esm5.processed/utils/assert_unreachable.js +0 -43
  2650. package/dist/_esm5.processed/utils/base64.d.ts +0 -14
  2651. package/dist/_esm5.processed/utils/base64.js +0 -147
  2652. package/dist/_esm5.processed/utils/byte_parsing.d.ts +0 -123
  2653. package/dist/_esm5.processed/utils/byte_parsing.js +0 -231
  2654. package/dist/_esm5.processed/utils/cancellable_sleep.d.ts +0 -30
  2655. package/dist/_esm5.processed/utils/cancellable_sleep.js +0 -35
  2656. package/dist/_esm5.processed/utils/create_cancellable_promise.d.ts +0 -26
  2657. package/dist/_esm5.processed/utils/create_cancellable_promise.js +0 -52
  2658. package/dist/_esm5.processed/utils/deep_merge.d.ts +0 -9
  2659. package/dist/_esm5.processed/utils/deep_merge.js +0 -54
  2660. package/dist/_esm5.processed/utils/event_emitter.d.ts +0 -62
  2661. package/dist/_esm5.processed/utils/event_emitter.js +0 -103
  2662. package/dist/_esm5.processed/utils/flat_map.d.ts +0 -22
  2663. package/dist/_esm5.processed/utils/flat_map.js +0 -37
  2664. package/dist/_esm5.processed/utils/get_fuzzed_delay.d.ts +0 -21
  2665. package/dist/_esm5.processed/utils/get_fuzzed_delay.js +0 -25
  2666. package/dist/_esm5.processed/utils/hash_buffer.d.ts +0 -32
  2667. package/dist/_esm5.processed/utils/hash_buffer.js +0 -41
  2668. package/dist/_esm5.processed/utils/id_generator.d.ts +0 -21
  2669. package/dist/_esm5.processed/utils/id_generator.js +0 -33
  2670. package/dist/_esm5.processed/utils/initialization_segment_cache.d.ts +0 -42
  2671. package/dist/_esm5.processed/utils/initialization_segment_cache.js +0 -51
  2672. package/dist/_esm5.processed/utils/is_non_empty_string.d.ts +0 -20
  2673. package/dist/_esm5.processed/utils/is_non_empty_string.js +0 -22
  2674. package/dist/_esm5.processed/utils/is_null_or_undefined.d.ts +0 -24
  2675. package/dist/_esm5.processed/utils/is_null_or_undefined.js +0 -26
  2676. package/dist/_esm5.processed/utils/languages/ISO_639-1_to_ISO_639-3.d.ts +0 -22
  2677. package/dist/_esm5.processed/utils/languages/ISO_639-1_to_ISO_639-3.js +0 -205
  2678. package/dist/_esm5.processed/utils/languages/ISO_639-2_to_ISO_639-3.d.ts +0 -22
  2679. package/dist/_esm5.processed/utils/languages/ISO_639-2_to_ISO_639-3.js +0 -41
  2680. package/dist/_esm5.processed/utils/languages/index.d.ts +0 -18
  2681. package/dist/_esm5.processed/utils/languages/index.js +0 -18
  2682. package/dist/_esm5.processed/utils/languages/normalize.d.ts +0 -68
  2683. package/dist/_esm5.processed/utils/languages/normalize.js +0 -117
  2684. package/dist/_esm5.processed/utils/list_to_map.d.ts +0 -22
  2685. package/dist/_esm5.processed/utils/list_to_map.js +0 -28
  2686. package/dist/_esm5.processed/utils/logger.d.ts +0 -46
  2687. package/dist/_esm5.processed/utils/logger.js +0 -79
  2688. package/dist/_esm5.processed/utils/noop.d.ts +0 -23
  2689. package/dist/_esm5.processed/utils/noop.js +0 -25
  2690. package/dist/_esm5.processed/utils/object_assign.d.ts +0 -22
  2691. package/dist/_esm5.processed/utils/object_assign.js +0 -44
  2692. package/dist/_esm5.processed/utils/object_values.d.ts +0 -30
  2693. package/dist/_esm5.processed/utils/object_values.js +0 -26
  2694. package/dist/_esm5.processed/utils/ranges.d.ts +0 -170
  2695. package/dist/_esm5.processed/utils/ranges.js +0 -427
  2696. package/dist/_esm5.processed/utils/reference.d.ts +0 -214
  2697. package/dist/_esm5.processed/utils/reference.js +0 -295
  2698. package/dist/_esm5.processed/utils/request/fetch.d.ts +0 -76
  2699. package/dist/_esm5.processed/utils/request/fetch.js +0 -181
  2700. package/dist/_esm5.processed/utils/request/index.d.ts +0 -19
  2701. package/dist/_esm5.processed/utils/request/index.js +0 -19
  2702. package/dist/_esm5.processed/utils/request/xhr.d.ts +0 -95
  2703. package/dist/_esm5.processed/utils/request/xhr.js +0 -152
  2704. package/dist/_esm5.processed/utils/resolve_url.d.ts +0 -35
  2705. package/dist/_esm5.processed/utils/resolve_url.js +0 -117
  2706. package/dist/_esm5.processed/utils/retry_promise_with_backoff.d.ts +0 -46
  2707. package/dist/_esm5.processed/utils/retry_promise_with_backoff.js +0 -119
  2708. package/dist/_esm5.processed/utils/simple_set.d.ts +0 -51
  2709. package/dist/_esm5.processed/utils/simple_set.js +0 -57
  2710. package/dist/_esm5.processed/utils/sleep.d.ts +0 -10
  2711. package/dist/_esm5.processed/utils/sleep.js +0 -14
  2712. package/dist/_esm5.processed/utils/slice_uint8array.d.ts +0 -27
  2713. package/dist/_esm5.processed/utils/slice_uint8array.js +0 -42
  2714. package/dist/_esm5.processed/utils/sorted_list.d.ts +0 -127
  2715. package/dist/_esm5.processed/utils/sorted_list.js +0 -183
  2716. package/dist/_esm5.processed/utils/starts_with.d.ts +0 -26
  2717. package/dist/_esm5.processed/utils/starts_with.js +0 -36
  2718. package/dist/_esm5.processed/utils/string_parsing.d.ts +0 -88
  2719. package/dist/_esm5.processed/utils/string_parsing.js +0 -372
  2720. package/dist/_esm5.processed/utils/task_canceller.d.ts +0 -263
  2721. package/dist/_esm5.processed/utils/task_canceller.js +0 -325
  2722. package/dist/_esm5.processed/utils/uniq.d.ts +0 -36
  2723. package/dist/_esm5.processed/utils/uniq.js +0 -43
  2724. package/dist/_esm5.processed/utils/warn_once.d.ts +0 -23
  2725. package/dist/_esm5.processed/utils/warn_once.js +0 -31
  2726. package/dist/_esm5.processed/utils/weak_map_memory.d.ts +0 -70
  2727. package/dist/_esm5.processed/utils/weak_map_memory.js +0 -86
  2728. package/dist/_esm5.processed/utils/wrapInPromise.d.ts +0 -7
  2729. package/dist/_esm5.processed/utils/wrapInPromise.js +0 -22
  2730. package/dist/commonjs/compat/global_scope.d.ts +0 -9
  2731. package/dist/commonjs/compat/global_scope.js +0 -15
  2732. package/dist/commonjs/compat/index.d.ts +0 -37
  2733. package/dist/commonjs/compat/index.js +0 -66
  2734. package/dist/commonjs/core/api/debug/buffer_graph.d.ts +0 -28
  2735. package/dist/commonjs/core/api/debug/buffer_graph.js +0 -173
  2736. package/dist/commonjs/core/api/debug/buffer_size_graph.js +0 -132
  2737. package/dist/commonjs/core/api/debug/modules/general_info.d.ts +0 -3
  2738. package/dist/commonjs/core/api/debug/modules/general_info.js +0 -220
  2739. package/dist/commonjs/core/api/debug/modules/segment_buffer_content.d.ts +0 -4
  2740. package/dist/commonjs/core/api/debug/modules/segment_buffer_content.js +0 -124
  2741. package/dist/commonjs/core/api/debug/modules/segment_buffer_size.d.ts +0 -3
  2742. package/dist/commonjs/core/api/debug/modules/segment_buffer_size.js +0 -38
  2743. package/dist/commonjs/core/api/debug/render.d.ts +0 -3
  2744. package/dist/commonjs/core/api/index.d.ts +0 -20
  2745. package/dist/commonjs/core/api/index.js +0 -22
  2746. package/dist/commonjs/core/api/option_utils.d.ts +0 -123
  2747. package/dist/commonjs/core/api/option_utils.js +0 -308
  2748. package/dist/commonjs/core/api/playback_observer.d.ts +0 -490
  2749. package/dist/commonjs/core/api/playback_observer.js +0 -738
  2750. package/dist/commonjs/core/api/public_api.d.ts +0 -728
  2751. package/dist/commonjs/core/api/public_api.js +0 -2261
  2752. package/dist/commonjs/core/api/track_management/index.d.ts +0 -18
  2753. package/dist/commonjs/core/api/track_management/media_element_tracks_store.d.ts +0 -197
  2754. package/dist/commonjs/core/api/track_management/media_element_tracks_store.js +0 -688
  2755. package/dist/commonjs/core/api/track_management/track_dispatcher.d.ts +0 -96
  2756. package/dist/commonjs/core/api/track_management/track_dispatcher.js +0 -178
  2757. package/dist/commonjs/core/api/track_management/tracks_store.d.ts +0 -429
  2758. package/dist/commonjs/core/api/track_management/tracks_store.js +0 -998
  2759. package/dist/commonjs/core/api/utils.d.ts +0 -66
  2760. package/dist/commonjs/core/api/utils.js +0 -175
  2761. package/dist/commonjs/core/decrypt/__tests__/__global__/utils.d.ts +0 -178
  2762. package/dist/commonjs/core/decrypt/__tests__/__global__/utils.js +0 -413
  2763. package/dist/commonjs/core/decrypt/attach_media_keys.d.ts +0 -52
  2764. package/dist/commonjs/core/decrypt/attach_media_keys.js +0 -120
  2765. package/dist/commonjs/core/decrypt/clear_on_stop.js +0 -43
  2766. package/dist/commonjs/core/decrypt/content_decryptor.d.ts +0 -184
  2767. package/dist/commonjs/core/decrypt/content_decryptor.js +0 -1146
  2768. package/dist/commonjs/core/decrypt/create_or_load_session.d.ts +0 -63
  2769. package/dist/commonjs/core/decrypt/create_or_load_session.js +0 -127
  2770. package/dist/commonjs/core/decrypt/create_session.d.ts +0 -53
  2771. package/dist/commonjs/core/decrypt/create_session.js +0 -215
  2772. package/dist/commonjs/core/decrypt/dispose_decryption_resources.js +0 -91
  2773. package/dist/commonjs/core/decrypt/find_key_system.d.ts +0 -48
  2774. package/dist/commonjs/core/decrypt/find_key_system.js +0 -369
  2775. package/dist/commonjs/core/decrypt/get_media_keys.d.ts +0 -44
  2776. package/dist/commonjs/core/decrypt/get_media_keys.js +0 -156
  2777. package/dist/commonjs/core/decrypt/index.d.ts +0 -26
  2778. package/dist/commonjs/core/decrypt/init_media_keys.d.ts +0 -26
  2779. package/dist/commonjs/core/decrypt/init_media_keys.js +0 -85
  2780. package/dist/commonjs/core/decrypt/session_events_listener.d.ts +0 -75
  2781. package/dist/commonjs/core/decrypt/session_events_listener.js +0 -330
  2782. package/dist/commonjs/core/decrypt/set_server_certificate.d.ts +0 -51
  2783. package/dist/commonjs/core/decrypt/set_server_certificate.js +0 -146
  2784. package/dist/commonjs/core/decrypt/types.d.ts +0 -368
  2785. package/dist/commonjs/core/decrypt/utils/are_init_values_compatible.js +0 -116
  2786. package/dist/commonjs/core/decrypt/utils/check_key_statuses.d.ts +0 -52
  2787. package/dist/commonjs/core/decrypt/utils/check_key_statuses.js +0 -211
  2788. package/dist/commonjs/core/decrypt/utils/clean_old_loaded_sessions.d.ts +0 -26
  2789. package/dist/commonjs/core/decrypt/utils/clean_old_stored_persistent_info.d.ts +0 -32
  2790. package/dist/commonjs/core/decrypt/utils/init_data_values_container.d.ts +0 -69
  2791. package/dist/commonjs/core/decrypt/utils/init_data_values_container.js +0 -126
  2792. package/dist/commonjs/core/decrypt/utils/is_session_usable.d.ts +0 -24
  2793. package/dist/commonjs/core/decrypt/utils/is_session_usable.js +0 -52
  2794. package/dist/commonjs/core/decrypt/utils/key_session_record.d.ts +0 -104
  2795. package/dist/commonjs/core/decrypt/utils/key_session_record.js +0 -190
  2796. package/dist/commonjs/core/decrypt/utils/loaded_sessions_store.d.ts +0 -215
  2797. package/dist/commonjs/core/decrypt/utils/loaded_sessions_store.js +0 -515
  2798. package/dist/commonjs/core/decrypt/utils/media_keys_infos_store.d.ts +0 -56
  2799. package/dist/commonjs/core/decrypt/utils/media_keys_infos_store.js +0 -46
  2800. package/dist/commonjs/core/decrypt/utils/persistent_sessions_store.d.ts +0 -94
  2801. package/dist/commonjs/core/decrypt/utils/persistent_sessions_store.js +0 -346
  2802. package/dist/commonjs/core/decrypt/utils/serializable_bytes.d.ts +0 -44
  2803. package/dist/commonjs/core/decrypt/utils/serializable_bytes.js +0 -50
  2804. package/dist/commonjs/core/decrypt/utils/server_certificate_store.d.ts +0 -64
  2805. package/dist/commonjs/core/decrypt/utils/server_certificate_store.js +0 -114
  2806. package/dist/commonjs/core/init/directfile_content_initializer.d.ts +0 -97
  2807. package/dist/commonjs/core/init/directfile_content_initializer.js +0 -262
  2808. package/dist/commonjs/core/init/media_source_content_initializer.d.ts +0 -180
  2809. package/dist/commonjs/core/init/media_source_content_initializer.js +0 -667
  2810. package/dist/commonjs/core/init/types.d.ts +0 -217
  2811. package/dist/commonjs/core/init/types.js +0 -54
  2812. package/dist/commonjs/core/init/utils/content_time_boundaries_observer.d.ts +0 -192
  2813. package/dist/commonjs/core/init/utils/content_time_boundaries_observer.js +0 -518
  2814. package/dist/commonjs/core/init/utils/create_media_source.d.ts +0 -37
  2815. package/dist/commonjs/core/init/utils/create_media_source.js +0 -117
  2816. package/dist/commonjs/core/init/utils/create_stream_playback_observer.d.ts +0 -41
  2817. package/dist/commonjs/core/init/utils/create_stream_playback_observer.js +0 -91
  2818. package/dist/commonjs/core/init/utils/end_of_stream.d.ts +0 -33
  2819. package/dist/commonjs/core/init/utils/end_of_stream.js +0 -115
  2820. package/dist/commonjs/core/init/utils/get_initial_time.d.ts +0 -76
  2821. package/dist/commonjs/core/init/utils/get_initial_time.js +0 -115
  2822. package/dist/commonjs/core/init/utils/get_loaded_reference.d.ts +0 -28
  2823. package/dist/commonjs/core/init/utils/get_loaded_reference.js +0 -59
  2824. package/dist/commonjs/core/init/utils/initial_seek_and_play.d.ts +0 -61
  2825. package/dist/commonjs/core/init/utils/initial_seek_and_play.js +0 -161
  2826. package/dist/commonjs/core/init/utils/initialize_content_decryption.d.ts +0 -80
  2827. package/dist/commonjs/core/init/utils/initialize_content_decryption.js +0 -107
  2828. package/dist/commonjs/core/init/utils/media_source_duration_updater.js +0 -270
  2829. package/dist/commonjs/core/init/utils/rebuffering_controller.d.ts +0 -147
  2830. package/dist/commonjs/core/init/utils/rebuffering_controller.js +0 -554
  2831. package/dist/commonjs/core/init/utils/stream_events_emitter/are_same_stream_events.js +0 -37
  2832. package/dist/commonjs/core/init/utils/stream_events_emitter/index.d.ts +0 -18
  2833. package/dist/commonjs/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +0 -25
  2834. package/dist/commonjs/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +0 -68
  2835. package/dist/commonjs/core/init/utils/stream_events_emitter/stream_events_emitter.d.ts +0 -52
  2836. package/dist/commonjs/core/init/utils/stream_events_emitter/stream_events_emitter.js +0 -234
  2837. package/dist/commonjs/core/init/utils/stream_events_emitter/types.d.ts +0 -41
  2838. package/dist/commonjs/core/init/utils/throw_on_media_error.d.ts +0 -23
  2839. package/dist/commonjs/core/init/utils/throw_on_media_error.js +0 -61
  2840. package/dist/commonjs/core/segment_buffers/garbage_collector.d.ts +0 -41
  2841. package/dist/commonjs/core/segment_buffers/garbage_collector.js +0 -211
  2842. package/dist/commonjs/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.d.ts +0 -182
  2843. package/dist/commonjs/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.js +0 -464
  2844. package/dist/commonjs/core/segment_buffers/implementations/audio_video/index.d.ts +0 -17
  2845. package/dist/commonjs/core/segment_buffers/implementations/index.d.ts +0 -18
  2846. package/dist/commonjs/core/segment_buffers/implementations/index.js +0 -35
  2847. package/dist/commonjs/core/segment_buffers/implementations/text/html/html_text_segment_buffer.d.ts +0 -141
  2848. package/dist/commonjs/core/segment_buffers/implementations/text/html/html_text_segment_buffer.js +0 -407
  2849. package/dist/commonjs/core/segment_buffers/implementations/text/html/index.d.ts +0 -21
  2850. package/dist/commonjs/core/segment_buffers/implementations/text/html/index.js +0 -23
  2851. package/dist/commonjs/core/segment_buffers/implementations/text/html/parsers.d.ts +0 -30
  2852. package/dist/commonjs/core/segment_buffers/implementations/text/html/parsers.js +0 -40
  2853. package/dist/commonjs/core/segment_buffers/implementations/text/html/text_track_cues_store.d.ts +0 -79
  2854. package/dist/commonjs/core/segment_buffers/implementations/text/html/text_track_cues_store.js +0 -390
  2855. package/dist/commonjs/core/segment_buffers/implementations/text/html/types.d.ts +0 -25
  2856. package/dist/commonjs/core/segment_buffers/implementations/text/html/update_proportional_elements.d.ts +0 -30
  2857. package/dist/commonjs/core/segment_buffers/implementations/text/html/update_proportional_elements.js +0 -80
  2858. package/dist/commonjs/core/segment_buffers/implementations/text/html/utils.d.ts +0 -45
  2859. package/dist/commonjs/core/segment_buffers/implementations/text/html/utils.js +0 -131
  2860. package/dist/commonjs/core/segment_buffers/implementations/text/native/index.d.ts +0 -17
  2861. package/dist/commonjs/core/segment_buffers/implementations/text/native/index.js +0 -19
  2862. package/dist/commonjs/core/segment_buffers/implementations/text/native/native_text_segment_buffer.d.ts +0 -83
  2863. package/dist/commonjs/core/segment_buffers/implementations/text/native/native_text_segment_buffer.js +0 -273
  2864. package/dist/commonjs/core/segment_buffers/implementations/text/native/parsers.d.ts +0 -26
  2865. package/dist/commonjs/core/segment_buffers/implementations/text/native/parsers.js +0 -40
  2866. package/dist/commonjs/core/segment_buffers/implementations/types.d.ts +0 -320
  2867. package/dist/commonjs/core/segment_buffers/implementations/types.js +0 -124
  2868. package/dist/commonjs/core/segment_buffers/index.d.ts +0 -21
  2869. package/dist/commonjs/core/segment_buffers/index.js +0 -28
  2870. package/dist/commonjs/core/segment_buffers/inventory/buffered_history.d.ts +0 -89
  2871. package/dist/commonjs/core/segment_buffers/inventory/index.d.ts +0 -21
  2872. package/dist/commonjs/core/segment_buffers/inventory/segment_inventory.d.ts +0 -224
  2873. package/dist/commonjs/core/segment_buffers/inventory/segment_inventory.js +0 -875
  2874. package/dist/commonjs/core/segment_buffers/inventory/types.d.ts +0 -27
  2875. package/dist/commonjs/core/segment_buffers/inventory/utils.d.ts +0 -33
  2876. package/dist/commonjs/core/segment_buffers/inventory/utils.js +0 -54
  2877. package/dist/commonjs/core/segment_buffers/segment_buffers_store.d.ts +0 -180
  2878. package/dist/commonjs/core/segment_buffers/segment_buffers_store.js +0 -302
  2879. package/dist/commonjs/core/stream/representation/utils/force_garbage_collection.d.ts +0 -29
  2880. package/dist/commonjs/core/stream/representation/utils/force_garbage_collection.js +0 -179
  2881. package/dist/commonjs/errors/assertion_error.d.ts +0 -31
  2882. package/dist/commonjs/errors/assertion_error.js +0 -56
  2883. package/dist/commonjs/errors/request_error.d.ts +0 -38
  2884. package/dist/commonjs/errors/request_error.js +0 -76
  2885. package/dist/commonjs/experimental/features/dash_wasm.d.ts +0 -23
  2886. package/dist/commonjs/experimental/features/dash_wasm.js +0 -37
  2887. package/dist/commonjs/experimental/features/debug_element.d.ts +0 -8
  2888. package/dist/commonjs/experimental/features/debug_element.js +0 -13
  2889. package/dist/commonjs/experimental/tools/parseBIFThumbnails/index.js +0 -32
  2890. package/dist/commonjs/manifest/adaptation.d.ts +0 -113
  2891. package/dist/commonjs/manifest/adaptation.js +0 -223
  2892. package/dist/commonjs/manifest/manifest.d.ts +0 -265
  2893. package/dist/commonjs/manifest/manifest.js +0 -453
  2894. package/dist/commonjs/manifest/period.d.ts +0 -68
  2895. package/dist/commonjs/manifest/period.js +0 -140
  2896. package/dist/commonjs/manifest/representation.d.ts +0 -251
  2897. package/dist/commonjs/manifest/representation.js +0 -296
  2898. package/dist/commonjs/manifest/representation_index/index.d.ts +0 -18
  2899. package/dist/commonjs/manifest/representation_index/static.d.ts +0 -101
  2900. package/dist/commonjs/manifest/representation_index/static.js +0 -143
  2901. package/dist/commonjs/manifest/representation_index/types.d.ts +0 -420
  2902. package/dist/commonjs/manifest/representation_index/types.js +0 -17
  2903. package/dist/commonjs/manifest/update_period_in_place.d.ts +0 -49
  2904. package/dist/commonjs/manifest/update_period_in_place.js +0 -168
  2905. package/dist/commonjs/manifest/update_periods.d.ts +0 -47
  2906. package/dist/commonjs/manifest/update_periods.js +0 -189
  2907. package/dist/commonjs/utils/assert_unreachable.d.ts +0 -40
  2908. package/dist/commonjs/utils/assert_unreachable.js +0 -46
  2909. package/dist/commonjs/utils/initialization_segment_cache.d.ts +0 -42
  2910. package/dist/es2017/compat/global_scope.d.ts +0 -9
  2911. package/dist/es2017/compat/global_scope.js +0 -13
  2912. package/dist/es2017/compat/index.d.ts +0 -37
  2913. package/dist/es2017/compat/index.js +0 -43
  2914. package/dist/es2017/core/api/debug/buffer_graph.d.ts +0 -28
  2915. package/dist/es2017/core/api/debug/buffer_graph.js +0 -169
  2916. package/dist/es2017/core/api/debug/buffer_size_graph.d.ts +0 -10
  2917. package/dist/es2017/core/api/debug/buffer_size_graph.js +0 -103
  2918. package/dist/es2017/core/api/debug/constants.d.ts +0 -2
  2919. package/dist/es2017/core/api/debug/index.d.ts +0 -2
  2920. package/dist/es2017/core/api/debug/index.js +0 -2
  2921. package/dist/es2017/core/api/debug/modules/general_info.d.ts +0 -3
  2922. package/dist/es2017/core/api/debug/modules/general_info.js +0 -176
  2923. package/dist/es2017/core/api/debug/modules/segment_buffer_content.d.ts +0 -4
  2924. package/dist/es2017/core/api/debug/modules/segment_buffer_content.js +0 -121
  2925. package/dist/es2017/core/api/debug/modules/segment_buffer_size.d.ts +0 -3
  2926. package/dist/es2017/core/api/debug/modules/segment_buffer_size.js +0 -35
  2927. package/dist/es2017/core/api/debug/render.d.ts +0 -3
  2928. package/dist/es2017/core/api/debug/render.js +0 -32
  2929. package/dist/es2017/core/api/debug/utils.d.ts +0 -39
  2930. package/dist/es2017/core/api/debug/utils.js +0 -54
  2931. package/dist/es2017/core/api/index.d.ts +0 -20
  2932. package/dist/es2017/core/api/index.js +0 -19
  2933. package/dist/es2017/core/api/option_utils.d.ts +0 -123
  2934. package/dist/es2017/core/api/option_utils.js +0 -304
  2935. package/dist/es2017/core/api/playback_observer.d.ts +0 -490
  2936. package/dist/es2017/core/api/playback_observer.js +0 -742
  2937. package/dist/es2017/core/api/public_api.d.ts +0 -728
  2938. package/dist/es2017/core/api/public_api.js +0 -2136
  2939. package/dist/es2017/core/api/track_management/index.d.ts +0 -18
  2940. package/dist/es2017/core/api/track_management/media_element_tracks_store.d.ts +0 -197
  2941. package/dist/es2017/core/api/track_management/media_element_tracks_store.js +0 -669
  2942. package/dist/es2017/core/api/track_management/track_dispatcher.d.ts +0 -96
  2943. package/dist/es2017/core/api/track_management/track_dispatcher.js +0 -159
  2944. package/dist/es2017/core/api/track_management/tracks_store.d.ts +0 -429
  2945. package/dist/es2017/core/api/track_management/tracks_store.js +0 -944
  2946. package/dist/es2017/core/api/utils.d.ts +0 -66
  2947. package/dist/es2017/core/api/utils.js +0 -167
  2948. package/dist/es2017/core/decrypt/__tests__/__global__/utils.d.ts +0 -178
  2949. package/dist/es2017/core/decrypt/__tests__/__global__/utils.js +0 -363
  2950. package/dist/es2017/core/decrypt/attach_media_keys.d.ts +0 -52
  2951. package/dist/es2017/core/decrypt/attach_media_keys.js +0 -71
  2952. package/dist/es2017/core/decrypt/clear_on_stop.d.ts +0 -22
  2953. package/dist/es2017/core/decrypt/clear_on_stop.js +0 -40
  2954. package/dist/es2017/core/decrypt/content_decryptor.d.ts +0 -184
  2955. package/dist/es2017/core/decrypt/content_decryptor.js +0 -846
  2956. package/dist/es2017/core/decrypt/create_or_load_session.d.ts +0 -63
  2957. package/dist/es2017/core/decrypt/create_or_load_session.js +0 -75
  2958. package/dist/es2017/core/decrypt/create_session.d.ts +0 -53
  2959. package/dist/es2017/core/decrypt/create_session.js +0 -150
  2960. package/dist/es2017/core/decrypt/dispose_decryption_resources.d.ts +0 -21
  2961. package/dist/es2017/core/decrypt/dispose_decryption_resources.js +0 -42
  2962. package/dist/es2017/core/decrypt/find_key_system.d.ts +0 -48
  2963. package/dist/es2017/core/decrypt/find_key_system.js +0 -281
  2964. package/dist/es2017/core/decrypt/get_media_keys.d.ts +0 -44
  2965. package/dist/es2017/core/decrypt/get_media_keys.js +0 -100
  2966. package/dist/es2017/core/decrypt/index.d.ts +0 -26
  2967. package/dist/es2017/core/decrypt/index.js +0 -26
  2968. package/dist/es2017/core/decrypt/init_media_keys.d.ts +0 -26
  2969. package/dist/es2017/core/decrypt/init_media_keys.js +0 -37
  2970. package/dist/es2017/core/decrypt/session_events_listener.d.ts +0 -75
  2971. package/dist/es2017/core/decrypt/session_events_listener.js +0 -249
  2972. package/dist/es2017/core/decrypt/set_server_certificate.d.ts +0 -51
  2973. package/dist/es2017/core/decrypt/set_server_certificate.js +0 -83
  2974. package/dist/es2017/core/decrypt/types.d.ts +0 -368
  2975. package/dist/es2017/core/decrypt/types.js +0 -55
  2976. package/dist/es2017/core/decrypt/utils/are_init_values_compatible.d.ts +0 -34
  2977. package/dist/es2017/core/decrypt/utils/are_init_values_compatible.js +0 -113
  2978. package/dist/es2017/core/decrypt/utils/check_key_statuses.d.ts +0 -52
  2979. package/dist/es2017/core/decrypt/utils/check_key_statuses.js +0 -165
  2980. package/dist/es2017/core/decrypt/utils/clean_old_loaded_sessions.d.ts +0 -26
  2981. package/dist/es2017/core/decrypt/utils/clean_old_stored_persistent_info.d.ts +0 -32
  2982. package/dist/es2017/core/decrypt/utils/get_drm_system_id.d.ts +0 -20
  2983. package/dist/es2017/core/decrypt/utils/get_drm_system_id.js +0 -37
  2984. package/dist/es2017/core/decrypt/utils/init_data_values_container.d.ts +0 -69
  2985. package/dist/es2017/core/decrypt/utils/init_data_values_container.js +0 -96
  2986. package/dist/es2017/core/decrypt/utils/is_session_usable.d.ts +0 -24
  2987. package/dist/es2017/core/decrypt/utils/is_session_usable.js +0 -49
  2988. package/dist/es2017/core/decrypt/utils/key_id_comparison.d.ts +0 -31
  2989. package/dist/es2017/core/decrypt/utils/key_id_comparison.js +0 -48
  2990. package/dist/es2017/core/decrypt/utils/key_session_record.d.ts +0 -104
  2991. package/dist/es2017/core/decrypt/utils/key_session_record.js +0 -153
  2992. package/dist/es2017/core/decrypt/utils/loaded_sessions_store.d.ts +0 -215
  2993. package/dist/es2017/core/decrypt/utils/loaded_sessions_store.js +0 -365
  2994. package/dist/es2017/core/decrypt/utils/media_keys_infos_store.d.ts +0 -56
  2995. package/dist/es2017/core/decrypt/utils/media_keys_infos_store.js +0 -44
  2996. package/dist/es2017/core/decrypt/utils/persistent_sessions_store.d.ts +0 -94
  2997. package/dist/es2017/core/decrypt/utils/persistent_sessions_store.js +0 -321
  2998. package/dist/es2017/core/decrypt/utils/serializable_bytes.d.ts +0 -44
  2999. package/dist/es2017/core/decrypt/utils/serializable_bytes.js +0 -46
  3000. package/dist/es2017/core/decrypt/utils/server_certificate_store.d.ts +0 -64
  3001. package/dist/es2017/core/decrypt/utils/server_certificate_store.js +0 -112
  3002. package/dist/es2017/core/init/directfile_content_initializer.d.ts +0 -97
  3003. package/dist/es2017/core/init/directfile_content_initializer.js +0 -233
  3004. package/dist/es2017/core/init/index.d.ts +0 -16
  3005. package/dist/es2017/core/init/index.js +0 -16
  3006. package/dist/es2017/core/init/media_source_content_initializer.d.ts +0 -180
  3007. package/dist/es2017/core/init/media_source_content_initializer.js +0 -577
  3008. package/dist/es2017/core/init/types.d.ts +0 -217
  3009. package/dist/es2017/core/init/types.js +0 -30
  3010. package/dist/es2017/core/init/utils/content_time_boundaries_observer.d.ts +0 -192
  3011. package/dist/es2017/core/init/utils/content_time_boundaries_observer.js +0 -468
  3012. package/dist/es2017/core/init/utils/create_media_source.d.ts +0 -37
  3013. package/dist/es2017/core/init/utils/create_media_source.js +0 -112
  3014. package/dist/es2017/core/init/utils/create_stream_playback_observer.d.ts +0 -41
  3015. package/dist/es2017/core/init/utils/create_stream_playback_observer.js +0 -87
  3016. package/dist/es2017/core/init/utils/end_of_stream.d.ts +0 -33
  3017. package/dist/es2017/core/init/utils/end_of_stream.js +0 -88
  3018. package/dist/es2017/core/init/utils/get_initial_time.d.ts +0 -76
  3019. package/dist/es2017/core/init/utils/get_initial_time.js +0 -112
  3020. package/dist/es2017/core/init/utils/get_loaded_reference.d.ts +0 -28
  3021. package/dist/es2017/core/init/utils/get_loaded_reference.js +0 -56
  3022. package/dist/es2017/core/init/utils/initial_seek_and_play.d.ts +0 -61
  3023. package/dist/es2017/core/init/utils/initial_seek_and_play.js +0 -157
  3024. package/dist/es2017/core/init/utils/initialize_content_decryption.d.ts +0 -80
  3025. package/dist/es2017/core/init/utils/initialize_content_decryption.js +0 -104
  3026. package/dist/es2017/core/init/utils/media_source_duration_updater.d.ts +0 -58
  3027. package/dist/es2017/core/init/utils/media_source_duration_updater.js +0 -263
  3028. package/dist/es2017/core/init/utils/rebuffering_controller.d.ts +0 -147
  3029. package/dist/es2017/core/init/utils/rebuffering_controller.js +0 -498
  3030. package/dist/es2017/core/init/utils/stream_events_emitter/are_same_stream_events.d.ts +0 -39
  3031. package/dist/es2017/core/init/utils/stream_events_emitter/are_same_stream_events.js +0 -35
  3032. package/dist/es2017/core/init/utils/stream_events_emitter/index.d.ts +0 -18
  3033. package/dist/es2017/core/init/utils/stream_events_emitter/index.js +0 -17
  3034. package/dist/es2017/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +0 -25
  3035. package/dist/es2017/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +0 -62
  3036. package/dist/es2017/core/init/utils/stream_events_emitter/stream_events_emitter.d.ts +0 -52
  3037. package/dist/es2017/core/init/utils/stream_events_emitter/stream_events_emitter.js +0 -180
  3038. package/dist/es2017/core/init/utils/stream_events_emitter/types.d.ts +0 -41
  3039. package/dist/es2017/core/init/utils/stream_events_emitter/types.js +0 -16
  3040. package/dist/es2017/core/init/utils/throw_on_media_error.d.ts +0 -23
  3041. package/dist/es2017/core/init/utils/throw_on_media_error.js +0 -58
  3042. package/dist/es2017/core/segment_buffers/garbage_collector.d.ts +0 -41
  3043. package/dist/es2017/core/segment_buffers/garbage_collector.js +0 -128
  3044. package/dist/es2017/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.d.ts +0 -182
  3045. package/dist/es2017/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.js +0 -442
  3046. package/dist/es2017/core/segment_buffers/implementations/audio_video/index.d.ts +0 -17
  3047. package/dist/es2017/core/segment_buffers/implementations/audio_video/index.js +0 -17
  3048. package/dist/es2017/core/segment_buffers/implementations/index.d.ts +0 -18
  3049. package/dist/es2017/core/segment_buffers/implementations/index.js +0 -18
  3050. package/dist/es2017/core/segment_buffers/implementations/text/html/html_text_segment_buffer.d.ts +0 -141
  3051. package/dist/es2017/core/segment_buffers/implementations/text/html/html_text_segment_buffer.js +0 -383
  3052. package/dist/es2017/core/segment_buffers/implementations/text/html/index.d.ts +0 -21
  3053. package/dist/es2017/core/segment_buffers/implementations/text/html/index.js +0 -21
  3054. package/dist/es2017/core/segment_buffers/implementations/text/html/parsers.d.ts +0 -30
  3055. package/dist/es2017/core/segment_buffers/implementations/text/html/parsers.js +0 -37
  3056. package/dist/es2017/core/segment_buffers/implementations/text/html/text_track_cues_store.d.ts +0 -79
  3057. package/dist/es2017/core/segment_buffers/implementations/text/html/text_track_cues_store.js +0 -370
  3058. package/dist/es2017/core/segment_buffers/implementations/text/html/types.d.ts +0 -25
  3059. package/dist/es2017/core/segment_buffers/implementations/text/html/types.js +0 -16
  3060. package/dist/es2017/core/segment_buffers/implementations/text/html/update_proportional_elements.d.ts +0 -30
  3061. package/dist/es2017/core/segment_buffers/implementations/text/html/update_proportional_elements.js +0 -77
  3062. package/dist/es2017/core/segment_buffers/implementations/text/html/utils.d.ts +0 -45
  3063. package/dist/es2017/core/segment_buffers/implementations/text/html/utils.js +0 -123
  3064. package/dist/es2017/core/segment_buffers/implementations/text/native/index.d.ts +0 -17
  3065. package/dist/es2017/core/segment_buffers/implementations/text/native/index.js +0 -17
  3066. package/dist/es2017/core/segment_buffers/implementations/text/native/native_text_segment_buffer.d.ts +0 -83
  3067. package/dist/es2017/core/segment_buffers/implementations/text/native/native_text_segment_buffer.js +0 -251
  3068. package/dist/es2017/core/segment_buffers/implementations/text/native/parsers.d.ts +0 -26
  3069. package/dist/es2017/core/segment_buffers/implementations/text/native/parsers.js +0 -37
  3070. package/dist/es2017/core/segment_buffers/implementations/types.d.ts +0 -320
  3071. package/dist/es2017/core/segment_buffers/implementations/types.js +0 -119
  3072. package/dist/es2017/core/segment_buffers/implementations/utils/manual_time_ranges.d.ts +0 -29
  3073. package/dist/es2017/core/segment_buffers/implementations/utils/manual_time_ranges.js +0 -63
  3074. package/dist/es2017/core/segment_buffers/index.d.ts +0 -21
  3075. package/dist/es2017/core/segment_buffers/index.js +0 -21
  3076. package/dist/es2017/core/segment_buffers/inventory/buffered_history.d.ts +0 -89
  3077. package/dist/es2017/core/segment_buffers/inventory/buffered_history.js +0 -90
  3078. package/dist/es2017/core/segment_buffers/inventory/index.d.ts +0 -21
  3079. package/dist/es2017/core/segment_buffers/inventory/index.js +0 -18
  3080. package/dist/es2017/core/segment_buffers/inventory/segment_inventory.d.ts +0 -224
  3081. package/dist/es2017/core/segment_buffers/inventory/segment_inventory.js +0 -831
  3082. package/dist/es2017/core/segment_buffers/inventory/types.d.ts +0 -27
  3083. package/dist/es2017/core/segment_buffers/inventory/types.js +0 -16
  3084. package/dist/es2017/core/segment_buffers/inventory/utils.d.ts +0 -33
  3085. package/dist/es2017/core/segment_buffers/inventory/utils.js +0 -49
  3086. package/dist/es2017/core/segment_buffers/segment_buffers_store.d.ts +0 -180
  3087. package/dist/es2017/core/segment_buffers/segment_buffers_store.js +0 -290
  3088. package/dist/es2017/core/stream/representation/utils/force_garbage_collection.d.ts +0 -29
  3089. package/dist/es2017/core/stream/representation/utils/force_garbage_collection.js +0 -91
  3090. package/dist/es2017/errors/assertion_error.d.ts +0 -31
  3091. package/dist/es2017/errors/assertion_error.js +0 -35
  3092. package/dist/es2017/errors/request_error.d.ts +0 -38
  3093. package/dist/es2017/errors/request_error.js +0 -55
  3094. package/dist/es2017/experimental/features/dash_wasm.d.ts +0 -23
  3095. package/dist/es2017/experimental/features/dash_wasm.js +0 -34
  3096. package/dist/es2017/experimental/features/debug_element.d.ts +0 -8
  3097. package/dist/es2017/experimental/features/debug_element.js +0 -10
  3098. package/dist/es2017/experimental/tools/parseBIFThumbnails/index.js +0 -29
  3099. package/dist/es2017/manifest/adaptation.d.ts +0 -113
  3100. package/dist/es2017/manifest/adaptation.js +0 -213
  3101. package/dist/es2017/manifest/manifest.d.ts +0 -265
  3102. package/dist/es2017/manifest/manifest.js +0 -362
  3103. package/dist/es2017/manifest/period.d.ts +0 -68
  3104. package/dist/es2017/manifest/period.js +0 -131
  3105. package/dist/es2017/manifest/representation.d.ts +0 -251
  3106. package/dist/es2017/manifest/representation.js +0 -288
  3107. package/dist/es2017/manifest/representation_index/index.d.ts +0 -18
  3108. package/dist/es2017/manifest/representation_index/index.js +0 -17
  3109. package/dist/es2017/manifest/representation_index/static.d.ts +0 -101
  3110. package/dist/es2017/manifest/representation_index/static.js +0 -139
  3111. package/dist/es2017/manifest/representation_index/types.d.ts +0 -420
  3112. package/dist/es2017/manifest/representation_index/types.js +0 -16
  3113. package/dist/es2017/manifest/update_period_in_place.d.ts +0 -49
  3114. package/dist/es2017/manifest/update_period_in_place.js +0 -106
  3115. package/dist/es2017/manifest/update_periods.d.ts +0 -47
  3116. package/dist/es2017/manifest/update_periods.js +0 -153
  3117. package/dist/es2017/utils/assert_unreachable.d.ts +0 -40
  3118. package/dist/es2017/utils/assert_unreachable.js +0 -43
  3119. package/dist/es2017/utils/initialization_segment_cache.d.ts +0 -42
  3120. package/dist/es2017/utils/initialization_segment_cache.js +0 -48
  3121. package/dist/rx-player.d.ts +0 -3
  3122. package/dist/rx-player.min.d.ts +0 -3
  3123. package/experimental/features/index.d.ts +0 -16
  3124. package/experimental/features/index.js +0 -16
  3125. package/experimental/index.d.ts +0 -16
  3126. package/experimental/index.js +0 -16
  3127. package/experimental/tools/VideoThumbnailLoader.d.ts +0 -18
  3128. package/experimental/tools/VideoThumbnailLoader.js +0 -18
  3129. package/experimental/tools/createMetaplaylist.d.ts +0 -18
  3130. package/experimental/tools/createMetaplaylist.js +0 -18
  3131. package/experimental/tools/index.d.ts +0 -16
  3132. package/experimental/tools/index.js +0 -16
  3133. package/experimental/tools/mediaCapabilitiesProber.d.ts +0 -18
  3134. package/experimental/tools/mediaCapabilitiesProber.js +0 -18
  3135. package/experimental/tools/parseBIFThumbnails.d.ts +0 -18
  3136. package/experimental/tools/parseBIFThumbnails.js +0 -18
  3137. package/features/index.d.ts +0 -16
  3138. package/features/index.js +0 -16
  3139. package/jest.config.js +0 -33
  3140. package/logger/index.d.ts +0 -17
  3141. package/logger/index.js +0 -17
  3142. package/manifest.mpd +0 -149
  3143. package/minimal/index.d.ts +0 -17
  3144. package/minimal/index.js +0 -17
  3145. package/scripts/README.md +0 -11
  3146. package/scripts/build/generate_build.mjs +0 -194
  3147. package/scripts/build/templates/experimental/features/index.d.ts +0 -16
  3148. package/scripts/build/templates/experimental/features/index.js +0 -16
  3149. package/scripts/build/templates/experimental/index.d.ts +0 -16
  3150. package/scripts/build/templates/experimental/index.js +0 -16
  3151. package/scripts/build/templates/experimental/tools/VideoThumbnailLoader.d.ts +0 -18
  3152. package/scripts/build/templates/experimental/tools/VideoThumbnailLoader.js +0 -18
  3153. package/scripts/build/templates/experimental/tools/createMetaplaylist.d.ts +0 -18
  3154. package/scripts/build/templates/experimental/tools/createMetaplaylist.js +0 -18
  3155. package/scripts/build/templates/experimental/tools/index.d.ts +0 -16
  3156. package/scripts/build/templates/experimental/tools/index.js +0 -16
  3157. package/scripts/build/templates/experimental/tools/mediaCapabilitiesProber.d.ts +0 -18
  3158. package/scripts/build/templates/experimental/tools/mediaCapabilitiesProber.js +0 -18
  3159. package/scripts/build/templates/experimental/tools/parseBIFThumbnails.d.ts +0 -18
  3160. package/scripts/build/templates/experimental/tools/parseBIFThumbnails.js +0 -18
  3161. package/scripts/build/templates/features/index.d.ts +0 -16
  3162. package/scripts/build/templates/features/index.js +0 -16
  3163. package/scripts/build/templates/logger/index.d.ts +0 -17
  3164. package/scripts/build/templates/logger/index.js +0 -17
  3165. package/scripts/build/templates/minimal/index.d.ts +0 -17
  3166. package/scripts/build/templates/minimal/index.js +0 -17
  3167. package/scripts/build/templates/tools/TextTrackRenderer.d.ts +0 -18
  3168. package/scripts/build/templates/tools/TextTrackRenderer.js +0 -18
  3169. package/scripts/build/templates/tools/index.d.ts +0 -16
  3170. package/scripts/build/templates/tools/index.js +0 -16
  3171. package/scripts/build/templates/tools/string-utils.d.ts +0 -18
  3172. package/scripts/build/templates/tools/string-utils.js +0 -18
  3173. package/scripts/build/templates/types/index.d.ts +0 -16
  3174. package/scripts/build/templates/types/index.js +0 -15
  3175. package/scripts/build_demo.mjs +0 -130
  3176. package/scripts/canal-release.patch +0 -78
  3177. package/scripts/check_nodejs_import_compatibility.js +0 -60
  3178. package/scripts/deploy_new_demo +0 -123
  3179. package/scripts/generate_certificate +0 -19
  3180. package/scripts/generate_demo_list.mjs +0 -110
  3181. package/scripts/generate_documentation_list.mjs +0 -114
  3182. package/scripts/generate_standalone_demo.mjs +0 -109
  3183. package/scripts/launch_static_server.mjs +0 -163
  3184. package/scripts/list-npm-scripts.mjs +0 -207
  3185. package/scripts/make-dev-releases +0 -65
  3186. package/scripts/run_standalone_demo.mjs +0 -32
  3187. package/scripts/start_demo_web_server.mjs +0 -59
  3188. package/scripts/update-version +0 -45
  3189. package/scripts/update_gh-pages_demo +0 -132
  3190. package/scripts/update_gh-pages_doc +0 -106
  3191. package/scripts/utils/display_webpack_errors.mjs +0 -33
  3192. package/scripts/utils/get_human_readable_hours.mjs +0 -12
  3193. package/scripts/utils/project_root_directory.mjs +0 -4
  3194. package/scripts/wasm-strip.mjs +0 -364
  3195. package/sonar-project.properties +0 -7
  3196. package/src/README.md +0 -137
  3197. package/src/compat/README.md +0 -29
  3198. package/src/compat/__tests__/add_text_track.test.ts +0 -131
  3199. package/src/compat/__tests__/browser_compatibility_types.test.ts +0 -131
  3200. package/src/compat/__tests__/browser_version.test.ts +0 -84
  3201. package/src/compat/__tests__/can_patch_isobmff.test.ts +0 -50
  3202. package/src/compat/__tests__/can_rely_on_video_visibility_and_size.test.ts +0 -78
  3203. package/src/compat/__tests__/can_reuse_media_keys.test.ts +0 -31
  3204. package/src/compat/__tests__/change_source_buffer_type.test.ts +0 -60
  3205. package/src/compat/__tests__/clear_element_src.test.ts +0 -252
  3206. package/src/compat/__tests__/enable_audio_track.test.ts +0 -341
  3207. package/src/compat/__tests__/is_codec_supported.test.ts +0 -78
  3208. package/src/compat/__tests__/is_seeking_approximate.test.ts +0 -48
  3209. package/src/compat/__tests__/is_vtt_cue.test.ts +0 -75
  3210. package/src/compat/__tests__/make_vtt_cue.test.ts +0 -99
  3211. package/src/compat/__tests__/patch_webkit_source_buffer.test.ts +0 -145
  3212. package/src/compat/__tests__/remove_cue.test.ts +0 -229
  3213. package/src/compat/__tests__/should_favour_custom_safari_EME.test.ts +0 -130
  3214. package/src/compat/__tests__/should_reload_media_source_on_decipherability_update.test.ts +0 -50
  3215. package/src/compat/__tests__/should_renew_media_key_system_access.test.ts +0 -55
  3216. package/src/compat/__tests__/should_unset_media_keys.test.ts +0 -53
  3217. package/src/compat/__tests__/should_validate_metadata.test.ts +0 -53
  3218. package/src/compat/__tests__/should_wait_for_data_before_loaded.test.ts +0 -121
  3219. package/src/compat/__tests__/should_wait_for_have_enough_data.test.ts +0 -36
  3220. package/src/compat/add_class_name.ts +0 -41
  3221. package/src/compat/add_text_track.ts +0 -54
  3222. package/src/compat/browser_compatibility_types.ts +0 -208
  3223. package/src/compat/browser_detection.ts +0 -155
  3224. package/src/compat/browser_version.ts +0 -44
  3225. package/src/compat/can_patch_isobmff.ts +0 -30
  3226. package/src/compat/can_rely_on_video_visibility_and_size.ts +0 -52
  3227. package/src/compat/can_reuse_media_keys.ts +0 -20
  3228. package/src/compat/change_source_buffer_type.ts +0 -66
  3229. package/src/compat/clear_element_src.ts +0 -55
  3230. package/src/compat/eme/close_session.ts +0 -111
  3231. package/src/compat/eme/constants.ts +0 -21
  3232. package/src/compat/eme/custom_key_system_access.ts +0 -67
  3233. package/src/compat/eme/custom_media_keys/ie11_media_keys.ts +0 -186
  3234. package/src/compat/eme/custom_media_keys/index.ts +0 -28
  3235. package/src/compat/eme/custom_media_keys/moz_media_keys_constructor.ts +0 -86
  3236. package/src/compat/eme/custom_media_keys/ms_media_keys_constructor.ts +0 -67
  3237. package/src/compat/eme/custom_media_keys/old_webkit_media_keys.ts +0 -235
  3238. package/src/compat/eme/custom_media_keys/types.ts +0 -67
  3239. package/src/compat/eme/custom_media_keys/webkit_media_keys.ts +0 -308
  3240. package/src/compat/eme/custom_media_keys/webkit_media_keys_constructor.ts +0 -48
  3241. package/src/compat/eme/eme-api-implementation.ts +0 -319
  3242. package/src/compat/eme/generate_key_request.ts +0 -162
  3243. package/src/compat/eme/get_init_data.ts +0 -159
  3244. package/src/compat/eme/get_uuid_kid_from_keystatus_kid.ts +0 -37
  3245. package/src/compat/eme/get_webkit_fairplay_initdata.ts +0 -75
  3246. package/src/compat/eme/index.ts +0 -47
  3247. package/src/compat/eme/load_session.ts +0 -67
  3248. package/src/compat/enable_audio_track.ts +0 -33
  3249. package/src/compat/event_listeners.ts +0 -589
  3250. package/src/compat/get_start_date.ts +0 -48
  3251. package/src/compat/global_scope.ts +0 -18
  3252. package/src/compat/has_issues_with_high_media_source_duration.ts +0 -27
  3253. package/src/compat/index.ts +0 -77
  3254. package/src/compat/is_codec_supported.ts +0 -62
  3255. package/src/compat/is_debug_mode_enabled.ts +0 -12
  3256. package/src/compat/is_node.ts +0 -21
  3257. package/src/compat/is_seeking_approximate.ts +0 -32
  3258. package/src/compat/is_vtt_cue.ts +0 -31
  3259. package/src/compat/is_worker.ts +0 -9
  3260. package/src/compat/make_vtt_cue.ts +0 -52
  3261. package/src/compat/on_height_width_change.ts +0 -114
  3262. package/src/compat/patch_webkit_source_buffer.ts +0 -90
  3263. package/src/compat/remove_cue.ts +0 -64
  3264. package/src/compat/should_favour_custom_safari_EME.ts +0 -34
  3265. package/src/compat/should_reload_media_source_on_decipherability_update.ts +0 -32
  3266. package/src/compat/should_renew_media_key_system_access.ts +0 -26
  3267. package/src/compat/should_unset_media_keys.ts +0 -27
  3268. package/src/compat/should_validate_metadata.ts +0 -27
  3269. package/src/compat/should_wait_for_data_before_loaded.ts +0 -35
  3270. package/src/compat/should_wait_for_have_enough_data.ts +0 -17
  3271. package/src/config.ts +0 -33
  3272. package/src/core/README.md +0 -56
  3273. package/src/core/adaptive/README.md +0 -147
  3274. package/src/core/adaptive/__tests__/buffer_based_chooser.test.ts +0 -548
  3275. package/src/core/adaptive/adaptive_representation_selector.ts +0 -800
  3276. package/src/core/adaptive/buffer_based_chooser.ts +0 -265
  3277. package/src/core/adaptive/guess_based_chooser.ts +0 -310
  3278. package/src/core/adaptive/index.ts +0 -45
  3279. package/src/core/adaptive/network_analyzer.ts +0 -421
  3280. package/src/core/adaptive/utils/__tests__/bandwith_estimator.test.ts +0 -134
  3281. package/src/core/adaptive/utils/__tests__/ewma.test.ts +0 -79
  3282. package/src/core/adaptive/utils/__tests__/filter_by_bitrate.test.ts +0 -56
  3283. package/src/core/adaptive/utils/__tests__/filter_by_resolution.test.ts +0 -82
  3284. package/src/core/adaptive/utils/__tests__/get_buffer_levels.test.ts +0 -48
  3285. package/src/core/adaptive/utils/__tests__/select_optimal_representation.test.ts +0 -67
  3286. package/src/core/adaptive/utils/bandwidth_estimator.ts +0 -88
  3287. package/src/core/adaptive/utils/ewma.ts +0 -59
  3288. package/src/core/adaptive/utils/filter_by_bitrate.ts +0 -46
  3289. package/src/core/adaptive/utils/filter_by_resolution.ts +0 -63
  3290. package/src/core/adaptive/utils/get_buffer_levels.ts +0 -50
  3291. package/src/core/adaptive/utils/last_estimate_storage.ts +0 -79
  3292. package/src/core/adaptive/utils/pending_requests_store.ts +0 -157
  3293. package/src/core/adaptive/utils/representation_score_calculator.ts +0 -168
  3294. package/src/core/adaptive/utils/select_optimal_representation.ts +0 -43
  3295. package/src/core/api/README.md +0 -36
  3296. package/src/core/api/__tests__/option_utils.test.ts +0 -996
  3297. package/src/core/api/__tests__/public_api.test.ts +0 -470
  3298. package/src/core/api/__tests__/utils.test.ts +0 -195
  3299. package/src/core/api/debug/buffer_graph.ts +0 -244
  3300. package/src/core/api/debug/buffer_size_graph.ts +0 -132
  3301. package/src/core/api/debug/constants.ts +0 -2
  3302. package/src/core/api/debug/index.ts +0 -3
  3303. package/src/core/api/debug/modules/general_info.ts +0 -189
  3304. package/src/core/api/debug/modules/segment_buffer_content.ts +0 -155
  3305. package/src/core/api/debug/modules/segment_buffer_size.ts +0 -48
  3306. package/src/core/api/debug/render.ts +0 -40
  3307. package/src/core/api/debug/utils.ts +0 -103
  3308. package/src/core/api/index.ts +0 -28
  3309. package/src/core/api/option_utils.ts +0 -438
  3310. package/src/core/api/playback_observer.ts +0 -1221
  3311. package/src/core/api/public_api.ts +0 -2908
  3312. package/src/core/api/track_management/README.md +0 -15
  3313. package/src/core/api/track_management/__tests__/media_element_tracks_store.test.ts +0 -184
  3314. package/src/core/api/track_management/index.ts +0 -20
  3315. package/src/core/api/track_management/media_element_tracks_store.ts +0 -806
  3316. package/src/core/api/track_management/track_dispatcher.ts +0 -267
  3317. package/src/core/api/track_management/tracks_store.ts +0 -1380
  3318. package/src/core/api/utils.ts +0 -228
  3319. package/src/core/decrypt/README.md +0 -22
  3320. package/src/core/decrypt/__tests__/__global__/get_license.test.ts +0 -422
  3321. package/src/core/decrypt/__tests__/__global__/init_data.test.ts +0 -677
  3322. package/src/core/decrypt/__tests__/__global__/media_key_system_access.test.ts +0 -644
  3323. package/src/core/decrypt/__tests__/__global__/media_keys.test.ts +0 -343
  3324. package/src/core/decrypt/__tests__/__global__/server_certificate.test.ts +0 -264
  3325. package/src/core/decrypt/__tests__/__global__/utils.ts +0 -491
  3326. package/src/core/decrypt/attach_media_keys.ts +0 -118
  3327. package/src/core/decrypt/clear_on_stop.ts +0 -47
  3328. package/src/core/decrypt/content_decryptor.ts +0 -1246
  3329. package/src/core/decrypt/create_or_load_session.ts +0 -133
  3330. package/src/core/decrypt/create_session.ts +0 -214
  3331. package/src/core/decrypt/dispose_decryption_resources.ts +0 -54
  3332. package/src/core/decrypt/find_key_system.ts +0 -386
  3333. package/src/core/decrypt/get_key_system_configuration.ts +0 -36
  3334. package/src/core/decrypt/get_media_keys.ts +0 -142
  3335. package/src/core/decrypt/index.ts +0 -33
  3336. package/src/core/decrypt/init_media_keys.ts +0 -51
  3337. package/src/core/decrypt/session_events_listener.ts +0 -343
  3338. package/src/core/decrypt/set_server_certificate.ts +0 -105
  3339. package/src/core/decrypt/types.ts +0 -404
  3340. package/src/core/decrypt/utils/__tests__/are_init_values_compatible.test.ts +0 -261
  3341. package/src/core/decrypt/utils/__tests__/clean_old_loaded_sessions.test.ts +0 -158
  3342. package/src/core/decrypt/utils/__tests__/clean_old_stored_persistent_info.test.ts +0 -133
  3343. package/src/core/decrypt/utils/are_init_values_compatible.ts +0 -140
  3344. package/src/core/decrypt/utils/check_key_statuses.ts +0 -229
  3345. package/src/core/decrypt/utils/clean_old_loaded_sessions.ts +0 -45
  3346. package/src/core/decrypt/utils/clean_old_stored_persistent_info.ts +0 -48
  3347. package/src/core/decrypt/utils/get_drm_system_id.ts +0 -42
  3348. package/src/core/decrypt/utils/init_data_values_container.ts +0 -119
  3349. package/src/core/decrypt/utils/is_session_usable.ts +0 -62
  3350. package/src/core/decrypt/utils/key_id_comparison.ts +0 -57
  3351. package/src/core/decrypt/utils/key_session_record.ts +0 -174
  3352. package/src/core/decrypt/utils/loaded_sessions_store.ts +0 -505
  3353. package/src/core/decrypt/utils/media_keys_infos_store.ts +0 -85
  3354. package/src/core/decrypt/utils/persistent_sessions_store.ts +0 -360
  3355. package/src/core/decrypt/utils/serializable_bytes.ts +0 -59
  3356. package/src/core/decrypt/utils/server_certificate_store.ts +0 -133
  3357. package/src/core/fetchers/README.md +0 -84
  3358. package/src/core/fetchers/cdn_prioritizer.ts +0 -207
  3359. package/src/core/fetchers/index.ts +0 -38
  3360. package/src/core/fetchers/manifest/index.ts +0 -28
  3361. package/src/core/fetchers/manifest/manifest_fetcher.ts +0 -792
  3362. package/src/core/fetchers/segment/__tests__/task_prioritizer.test.ts +0 -763
  3363. package/src/core/fetchers/segment/index.ts +0 -28
  3364. package/src/core/fetchers/segment/prioritized_segment_fetcher.ts +0 -113
  3365. package/src/core/fetchers/segment/segment_fetcher.ts +0 -499
  3366. package/src/core/fetchers/segment/segment_fetcher_creator.ts +0 -128
  3367. package/src/core/fetchers/segment/task_prioritizer.ts +0 -455
  3368. package/src/core/fetchers/utils/error_selector.ts +0 -38
  3369. package/src/core/fetchers/utils/schedule_request.ts +0 -442
  3370. package/src/core/init/README.md +0 -81
  3371. package/src/core/init/directfile_content_initializer.ts +0 -310
  3372. package/src/core/init/index.ts +0 -22
  3373. package/src/core/init/media_source_content_initializer.ts +0 -891
  3374. package/src/core/init/types.ts +0 -247
  3375. package/src/core/init/utils/__tests__/are_same_stream_events.test.ts +0 -84
  3376. package/src/core/init/utils/__tests__/refresh_scheduled_events_list.test.ts +0 -94
  3377. package/src/core/init/utils/content_time_boundaries_observer.ts +0 -646
  3378. package/src/core/init/utils/create_media_source.ts +0 -139
  3379. package/src/core/init/utils/create_stream_playback_observer.ts +0 -131
  3380. package/src/core/init/utils/end_of_stream.ts +0 -108
  3381. package/src/core/init/utils/get_initial_time.ts +0 -167
  3382. package/src/core/init/utils/get_loaded_reference.ts +0 -80
  3383. package/src/core/init/utils/initial_seek_and_play.ts +0 -215
  3384. package/src/core/init/utils/initialize_content_decryption.ts +0 -172
  3385. package/src/core/init/utils/media_source_duration_updater.ts +0 -349
  3386. package/src/core/init/utils/rebuffering_controller.ts +0 -711
  3387. package/src/core/init/utils/stream_events_emitter/are_same_stream_events.ts +0 -42
  3388. package/src/core/init/utils/stream_events_emitter/index.ts +0 -22
  3389. package/src/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.ts +0 -74
  3390. package/src/core/init/utils/stream_events_emitter/stream_events_emitter.ts +0 -255
  3391. package/src/core/init/utils/stream_events_emitter/types.ts +0 -46
  3392. package/src/core/init/utils/throw_on_media_error.ts +0 -74
  3393. package/src/core/segment_buffers/README.md +0 -219
  3394. package/src/core/segment_buffers/garbage_collector.ts +0 -177
  3395. package/src/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.ts +0 -650
  3396. package/src/core/segment_buffers/implementations/audio_video/index.ts +0 -18
  3397. package/src/core/segment_buffers/implementations/index.ts +0 -20
  3398. package/src/core/segment_buffers/implementations/text/html/__tests__/utils.test.ts +0 -343
  3399. package/src/core/segment_buffers/implementations/text/html/html_text_segment_buffer.ts +0 -527
  3400. package/src/core/segment_buffers/implementations/text/html/index.ts +0 -24
  3401. package/src/core/segment_buffers/implementations/text/html/parsers.ts +0 -49
  3402. package/src/core/segment_buffers/implementations/text/html/text_track_cues_store.ts +0 -391
  3403. package/src/core/segment_buffers/implementations/text/html/types.ts +0 -23
  3404. package/src/core/segment_buffers/implementations/text/html/update_proportional_elements.ts +0 -93
  3405. package/src/core/segment_buffers/implementations/text/html/utils.ts +0 -139
  3406. package/src/core/segment_buffers/implementations/text/native/index.ts +0 -19
  3407. package/src/core/segment_buffers/implementations/text/native/native_text_segment_buffer.ts +0 -335
  3408. package/src/core/segment_buffers/implementations/text/native/parsers.ts +0 -47
  3409. package/src/core/segment_buffers/implementations/types.ts +0 -380
  3410. package/src/core/segment_buffers/implementations/utils/manual_time_ranges.ts +0 -80
  3411. package/src/core/segment_buffers/index.ts +0 -72
  3412. package/src/core/segment_buffers/inventory/buffered_history.ts +0 -132
  3413. package/src/core/segment_buffers/inventory/index.ts +0 -34
  3414. package/src/core/segment_buffers/inventory/segment_inventory.ts +0 -1106
  3415. package/src/core/segment_buffers/inventory/types.ts +0 -35
  3416. package/src/core/segment_buffers/inventory/utils.ts +0 -61
  3417. package/src/core/segment_buffers/segment_buffers_store.ts +0 -369
  3418. package/src/core/stream/README.md +0 -59
  3419. package/src/core/stream/adaptation/adaptation_stream.ts +0 -438
  3420. package/src/core/stream/adaptation/get_representations_switch_strategy.ts +0 -203
  3421. package/src/core/stream/adaptation/index.ts +0 -20
  3422. package/src/core/stream/adaptation/types.ts +0 -229
  3423. package/src/core/stream/index.ts +0 -40
  3424. package/src/core/stream/orchestrator/README.md +0 -346
  3425. package/src/core/stream/orchestrator/get_time_ranges_for_content.ts +0 -70
  3426. package/src/core/stream/orchestrator/index.ts +0 -30
  3427. package/src/core/stream/orchestrator/stream_orchestrator.ts +0 -726
  3428. package/src/core/stream/period/index.ts +0 -20
  3429. package/src/core/stream/period/period_stream.ts +0 -501
  3430. package/src/core/stream/period/types.ts +0 -125
  3431. package/src/core/stream/period/utils/get_adaptation_switch_strategy.ts +0 -248
  3432. package/src/core/stream/representation/README.md +0 -16
  3433. package/src/core/stream/representation/index.ts +0 -20
  3434. package/src/core/stream/representation/representation_stream.ts +0 -480
  3435. package/src/core/stream/representation/types.ts +0 -308
  3436. package/src/core/stream/representation/utils/append_segment_to_buffer.ts +0 -77
  3437. package/src/core/stream/representation/utils/check_for_discontinuity.ts +0 -305
  3438. package/src/core/stream/representation/utils/downloading_queue.ts +0 -603
  3439. package/src/core/stream/representation/utils/force_garbage_collection.ts +0 -113
  3440. package/src/core/stream/representation/utils/get_buffer_status.ts +0 -321
  3441. package/src/core/stream/representation/utils/get_needed_segments.ts +0 -617
  3442. package/src/core/stream/representation/utils/get_segment_priority.ts +0 -43
  3443. package/src/core/stream/representation/utils/push_init_segment.ts +0 -84
  3444. package/src/core/stream/representation/utils/push_media_segment.ts +0 -113
  3445. package/src/default_config.ts +0 -1200
  3446. package/src/errors/README.md +0 -6
  3447. package/src/errors/__tests__/assertion_error.test.ts +0 -26
  3448. package/src/errors/__tests__/encrypted_media_error.test.ts +0 -45
  3449. package/src/errors/__tests__/error_message.test.ts +0 -23
  3450. package/src/errors/__tests__/format_error.test.ts +0 -62
  3451. package/src/errors/__tests__/is_known_error.test.ts +0 -61
  3452. package/src/errors/__tests__/media_error.test.ts +0 -55
  3453. package/src/errors/__tests__/network_error.test.ts +0 -72
  3454. package/src/errors/__tests__/other_error.test.ts +0 -53
  3455. package/src/errors/__tests__/request_error.test.ts +0 -29
  3456. package/src/errors/assertion_error.ts +0 -40
  3457. package/src/errors/custom_loader_error.ts +0 -52
  3458. package/src/errors/encrypted_media_error.ts +0 -73
  3459. package/src/errors/error_codes.ts +0 -149
  3460. package/src/errors/error_message.ts +0 -25
  3461. package/src/errors/format_error.ts +0 -39
  3462. package/src/errors/index.ts +0 -52
  3463. package/src/errors/is_known_error.ts +0 -35
  3464. package/src/errors/media_error.ts +0 -124
  3465. package/src/errors/network_error.ts +0 -72
  3466. package/src/errors/other_error.ts +0 -50
  3467. package/src/errors/request_error.ts +0 -70
  3468. package/src/experimental/README.md +0 -20
  3469. package/src/experimental/features/__tests__/dash_wasm.test.ts +0 -44
  3470. package/src/experimental/features/__tests__/debug_element.test.ts +0 -12
  3471. package/src/experimental/features/__tests__/index.test.ts +0 -19
  3472. package/src/experimental/features/__tests__/local.test.ts +0 -35
  3473. package/src/experimental/features/__tests__/metaplaylist.test.ts +0 -35
  3474. package/src/experimental/features/dash_wasm.ts +0 -41
  3475. package/src/experimental/features/debug_element.ts +0 -13
  3476. package/src/experimental/features/index.ts +0 -20
  3477. package/src/experimental/features/local.ts +0 -28
  3478. package/src/experimental/features/metaplaylist.ts +0 -28
  3479. package/src/experimental/index.ts +0 -5
  3480. package/src/experimental/tools/VideoThumbnailLoader/features/dash.ts +0 -23
  3481. package/src/experimental/tools/VideoThumbnailLoader/features/metaplaylist.ts +0 -23
  3482. package/src/experimental/tools/VideoThumbnailLoader/index.ts +0 -25
  3483. package/src/experimental/tools/VideoThumbnailLoader/load_and_push_segment.ts +0 -77
  3484. package/src/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.ts +0 -75
  3485. package/src/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.ts +0 -54
  3486. package/src/experimental/tools/VideoThumbnailLoader/types.ts +0 -39
  3487. package/src/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.ts +0 -425
  3488. package/src/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.ts +0 -34
  3489. package/src/experimental/tools/createMetaplaylist/get_duration_from_manifest.ts +0 -143
  3490. package/src/experimental/tools/createMetaplaylist/index.ts +0 -72
  3491. package/src/experimental/tools/index.ts +0 -27
  3492. package/src/experimental/tools/mediaCapabilitiesProber/__tests__/capabilities.test.ts +0 -37
  3493. package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/DRMInfos.test.ts +0 -140
  3494. package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/HDCPPolicy.test.ts +0 -153
  3495. package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/decodingInfos.test.ts +0 -405
  3496. package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/defaultCodecFinder.test.ts +0 -136
  3497. package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/mediaContentType.test.ts +0 -294
  3498. package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/mediaDisplayInfos.test.ts +0 -190
  3499. package/src/experimental/tools/mediaCapabilitiesProber/__tests__/utils.test.ts +0 -361
  3500. package/src/experimental/tools/mediaCapabilitiesProber/api/index.ts +0 -184
  3501. package/src/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.ts +0 -136
  3502. package/src/experimental/tools/mediaCapabilitiesProber/capabilities.ts +0 -169
  3503. package/src/experimental/tools/mediaCapabilitiesProber/index.ts +0 -18
  3504. package/src/experimental/tools/mediaCapabilitiesProber/log.ts +0 -21
  3505. package/src/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.ts +0 -67
  3506. package/src/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.ts +0 -89
  3507. package/src/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.ts +0 -100
  3508. package/src/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.ts +0 -66
  3509. package/src/experimental/tools/mediaCapabilitiesProber/probers/index.ts +0 -44
  3510. package/src/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.ts +0 -66
  3511. package/src/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.ts +0 -100
  3512. package/src/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.ts +0 -106
  3513. package/src/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.ts +0 -55
  3514. package/src/experimental/tools/mediaCapabilitiesProber/types.ts +0 -75
  3515. package/src/experimental/tools/mediaCapabilitiesProber/utils.ts +0 -107
  3516. package/src/experimental/tools/parseBIFThumbnails/index.ts +0 -39
  3517. package/src/features/README.md +0 -11
  3518. package/src/features/__tests__/add_features.test.ts +0 -69
  3519. package/src/features/add_features.ts +0 -37
  3520. package/src/features/features_object.ts +0 -35
  3521. package/src/features/index.ts +0 -40
  3522. package/src/features/list/__tests__/dash.test.ts +0 -41
  3523. package/src/features/list/__tests__/directfile.test.ts +0 -35
  3524. package/src/features/list/__tests__/eme.test.ts +0 -28
  3525. package/src/features/list/__tests__/html_sami_parser.test.ts +0 -33
  3526. package/src/features/list/__tests__/html_srt_parser.test.ts +0 -33
  3527. package/src/features/list/__tests__/html_text_buffer.test.ts +0 -29
  3528. package/src/features/list/__tests__/html_ttml_parser.test.ts +0 -33
  3529. package/src/features/list/__tests__/html_vtt_parser.test.ts +0 -33
  3530. package/src/features/list/__tests__/index.test.ts +0 -49
  3531. package/src/features/list/__tests__/native_sami_parser.test.ts +0 -33
  3532. package/src/features/list/__tests__/native_srt_parser.test.ts +0 -33
  3533. package/src/features/list/__tests__/native_text_buffer.test.ts +0 -29
  3534. package/src/features/list/__tests__/native_ttml_parser.test.ts +0 -33
  3535. package/src/features/list/__tests__/native_vtt_parser.test.ts +0 -33
  3536. package/src/features/list/__tests__/smooth.test.ts +0 -36
  3537. package/src/features/list/dash.ts +0 -36
  3538. package/src/features/list/directfile.ts +0 -33
  3539. package/src/features/list/eme.ts +0 -29
  3540. package/src/features/list/html_sami_parser.ts +0 -31
  3541. package/src/features/list/html_srt_parser.ts +0 -31
  3542. package/src/features/list/html_text_buffer.ts +0 -29
  3543. package/src/features/list/html_ttml_parser.ts +0 -31
  3544. package/src/features/list/html_vtt_parser.ts +0 -31
  3545. package/src/features/list/index.ts +0 -30
  3546. package/src/features/list/native_sami_parser.ts +0 -32
  3547. package/src/features/list/native_srt_parser.ts +0 -32
  3548. package/src/features/list/native_text_buffer.ts +0 -30
  3549. package/src/features/list/native_ttml_parser.ts +0 -32
  3550. package/src/features/list/native_vtt_parser.ts +0 -32
  3551. package/src/features/list/smooth.ts +0 -32
  3552. package/src/features/types.ts +0 -156
  3553. package/src/globals.dev.d.ts +0 -15
  3554. package/src/globals.prod.d.ts +0 -15
  3555. package/src/index.ts +0 -60
  3556. package/src/log.ts +0 -22
  3557. package/src/manifest/README.md +0 -55
  3558. package/src/manifest/__tests__/adaptation.test.ts +0 -448
  3559. package/src/manifest/__tests__/manifest.test.ts +0 -487
  3560. package/src/manifest/__tests__/period.test.ts +0 -799
  3561. package/src/manifest/__tests__/representation.test.ts +0 -297
  3562. package/src/manifest/__tests__/update_period_in_place.test.ts +0 -1074
  3563. package/src/manifest/__tests__/update_periods.test.ts +0 -845
  3564. package/src/manifest/adaptation.ts +0 -308
  3565. package/src/manifest/index.ts +0 -59
  3566. package/src/manifest/manifest.ts +0 -650
  3567. package/src/manifest/period.ts +0 -188
  3568. package/src/manifest/representation.ts +0 -479
  3569. package/src/manifest/representation_index/__tests__/static.test.ts +0 -74
  3570. package/src/manifest/representation_index/index.ts +0 -29
  3571. package/src/manifest/representation_index/static.ts +0 -166
  3572. package/src/manifest/representation_index/types.ts +0 -458
  3573. package/src/manifest/types.ts +0 -30
  3574. package/src/manifest/update_period_in_place.ts +0 -142
  3575. package/src/manifest/update_periods.ts +0 -201
  3576. package/src/manifest/utils.ts +0 -60
  3577. package/src/minimal.ts +0 -34
  3578. package/src/parsers/README.md +0 -12
  3579. package/src/parsers/containers/isobmff/constants.ts +0 -24
  3580. package/src/parsers/containers/isobmff/create_box.ts +0 -81
  3581. package/src/parsers/containers/isobmff/drm/index.ts +0 -17
  3582. package/src/parsers/containers/isobmff/drm/playready.ts +0 -45
  3583. package/src/parsers/containers/isobmff/get_box.ts +0 -278
  3584. package/src/parsers/containers/isobmff/index.ts +0 -51
  3585. package/src/parsers/containers/isobmff/read.ts +0 -105
  3586. package/src/parsers/containers/isobmff/take_pssh_out.ts +0 -101
  3587. package/src/parsers/containers/isobmff/utils.ts +0 -555
  3588. package/src/parsers/containers/matroska/index.ts +0 -21
  3589. package/src/parsers/containers/matroska/utils.ts +0 -313
  3590. package/src/parsers/images/bif.ts +0 -128
  3591. package/src/parsers/manifest/dash/common/__tests__/attach_trickmode_track.test.ts +0 -65
  3592. package/src/parsers/manifest/dash/common/__tests__/convert_supplemental_codecs.test.ts +0 -37
  3593. package/src/parsers/manifest/dash/common/__tests__/flatten_overlapping_period.test.ts +0 -162
  3594. package/src/parsers/manifest/dash/common/__tests__/get_clock_offset.test.ts +0 -66
  3595. package/src/parsers/manifest/dash/common/__tests__/get_http_utc-timing_url.test.ts +0 -165
  3596. package/src/parsers/manifest/dash/common/__tests__/get_periods_time_infos.test.ts +0 -118
  3597. package/src/parsers/manifest/dash/common/__tests__/manifest_bounds_calculator.test.ts +0 -290
  3598. package/src/parsers/manifest/dash/common/__tests__/parse_availability_start_time.test.ts +0 -63
  3599. package/src/parsers/manifest/dash/common/attach_trickmode_track.ts +0 -55
  3600. package/src/parsers/manifest/dash/common/convert_supplemental_codecs.ts +0 -32
  3601. package/src/parsers/manifest/dash/common/flatten_overlapping_periods.ts +0 -87
  3602. package/src/parsers/manifest/dash/common/get_clock_offset.ts +0 -42
  3603. package/src/parsers/manifest/dash/common/get_hdr_information.ts +0 -94
  3604. package/src/parsers/manifest/dash/common/get_http_utc-timing_url.ts +0 -46
  3605. package/src/parsers/manifest/dash/common/get_minimum_and_maximum_positions.ts +0 -39
  3606. package/src/parsers/manifest/dash/common/get_periods_time_infos.ts +0 -91
  3607. package/src/parsers/manifest/dash/common/index.ts +0 -40
  3608. package/src/parsers/manifest/dash/common/indexes/__tests__/tokens.test.ts +0 -60
  3609. package/src/parsers/manifest/dash/common/indexes/base.ts +0 -435
  3610. package/src/parsers/manifest/dash/common/indexes/get_init_segment.ts +0 -55
  3611. package/src/parsers/manifest/dash/common/indexes/get_segments_from_timeline.ts +0 -148
  3612. package/src/parsers/manifest/dash/common/indexes/index.ts +0 -39
  3613. package/src/parsers/manifest/dash/common/indexes/list.ts +0 -346
  3614. package/src/parsers/manifest/dash/common/indexes/template.ts +0 -661
  3615. package/src/parsers/manifest/dash/common/indexes/timeline/__tests__/parse_s_element.test.ts +0 -115
  3616. package/src/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.ts +0 -54
  3617. package/src/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.ts +0 -102
  3618. package/src/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.ts +0 -66
  3619. package/src/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.ts +0 -153
  3620. package/src/parsers/manifest/dash/common/indexes/timeline/index.ts +0 -21
  3621. package/src/parsers/manifest/dash/common/indexes/timeline/parse_s_element.ts +0 -72
  3622. package/src/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.ts +0 -1060
  3623. package/src/parsers/manifest/dash/common/indexes/tokens.ts +0 -127
  3624. package/src/parsers/manifest/dash/common/indexes/utils.ts +0 -32
  3625. package/src/parsers/manifest/dash/common/infer_adaptation_type.ts +0 -136
  3626. package/src/parsers/manifest/dash/common/manifest_bounds_calculator.ts +0 -171
  3627. package/src/parsers/manifest/dash/common/parse_adaptation_sets.ts +0 -568
  3628. package/src/parsers/manifest/dash/common/parse_availability_start_time.ts +0 -35
  3629. package/src/parsers/manifest/dash/common/parse_mpd.ts +0 -400
  3630. package/src/parsers/manifest/dash/common/parse_periods.ts +0 -369
  3631. package/src/parsers/manifest/dash/common/parse_representation_index.ts +0 -199
  3632. package/src/parsers/manifest/dash/common/parse_representations.ts +0 -352
  3633. package/src/parsers/manifest/dash/common/resolve_base_urls.ts +0 -58
  3634. package/src/parsers/manifest/dash/index.ts +0 -22
  3635. package/src/parsers/manifest/dash/js-parser/__tests__/parse_from_document.test.ts +0 -43
  3636. package/src/parsers/manifest/dash/js-parser/index.ts +0 -18
  3637. package/src/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.ts +0 -387
  3638. package/src/parsers/manifest/dash/js-parser/node_parsers/BaseURL.ts +0 -35
  3639. package/src/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.ts +0 -49
  3640. package/src/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.ts +0 -94
  3641. package/src/parsers/manifest/dash/js-parser/node_parsers/EventStream.ts +0 -117
  3642. package/src/parsers/manifest/dash/js-parser/node_parsers/Initialization.ts +0 -48
  3643. package/src/parsers/manifest/dash/js-parser/node_parsers/MPD.ts +0 -180
  3644. package/src/parsers/manifest/dash/js-parser/node_parsers/Period.ts +0 -152
  3645. package/src/parsers/manifest/dash/js-parser/node_parsers/Representation.ts +0 -237
  3646. package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.ts +0 -112
  3647. package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentList.ts +0 -50
  3648. package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.ts +0 -98
  3649. package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.ts +0 -35
  3650. package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.ts +0 -63
  3651. package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/AdaptationSet.test.ts +0 -573
  3652. package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/ContentComponent.test.ts +0 -67
  3653. package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/ContentProtection.test.ts +0 -223
  3654. package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/Initialization.test.ts +0 -139
  3655. package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/SegmentTimeline.test.ts +0 -119
  3656. package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/SegmentURL.test.ts +0 -205
  3657. package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/utils.test.ts +0 -218
  3658. package/src/parsers/manifest/dash/js-parser/node_parsers/utils.ts +0 -404
  3659. package/src/parsers/manifest/dash/js-parser/parse_from_document.ts +0 -129
  3660. package/src/parsers/manifest/dash/node_parser_types.ts +0 -431
  3661. package/src/parsers/manifest/dash/parsers_types.ts +0 -91
  3662. package/src/parsers/manifest/dash/wasm-parser/Cargo.lock +0 -25
  3663. package/src/parsers/manifest/dash/wasm-parser/Cargo.toml +0 -16
  3664. package/src/parsers/manifest/dash/wasm-parser/README.md +0 -267
  3665. package/src/parsers/manifest/dash/wasm-parser/index.ts +0 -21
  3666. package/src/parsers/manifest/dash/wasm-parser/rs/errors.rs +0 -28
  3667. package/src/parsers/manifest/dash/wasm-parser/rs/events.rs +0 -383
  3668. package/src/parsers/manifest/dash/wasm-parser/rs/lib.rs +0 -85
  3669. package/src/parsers/manifest/dash/wasm-parser/rs/processor/attributes.rs +0 -414
  3670. package/src/parsers/manifest/dash/wasm-parser/rs/processor/mod.rs +0 -472
  3671. package/src/parsers/manifest/dash/wasm-parser/rs/processor/s_element.rs +0 -72
  3672. package/src/parsers/manifest/dash/wasm-parser/rs/reader.rs +0 -17
  3673. package/src/parsers/manifest/dash/wasm-parser/rs/reportable.rs +0 -147
  3674. package/src/parsers/manifest/dash/wasm-parser/rs/utils.rs +0 -266
  3675. package/src/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.ts +0 -478
  3676. package/src/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.ts +0 -340
  3677. package/src/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.ts +0 -38
  3678. package/src/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.ts +0 -53
  3679. package/src/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.ts +0 -62
  3680. package/src/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.ts +0 -144
  3681. package/src/parsers/manifest/dash/wasm-parser/ts/generators/MPD.ts +0 -183
  3682. package/src/parsers/manifest/dash/wasm-parser/ts/generators/Period.ts +0 -180
  3683. package/src/parsers/manifest/dash/wasm-parser/ts/generators/Representation.ts +0 -214
  3684. package/src/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.ts +0 -44
  3685. package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.ts +0 -115
  3686. package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.ts +0 -61
  3687. package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.ts +0 -133
  3688. package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.ts +0 -70
  3689. package/src/parsers/manifest/dash/wasm-parser/ts/generators/XLink.ts +0 -66
  3690. package/src/parsers/manifest/dash/wasm-parser/ts/generators/index.ts +0 -17
  3691. package/src/parsers/manifest/dash/wasm-parser/ts/generators/root.ts +0 -66
  3692. package/src/parsers/manifest/dash/wasm-parser/ts/parsers_stack.ts +0 -80
  3693. package/src/parsers/manifest/dash/wasm-parser/ts/types.ts +0 -298
  3694. package/src/parsers/manifest/dash/wasm-parser/ts/utils.ts +0 -47
  3695. package/src/parsers/manifest/index.ts +0 -17
  3696. package/src/parsers/manifest/local/index.ts +0 -25
  3697. package/src/parsers/manifest/local/parse_local_manifest.ts +0 -165
  3698. package/src/parsers/manifest/local/representation_index.ts +0 -254
  3699. package/src/parsers/manifest/local/types.ts +0 -291
  3700. package/src/parsers/manifest/metaplaylist/index.ts +0 -28
  3701. package/src/parsers/manifest/metaplaylist/metaplaylist_parser.ts +0 -336
  3702. package/src/parsers/manifest/metaplaylist/representation_index.ts +0 -272
  3703. package/src/parsers/manifest/smooth/create_parser.ts +0 -690
  3704. package/src/parsers/manifest/smooth/get_codecs.ts +0 -55
  3705. package/src/parsers/manifest/smooth/index.ts +0 -26
  3706. package/src/parsers/manifest/smooth/parse_C_nodes.ts +0 -69
  3707. package/src/parsers/manifest/smooth/parse_protection_node.ts +0 -72
  3708. package/src/parsers/manifest/smooth/representation_index.ts +0 -563
  3709. package/src/parsers/manifest/smooth/shared_smooth_segment_timeline.ts +0 -242
  3710. package/src/parsers/manifest/smooth/utils/add_segment_infos.ts +0 -75
  3711. package/src/parsers/manifest/smooth/utils/parseBoolean.ts +0 -31
  3712. package/src/parsers/manifest/smooth/utils/reduceChildren.ts +0 -36
  3713. package/src/parsers/manifest/smooth/utils/tokens.ts +0 -46
  3714. package/src/parsers/manifest/types.ts +0 -394
  3715. package/src/parsers/manifest/utils/__tests__/get_first_time_from_adaptations.test.ts +0 -163
  3716. package/src/parsers/manifest/utils/__tests__/get_last_time_from_adaptation.test.ts +0 -163
  3717. package/src/parsers/manifest/utils/__tests__/index_helpers.test.ts +0 -55
  3718. package/src/parsers/manifest/utils/__tests__/update_segment_timeline.test.ts +0 -545
  3719. package/src/parsers/manifest/utils/check_manifest_ids.ts +0 -83
  3720. package/src/parsers/manifest/utils/clear_timeline_from_position.ts +0 -74
  3721. package/src/parsers/manifest/utils/get_first_time_from_adaptation.ts +0 -48
  3722. package/src/parsers/manifest/utils/get_last_time_from_adaptation.ts +0 -50
  3723. package/src/parsers/manifest/utils/get_maximum_positions.ts +0 -87
  3724. package/src/parsers/manifest/utils/get_minimum_position.ts +0 -80
  3725. package/src/parsers/manifest/utils/index_helpers.ts +0 -204
  3726. package/src/parsers/manifest/utils/update_segment_timeline.ts +0 -141
  3727. package/src/parsers/texttracks/index.ts +0 -21
  3728. package/src/parsers/texttracks/sami/html.ts +0 -219
  3729. package/src/parsers/texttracks/sami/native.ts +0 -192
  3730. package/src/parsers/texttracks/srt/__tests__/find_end_of_cue_block.test.ts +0 -99
  3731. package/src/parsers/texttracks/srt/__tests__/get_cue_blocks.test.ts +0 -119
  3732. package/src/parsers/texttracks/srt/__tests__/parse_cue.test.ts +0 -123
  3733. package/src/parsers/texttracks/srt/__tests__/parse_timestamp.test.ts +0 -36
  3734. package/src/parsers/texttracks/srt/find_end_of_cue_block.ts +0 -46
  3735. package/src/parsers/texttracks/srt/get_cue_blocks.ts +0 -49
  3736. package/src/parsers/texttracks/srt/html.ts +0 -182
  3737. package/src/parsers/texttracks/srt/native.ts +0 -74
  3738. package/src/parsers/texttracks/srt/parse_cue.ts +0 -76
  3739. package/src/parsers/texttracks/srt/parse_timestamp.ts +0 -37
  3740. package/src/parsers/texttracks/ttml/__tests__/resolve_styles_inheritance.test.ts +0 -248
  3741. package/src/parsers/texttracks/ttml/get_parameters.ts +0 -106
  3742. package/src/parsers/texttracks/ttml/get_styling.ts +0 -146
  3743. package/src/parsers/texttracks/ttml/get_time_delimiters.ts +0 -49
  3744. package/src/parsers/texttracks/ttml/html/__tests__/__global__/html_ttml_parser.test.test.ts +0 -191
  3745. package/src/parsers/texttracks/ttml/html/__tests__/generate_css_test_outline.test.ts +0 -32
  3746. package/src/parsers/texttracks/ttml/html/__tests__/ttml_color_to_css_color.test.ts +0 -62
  3747. package/src/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.ts +0 -67
  3748. package/src/parsers/texttracks/ttml/html/apply_extent.ts +0 -65
  3749. package/src/parsers/texttracks/ttml/html/apply_font_size.ts +0 -62
  3750. package/src/parsers/texttracks/ttml/html/apply_line_height.ts +0 -50
  3751. package/src/parsers/texttracks/ttml/html/apply_origin.ts +0 -64
  3752. package/src/parsers/texttracks/ttml/html/apply_padding.ts +0 -141
  3753. package/src/parsers/texttracks/ttml/html/create_element.ts +0 -549
  3754. package/src/parsers/texttracks/ttml/html/generate_css_test_outline.ts +0 -46
  3755. package/src/parsers/texttracks/ttml/html/index.ts +0 -23
  3756. package/src/parsers/texttracks/ttml/html/parse_cue.ts +0 -65
  3757. package/src/parsers/texttracks/ttml/html/parse_ttml_to_div.ts +0 -58
  3758. package/src/parsers/texttracks/ttml/html/ttml_color_to_css_color.ts +0 -68
  3759. package/src/parsers/texttracks/ttml/native/index.ts +0 -23
  3760. package/src/parsers/texttracks/ttml/native/parse_cue.ts +0 -245
  3761. package/src/parsers/texttracks/ttml/native/parse_ttml_to_vtt.ts +0 -39
  3762. package/src/parsers/texttracks/ttml/parse_ttml.ts +0 -206
  3763. package/src/parsers/texttracks/ttml/regexps.ts +0 -65
  3764. package/src/parsers/texttracks/ttml/resolve_styles_inheritance.ts +0 -84
  3765. package/src/parsers/texttracks/ttml/time_parsing.ts +0 -156
  3766. package/src/parsers/texttracks/ttml/xml_utils.ts +0 -166
  3767. package/src/parsers/texttracks/types.ts +0 -34
  3768. package/src/parsers/texttracks/webvtt/__tests__/get_cue_blocks.test.ts +0 -218
  3769. package/src/parsers/texttracks/webvtt/__tests__/get_style_blocks.test.ts +0 -65
  3770. package/src/parsers/texttracks/webvtt/__tests__/parse_cue_block.test.ts +0 -249
  3771. package/src/parsers/texttracks/webvtt/__tests__/parse_timestamp.test.ts +0 -39
  3772. package/src/parsers/texttracks/webvtt/__tests__/utils.test.ts +0 -401
  3773. package/src/parsers/texttracks/webvtt/get_cue_blocks.ts +0 -51
  3774. package/src/parsers/texttracks/webvtt/get_style_blocks.ts +0 -56
  3775. package/src/parsers/texttracks/webvtt/html/__tests__/convert_payload_to_html.test.ts +0 -108
  3776. package/src/parsers/texttracks/webvtt/html/__tests__/create_default_style_elements.test.ts +0 -44
  3777. package/src/parsers/texttracks/webvtt/html/__tests__/create_style_attribute.test.ts +0 -139
  3778. package/src/parsers/texttracks/webvtt/html/__tests__/create_styled_element.test.ts +0 -140
  3779. package/src/parsers/texttracks/webvtt/html/__tests__/parse_style_block.test.ts +0 -345
  3780. package/src/parsers/texttracks/webvtt/html/__tests__/parse_webvtt_to_div.test.ts +0 -181
  3781. package/src/parsers/texttracks/webvtt/html/__tests__/to_html.test.ts +0 -234
  3782. package/src/parsers/texttracks/webvtt/html/convert_payload_to_html.ts +0 -46
  3783. package/src/parsers/texttracks/webvtt/html/create_default_style_elements.ts +0 -26
  3784. package/src/parsers/texttracks/webvtt/html/create_style_attribute.ts +0 -222
  3785. package/src/parsers/texttracks/webvtt/html/create_styled_element.ts +0 -95
  3786. package/src/parsers/texttracks/webvtt/html/index.ts +0 -25
  3787. package/src/parsers/texttracks/webvtt/html/parse_style_block.ts +0 -76
  3788. package/src/parsers/texttracks/webvtt/html/parse_webvtt_to_div.ts +0 -67
  3789. package/src/parsers/texttracks/webvtt/html/to_html.ts +0 -96
  3790. package/src/parsers/texttracks/webvtt/native/index.ts +0 -23
  3791. package/src/parsers/texttracks/webvtt/native/parse_vtt_to_cues.ts +0 -70
  3792. package/src/parsers/texttracks/webvtt/native/set_settings_on_cue.ts +0 -95
  3793. package/src/parsers/texttracks/webvtt/native/to_native_cue.ts +0 -34
  3794. package/src/parsers/texttracks/webvtt/parse_cue_block.ts +0 -128
  3795. package/src/parsers/texttracks/webvtt/parse_timestamp.ts +0 -40
  3796. package/src/parsers/texttracks/webvtt/utils.ts +0 -135
  3797. package/src/public_types.ts +0 -1040
  3798. package/src/tools/README.md +0 -8
  3799. package/src/tools/TextTrackRenderer/index.ts +0 -28
  3800. package/src/tools/TextTrackRenderer/text_track_renderer.ts +0 -108
  3801. package/src/tools/index.ts +0 -20
  3802. package/src/tools/string_utils/index.ts +0 -24
  3803. package/src/transports/README.md +0 -276
  3804. package/src/transports/dash/add_segment_integrity_checks_to_loader.ts +0 -97
  3805. package/src/transports/dash/construct_segment_url.ts +0 -28
  3806. package/src/transports/dash/extract_complete_chunks.ts +0 -66
  3807. package/src/transports/dash/get_events_out_of_emsgs.ts +0 -105
  3808. package/src/transports/dash/index.ts +0 -23
  3809. package/src/transports/dash/init_segment_loader.ts +0 -119
  3810. package/src/transports/dash/low_latency_segment_loader.ts +0 -87
  3811. package/src/transports/dash/manifest_parser.ts +0 -330
  3812. package/src/transports/dash/pipelines.ts +0 -66
  3813. package/src/transports/dash/segment_loader.ts +0 -255
  3814. package/src/transports/dash/segment_parser.ts +0 -188
  3815. package/src/transports/dash/text_loader.ts +0 -122
  3816. package/src/transports/dash/text_parser.ts +0 -228
  3817. package/src/transports/index.ts +0 -17
  3818. package/src/transports/local/index.ts +0 -18
  3819. package/src/transports/local/pipelines.ts +0 -91
  3820. package/src/transports/local/segment_loader.ts +0 -196
  3821. package/src/transports/local/segment_parser.ts +0 -102
  3822. package/src/transports/local/text_parser.ts +0 -185
  3823. package/src/transports/metaplaylist/README.md +0 -94
  3824. package/src/transports/metaplaylist/index.ts +0 -23
  3825. package/src/transports/metaplaylist/manifest_loader.ts +0 -63
  3826. package/src/transports/metaplaylist/pipelines.ts +0 -381
  3827. package/src/transports/smooth/extract_timings_infos.ts +0 -142
  3828. package/src/transports/smooth/index.ts +0 -23
  3829. package/src/transports/smooth/is_mp4_embedded_track.ts +0 -25
  3830. package/src/transports/smooth/isobmff/__tests__/create_boxes.test.ts +0 -231
  3831. package/src/transports/smooth/isobmff/create_audio_init_segment.ts +0 -84
  3832. package/src/transports/smooth/isobmff/create_boxes.ts +0 -481
  3833. package/src/transports/smooth/isobmff/create_init_segment.ts +0 -100
  3834. package/src/transports/smooth/isobmff/create_traf_box.ts +0 -40
  3835. package/src/transports/smooth/isobmff/create_video_init_segment.ts +0 -78
  3836. package/src/transports/smooth/isobmff/get_aaces_header.ts +0 -62
  3837. package/src/transports/smooth/isobmff/index.ts +0 -32
  3838. package/src/transports/smooth/isobmff/parse_tfrf.ts +0 -57
  3839. package/src/transports/smooth/isobmff/parse_tfxd.ts +0 -38
  3840. package/src/transports/smooth/isobmff/patch_segment.ts +0 -171
  3841. package/src/transports/smooth/pipelines.ts +0 -378
  3842. package/src/transports/smooth/segment_loader.ts +0 -292
  3843. package/src/transports/smooth/utils.ts +0 -45
  3844. package/src/transports/types.ts +0 -820
  3845. package/src/transports/utils/__tests__/byte_range.test.ts +0 -35
  3846. package/src/transports/utils/__tests__/check_isobmff_integrity.test.ts +0 -148
  3847. package/src/transports/utils/__tests__/find_complete_box.test.ts +0 -138
  3848. package/src/transports/utils/__tests__/infer_segment_container.test.ts +0 -80
  3849. package/src/transports/utils/byte_range.ts +0 -25
  3850. package/src/transports/utils/call_custom_manifest_loader.ts +0 -146
  3851. package/src/transports/utils/check_isobmff_integrity.ts +0 -50
  3852. package/src/transports/utils/find_complete_box.ts +0 -63
  3853. package/src/transports/utils/generate_manifest_loader.ts +0 -100
  3854. package/src/transports/utils/get_isobmff_timing_infos.ts +0 -86
  3855. package/src/transports/utils/infer_segment_container.ts +0 -50
  3856. package/src/transports/utils/parse_text_track.ts +0 -170
  3857. package/src/typings/README.md +0 -7
  3858. package/src/utils/README.md +0 -5
  3859. package/src/utils/__tests__/are_arrays_of_numbers_equal.test.ts +0 -86
  3860. package/src/utils/__tests__/are_codecs_compatible.test.ts +0 -88
  3861. package/src/utils/__tests__/array_find.test.ts +0 -113
  3862. package/src/utils/__tests__/array_find_index.test.ts +0 -113
  3863. package/src/utils/__tests__/array_includes.test.ts +0 -151
  3864. package/src/utils/__tests__/assert.test.ts +0 -237
  3865. package/src/utils/__tests__/assert_unreachable.test.ts +0 -40
  3866. package/src/utils/__tests__/base64.test.ts +0 -149
  3867. package/src/utils/__tests__/byte_parsing.test.ts +0 -267
  3868. package/src/utils/__tests__/deep_merge.test.ts +0 -48
  3869. package/src/utils/__tests__/event_emitter.test.ts +0 -579
  3870. package/src/utils/__tests__/flat_map.test.ts +0 -71
  3871. package/src/utils/__tests__/get_fuzzed_delay.test.ts +0 -32
  3872. package/src/utils/__tests__/hash_buffer.test.ts +0 -105
  3873. package/src/utils/__tests__/id_generator.test.ts +0 -83
  3874. package/src/utils/__tests__/initialization_segment_cache.test.ts +0 -245
  3875. package/src/utils/__tests__/is_non_empty_string.test.ts +0 -41
  3876. package/src/utils/__tests__/is_null_or_undefined.test.ts +0 -33
  3877. package/src/utils/__tests__/logger.test.ts +0 -214
  3878. package/src/utils/__tests__/noop.test.ts +0 -23
  3879. package/src/utils/__tests__/object_assign.test.ts +0 -56
  3880. package/src/utils/__tests__/object_values.test.ts +0 -26
  3881. package/src/utils/__tests__/ranges.test.ts +0 -1214
  3882. package/src/utils/__tests__/resolve_url.test.ts +0 -100
  3883. package/src/utils/__tests__/sorted_list.test.ts +0 -335
  3884. package/src/utils/__tests__/starts_with.test.ts +0 -65
  3885. package/src/utils/__tests__/string_parsing.test.ts +0 -267
  3886. package/src/utils/__tests__/warn_once.test.ts +0 -38
  3887. package/src/utils/__tests__/weak_map_memory.test.ts +0 -188
  3888. package/src/utils/are_arrays_of_numbers_equal.ts +0 -39
  3889. package/src/utils/are_codecs_compatible.ts +0 -51
  3890. package/src/utils/array_find.ts +0 -55
  3891. package/src/utils/array_find_index.ts +0 -54
  3892. package/src/utils/array_includes.ts +0 -93
  3893. package/src/utils/assert.ts +0 -65
  3894. package/src/utils/assert_unreachable.ts +0 -45
  3895. package/src/utils/base64.ts +0 -153
  3896. package/src/utils/byte_parsing.ts +0 -256
  3897. package/src/utils/cancellable_sleep.ts +0 -41
  3898. package/src/utils/create_cancellable_promise.ts +0 -69
  3899. package/src/utils/deep_merge.ts +0 -49
  3900. package/src/utils/event_emitter.ts +0 -147
  3901. package/src/utils/flat_map.ts +0 -50
  3902. package/src/utils/get_fuzzed_delay.ts +0 -27
  3903. package/src/utils/hash_buffer.ts +0 -42
  3904. package/src/utils/id_generator.ts +0 -35
  3905. package/src/utils/initialization_segment_cache.ts +0 -68
  3906. package/src/utils/is_non_empty_string.ts +0 -23
  3907. package/src/utils/is_null_or_undefined.ts +0 -27
  3908. package/src/utils/languages/ISO_639-1_to_ISO_639-3.ts +0 -207
  3909. package/src/utils/languages/ISO_639-2_to_ISO_639-3.ts +0 -43
  3910. package/src/utils/languages/__tests__/normalize.test.ts +0 -290
  3911. package/src/utils/languages/index.ts +0 -29
  3912. package/src/utils/languages/normalize.ts +0 -152
  3913. package/src/utils/logger.ts +0 -100
  3914. package/src/utils/monotonic_timestamp.ts +0 -12
  3915. package/src/utils/noop.ts +0 -26
  3916. package/src/utils/object_assign.ts +0 -60
  3917. package/src/utils/object_values.ts +0 -31
  3918. package/src/utils/queue_microtask.ts +0 -7
  3919. package/src/utils/ranges.ts +0 -595
  3920. package/src/utils/reference.ts +0 -390
  3921. package/src/utils/request/fetch.ts +0 -279
  3922. package/src/utils/request/index.ts +0 -38
  3923. package/src/utils/request/xhr.ts +0 -319
  3924. package/src/utils/resolve_url.ts +0 -126
  3925. package/src/utils/retry_promise_with_backoff.ts +0 -95
  3926. package/src/utils/sleep.ts +0 -14
  3927. package/src/utils/slice_uint8array.ts +0 -53
  3928. package/src/utils/sorted_list.ts +0 -240
  3929. package/src/utils/starts_with.ts +0 -42
  3930. package/src/utils/string_parsing.ts +0 -415
  3931. package/src/utils/task_canceller.ts +0 -367
  3932. package/src/utils/warn_once.ts +0 -34
  3933. package/src/utils/weak_map_memory.ts +0 -89
  3934. package/src/utils/wrapInPromise.ts +0 -24
  3935. package/tools/TextTrackRenderer.d.ts +0 -18
  3936. package/tools/TextTrackRenderer.js +0 -18
  3937. package/tools/index.d.ts +0 -16
  3938. package/tools/index.js +0 -16
  3939. package/tools/string-utils.d.ts +0 -18
  3940. package/tools/string-utils.js +0 -18
  3941. package/tsconfig.commonjs.json +0 -9
  3942. package/tsconfig.eslint.json +0 -7
  3943. package/tsconfig.jest.json +0 -15
  3944. package/tsconfig.json +0 -32
  3945. package/types/index.d.ts +0 -16
  3946. package/types/index.js +0 -15
  3947. package/webpack.config.mjs +0 -97
  3948. /package/dist/commonjs/{utils → core/fetchers/segment}/initialization_segment_cache.js +0 -0
  3949. /package/dist/commonjs/core/{segment_buffers → segment_sinks}/implementations/audio_video/index.js +0 -0
  3950. /package/dist/{_esm5.processed/core/segment_buffers → commonjs/core/segment_sinks}/implementations/utils/manual_time_ranges.d.ts +0 -0
  3951. /package/dist/commonjs/core/{segment_buffers → segment_sinks}/implementations/utils/manual_time_ranges.js +0 -0
  3952. /package/dist/commonjs/core/{segment_buffers → segment_sinks}/inventory/buffered_history.js +0 -0
  3953. /package/dist/commonjs/core/{segment_buffers → segment_sinks}/inventory/index.js +0 -0
  3954. /package/dist/commonjs/core/{init/utils/stream_events_emitter → segment_sinks/inventory}/types.js +0 -0
  3955. /package/dist/{_esm5.processed/core → commonjs/main_thread}/api/debug/buffer_size_graph.d.ts +0 -0
  3956. /package/dist/{_esm5.processed/core → commonjs/main_thread}/api/debug/constants.d.ts +0 -0
  3957. /package/dist/commonjs/{core → main_thread}/api/debug/constants.js +0 -0
  3958. /package/dist/{_esm5.processed/core → commonjs/main_thread}/api/debug/index.d.ts +0 -0
  3959. /package/dist/commonjs/{core → main_thread}/api/debug/index.js +0 -0
  3960. /package/dist/commonjs/{core → main_thread}/api/debug/render.js +0 -0
  3961. /package/dist/{_esm5.processed/core → commonjs/main_thread}/api/debug/utils.d.ts +0 -0
  3962. /package/dist/commonjs/{core → main_thread}/api/debug/utils.js +0 -0
  3963. /package/dist/{_esm5.processed/core → commonjs/main_thread}/decrypt/clear_on_stop.d.ts +0 -0
  3964. /package/dist/{_esm5.processed/core → commonjs/main_thread}/decrypt/dispose_decryption_resources.d.ts +0 -0
  3965. /package/dist/commonjs/{core → main_thread}/decrypt/get_key_system_configuration.d.ts +0 -0
  3966. /package/dist/commonjs/{core → main_thread}/decrypt/get_key_system_configuration.js +0 -0
  3967. /package/dist/commonjs/{core → main_thread}/decrypt/index.js +0 -0
  3968. /package/dist/commonjs/{core → main_thread}/decrypt/types.js +0 -0
  3969. /package/dist/{_esm5.processed/core → commonjs/main_thread}/decrypt/utils/are_init_values_compatible.d.ts +0 -0
  3970. /package/dist/commonjs/{core → main_thread}/decrypt/utils/clean_old_loaded_sessions.js +0 -0
  3971. /package/dist/commonjs/{core → main_thread}/decrypt/utils/clean_old_stored_persistent_info.js +0 -0
  3972. /package/dist/{_esm5.processed/core → commonjs/main_thread}/decrypt/utils/get_drm_system_id.d.ts +0 -0
  3973. /package/dist/commonjs/{core → main_thread}/decrypt/utils/get_drm_system_id.js +0 -0
  3974. /package/dist/{_esm5.processed/core → commonjs/main_thread}/decrypt/utils/key_id_comparison.d.ts +0 -0
  3975. /package/dist/commonjs/{core → main_thread}/decrypt/utils/key_id_comparison.js +0 -0
  3976. /package/dist/{_esm5.processed/core → commonjs/main_thread}/init/index.d.ts +0 -0
  3977. /package/dist/commonjs/{core → main_thread}/init/index.js +0 -0
  3978. /package/dist/{_esm5.processed/core → commonjs/main_thread}/init/utils/stream_events_emitter/are_same_stream_events.d.ts +0 -0
  3979. /package/dist/commonjs/{core → main_thread}/init/utils/stream_events_emitter/index.js +0 -0
  3980. /package/dist/commonjs/{core/segment_buffers/implementations/text/html → main_thread/init/utils/stream_events_emitter}/types.js +0 -0
  3981. /package/dist/commonjs/{core/api/track_management → main_thread/tracks_store}/index.js +0 -0
  3982. /package/dist/commonjs/manifest/{representation_index → classes/representation_index}/index.js +0 -0
  3983. /package/dist/commonjs/{core/segment_buffers/inventory → manifest/classes/representation_index}/types.js +0 -0
  3984. /package/dist/{_esm5.processed/core/init → commonjs/mse}/utils/media_source_duration_updater.d.ts +0 -0
  3985. /package/dist/commonjs/{experimental/tools → tools}/parseBIFThumbnails/index.d.ts +0 -0
  3986. /package/dist/commonjs/{compat → utils}/is_node.d.ts +0 -0
  3987. /package/dist/commonjs/{compat → utils}/is_node.js +0 -0
  3988. /package/dist/commonjs/{compat → utils}/is_worker.d.ts +0 -0
  3989. /package/dist/commonjs/{compat → utils}/is_worker.js +0 -0
  3990. /package/dist/{commonjs/core/segment_buffers → es2017/core/segment_sinks}/implementations/utils/manual_time_ranges.d.ts +0 -0
  3991. /package/dist/{_esm5.processed/compat/eme/custom_media_keys → es2017/core/segment_sinks/inventory}/types.js +0 -0
  3992. /package/dist/{_esm5.processed/core/stream/adaptation → es2017/core}/types.js +0 -0
  3993. /package/dist/{commonjs/core → es2017/main_thread}/api/debug/buffer_size_graph.d.ts +0 -0
  3994. /package/dist/{commonjs/core → es2017/main_thread}/api/debug/constants.d.ts +0 -0
  3995. /package/dist/es2017/{core → main_thread}/api/debug/constants.js +0 -0
  3996. /package/dist/{commonjs/core → es2017/main_thread}/api/debug/index.d.ts +0 -0
  3997. /package/dist/{_esm5.processed/core → es2017/main_thread}/api/debug/index.js +0 -0
  3998. /package/dist/{commonjs/core → es2017/main_thread}/api/debug/utils.d.ts +0 -0
  3999. /package/dist/{commonjs/core → es2017/main_thread}/decrypt/clear_on_stop.d.ts +0 -0
  4000. /package/dist/{commonjs/core → es2017/main_thread}/decrypt/dispose_decryption_resources.d.ts +0 -0
  4001. /package/dist/es2017/{core → main_thread}/decrypt/get_key_system_configuration.d.ts +0 -0
  4002. /package/dist/es2017/{core → main_thread}/decrypt/get_key_system_configuration.js +0 -0
  4003. /package/dist/{_esm5.processed/core → es2017/main_thread}/decrypt/types.js +0 -0
  4004. /package/dist/{commonjs/core → es2017/main_thread}/decrypt/utils/are_init_values_compatible.d.ts +0 -0
  4005. /package/dist/es2017/{core → main_thread}/decrypt/utils/clean_old_loaded_sessions.js +0 -0
  4006. /package/dist/es2017/{core → main_thread}/decrypt/utils/clean_old_stored_persistent_info.js +0 -0
  4007. /package/dist/{commonjs/core → es2017/main_thread}/decrypt/utils/get_drm_system_id.d.ts +0 -0
  4008. /package/dist/{_esm5.processed/core → es2017/main_thread}/decrypt/utils/get_drm_system_id.js +0 -0
  4009. /package/dist/{commonjs/core → es2017/main_thread}/decrypt/utils/key_id_comparison.d.ts +0 -0
  4010. /package/dist/{commonjs/core → es2017/main_thread}/init/index.d.ts +0 -0
  4011. /package/dist/{_esm5.processed/core → es2017/main_thread}/init/index.js +0 -0
  4012. /package/dist/{commonjs/core → es2017/main_thread}/init/utils/stream_events_emitter/are_same_stream_events.d.ts +0 -0
  4013. /package/dist/{_esm5.processed/core → es2017/main_thread}/init/utils/stream_events_emitter/index.js +0 -0
  4014. /package/dist/{_esm5.processed/core → es2017/main_thread}/init/utils/stream_events_emitter/types.js +0 -0
  4015. /package/dist/{_esm5.processed/core/stream/period/types.js → es2017/main_thread/text_displayer/index.js} +0 -0
  4016. /package/dist/{_esm5.processed/core/stream/representation → es2017/main_thread/text_displayer}/types.js +0 -0
  4017. /package/dist/es2017/{core/api/track_management → main_thread/tracks_store}/index.js +0 -0
  4018. /package/dist/{_esm5.processed/manifest → es2017/manifest/classes}/representation_index/index.js +0 -0
  4019. /package/dist/{_esm5.processed/core/segment_buffers/implementations/text/html → es2017/manifest/classes/representation_index}/types.js +0 -0
  4020. /package/dist/{_esm5.processed/manifest → es2017/manifest/classes}/types.js +0 -0
  4021. /package/dist/{commonjs/core/init → es2017/mse}/utils/media_source_duration_updater.d.ts +0 -0
  4022. /package/dist/es2017/{experimental/tools → tools}/parseBIFThumbnails/index.d.ts +0 -0
  4023. /package/dist/es2017/{compat → utils}/is_node.d.ts +0 -0
  4024. /package/dist/es2017/{compat → utils}/is_node.js +0 -0
  4025. /package/dist/es2017/{compat → utils}/is_worker.d.ts +0 -0
  4026. /package/dist/es2017/{compat → utils}/is_worker.js +0 -0
@@ -1,2445 +0,0 @@
1
- /**
2
- * Copyright 2015 CANAL+ Group
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- var __extends = (this && this.__extends) || (function () {
17
- var extendStatics = function (d, b) {
18
- extendStatics = Object.setPrototypeOf ||
19
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
20
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
21
- return extendStatics(d, b);
22
- };
23
- return function (d, b) {
24
- if (typeof b !== "function" && b !== null)
25
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
26
- extendStatics(d, b);
27
- function __() { this.constructor = d; }
28
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
29
- };
30
- })();
31
- var __assign = (this && this.__assign) || function () {
32
- __assign = Object.assign || function(t) {
33
- for (var s, i = 1, n = arguments.length; i < n; i++) {
34
- s = arguments[i];
35
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
36
- t[p] = s[p];
37
- }
38
- return t;
39
- };
40
- return __assign.apply(this, arguments);
41
- };
42
- /**
43
- * This file defines the public API for the RxPlayer.
44
- * It also starts the different sub-parts of the player on various API calls.
45
- */
46
- import { events, exitFullscreen, getStartDate, isFullscreen, requestFullscreen, } from "../../compat";
47
- /* eslint-disable-next-line max-len */
48
- import canRelyOnVideoVisibilityAndSize from "../../compat/can_rely_on_video_visibility_and_size";
49
- import config from "../../config";
50
- import { ErrorCodes, ErrorTypes, formatError, MediaError, } from "../../errors";
51
- import features, { addFeatures, } from "../../features";
52
- import log from "../../log";
53
- import areArraysOfNumbersEqual from "../../utils/are_arrays_of_numbers_equal";
54
- import arrayIncludes from "../../utils/array_includes";
55
- import assert from "../../utils/assert";
56
- import EventEmitter from "../../utils/event_emitter";
57
- import idGenerator from "../../utils/id_generator";
58
- import isNullOrUndefined from "../../utils/is_null_or_undefined";
59
- import objectAssign from "../../utils/object_assign";
60
- import { getLeftSizeOfRange, getPlayedSizeOfRange, getSizeOfRange, } from "../../utils/ranges";
61
- import SharedReference, { createMappedReference, } from "../../utils/reference";
62
- import TaskCanceller from "../../utils/task_canceller";
63
- import warnOnce from "../../utils/warn_once";
64
- import { clearOnStop, disposeDecryptionResources, getKeySystemConfiguration, getCurrentKeySystem, } from "../decrypt";
65
- import { checkReloadOptions, parseConstructorOptions, parseLoadVideoOptions, } from "./option_utils";
66
- import PlaybackObserver from "./playback_observer";
67
- import TrackChoiceManager from "./tracks_management/track_choice_manager";
68
- import { constructPlayerStateReference, emitPlayPauseEvents, emitSeekEvents, isLoadedState, } from "./utils";
69
- /* eslint-disable @typescript-eslint/naming-convention */
70
- var generateContentId = idGenerator();
71
- var getPageActivityRef = events.getPageActivityRef, getPictureOnPictureStateRef = events.getPictureOnPictureStateRef, getVideoVisibilityRef = events.getVideoVisibilityRef, getVideoWidthRef = events.getVideoWidthRef, onFullscreenChange = events.onFullscreenChange, onTextTrackAdded = events.onTextTrackAdded, onTextTrackRemoved = events.onTextTrackRemoved;
72
- /**
73
- * @class Player
74
- * @extends EventEmitter
75
- */
76
- var Player = /** @class */ (function (_super) {
77
- __extends(Player, _super);
78
- /**
79
- * @constructor
80
- * @param {Object} options
81
- */
82
- function Player(options) {
83
- if (options === void 0) { options = {}; }
84
- var _a, _b;
85
- var _this = _super.call(this) || this;
86
- var _c = parseConstructorOptions(options), initialAudioBitrate = _c.initialAudioBitrate, initialVideoBitrate = _c.initialVideoBitrate, limitVideoWidth = _c.limitVideoWidth, minAudioBitrate = _c.minAudioBitrate, minVideoBitrate = _c.minVideoBitrate, maxAudioBitrate = _c.maxAudioBitrate, maxBufferAhead = _c.maxBufferAhead, maxBufferBehind = _c.maxBufferBehind, maxVideoBitrate = _c.maxVideoBitrate, preferredAudioTracks = _c.preferredAudioTracks, preferredTextTracks = _c.preferredTextTracks, preferredVideoTracks = _c.preferredVideoTracks, throttleWhenHidden = _c.throttleWhenHidden, throttleVideoBitrateWhenHidden = _c.throttleVideoBitrateWhenHidden, videoElement = _c.videoElement, wantedBufferAhead = _c.wantedBufferAhead, maxVideoBufferSize = _c.maxVideoBufferSize, stopAtEnd = _c.stopAtEnd;
87
- var DEFAULT_UNMUTED_VOLUME = config.getCurrent().DEFAULT_UNMUTED_VOLUME;
88
- // Workaround to support Firefox autoplay on FF 42.
89
- // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624
90
- videoElement.preload = "auto";
91
- _this.version = /* PLAYER_VERSION */ "3.32.1";
92
- _this.log = log;
93
- _this.state = "STOPPED";
94
- _this.videoElement = videoElement;
95
- var destroyCanceller = new TaskCanceller();
96
- _this._destroyCanceller = destroyCanceller;
97
- _this._priv_pictureInPictureRef = getPictureOnPictureStateRef(videoElement, destroyCanceller.signal);
98
- /** @deprecated */
99
- onFullscreenChange(videoElement, function () {
100
- /* eslint-disable import/no-deprecated */
101
- _this.trigger("fullscreenChange", _this.isFullscreen());
102
- /* eslint-enable import/no-deprecated */
103
- }, destroyCanceller.signal);
104
- /** Store last known TextTrack array linked to the media element. */
105
- var prevTextTracks = [];
106
- for (var i = 0; i < ((_a = videoElement.textTracks) === null || _a === void 0 ? void 0 : _a.length); i++) {
107
- var textTrack = (_b = videoElement.textTracks) === null || _b === void 0 ? void 0 : _b[i];
108
- if (!isNullOrUndefined(textTrack)) {
109
- prevTextTracks.push(textTrack);
110
- }
111
- }
112
- /** Callback called when a TextTrack element is added or removed. */
113
- var onTextTrackChanges = function (_evt) {
114
- var evt = _evt;
115
- var target = evt.target;
116
- var textTrackArr = [];
117
- for (var i = 0; i < target.length; i++) {
118
- var textTrack = target[i];
119
- textTrackArr.push(textTrack);
120
- }
121
- var oldTextTracks = prevTextTracks;
122
- prevTextTracks = textTrackArr;
123
- // We can have two consecutive textTrackChanges with the exact same
124
- // payload when we perform multiple texttrack operations before the event
125
- // loop is freed.
126
- if (oldTextTracks.length !== textTrackArr.length) {
127
- _this._priv_onNativeTextTracksNext(textTrackArr);
128
- return;
129
- }
130
- for (var i = 0; i < oldTextTracks.length; i++) {
131
- if (oldTextTracks[i] !== textTrackArr[i]) {
132
- _this._priv_onNativeTextTracksNext(textTrackArr);
133
- return;
134
- }
135
- }
136
- return;
137
- };
138
- if (!isNullOrUndefined(videoElement.textTracks)) {
139
- onTextTrackAdded(videoElement.textTracks, onTextTrackChanges, destroyCanceller.signal);
140
- onTextTrackRemoved(videoElement.textTracks, onTextTrackChanges, destroyCanceller.signal);
141
- }
142
- _this._priv_speed = new SharedReference(videoElement.playbackRate, _this._destroyCanceller.signal);
143
- _this._priv_preferTrickModeTracks = false;
144
- _this._priv_contentLock = new SharedReference(false, _this._destroyCanceller.signal);
145
- _this._priv_bufferOptions = {
146
- wantedBufferAhead: new SharedReference(wantedBufferAhead, _this._destroyCanceller.signal),
147
- maxBufferAhead: new SharedReference(maxBufferAhead, _this._destroyCanceller.signal),
148
- maxBufferBehind: new SharedReference(maxBufferBehind, _this._destroyCanceller.signal),
149
- maxVideoBufferSize: new SharedReference(maxVideoBufferSize, _this._destroyCanceller.signal),
150
- };
151
- _this._priv_bitrateInfos = {
152
- lastBitrates: { audio: initialAudioBitrate,
153
- video: initialVideoBitrate },
154
- minAutoBitrates: { audio: new SharedReference(minAudioBitrate, _this._destroyCanceller.signal),
155
- video: new SharedReference(minVideoBitrate, _this._destroyCanceller.signal) },
156
- maxAutoBitrates: { audio: new SharedReference(maxAudioBitrate, _this._destroyCanceller.signal),
157
- video: new SharedReference(maxVideoBitrate, _this._destroyCanceller.signal) },
158
- manualBitrates: { audio: new SharedReference(-1, _this._destroyCanceller.signal),
159
- video: new SharedReference(-1, _this._destroyCanceller.signal) },
160
- };
161
- _this._priv_throttleWhenHidden = throttleWhenHidden;
162
- _this._priv_throttleVideoBitrateWhenHidden = throttleVideoBitrateWhenHidden;
163
- _this._priv_limitVideoWidth = limitVideoWidth;
164
- _this._priv_mutedMemory = DEFAULT_UNMUTED_VOLUME;
165
- _this._priv_currentError = null;
166
- _this._priv_contentInfos = null;
167
- _this._priv_contentEventsMemory = {};
168
- _this._priv_stopAtEnd = stopAtEnd;
169
- _this._priv_setPlayerState("STOPPED" /* PLAYER_STATES.STOPPED */);
170
- _this._priv_preferredAudioTracks = preferredAudioTracks;
171
- _this._priv_preferredTextTracks = preferredTextTracks;
172
- _this._priv_preferredVideoTracks = preferredVideoTracks;
173
- _this._priv_reloadingMetadata = {};
174
- _this._priv_lastAutoPlay = false;
175
- return _this;
176
- }
177
- Object.defineProperty(Player, "ErrorTypes", {
178
- /** All possible Error types emitted by the RxPlayer. */
179
- get: function () {
180
- return ErrorTypes;
181
- },
182
- enumerable: false,
183
- configurable: true
184
- });
185
- Object.defineProperty(Player, "ErrorCodes", {
186
- /** All possible Error codes emitted by the RxPlayer. */
187
- get: function () {
188
- return ErrorCodes;
189
- },
190
- enumerable: false,
191
- configurable: true
192
- });
193
- Object.defineProperty(Player, "LogLevel", {
194
- /**
195
- * Current log level.
196
- * Update current log level.
197
- * Should be either (by verbosity ascending):
198
- * - "NONE"
199
- * - "ERROR"
200
- * - "WARNING"
201
- * - "INFO"
202
- * - "DEBUG"
203
- * Any other value will be translated to "NONE".
204
- */
205
- get: function () {
206
- return log.getLevel();
207
- },
208
- set: function (logLevel) {
209
- log.setLevel(logLevel);
210
- },
211
- enumerable: false,
212
- configurable: true
213
- });
214
- /**
215
- * Add feature(s) to the RxPlayer.
216
- * @param {Array.<Object>} featureList - Features wanted.
217
- */
218
- Player.addFeatures = function (featureList) {
219
- addFeatures(featureList);
220
- };
221
- /**
222
- * Register a new callback for a player event event.
223
- *
224
- * @param {string} evt - The event to register a callback to
225
- * @param {Function} fn - The callback to call as that event is triggered.
226
- * The callback will take as argument the eventual payload of the event
227
- * (single argument).
228
- */
229
- Player.prototype.addEventListener = function (evt, fn) {
230
- // The EventEmitter's `addEventListener` method takes an optional third
231
- // argument that we do not want to expose in the public API.
232
- // We thus overwrite that function to remove any possible usage of that
233
- // third argument.
234
- return _super.prototype.addEventListener.call(this, evt, fn);
235
- };
236
- /**
237
- * Stop the playback for the current content.
238
- */
239
- Player.prototype.stop = function () {
240
- if (this._priv_contentInfos !== null) {
241
- this._priv_contentInfos.currentContentCanceller.cancel();
242
- }
243
- this._priv_cleanUpCurrentContentState();
244
- if (this.state !== "STOPPED" /* PLAYER_STATES.STOPPED */) {
245
- this._priv_setPlayerState("STOPPED" /* PLAYER_STATES.STOPPED */);
246
- }
247
- };
248
- /**
249
- * Free the resources used by the player.
250
- * /!\ The player cannot be "used" anymore after this method has been called.
251
- */
252
- Player.prototype.dispose = function () {
253
- // free resources linked to the loaded content
254
- this.stop();
255
- if (this.videoElement !== null) {
256
- // free resources used for decryption management
257
- disposeDecryptionResources(this.videoElement)
258
- .catch(function (err) {
259
- var message = err instanceof Error ? err.message :
260
- "Unknown error";
261
- log.error("API: Could not dispose decryption resources: " + message);
262
- });
263
- }
264
- // free resources linked to the Player instance
265
- this._destroyCanceller.cancel();
266
- this._priv_reloadingMetadata = {};
267
- // un-attach video element
268
- this.videoElement = null;
269
- };
270
- /**
271
- * Load a new video.
272
- * @param {Object} opts
273
- */
274
- Player.prototype.loadVideo = function (opts) {
275
- var options = parseLoadVideoOptions(opts);
276
- log.info("API: Calling loadvideo", options.url, options.transport);
277
- this._priv_reloadingMetadata = { options: options };
278
- this._priv_initializeContentPlayback(options);
279
- this._priv_lastAutoPlay = options.autoPlay;
280
- };
281
- /**
282
- * Reload the last loaded content.
283
- * @param {Object} reloadOpts
284
- */
285
- Player.prototype.reload = function (reloadOpts) {
286
- var _a, _b;
287
- var _c = this._priv_reloadingMetadata, options = _c.options, manifest = _c.manifest, reloadPosition = _c.reloadPosition, reloadInPause = _c.reloadInPause;
288
- if (options === undefined) {
289
- throw new Error("API: Can't reload without having previously loaded a content.");
290
- }
291
- checkReloadOptions(reloadOpts);
292
- var startAt;
293
- if (((_a = reloadOpts === null || reloadOpts === void 0 ? void 0 : reloadOpts.reloadAt) === null || _a === void 0 ? void 0 : _a.position) !== undefined) {
294
- startAt = { position: reloadOpts.reloadAt.position };
295
- }
296
- else if (((_b = reloadOpts === null || reloadOpts === void 0 ? void 0 : reloadOpts.reloadAt) === null || _b === void 0 ? void 0 : _b.relative) !== undefined) {
297
- if (reloadPosition === undefined) {
298
- throw new Error("Can't reload to a relative position when previous content was not loaded.");
299
- }
300
- else {
301
- startAt = { position: reloadOpts.reloadAt.relative + reloadPosition };
302
- }
303
- }
304
- else if (reloadPosition !== undefined) {
305
- startAt = { position: reloadPosition };
306
- }
307
- var autoPlay;
308
- if ((reloadOpts === null || reloadOpts === void 0 ? void 0 : reloadOpts.autoPlay) !== undefined) {
309
- autoPlay = reloadOpts.autoPlay;
310
- }
311
- else if (reloadInPause !== undefined) {
312
- autoPlay = !reloadInPause;
313
- }
314
- var newOptions = __assign(__assign({}, options), { initialManifest: manifest });
315
- if (startAt !== undefined) {
316
- newOptions.startAt = startAt;
317
- }
318
- if (autoPlay !== undefined) {
319
- newOptions.autoPlay = autoPlay;
320
- }
321
- this._priv_initializeContentPlayback(newOptions);
322
- };
323
- Player.prototype.createDebugElement = function (element) {
324
- if (features.createDebugElement === null) {
325
- throw new Error("Feature `DEBUG_ELEMENT` not added to the RxPlayer");
326
- }
327
- var canceller = new TaskCanceller();
328
- features.createDebugElement(element, this, canceller.signal);
329
- return {
330
- dispose: function () {
331
- canceller.cancel();
332
- },
333
- };
334
- };
335
- /**
336
- * From given options, initialize content playback.
337
- * @param {Object} options
338
- */
339
- Player.prototype._priv_initializeContentPlayback = function (options) {
340
- var _this = this;
341
- var autoPlay = options.autoPlay, audioTrackSwitchingMode = options.audioTrackSwitchingMode, defaultAudioTrack = options.defaultAudioTrack, defaultTextTrack = options.defaultTextTrack, enableFastSwitching = options.enableFastSwitching, initialManifest = options.initialManifest, keySystems = options.keySystems, lowLatencyMode = options.lowLatencyMode, manualBitrateSwitchingMode = options.manualBitrateSwitchingMode, minimumManifestUpdateInterval = options.minimumManifestUpdateInterval, networkConfig = options.networkConfig, onCodecSwitch = options.onCodecSwitch, startAt = options.startAt, transport = options.transport, transportOptions = options.transportOptions, url = options.url;
342
- // Perform multiple checks on the given options
343
- if (this.videoElement === null) {
344
- throw new Error("the attached video element is disposed");
345
- }
346
- var isDirectFile = transport === "directfile";
347
- /** Emit to stop the current content. */
348
- var currentContentCanceller = new TaskCanceller();
349
- var videoElement = this.videoElement;
350
- var initializer;
351
- var mediaElementTrackChoiceManager = null;
352
- if (!isDirectFile) {
353
- var transportFn = features.transports[transport];
354
- if (typeof transportFn !== "function") {
355
- // Stop previous content and reset its state
356
- this.stop();
357
- this._priv_currentError = null;
358
- throw new Error("transport \"".concat(transport, "\" not supported"));
359
- }
360
- if (features.mediaSourceInit === null) {
361
- throw new Error("MediaSource streaming not supported");
362
- }
363
- var transportPipelines = transportFn(transportOptions);
364
- var offlineRetry = networkConfig.offlineRetry, segmentRetry = networkConfig.segmentRetry, manifestRetry = networkConfig.manifestRetry, manifestRequestTimeout = networkConfig.manifestRequestTimeout, segmentRequestTimeout = networkConfig.segmentRequestTimeout;
365
- /** Interface used to load and refresh the Manifest. */
366
- var manifestRequestSettings = { lowLatencyMode: lowLatencyMode, maxRetryRegular: manifestRetry,
367
- maxRetryOffline: offlineRetry,
368
- requestTimeout: manifestRequestTimeout, minimumManifestUpdateInterval: minimumManifestUpdateInterval, initialManifest: initialManifest };
369
- var relyOnVideoVisibilityAndSize = canRelyOnVideoVisibilityAndSize();
370
- var throttlers = { throttle: {},
371
- throttleBitrate: {},
372
- limitWidth: {} };
373
- if (this._priv_throttleWhenHidden) {
374
- if (!relyOnVideoVisibilityAndSize) {
375
- log.warn("API: Can't apply throttleWhenHidden because " +
376
- "browser can't be trusted for visibility.");
377
- }
378
- else {
379
- throttlers.throttle = {
380
- video: createMappedReference(getPageActivityRef(currentContentCanceller.signal), function (isActive) { return isActive ? Infinity : 0; }, currentContentCanceller.signal),
381
- };
382
- }
383
- }
384
- if (this._priv_throttleVideoBitrateWhenHidden) {
385
- if (!relyOnVideoVisibilityAndSize) {
386
- log.warn("API: Can't apply throttleVideoBitrateWhenHidden because " +
387
- "browser can't be trusted for visibility.");
388
- }
389
- else {
390
- throttlers.throttleBitrate = {
391
- video: createMappedReference(getVideoVisibilityRef(this._priv_pictureInPictureRef, currentContentCanceller.signal), function (isActive) { return isActive ? Infinity : 0; }, currentContentCanceller.signal),
392
- };
393
- }
394
- }
395
- if (this._priv_limitVideoWidth) {
396
- if (!relyOnVideoVisibilityAndSize) {
397
- log.warn("API: Can't apply limitVideoWidth because browser can't be " +
398
- "trusted for video size.");
399
- }
400
- else {
401
- throttlers.limitWidth = {
402
- video: getVideoWidthRef(videoElement, this._priv_pictureInPictureRef, currentContentCanceller.signal),
403
- };
404
- }
405
- }
406
- /** Options used by the adaptive logic. */
407
- var adaptiveOptions = {
408
- initialBitrates: this._priv_bitrateInfos.lastBitrates,
409
- lowLatencyMode: lowLatencyMode,
410
- manualBitrates: this._priv_bitrateInfos.manualBitrates,
411
- minAutoBitrates: this._priv_bitrateInfos.minAutoBitrates,
412
- maxAutoBitrates: this._priv_bitrateInfos.maxAutoBitrates,
413
- throttlers: throttlers,
414
- };
415
- /** Options used by the TextTrack SegmentBuffer. */
416
- var textTrackOptions = options.textTrackMode === "native" ?
417
- { textTrackMode: "native",
418
- hideNativeSubtitle: options.hideNativeSubtitle } :
419
- { textTrackMode: "html",
420
- textTrackElement: options.textTrackElement };
421
- var bufferOptions = objectAssign({ audioTrackSwitchingMode: audioTrackSwitchingMode, enableFastSwitching: enableFastSwitching, manualBitrateSwitchingMode: manualBitrateSwitchingMode, onCodecSwitch: onCodecSwitch }, this._priv_bufferOptions);
422
- var segmentRequestOptions = { lowLatencyMode: lowLatencyMode, maxRetryRegular: segmentRetry,
423
- requestTimeout: segmentRequestTimeout,
424
- maxRetryOffline: offlineRetry };
425
- initializer = new features.mediaSourceInit({
426
- adaptiveOptions: adaptiveOptions,
427
- autoPlay: autoPlay,
428
- bufferOptions: bufferOptions,
429
- keySystems: keySystems,
430
- lowLatencyMode: lowLatencyMode,
431
- manifestRequestSettings: manifestRequestSettings,
432
- transport: transportPipelines,
433
- segmentRequestOptions: segmentRequestOptions,
434
- speed: this._priv_speed,
435
- startAt: startAt,
436
- textTrackOptions: textTrackOptions,
437
- url: url,
438
- });
439
- }
440
- else {
441
- if (features.directfile === null) {
442
- this.stop();
443
- this._priv_currentError = null;
444
- throw new Error("DirectFile feature not activated in your build.");
445
- }
446
- else if (isNullOrUndefined(url)) {
447
- throw new Error("No URL for a DirectFile content");
448
- }
449
- mediaElementTrackChoiceManager =
450
- this._priv_initializeMediaElementTrackChoiceManager(defaultAudioTrack, defaultTextTrack, currentContentCanceller.signal);
451
- if (currentContentCanceller.isUsed()) {
452
- return;
453
- }
454
- initializer = new features.directfile.initDirectFile({ autoPlay: autoPlay, keySystems: keySystems, speed: this._priv_speed, startAt: startAt, url: url });
455
- }
456
- /** Future `this._priv_contentInfos` related to this content. */
457
- var contentInfos = {
458
- contentId: generateContentId(),
459
- originalUrl: url,
460
- currentContentCanceller: currentContentCanceller,
461
- initializer: initializer,
462
- isDirectFile: isDirectFile,
463
- segmentBuffersStore: null,
464
- thumbnails: null,
465
- manifest: null,
466
- currentPeriod: null,
467
- activeAdaptations: null,
468
- activeRepresentations: null,
469
- initialAudioTrack: defaultAudioTrack,
470
- initialTextTrack: defaultTextTrack,
471
- trackChoiceManager: null,
472
- mediaElementTrackChoiceManager: mediaElementTrackChoiceManager,
473
- };
474
- // Bind events
475
- initializer.addEventListener("error", function (error) {
476
- var formattedError = formatError(error, {
477
- defaultCode: "NONE",
478
- defaultReason: "An unknown error stopped content playback.",
479
- });
480
- formattedError.fatal = true;
481
- contentInfos.currentContentCanceller.cancel();
482
- _this._priv_cleanUpCurrentContentState();
483
- _this._priv_currentError = formattedError;
484
- log.error("API: The player stopped because of an error", error instanceof Error ? error : "");
485
- _this._priv_setPlayerState("STOPPED" /* PLAYER_STATES.STOPPED */);
486
- // TODO This condition is here because the eventual callback called when the
487
- // player state is updated can launch a new content, thus the error will not
488
- // be here anymore, in which case triggering the "error" event is unwanted.
489
- // This is very ugly though, and we should probable have a better solution
490
- if (_this._priv_currentError === formattedError) {
491
- _this.trigger("error", formattedError);
492
- }
493
- });
494
- initializer.addEventListener("warning", function (error) {
495
- var formattedError = formatError(error, {
496
- defaultCode: "NONE",
497
- defaultReason: "An unknown error happened.",
498
- });
499
- log.warn("API: Sending warning:", formattedError);
500
- _this.trigger("warning", formattedError);
501
- });
502
- initializer.addEventListener("reloadingMediaSource", function (payload) {
503
- contentInfos.segmentBuffersStore = null;
504
- if (contentInfos.trackChoiceManager !== null) {
505
- contentInfos.trackChoiceManager.resetPeriods();
506
- }
507
- _this._priv_lastAutoPlay = payload.autoPlay;
508
- });
509
- initializer.addEventListener("inbandEvents", function (inbandEvents) {
510
- return _this.trigger("inbandEvents", inbandEvents);
511
- });
512
- initializer.addEventListener("streamEvent", function (streamEvent) {
513
- return _this.trigger("streamEvent", streamEvent);
514
- });
515
- initializer.addEventListener("streamEventSkip", function (streamEventSkip) {
516
- return _this.trigger("streamEventSkip", streamEventSkip);
517
- });
518
- initializer.addEventListener("decipherabilityUpdate", function (decipherabilityUpdate) {
519
- return _this.trigger("decipherabilityUpdate", decipherabilityUpdate);
520
- });
521
- initializer.addEventListener("activePeriodChanged", function (periodInfo) {
522
- return _this._priv_onActivePeriodChanged(contentInfos, periodInfo);
523
- });
524
- initializer.addEventListener("periodStreamReady", function (periodReadyInfo) {
525
- return _this._priv_onPeriodStreamReady(contentInfos, periodReadyInfo);
526
- });
527
- initializer.addEventListener("periodStreamCleared", function (periodClearedInfo) {
528
- return _this._priv_onPeriodStreamCleared(contentInfos, periodClearedInfo);
529
- });
530
- initializer.addEventListener("representationChange", function (representationInfo) {
531
- return _this._priv_onRepresentationChange(contentInfos, representationInfo);
532
- });
533
- initializer.addEventListener("adaptationChange", function (adaptationInfo) {
534
- return _this._priv_onAdaptationChange(contentInfos, adaptationInfo);
535
- });
536
- initializer.addEventListener("bitrateEstimationChange", function (bitrateEstimationInfo) {
537
- return _this._priv_onBitrateEstimationChange(bitrateEstimationInfo);
538
- });
539
- initializer.addEventListener("manifestReady", function (manifest) {
540
- return _this._priv_onManifestReady(contentInfos, manifest);
541
- });
542
- initializer.addEventListener("loaded", function (evt) {
543
- contentInfos.segmentBuffersStore = evt.segmentBuffersStore;
544
- });
545
- initializer.addEventListener("addedSegment", function (evt) {
546
- // Manage image tracks
547
- // @deprecated
548
- var content = evt.content, segmentData = evt.segmentData;
549
- if (content.adaptation.type === "image") {
550
- if (!isNullOrUndefined(segmentData) &&
551
- segmentData.type === "bif") {
552
- var imageData = segmentData.data;
553
- /* eslint-disable import/no-deprecated */
554
- contentInfos.thumbnails = imageData;
555
- _this.trigger("imageTrackUpdate", { data: contentInfos.thumbnails });
556
- /* eslint-enable import/no-deprecated */
557
- }
558
- }
559
- });
560
- // Now, that most events are linked, prepare the next content.
561
- initializer.prepare();
562
- // Now that the content is prepared, stop previous content and reset state
563
- // This is done after content preparation as `stop` could technically have
564
- // a long and synchronous blocking time.
565
- // Note that this call is done **synchronously** after all events linking.
566
- // This is **VERY** important so:
567
- // - the `STOPPED` state is switched to synchronously after loading a new
568
- // content.
569
- // - we can avoid involontarily catching events linked to the previous
570
- // content.
571
- this.stop();
572
- /** Global "playback observer" which will emit playback conditions */
573
- var playbackObserver = new PlaybackObserver(videoElement, {
574
- withMediaSource: !isDirectFile,
575
- lowLatencyMode: lowLatencyMode,
576
- });
577
- currentContentCanceller.signal.register(function () {
578
- playbackObserver.stop();
579
- });
580
- // Update the RxPlayer's state at the right events
581
- var playerStateRef = constructPlayerStateReference(initializer, videoElement, playbackObserver, currentContentCanceller.signal);
582
- currentContentCanceller.signal.register(function () {
583
- initializer.dispose();
584
- });
585
- /**
586
- * Function updating `this._priv_reloadingMetadata` in function of the
587
- * current state and playback conditions.
588
- * To call when either might change.
589
- * @param {string} state - The player state we're about to switch to.
590
- */
591
- var updateReloadingMetadata = function (state) {
592
- switch (state) {
593
- case "STOPPED":
594
- case "RELOADING":
595
- case "LOADING":
596
- break; // keep previous metadata
597
- case "ENDED":
598
- _this._priv_reloadingMetadata.reloadInPause = true;
599
- _this._priv_reloadingMetadata.reloadPosition =
600
- playbackObserver.getReference().getValue().position;
601
- break;
602
- default:
603
- var o = playbackObserver.getReference().getValue();
604
- _this._priv_reloadingMetadata.reloadInPause = o.paused;
605
- _this._priv_reloadingMetadata.reloadPosition = o.position;
606
- break;
607
- }
608
- };
609
- /**
610
- * `TaskCanceller` allowing to stop emitting `"play"` and `"pause"`
611
- * events.
612
- * `null` when such events are not emitted currently.
613
- */
614
- var playPauseEventsCanceller = null;
615
- /**
616
- * Callback emitting `"play"` and `"pause`" events once the content is
617
- * loaded, starting from the state indicated in argument.
618
- * @param {boolean} willAutoPlay - If `false`, we're currently paused.
619
- */
620
- var triggerPlayPauseEventsWhenReady = function (willAutoPlay) {
621
- if (playPauseEventsCanceller !== null) {
622
- playPauseEventsCanceller.cancel(); // cancel previous logic
623
- playPauseEventsCanceller = null;
624
- }
625
- playerStateRef.onUpdate(function (val, stopListeningToStateUpdates) {
626
- if (!isLoadedState(val)) {
627
- return; // content not loaded yet: no event
628
- }
629
- stopListeningToStateUpdates();
630
- if (playPauseEventsCanceller !== null) {
631
- playPauseEventsCanceller.cancel();
632
- }
633
- playPauseEventsCanceller = new TaskCanceller();
634
- playPauseEventsCanceller.linkToSignal(currentContentCanceller.signal);
635
- if (willAutoPlay !== !videoElement.paused) {
636
- // paused status is not at the expected value on load: emit event
637
- if (videoElement.paused) {
638
- _this.trigger("pause", null);
639
- }
640
- else {
641
- _this.trigger("play", null);
642
- }
643
- }
644
- emitPlayPauseEvents(videoElement, function () { return _this.trigger("play", null); }, function () { return _this.trigger("pause", null); }, currentContentCanceller.signal);
645
- }, { emitCurrentValue: false, clearSignal: currentContentCanceller.signal });
646
- };
647
- triggerPlayPauseEventsWhenReady(autoPlay);
648
- initializer.addEventListener("reloadingMediaSource", function (payload) {
649
- triggerPlayPauseEventsWhenReady(payload.autoPlay);
650
- });
651
- /**
652
- * `TaskCanceller` allowing to stop emitting `"seeking"` and `"seeked"`
653
- * events.
654
- * `null` when such events are not emitted currently.
655
- */
656
- var seekEventsCanceller = null;
657
- // React to player state change
658
- playerStateRef.onUpdate(function (newState) {
659
- updateReloadingMetadata(newState);
660
- _this._priv_setPlayerState(newState);
661
- if (currentContentCanceller.isUsed()) {
662
- return;
663
- }
664
- if (seekEventsCanceller !== null) {
665
- if (!isLoadedState(_this.state)) {
666
- seekEventsCanceller.cancel();
667
- seekEventsCanceller = null;
668
- }
669
- }
670
- else if (isLoadedState(_this.state)) {
671
- seekEventsCanceller = new TaskCanceller();
672
- seekEventsCanceller.linkToSignal(currentContentCanceller.signal);
673
- emitSeekEvents(videoElement, playbackObserver, function () { return _this.trigger("seeking", null); }, function () { return _this.trigger("seeked", null); }, seekEventsCanceller.signal);
674
- }
675
- // Previous call could have performed all kind of side-effects, thus,
676
- // we re-check the current state associated to the RxPlayer
677
- if (_this.state === "ENDED" /* PLAYER_STATES.ENDED */ && _this._priv_stopAtEnd) {
678
- _this.stop();
679
- }
680
- }, { emitCurrentValue: true, clearSignal: currentContentCanceller.signal });
681
- // React to playback conditions change
682
- playbackObserver.listen(function (observation) {
683
- updateReloadingMetadata(_this.state);
684
- _this._priv_triggerPositionUpdate(contentInfos, observation);
685
- }, { clearSignal: currentContentCanceller.signal });
686
- this._priv_currentError = null;
687
- this._priv_contentInfos = contentInfos;
688
- currentContentCanceller.signal.register(function () {
689
- initializer.removeEventListener();
690
- });
691
- // initialize the content only when the lock is inactive
692
- this._priv_contentLock.onUpdate(function (isLocked, stopListeningToLock) {
693
- if (!isLocked) {
694
- stopListeningToLock();
695
- // start playback!
696
- initializer.start(videoElement, playbackObserver);
697
- }
698
- }, { emitCurrentValue: true, clearSignal: currentContentCanceller.signal });
699
- };
700
- /**
701
- * Returns fatal error if one for the current content.
702
- * null otherwise.
703
- * @returns {Object|null} - The current Error (`null` when no error).
704
- */
705
- Player.prototype.getError = function () {
706
- return this._priv_currentError;
707
- };
708
- /**
709
- * Returns manifest/playlist object.
710
- * null if the player is STOPPED.
711
- * @deprecated
712
- * @returns {Manifest|null} - The current Manifest (`null` when not known).
713
- */
714
- Player.prototype.getManifest = function () {
715
- warnOnce("getManifest is deprecated." +
716
- " Please open an issue if you used this API.");
717
- if (this._priv_contentInfos === null) {
718
- return null;
719
- }
720
- return this._priv_contentInfos.manifest;
721
- };
722
- /**
723
- * Returns Adaptations (tracks) for every currently playing type
724
- * (audio/video/text...).
725
- * @deprecated
726
- * @returns {Object|null} - The current Adaptation objects, per type (`null`
727
- * when none is known for now.
728
- */
729
- Player.prototype.getCurrentAdaptations = function () {
730
- warnOnce("getCurrentAdaptations is deprecated." +
731
- " Please open an issue if you used this API.");
732
- if (this._priv_contentInfos === null) {
733
- return null;
734
- }
735
- var _a = this._priv_contentInfos, currentPeriod = _a.currentPeriod, activeAdaptations = _a.activeAdaptations;
736
- if (currentPeriod === null ||
737
- activeAdaptations === null ||
738
- isNullOrUndefined(activeAdaptations[currentPeriod.id])) {
739
- return null;
740
- }
741
- return activeAdaptations[currentPeriod.id];
742
- };
743
- /**
744
- * Returns representations (qualities) for every currently playing type
745
- * (audio/video/text...).
746
- * @deprecated
747
- * @returns {Object|null} - The current Representation objects, per type
748
- * (`null` when none is known for now.
749
- */
750
- Player.prototype.getCurrentRepresentations = function () {
751
- warnOnce("getCurrentRepresentations is deprecated." +
752
- " Please open an issue if you used this API.");
753
- return this._priv_getCurrentRepresentations();
754
- };
755
- /**
756
- * Returns the media DOM element used by the player.
757
- * You should not its HTML5 API directly and use the player's method instead,
758
- * to ensure a well-behaved player.
759
- * @returns {HTMLMediaElement|null} - The HTMLMediaElement used (`null` when
760
- * disposed)
761
- */
762
- Player.prototype.getVideoElement = function () {
763
- return this.videoElement;
764
- };
765
- /**
766
- * If one returns the first native text-track element attached to the media element.
767
- * @deprecated
768
- * @returns {TextTrack} - The native TextTrack attached (`null` when none)
769
- */
770
- Player.prototype.getNativeTextTrack = function () {
771
- warnOnce("getNativeTextTrack is deprecated." +
772
- " Please open an issue if you used this API.");
773
- if (this.videoElement === null) {
774
- throw new Error("Disposed player");
775
- }
776
- var videoElement = this.videoElement;
777
- var textTracks = videoElement.textTracks;
778
- if (textTracks.length > 0) {
779
- return videoElement.textTracks[0];
780
- }
781
- else {
782
- return null;
783
- }
784
- };
785
- /**
786
- * Returns the player's current state.
787
- * @returns {string} - The current Player's state
788
- */
789
- Player.prototype.getPlayerState = function () {
790
- return this.state;
791
- };
792
- /**
793
- * Returns true if a content is loaded.
794
- * @returns {Boolean} - `true` if a content is loaded, `false` otherwise.
795
- */
796
- Player.prototype.isContentLoaded = function () {
797
- return !arrayIncludes(["LOADING", "RELOADING", "STOPPED"], this.state);
798
- };
799
- /**
800
- * Returns true if the player is buffering.
801
- * @returns {Boolean} - `true` if the player is buffering, `false` otherwise.
802
- */
803
- Player.prototype.isBuffering = function () {
804
- return arrayIncludes(["BUFFERING", "SEEKING", "LOADING", "RELOADING"], this.state);
805
- };
806
- /**
807
- * Returns the play/pause status of the player :
808
- * - when `LOADING` or `RELOADING`, returns the scheduled play/pause condition
809
- * for when loading is over,
810
- * - in other states, returns the `<video>` element .paused value,
811
- * - if the player is disposed, returns `true`.
812
- * @returns {Boolean} - `true` if the player is paused or will be after loading,
813
- * `false` otherwise.
814
- */
815
- Player.prototype.isPaused = function () {
816
- if (this.videoElement) {
817
- if (arrayIncludes(["LOADING", "RELOADING"], this.state)) {
818
- return !this._priv_lastAutoPlay;
819
- }
820
- else {
821
- return this.videoElement.paused;
822
- }
823
- }
824
- return true;
825
- };
826
- /**
827
- * Returns true if both:
828
- * - a content is loaded
829
- * - the content loaded is a live content
830
- * @returns {Boolean} - `true` if we're playing a live content, `false` otherwise.
831
- */
832
- Player.prototype.isLive = function () {
833
- if (this._priv_contentInfos === null) {
834
- return false;
835
- }
836
- var _a = this._priv_contentInfos, isDirectFile = _a.isDirectFile, manifest = _a.manifest;
837
- if (isDirectFile || manifest === null) {
838
- return false;
839
- }
840
- return manifest.isLive;
841
- };
842
- /**
843
- * Returns `true` if trickmode playback is active (usually through the usage
844
- * of the `setPlaybackRate` method), which means that the RxPlayer selects
845
- * "trickmode" video tracks in priority.
846
- * @returns {Boolean}
847
- */
848
- Player.prototype.areTrickModeTracksEnabled = function () {
849
- return this._priv_preferTrickModeTracks;
850
- };
851
- /**
852
- * Returns the url of the currently considered Manifest, or of the content for
853
- * directfile content.
854
- * @returns {string|undefined} - Current URL. `undefined` if not known or no
855
- * URL yet.
856
- */
857
- Player.prototype.getUrl = function () {
858
- if (this._priv_contentInfos === null) {
859
- return undefined;
860
- }
861
- var _a = this._priv_contentInfos, isDirectFile = _a.isDirectFile, manifest = _a.manifest, originalUrl = _a.originalUrl;
862
- if (isDirectFile) {
863
- return originalUrl;
864
- }
865
- if (manifest !== null) {
866
- return manifest.getUrl();
867
- }
868
- return undefined;
869
- };
870
- /**
871
- * Update URL of the content currently being played (e.g. DASH's MPD).
872
- * @param {Array.<string>|undefined} urls - URLs to reach that content /
873
- * Manifest from the most prioritized URL to the least prioritized URL.
874
- * @param {Object|undefined} [params]
875
- * @param {boolean} params.refresh - If `true` the resource in question
876
- * (e.g. DASH's MPD) will be refreshed immediately.
877
- */
878
- Player.prototype.updateContentUrls = function (urls, params) {
879
- if (this._priv_contentInfos === null) {
880
- throw new Error("No content loaded");
881
- }
882
- var refreshNow = (params === null || params === void 0 ? void 0 : params.refresh) === true;
883
- this._priv_contentInfos.initializer.updateContentUrls(urls, refreshNow);
884
- };
885
- /**
886
- * Returns the video duration, in seconds.
887
- * NaN if no video is playing.
888
- * @returns {Number}
889
- */
890
- Player.prototype.getVideoDuration = function () {
891
- if (this.videoElement === null) {
892
- throw new Error("Disposed player");
893
- }
894
- return this.videoElement.duration;
895
- };
896
- /**
897
- * Returns in seconds the difference between:
898
- * - the end of the current contiguous loaded range.
899
- * - the current time
900
- * @returns {Number}
901
- */
902
- Player.prototype.getVideoBufferGap = function () {
903
- if (this.videoElement === null) {
904
- throw new Error("Disposed player");
905
- }
906
- var videoElement = this.videoElement;
907
- return getLeftSizeOfRange(videoElement.buffered, videoElement.currentTime);
908
- };
909
- /**
910
- * Returns in seconds the difference between:
911
- * - the end of the current contiguous loaded range.
912
- * - the start of the current contiguous loaded range.
913
- * @returns {Number}
914
- */
915
- Player.prototype.getVideoLoadedTime = function () {
916
- warnOnce("`getVideoLoadedTime` is deprecated and won't be present in the " +
917
- "next major version");
918
- if (this.videoElement === null) {
919
- throw new Error("Disposed player");
920
- }
921
- var videoElement = this.videoElement;
922
- return getSizeOfRange(videoElement.buffered, videoElement.currentTime);
923
- };
924
- /**
925
- * Returns in seconds the difference between:
926
- * - the current time.
927
- * - the start of the current contiguous loaded range.
928
- * @returns {Number}
929
- */
930
- Player.prototype.getVideoPlayedTime = function () {
931
- warnOnce("`getVideoPlayedTime` is deprecated and won't be present in the " +
932
- "next major version");
933
- if (this.videoElement === null) {
934
- throw new Error("Disposed player");
935
- }
936
- var videoElement = this.videoElement;
937
- return getPlayedSizeOfRange(videoElement.buffered, videoElement.currentTime);
938
- };
939
- /**
940
- * Get the current position, in s, in wall-clock time.
941
- * That is:
942
- * - for live content, get a timestamp, in s, of the current played content.
943
- * - for static content, returns the position from beginning in s.
944
- *
945
- * If you do not know if you want to use this method or getPosition:
946
- * - If what you want is to display the current time to the user, use this
947
- * one.
948
- * - If what you want is to interact with the player's API or perform other
949
- * actions (like statistics) with the real player data, use getPosition.
950
- *
951
- * @returns {Number}
952
- */
953
- Player.prototype.getWallClockTime = function () {
954
- if (this.videoElement === null) {
955
- throw new Error("Disposed player");
956
- }
957
- if (this._priv_contentInfos === null) {
958
- return this.videoElement.currentTime;
959
- }
960
- var _a = this._priv_contentInfos, isDirectFile = _a.isDirectFile, manifest = _a.manifest;
961
- if (isDirectFile) {
962
- var startDate = getStartDate(this.videoElement);
963
- return (startDate !== null && startDate !== void 0 ? startDate : 0) + this.videoElement.currentTime;
964
- }
965
- if (manifest !== null) {
966
- var currentTime = this.videoElement.currentTime;
967
- var ast = manifest.availabilityStartTime !== undefined ?
968
- manifest.availabilityStartTime :
969
- 0;
970
- return currentTime + ast;
971
- }
972
- return 0;
973
- };
974
- /**
975
- * Get the current position, in seconds, of the video element.
976
- *
977
- * If you do not know if you want to use this method or getWallClockTime:
978
- * - If what you want is to display the current time to the user, use
979
- * getWallClockTime.
980
- * - If what you want is to interact with the player's API or perform other
981
- * actions (like statistics) with the real player data, use this one.
982
- *
983
- * @returns {Number}
984
- */
985
- Player.prototype.getPosition = function () {
986
- if (this.videoElement === null) {
987
- throw new Error("Disposed player");
988
- }
989
- return this.videoElement.currentTime;
990
- };
991
- /**
992
- * Returns the last stored content position, in seconds.
993
- *
994
- * @returns {number|undefined}
995
- */
996
- Player.prototype.getLastStoredContentPosition = function () {
997
- return this._priv_reloadingMetadata.reloadPosition;
998
- };
999
- /**
1000
- * Returns the current playback rate at which the video plays.
1001
- * @returns {Number}
1002
- */
1003
- Player.prototype.getPlaybackRate = function () {
1004
- return this._priv_speed.getValue();
1005
- };
1006
- /**
1007
- * Update the playback rate of the video.
1008
- *
1009
- * This method's effect is persisted from content to content, and can be
1010
- * called even when no content is playing (it will still have an effect for
1011
- * the next contents).
1012
- *
1013
- * If you want to reverse effects provoked by `setPlaybackRate` before playing
1014
- * another content, you will have to call `setPlaybackRate` first with the
1015
- * default settings you want to set.
1016
- *
1017
- * As an example, to reset the speed to "normal" (x1) speed and to disable
1018
- * trickMode video tracks (which may have been enabled by a previous
1019
- * `setPlaybackRate` call), you can call:
1020
- * ```js
1021
- * player.setPlaybackRate(1, { preferTrickModeTracks: false });
1022
- * ```
1023
- *
1024
- * --
1025
- *
1026
- * This method can be used to switch to or exit from "trickMode" video tracks,
1027
- * which are tracks specifically defined to mimic the visual aspect of a VCR's
1028
- * fast forward/rewind feature, by only displaying a few video frames during
1029
- * playback.
1030
- *
1031
- * This behavior is configurable through the second argument, by adding a
1032
- * property named `preferTrickModeTracks` to that object.
1033
- *
1034
- * You can set that value to `true` to switch to trickMode video tracks when
1035
- * available, and set it to `false` when you want to disable that logic.
1036
- * Note that like any configuration given to `setPlaybackRate`, this setting
1037
- * is persisted through all future contents played by the player.
1038
- *
1039
- * If you want to stop enabling trickMode tracks, you will have to call
1040
- * `setPlaybackRate` again with `preferTrickModeTracks` set to `false`.
1041
- *
1042
- * You can know at any moment whether this behavior is enabled by calling
1043
- * the `areTrickModeTracksEnabled` method. This will only means that the
1044
- * RxPlayer will select in priority trickmode video tracks, not that the
1045
- * currently chosen video tracks is a trickmode track (for example, some
1046
- * contents may have no trickmode tracks available).
1047
- *
1048
- * If you want to know about the latter instead, you can call `getVideoTrack`
1049
- * and/or listen to `videoTrackChange` events. The track returned may have an
1050
- * `isTrickModeTrack` property set to `true`, indicating that it is a
1051
- * trickmode track.
1052
- *
1053
- * Note that switching to or getting out of a trickmode video track may
1054
- * lead to the player being a brief instant in a `"RELOADING"` state (notified
1055
- * through `playerStateChange` events and the `getLoadedContentState` method).
1056
- * When in that state, a black screen may be displayed and multiple RxPlayer
1057
- * APIs will not be usable.
1058
- *
1059
- * @param {Number} rate
1060
- * @param {Object} opts
1061
- */
1062
- Player.prototype.setPlaybackRate = function (rate, opts) {
1063
- var _a;
1064
- if (rate !== this._priv_speed.getValue()) {
1065
- this._priv_speed.setValue(rate);
1066
- }
1067
- var preferTrickModeTracks = opts === null || opts === void 0 ? void 0 : opts.preferTrickModeTracks;
1068
- if (typeof preferTrickModeTracks !== "boolean") {
1069
- return;
1070
- }
1071
- this._priv_preferTrickModeTracks = preferTrickModeTracks;
1072
- var trackChoiceManager = (_a = this._priv_contentInfos) === null || _a === void 0 ? void 0 : _a.trackChoiceManager;
1073
- if (!isNullOrUndefined(trackChoiceManager)) {
1074
- if (preferTrickModeTracks && !trackChoiceManager.isTrickModeEnabled()) {
1075
- trackChoiceManager.enableVideoTrickModeTracks();
1076
- }
1077
- else if (!preferTrickModeTracks && trackChoiceManager.isTrickModeEnabled()) {
1078
- trackChoiceManager.disableVideoTrickModeTracks();
1079
- }
1080
- }
1081
- };
1082
- /**
1083
- * Returns all available bitrates for the current video Adaptation.
1084
- * @returns {Array.<Number>}
1085
- */
1086
- Player.prototype.getAvailableVideoBitrates = function () {
1087
- if (this._priv_contentInfos === null) {
1088
- return [];
1089
- }
1090
- var _a = this._priv_contentInfos, currentPeriod = _a.currentPeriod, activeAdaptations = _a.activeAdaptations;
1091
- if (currentPeriod === null || activeAdaptations === null) {
1092
- return [];
1093
- }
1094
- var adaptations = activeAdaptations[currentPeriod.id];
1095
- if (adaptations === undefined || isNullOrUndefined(adaptations.video)) {
1096
- return [];
1097
- }
1098
- return adaptations.video.getAvailableBitrates();
1099
- };
1100
- /**
1101
- * Returns all available bitrates for the current audio Adaptation.
1102
- * @returns {Array.<Number>}
1103
- */
1104
- Player.prototype.getAvailableAudioBitrates = function () {
1105
- if (this._priv_contentInfos === null) {
1106
- return [];
1107
- }
1108
- var _a = this._priv_contentInfos, currentPeriod = _a.currentPeriod, activeAdaptations = _a.activeAdaptations;
1109
- if (currentPeriod === null || activeAdaptations === null) {
1110
- return [];
1111
- }
1112
- var adaptations = activeAdaptations[currentPeriod.id];
1113
- if (adaptations === undefined || isNullOrUndefined(adaptations.audio)) {
1114
- return [];
1115
- }
1116
- return adaptations.audio.getAvailableBitrates();
1117
- };
1118
- /**
1119
- * Returns the manual audio bitrate set. -1 if in AUTO mode.
1120
- * @returns {Number}
1121
- */
1122
- Player.prototype.getManualAudioBitrate = function () {
1123
- return this._priv_bitrateInfos.manualBitrates.audio.getValue();
1124
- };
1125
- /**
1126
- * Returns the manual video bitrate set. -1 if in AUTO mode.
1127
- * @returns {Number}
1128
- */
1129
- Player.prototype.getManualVideoBitrate = function () {
1130
- return this._priv_bitrateInfos.manualBitrates.video.getValue();
1131
- };
1132
- /**
1133
- * Returns currently considered bitrate for video segments.
1134
- * @returns {Number|undefined}
1135
- */
1136
- Player.prototype.getVideoBitrate = function () {
1137
- var representations = this._priv_getCurrentRepresentations();
1138
- if (representations === null || isNullOrUndefined(representations.video)) {
1139
- return undefined;
1140
- }
1141
- return representations.video.bitrate;
1142
- };
1143
- /**
1144
- * Returns currently considered bitrate for audio segments.
1145
- * @returns {Number|undefined}
1146
- */
1147
- Player.prototype.getAudioBitrate = function () {
1148
- var representations = this._priv_getCurrentRepresentations();
1149
- if (representations === null || isNullOrUndefined(representations.audio)) {
1150
- return undefined;
1151
- }
1152
- return representations.audio.bitrate;
1153
- };
1154
- /**
1155
- * Returns minimum wanted video bitrate currently set.
1156
- * @returns {Number}
1157
- */
1158
- Player.prototype.getMinVideoBitrate = function () {
1159
- return this._priv_bitrateInfos.minAutoBitrates.video.getValue();
1160
- };
1161
- /**
1162
- * Returns minimum wanted audio bitrate currently set.
1163
- * @returns {Number}
1164
- */
1165
- Player.prototype.getMinAudioBitrate = function () {
1166
- return this._priv_bitrateInfos.minAutoBitrates.audio.getValue();
1167
- };
1168
- /**
1169
- * Returns maximum wanted video bitrate currently set.
1170
- * @returns {Number}
1171
- */
1172
- Player.prototype.getMaxVideoBitrate = function () {
1173
- return this._priv_bitrateInfos.maxAutoBitrates.video.getValue();
1174
- };
1175
- /**
1176
- * Returns maximum wanted audio bitrate currently set.
1177
- * @returns {Number}
1178
- */
1179
- Player.prototype.getMaxAudioBitrate = function () {
1180
- return this._priv_bitrateInfos.maxAutoBitrates.audio.getValue();
1181
- };
1182
- /**
1183
- * Play/Resume the current video.
1184
- * @returns {Promise}
1185
- */
1186
- Player.prototype.play = function () {
1187
- var _this = this;
1188
- if (this.videoElement === null) {
1189
- throw new Error("Disposed player");
1190
- }
1191
- var playPromise = this.videoElement.play();
1192
- /* eslint-disable @typescript-eslint/unbound-method */
1193
- if (isNullOrUndefined(playPromise) || typeof playPromise.catch !== "function") {
1194
- /* eslint-enable @typescript-eslint/unbound-method */
1195
- return Promise.resolve();
1196
- }
1197
- return playPromise.catch(function (error) {
1198
- if (error.name === "NotAllowedError") {
1199
- var warning = new MediaError("MEDIA_ERR_PLAY_NOT_ALLOWED", error.toString());
1200
- _this.trigger("warning", warning);
1201
- }
1202
- throw error;
1203
- });
1204
- };
1205
- /**
1206
- * Pause the current video.
1207
- */
1208
- Player.prototype.pause = function () {
1209
- if (this.videoElement === null) {
1210
- throw new Error("Disposed player");
1211
- }
1212
- this.videoElement.pause();
1213
- };
1214
- /**
1215
- * Seek to a given absolute position.
1216
- * @param {Number|Object} time
1217
- * @returns {Number} - The time the player has seek to
1218
- */
1219
- Player.prototype.seekTo = function (time) {
1220
- var _a;
1221
- if (this.videoElement === null) {
1222
- throw new Error("Disposed player");
1223
- }
1224
- if (this._priv_contentInfos === null) {
1225
- throw new Error("player: no content loaded");
1226
- }
1227
- var _b = this._priv_contentInfos, isDirectFile = _b.isDirectFile, manifest = _b.manifest;
1228
- if (!isDirectFile && manifest === null) {
1229
- throw new Error("player: the content did not load yet");
1230
- }
1231
- var positionWanted;
1232
- if (typeof time === "number") {
1233
- positionWanted = time;
1234
- }
1235
- else if (typeof time === "object") {
1236
- var timeObj = time;
1237
- var currentTs = this.videoElement.currentTime;
1238
- if (!isNullOrUndefined(timeObj.relative)) {
1239
- positionWanted = currentTs + timeObj.relative;
1240
- }
1241
- else if (!isNullOrUndefined(timeObj.position)) {
1242
- positionWanted = timeObj.position;
1243
- }
1244
- else if (!isNullOrUndefined(timeObj.wallClockTime)) {
1245
- if (manifest !== null) {
1246
- positionWanted = timeObj.wallClockTime - ((_a = manifest.availabilityStartTime) !== null && _a !== void 0 ? _a : 0);
1247
- }
1248
- else if (isDirectFile && this.videoElement !== null) {
1249
- var startDate = getStartDate(this.videoElement);
1250
- if (startDate !== undefined) {
1251
- positionWanted = timeObj.wallClockTime - startDate;
1252
- }
1253
- }
1254
- if (positionWanted === undefined) {
1255
- positionWanted = timeObj.wallClockTime;
1256
- }
1257
- }
1258
- else {
1259
- throw new Error("invalid time object. You must set one of the " +
1260
- "following properties: \"relative\", \"position\" or " +
1261
- "\"wallClockTime\"");
1262
- }
1263
- }
1264
- if (positionWanted === undefined) {
1265
- throw new Error("invalid time given");
1266
- }
1267
- log.info("API: API Seek to", positionWanted);
1268
- this.videoElement.currentTime = positionWanted;
1269
- return positionWanted;
1270
- };
1271
- /**
1272
- * Returns true if the media element is full screen.
1273
- * @deprecated
1274
- * @returns {Boolean}
1275
- */
1276
- Player.prototype.isFullscreen = function () {
1277
- warnOnce("isFullscreen is deprecated." +
1278
- " Fullscreen management should now be managed by the application");
1279
- return isFullscreen();
1280
- };
1281
- /**
1282
- * Set/exit fullScreen.
1283
- * @deprecated
1284
- * @param {Boolean} [goFull=true] - if false, exit full screen.
1285
- */
1286
- Player.prototype.setFullscreen = function (goFull) {
1287
- if (goFull === void 0) { goFull = true; }
1288
- warnOnce("setFullscreen is deprecated." +
1289
- " Fullscreen management should now be managed by the application");
1290
- if (this.videoElement === null) {
1291
- throw new Error("Disposed player");
1292
- }
1293
- if (goFull) {
1294
- requestFullscreen(this.videoElement);
1295
- }
1296
- else {
1297
- exitFullscreen();
1298
- }
1299
- };
1300
- /**
1301
- * Exit from full screen mode.
1302
- * @deprecated
1303
- */
1304
- Player.prototype.exitFullscreen = function () {
1305
- warnOnce("exitFullscreen is deprecated." +
1306
- " Fullscreen management should now be managed by the application");
1307
- exitFullscreen();
1308
- };
1309
- /**
1310
- * Returns the current player's audio volume on the media element.
1311
- * From 0 (no audio) to 1 (maximum volume).
1312
- * @returns {Number}
1313
- */
1314
- Player.prototype.getVolume = function () {
1315
- if (this.videoElement === null) {
1316
- throw new Error("Disposed player");
1317
- }
1318
- return this.videoElement.volume;
1319
- };
1320
- /**
1321
- * Set the player's audio volume. From 0 (no volume) to 1 (maximum volume).
1322
- * @param {Number} volume
1323
- */
1324
- Player.prototype.setVolume = function (volume) {
1325
- if (this.videoElement === null) {
1326
- throw new Error("Disposed player");
1327
- }
1328
- var videoElement = this.videoElement;
1329
- if (volume !== videoElement.volume) {
1330
- videoElement.volume = volume;
1331
- this.trigger("volumeChange", volume);
1332
- }
1333
- };
1334
- /**
1335
- * Returns true if the volume is set to 0. false otherwise.
1336
- * @returns {Boolean}
1337
- */
1338
- Player.prototype.isMute = function () {
1339
- return this.getVolume() === 0;
1340
- };
1341
- /**
1342
- * Set the volume to 0 and save current one for when unmuted.
1343
- */
1344
- Player.prototype.mute = function () {
1345
- this._priv_mutedMemory = this.getVolume();
1346
- this.setVolume(0);
1347
- };
1348
- /**
1349
- * Set the volume back to when it was when mute was last called.
1350
- * If the volume was set to 0, set a default volume instead (see config).
1351
- */
1352
- Player.prototype.unMute = function () {
1353
- var DEFAULT_UNMUTED_VOLUME = config.getCurrent().DEFAULT_UNMUTED_VOLUME;
1354
- var vol = this.getVolume();
1355
- if (vol === 0) {
1356
- this.setVolume(this._priv_mutedMemory === 0 ? DEFAULT_UNMUTED_VOLUME :
1357
- this._priv_mutedMemory);
1358
- }
1359
- };
1360
- /**
1361
- * Force the video bitrate to a given value. Act as a ceil.
1362
- * -1 to set it on AUTO Mode
1363
- * @param {Number} btr
1364
- */
1365
- Player.prototype.setVideoBitrate = function (btr) {
1366
- this._priv_bitrateInfos.manualBitrates.video.setValue(btr);
1367
- };
1368
- /**
1369
- * Force the audio bitrate to a given value. Act as a ceil.
1370
- * -1 to set it on AUTO Mode
1371
- * @param {Number} btr
1372
- */
1373
- Player.prototype.setAudioBitrate = function (btr) {
1374
- this._priv_bitrateInfos.manualBitrates.audio.setValue(btr);
1375
- };
1376
- /**
1377
- * Update the minimum video bitrate the user can switch to.
1378
- * @param {Number} btr
1379
- */
1380
- Player.prototype.setMinVideoBitrate = function (btr) {
1381
- var maxVideoBitrate = this._priv_bitrateInfos.maxAutoBitrates.video.getValue();
1382
- if (btr > maxVideoBitrate) {
1383
- throw new Error("Invalid minimum video bitrate given. " +
1384
- "Its value, \"".concat(btr, "\" is superior the current maximum ") +
1385
- "video birate, \"".concat(maxVideoBitrate, "\"."));
1386
- }
1387
- this._priv_bitrateInfos.minAutoBitrates.video.setValue(btr);
1388
- };
1389
- /**
1390
- * Update the minimum audio bitrate the user can switch to.
1391
- * @param {Number} btr
1392
- */
1393
- Player.prototype.setMinAudioBitrate = function (btr) {
1394
- var maxAudioBitrate = this._priv_bitrateInfos.maxAutoBitrates.audio.getValue();
1395
- if (btr > maxAudioBitrate) {
1396
- throw new Error("Invalid minimum audio bitrate given. " +
1397
- "Its value, \"".concat(btr, "\" is superior the current maximum ") +
1398
- "audio birate, \"".concat(maxAudioBitrate, "\"."));
1399
- }
1400
- this._priv_bitrateInfos.minAutoBitrates.audio.setValue(btr);
1401
- };
1402
- /**
1403
- * Update the maximum video bitrate the user can switch to.
1404
- * @param {Number} btr
1405
- */
1406
- Player.prototype.setMaxVideoBitrate = function (btr) {
1407
- var minVideoBitrate = this._priv_bitrateInfos.minAutoBitrates.video.getValue();
1408
- if (btr < minVideoBitrate) {
1409
- throw new Error("Invalid maximum video bitrate given. " +
1410
- "Its value, \"".concat(btr, "\" is inferior the current minimum ") +
1411
- "video birate, \"".concat(minVideoBitrate, "\"."));
1412
- }
1413
- this._priv_bitrateInfos.maxAutoBitrates.video.setValue(btr);
1414
- };
1415
- /**
1416
- * Update the maximum audio bitrate the user can switch to.
1417
- * @param {Number} btr
1418
- */
1419
- Player.prototype.setMaxAudioBitrate = function (btr) {
1420
- var minAudioBitrate = this._priv_bitrateInfos.minAutoBitrates.audio.getValue();
1421
- if (btr < minAudioBitrate) {
1422
- throw new Error("Invalid maximum audio bitrate given. " +
1423
- "Its value, \"".concat(btr, "\" is inferior the current minimum ") +
1424
- "audio birate, \"".concat(minAudioBitrate, "\"."));
1425
- }
1426
- this._priv_bitrateInfos.maxAutoBitrates.audio.setValue(btr);
1427
- };
1428
- /**
1429
- * Set the max buffer size for the buffer behind the current position.
1430
- * Every buffer data before will be removed.
1431
- * @param {Number} depthInSeconds
1432
- */
1433
- Player.prototype.setMaxBufferBehind = function (depthInSeconds) {
1434
- this._priv_bufferOptions.maxBufferBehind.setValue(depthInSeconds);
1435
- };
1436
- /**
1437
- * Set the max buffer size for the buffer behind the current position.
1438
- * Every buffer data before will be removed.
1439
- * @param {Number} depthInSeconds
1440
- */
1441
- Player.prototype.setMaxBufferAhead = function (depthInSeconds) {
1442
- this._priv_bufferOptions.maxBufferAhead.setValue(depthInSeconds);
1443
- };
1444
- /**
1445
- * Set the max buffer size for the buffer ahead of the current position.
1446
- * The player will stop downloading chunks when this size is reached.
1447
- * @param {Number} sizeInSeconds
1448
- */
1449
- Player.prototype.setWantedBufferAhead = function (sizeInSeconds) {
1450
- this._priv_bufferOptions.wantedBufferAhead.setValue(sizeInSeconds);
1451
- };
1452
- /**
1453
- * Set the max buffer size the buffer should take in memory
1454
- * The player . will stop downloading chunks when this size is reached.
1455
- * @param {Number} sizeInKBytes
1456
- */
1457
- Player.prototype.setMaxVideoBufferSize = function (sizeInKBytes) {
1458
- this._priv_bufferOptions.maxVideoBufferSize.setValue(sizeInKBytes);
1459
- };
1460
- /**
1461
- * Returns the max buffer size for the buffer behind the current position.
1462
- * @returns {Number}
1463
- */
1464
- Player.prototype.getMaxBufferBehind = function () {
1465
- return this._priv_bufferOptions.maxBufferBehind.getValue();
1466
- };
1467
- /**
1468
- * Returns the max buffer size for the buffer behind the current position.
1469
- * @returns {Number}
1470
- */
1471
- Player.prototype.getMaxBufferAhead = function () {
1472
- return this._priv_bufferOptions.maxBufferAhead.getValue();
1473
- };
1474
- /**
1475
- * Returns the max buffer size for the buffer ahead of the current position.
1476
- * @returns {Number}
1477
- */
1478
- Player.prototype.getWantedBufferAhead = function () {
1479
- return this._priv_bufferOptions.wantedBufferAhead.getValue();
1480
- };
1481
- /**
1482
- * Returns the max buffer memory size for the buffer in kilobytes
1483
- * @returns {Number}
1484
- */
1485
- Player.prototype.getMaxVideoBufferSize = function () {
1486
- return this._priv_bufferOptions.maxVideoBufferSize.getValue();
1487
- };
1488
- /**
1489
- * Returns type of current keysystem (e.g. playready, widevine) if the content
1490
- * is encrypted. null otherwise.
1491
- * @deprecated
1492
- * @returns {string|null}
1493
- */
1494
- Player.prototype.getCurrentKeySystem = function () {
1495
- warnOnce("`getCurrentKeySystem` is deprecated." +
1496
- "Please use the `getKeySystemConfiguration` method instead.");
1497
- if (this.videoElement === null) {
1498
- throw new Error("Disposed player");
1499
- }
1500
- return getCurrentKeySystem(this.videoElement);
1501
- };
1502
- /**
1503
- * Returns both the name of the key system (e.g. `"com.widevine.alpha"`) and
1504
- * the `MediaKeySystemConfiguration` currently associated to the
1505
- * HTMLMediaElement linked to the RxPlayer.
1506
- *
1507
- * Returns `null` if no such capabilities is associated or if unknown.
1508
- * @returns {Object|null}
1509
- */
1510
- Player.prototype.getKeySystemConfiguration = function () {
1511
- if (this.videoElement === null) {
1512
- throw new Error("Disposed player");
1513
- }
1514
- var values = getKeySystemConfiguration(this.videoElement);
1515
- if (values === null) {
1516
- return null;
1517
- }
1518
- return { keySystem: values[0], configuration: values[1] };
1519
- };
1520
- /**
1521
- * Returns every available audio tracks for the current Period.
1522
- * @returns {Array.<Object>|null}
1523
- */
1524
- Player.prototype.getAvailableAudioTracks = function () {
1525
- var _a;
1526
- if (this._priv_contentInfos === null) {
1527
- return [];
1528
- }
1529
- var _b = this._priv_contentInfos, currentPeriod = _b.currentPeriod, isDirectFile = _b.isDirectFile, trackChoiceManager = _b.trackChoiceManager, mediaElementTrackChoiceManager = _b.mediaElementTrackChoiceManager;
1530
- if (isDirectFile) {
1531
- return (_a = mediaElementTrackChoiceManager === null || mediaElementTrackChoiceManager === void 0 ? void 0 : mediaElementTrackChoiceManager.getAvailableAudioTracks()) !== null && _a !== void 0 ? _a : [];
1532
- }
1533
- if (trackChoiceManager === null || currentPeriod === null) {
1534
- return [];
1535
- }
1536
- return trackChoiceManager.getAvailableAudioTracks(currentPeriod);
1537
- };
1538
- /**
1539
- * Returns every available text tracks for the current Period.
1540
- * @returns {Array.<Object>|null}
1541
- */
1542
- Player.prototype.getAvailableTextTracks = function () {
1543
- var _a;
1544
- if (this._priv_contentInfos === null) {
1545
- return [];
1546
- }
1547
- var _b = this._priv_contentInfos, currentPeriod = _b.currentPeriod, isDirectFile = _b.isDirectFile, trackChoiceManager = _b.trackChoiceManager, mediaElementTrackChoiceManager = _b.mediaElementTrackChoiceManager;
1548
- if (isDirectFile) {
1549
- return (_a = mediaElementTrackChoiceManager === null || mediaElementTrackChoiceManager === void 0 ? void 0 : mediaElementTrackChoiceManager.getAvailableTextTracks()) !== null && _a !== void 0 ? _a : [];
1550
- }
1551
- if (trackChoiceManager === null || currentPeriod === null) {
1552
- return [];
1553
- }
1554
- return trackChoiceManager.getAvailableTextTracks(currentPeriod);
1555
- };
1556
- /**
1557
- * Returns every available video tracks for the current Period.
1558
- * @returns {Array.<Object>|null}
1559
- */
1560
- Player.prototype.getAvailableVideoTracks = function () {
1561
- var _a;
1562
- if (this._priv_contentInfos === null) {
1563
- return [];
1564
- }
1565
- var _b = this._priv_contentInfos, currentPeriod = _b.currentPeriod, isDirectFile = _b.isDirectFile, trackChoiceManager = _b.trackChoiceManager, mediaElementTrackChoiceManager = _b.mediaElementTrackChoiceManager;
1566
- if (isDirectFile) {
1567
- return (_a = mediaElementTrackChoiceManager === null || mediaElementTrackChoiceManager === void 0 ? void 0 : mediaElementTrackChoiceManager.getAvailableVideoTracks()) !== null && _a !== void 0 ? _a : [];
1568
- }
1569
- if (trackChoiceManager === null || currentPeriod === null) {
1570
- return [];
1571
- }
1572
- return trackChoiceManager.getAvailableVideoTracks(currentPeriod);
1573
- };
1574
- /**
1575
- * Returns currently chosen audio language for the current Period.
1576
- * @returns {string}
1577
- */
1578
- Player.prototype.getAudioTrack = function () {
1579
- if (this._priv_contentInfos === null) {
1580
- return undefined;
1581
- }
1582
- var _a = this._priv_contentInfos, currentPeriod = _a.currentPeriod, isDirectFile = _a.isDirectFile, trackChoiceManager = _a.trackChoiceManager, mediaElementTrackChoiceManager = _a.mediaElementTrackChoiceManager;
1583
- if (isDirectFile) {
1584
- if (mediaElementTrackChoiceManager === null) {
1585
- return undefined;
1586
- }
1587
- return mediaElementTrackChoiceManager.getChosenAudioTrack();
1588
- }
1589
- if (trackChoiceManager === null || currentPeriod === null) {
1590
- return undefined;
1591
- }
1592
- return trackChoiceManager.getChosenAudioTrack(currentPeriod);
1593
- };
1594
- /**
1595
- * Returns currently chosen subtitle for the current Period.
1596
- * @returns {string}
1597
- */
1598
- Player.prototype.getTextTrack = function () {
1599
- if (this._priv_contentInfos === null) {
1600
- return undefined;
1601
- }
1602
- var _a = this._priv_contentInfos, currentPeriod = _a.currentPeriod, isDirectFile = _a.isDirectFile, trackChoiceManager = _a.trackChoiceManager, mediaElementTrackChoiceManager = _a.mediaElementTrackChoiceManager;
1603
- if (isDirectFile) {
1604
- if (mediaElementTrackChoiceManager === null) {
1605
- return undefined;
1606
- }
1607
- return mediaElementTrackChoiceManager.getChosenTextTrack();
1608
- }
1609
- if (trackChoiceManager === null || currentPeriod === null) {
1610
- return undefined;
1611
- }
1612
- return trackChoiceManager.getChosenTextTrack(currentPeriod);
1613
- };
1614
- /**
1615
- * Returns currently chosen video track for the current Period.
1616
- * @returns {string}
1617
- */
1618
- Player.prototype.getVideoTrack = function () {
1619
- if (this._priv_contentInfos === null) {
1620
- return undefined;
1621
- }
1622
- var _a = this._priv_contentInfos, currentPeriod = _a.currentPeriod, isDirectFile = _a.isDirectFile, trackChoiceManager = _a.trackChoiceManager, mediaElementTrackChoiceManager = _a.mediaElementTrackChoiceManager;
1623
- if (isDirectFile) {
1624
- if (mediaElementTrackChoiceManager === null) {
1625
- return undefined;
1626
- }
1627
- return mediaElementTrackChoiceManager.getChosenVideoTrack();
1628
- }
1629
- if (trackChoiceManager === null || currentPeriod === null) {
1630
- return undefined;
1631
- }
1632
- return trackChoiceManager.getChosenVideoTrack(currentPeriod);
1633
- };
1634
- /**
1635
- * Update the audio language for the current Period.
1636
- * @param {string} audioId
1637
- * @throws Error - the current content has no TrackChoiceManager.
1638
- * @throws Error - the given id is linked to no audio track.
1639
- */
1640
- Player.prototype.setAudioTrack = function (audioId) {
1641
- if (this._priv_contentInfos === null) {
1642
- throw new Error("No content loaded");
1643
- }
1644
- var _a = this._priv_contentInfos, currentPeriod = _a.currentPeriod, isDirectFile = _a.isDirectFile, trackChoiceManager = _a.trackChoiceManager, mediaElementTrackChoiceManager = _a.mediaElementTrackChoiceManager;
1645
- if (isDirectFile) {
1646
- try {
1647
- mediaElementTrackChoiceManager === null || mediaElementTrackChoiceManager === void 0 ? void 0 : mediaElementTrackChoiceManager.setAudioTrackById(audioId);
1648
- return;
1649
- }
1650
- catch (e) {
1651
- throw new Error("player: unknown audio track");
1652
- }
1653
- }
1654
- if (trackChoiceManager === null || currentPeriod === null) {
1655
- throw new Error("No compatible content launched.");
1656
- }
1657
- try {
1658
- trackChoiceManager.setAudioTrackByID(currentPeriod, audioId);
1659
- }
1660
- catch (e) {
1661
- throw new Error("player: unknown audio track");
1662
- }
1663
- };
1664
- /**
1665
- * Update the text language for the current Period.
1666
- * @param {string} sub
1667
- * @throws Error - the current content has no TrackChoiceManager.
1668
- * @throws Error - the given id is linked to no text track.
1669
- */
1670
- Player.prototype.setTextTrack = function (textId) {
1671
- if (this._priv_contentInfos === null) {
1672
- throw new Error("No content loaded");
1673
- }
1674
- var _a = this._priv_contentInfos, currentPeriod = _a.currentPeriod, isDirectFile = _a.isDirectFile, trackChoiceManager = _a.trackChoiceManager, mediaElementTrackChoiceManager = _a.mediaElementTrackChoiceManager;
1675
- if (isDirectFile) {
1676
- try {
1677
- mediaElementTrackChoiceManager === null || mediaElementTrackChoiceManager === void 0 ? void 0 : mediaElementTrackChoiceManager.setTextTrackById(textId);
1678
- return;
1679
- }
1680
- catch (e) {
1681
- throw new Error("player: unknown text track");
1682
- }
1683
- }
1684
- if (trackChoiceManager === null || currentPeriod === null) {
1685
- throw new Error("No compatible content launched.");
1686
- }
1687
- try {
1688
- trackChoiceManager.setTextTrackByID(currentPeriod, textId);
1689
- }
1690
- catch (e) {
1691
- throw new Error("player: unknown text track");
1692
- }
1693
- };
1694
- /**
1695
- * Disable subtitles for the current content.
1696
- */
1697
- Player.prototype.disableTextTrack = function () {
1698
- if (this._priv_contentInfos === null) {
1699
- return;
1700
- }
1701
- var _a = this._priv_contentInfos, currentPeriod = _a.currentPeriod, isDirectFile = _a.isDirectFile, trackChoiceManager = _a.trackChoiceManager, mediaElementTrackChoiceManager = _a.mediaElementTrackChoiceManager;
1702
- if (isDirectFile) {
1703
- mediaElementTrackChoiceManager === null || mediaElementTrackChoiceManager === void 0 ? void 0 : mediaElementTrackChoiceManager.disableTextTrack();
1704
- return;
1705
- }
1706
- if (trackChoiceManager === null || currentPeriod === null) {
1707
- return;
1708
- }
1709
- return trackChoiceManager.disableTextTrack(currentPeriod);
1710
- };
1711
- /**
1712
- * Update the video track for the current Period.
1713
- * @param {string} videoId
1714
- * @throws Error - the current content has no TrackChoiceManager.
1715
- * @throws Error - the given id is linked to no video track.
1716
- */
1717
- Player.prototype.setVideoTrack = function (videoId) {
1718
- if (this._priv_contentInfos === null) {
1719
- throw new Error("No content loaded");
1720
- }
1721
- var _a = this._priv_contentInfos, currentPeriod = _a.currentPeriod, isDirectFile = _a.isDirectFile, trackChoiceManager = _a.trackChoiceManager, mediaElementTrackChoiceManager = _a.mediaElementTrackChoiceManager;
1722
- if (isDirectFile) {
1723
- try {
1724
- mediaElementTrackChoiceManager === null || mediaElementTrackChoiceManager === void 0 ? void 0 : mediaElementTrackChoiceManager.setVideoTrackById(videoId);
1725
- return;
1726
- }
1727
- catch (e) {
1728
- throw new Error("player: unknown video track");
1729
- }
1730
- }
1731
- if (trackChoiceManager === null || currentPeriod === null) {
1732
- throw new Error("No compatible content launched.");
1733
- }
1734
- try {
1735
- trackChoiceManager.setVideoTrackByID(currentPeriod, videoId);
1736
- }
1737
- catch (e) {
1738
- throw new Error("player: unknown video track");
1739
- }
1740
- };
1741
- /**
1742
- * Disable video track for the current content.
1743
- */
1744
- Player.prototype.disableVideoTrack = function () {
1745
- if (this._priv_contentInfos === null) {
1746
- return;
1747
- }
1748
- var _a = this._priv_contentInfos, currentPeriod = _a.currentPeriod, isDirectFile = _a.isDirectFile, trackChoiceManager = _a.trackChoiceManager, mediaElementTrackChoiceManager = _a.mediaElementTrackChoiceManager;
1749
- if (isDirectFile && mediaElementTrackChoiceManager !== null) {
1750
- return mediaElementTrackChoiceManager.disableVideoTrack();
1751
- }
1752
- if (trackChoiceManager === null || currentPeriod === null) {
1753
- return;
1754
- }
1755
- return trackChoiceManager.disableVideoTrack(currentPeriod);
1756
- };
1757
- /**
1758
- * Returns the current list of preferred audio tracks, in preference order.
1759
- * @returns {Array.<Object>}
1760
- */
1761
- Player.prototype.getPreferredAudioTracks = function () {
1762
- return this._priv_preferredAudioTracks;
1763
- };
1764
- /**
1765
- * Returns the current list of preferred text tracks, in preference order.
1766
- * @returns {Array.<Object>}
1767
- */
1768
- Player.prototype.getPreferredTextTracks = function () {
1769
- return this._priv_preferredTextTracks;
1770
- };
1771
- /**
1772
- * Returns the current list of preferred text tracks, in preference order.
1773
- * @returns {Array.<Object>}
1774
- */
1775
- Player.prototype.getPreferredVideoTracks = function () {
1776
- return this._priv_preferredVideoTracks;
1777
- };
1778
- /**
1779
- * Set the list of preferred audio tracks, in preference order.
1780
- * @param {Array.<Object>} tracks
1781
- * @param {boolean} shouldApply - `true` if those preferences should be
1782
- * applied on the currently loaded Period. `false` if it should only
1783
- * be applied to new content.
1784
- */
1785
- Player.prototype.setPreferredAudioTracks = function (tracks, shouldApply) {
1786
- if (shouldApply === void 0) { shouldApply = false; }
1787
- if (!Array.isArray(tracks)) {
1788
- throw new Error("Invalid `setPreferredAudioTracks` argument. " +
1789
- "Should have been an Array.");
1790
- }
1791
- this._priv_preferredAudioTracks = tracks;
1792
- var contentInfos = this._priv_contentInfos;
1793
- if (!isNullOrUndefined(contentInfos === null || contentInfos === void 0 ? void 0 : contentInfos.trackChoiceManager)) {
1794
- contentInfos === null || contentInfos === void 0 ? void 0 : contentInfos.trackChoiceManager.setPreferredAudioTracks(tracks, shouldApply);
1795
- }
1796
- else if (!isNullOrUndefined(contentInfos === null || contentInfos === void 0 ? void 0 : contentInfos.mediaElementTrackChoiceManager)) {
1797
- contentInfos === null || contentInfos === void 0 ? void 0 : contentInfos.mediaElementTrackChoiceManager.setPreferredAudioTracks(tracks, shouldApply);
1798
- }
1799
- };
1800
- /**
1801
- * Set the list of preferred text tracks, in preference order.
1802
- * @param {Array.<Object>} tracks
1803
- * @param {boolean} shouldApply - `true` if those preferences should be
1804
- * applied on the currently loaded Periods. `false` if it should only
1805
- * be applied to new content.
1806
- */
1807
- Player.prototype.setPreferredTextTracks = function (tracks, shouldApply) {
1808
- if (shouldApply === void 0) { shouldApply = false; }
1809
- if (!Array.isArray(tracks)) {
1810
- throw new Error("Invalid `setPreferredTextTracks` argument. " +
1811
- "Should have been an Array.");
1812
- }
1813
- this._priv_preferredTextTracks = tracks;
1814
- var contentInfos = this._priv_contentInfos;
1815
- if (!isNullOrUndefined(contentInfos === null || contentInfos === void 0 ? void 0 : contentInfos.trackChoiceManager)) {
1816
- contentInfos === null || contentInfos === void 0 ? void 0 : contentInfos.trackChoiceManager.setPreferredTextTracks(tracks, shouldApply);
1817
- }
1818
- else if (!isNullOrUndefined(contentInfos === null || contentInfos === void 0 ? void 0 : contentInfos.mediaElementTrackChoiceManager)) {
1819
- contentInfos === null || contentInfos === void 0 ? void 0 : contentInfos.mediaElementTrackChoiceManager.setPreferredTextTracks(tracks, shouldApply);
1820
- }
1821
- };
1822
- /**
1823
- * Set the list of preferred text tracks, in preference order.
1824
- * @param {Array.<Object>} tracks
1825
- * @param {boolean} shouldApply - `true` if those preferences should be
1826
- * applied on the currently loaded Period. `false` if it should only
1827
- * be applied to new content.
1828
- */
1829
- Player.prototype.setPreferredVideoTracks = function (tracks, shouldApply) {
1830
- if (shouldApply === void 0) { shouldApply = false; }
1831
- if (!Array.isArray(tracks)) {
1832
- throw new Error("Invalid `setPreferredVideoTracks` argument. " +
1833
- "Should have been an Array.");
1834
- }
1835
- this._priv_preferredVideoTracks = tracks;
1836
- var contentInfos = this._priv_contentInfos;
1837
- if (!isNullOrUndefined(contentInfos === null || contentInfos === void 0 ? void 0 : contentInfos.trackChoiceManager)) {
1838
- contentInfos === null || contentInfos === void 0 ? void 0 : contentInfos.trackChoiceManager.setPreferredVideoTracks(tracks, shouldApply);
1839
- }
1840
- else if (!isNullOrUndefined(contentInfos === null || contentInfos === void 0 ? void 0 : contentInfos.mediaElementTrackChoiceManager)) {
1841
- contentInfos === null || contentInfos === void 0 ? void 0 : contentInfos.mediaElementTrackChoiceManager.setPreferredVideoTracks(tracks, shouldApply);
1842
- }
1843
- };
1844
- /**
1845
- * @returns {Array.<Object>|null}
1846
- * @deprecated
1847
- */
1848
- Player.prototype.getImageTrackData = function () {
1849
- warnOnce("`getImageTrackData` is deprecated." +
1850
- "Please use the `parseBifThumbnails` tool instead.");
1851
- if (this._priv_contentInfos === null) {
1852
- return null;
1853
- }
1854
- /* eslint-disable import/no-deprecated */
1855
- return this._priv_contentInfos.thumbnails;
1856
- /* eslint-enable import/no-deprecated */
1857
- };
1858
- /**
1859
- * Get minimum seek-able position.
1860
- * @returns {number}
1861
- */
1862
- Player.prototype.getMinimumPosition = function () {
1863
- if (this._priv_contentInfos === null) {
1864
- return null;
1865
- }
1866
- if (this._priv_contentInfos.isDirectFile) {
1867
- return 0;
1868
- }
1869
- var manifest = this._priv_contentInfos.manifest;
1870
- if (manifest !== null) {
1871
- return manifest.getMinimumSafePosition();
1872
- }
1873
- return null;
1874
- };
1875
- /**
1876
- * Get maximum seek-able position.
1877
- * @returns {number}
1878
- */
1879
- Player.prototype.getMaximumPosition = function () {
1880
- if (this._priv_contentInfos === null) {
1881
- return null;
1882
- }
1883
- var _a = this._priv_contentInfos, isDirectFile = _a.isDirectFile, manifest = _a.manifest;
1884
- if (isDirectFile) {
1885
- if (this.videoElement === null) {
1886
- throw new Error("Disposed player");
1887
- }
1888
- return this.videoElement.duration;
1889
- }
1890
- if (manifest !== null) {
1891
- if (!manifest.isDynamic && this.videoElement !== null) {
1892
- return this.videoElement.duration;
1893
- }
1894
- return manifest.getMaximumSafePosition();
1895
- }
1896
- return null;
1897
- };
1898
- /**
1899
- * /!\ For demo use only! Do not touch!
1900
- *
1901
- * Returns every chunk buffered for a given buffer type.
1902
- * Returns `null` if no SegmentBuffer was created for this type of buffer.
1903
- * @param {string} bufferType
1904
- * @returns {Array.<Object>|null}
1905
- */
1906
- Player.prototype.__priv_getSegmentBufferContent = function (bufferType) {
1907
- if (this._priv_contentInfos === null ||
1908
- this._priv_contentInfos.segmentBuffersStore === null) {
1909
- return null;
1910
- }
1911
- var segmentBufferStatus = this._priv_contentInfos
1912
- .segmentBuffersStore.getStatus(bufferType);
1913
- if (segmentBufferStatus.type === "initialized") {
1914
- segmentBufferStatus.value.synchronizeInventory();
1915
- return segmentBufferStatus.value.getInventory();
1916
- }
1917
- return null;
1918
- };
1919
- /**
1920
- * Reset all state properties relative to a playing content.
1921
- */
1922
- Player.prototype._priv_cleanUpCurrentContentState = function () {
1923
- var _this = this;
1924
- var _a, _b;
1925
- log.debug("Locking `contentLock` to clean-up the current content.");
1926
- // lock playback of new contents while cleaning up is pending
1927
- this._priv_contentLock.setValue(true);
1928
- (_b = (_a = this._priv_contentInfos) === null || _a === void 0 ? void 0 : _a.mediaElementTrackChoiceManager) === null || _b === void 0 ? void 0 : _b.dispose();
1929
- this._priv_contentInfos = null;
1930
- this._priv_contentEventsMemory = {};
1931
- // DRM-related clean-up
1932
- var freeUpContentLock = function () {
1933
- if (_this.videoElement !== null) { // If not disposed
1934
- log.debug("Unlocking `contentLock`. Next content can begin.");
1935
- _this._priv_contentLock.setValue(false);
1936
- }
1937
- };
1938
- if (!isNullOrUndefined(this.videoElement)) {
1939
- clearOnStop(this.videoElement).then(function () {
1940
- log.debug("API: DRM session cleaned-up with success!");
1941
- freeUpContentLock();
1942
- }, function (err) {
1943
- log.error("API: An error arised when trying to clean-up the DRM session:" +
1944
- (err instanceof Error ? err.toString() :
1945
- "Unknown Error"));
1946
- freeUpContentLock();
1947
- });
1948
- }
1949
- else {
1950
- freeUpContentLock();
1951
- }
1952
- };
1953
- /**
1954
- * Triggered when the Manifest has been loaded for the current content.
1955
- * Initialize various private properties and emit initial event.
1956
- * @param {Object} contentInfos
1957
- * @param {Object} manifest
1958
- */
1959
- Player.prototype._priv_onManifestReady = function (contentInfos, manifest) {
1960
- var _this = this;
1961
- var _a;
1962
- if (contentInfos.contentId !== ((_a = this._priv_contentInfos) === null || _a === void 0 ? void 0 : _a.contentId)) {
1963
- return; // Event for another content
1964
- }
1965
- contentInfos.manifest = manifest;
1966
- var cancelSignal = contentInfos.currentContentCanceller.signal;
1967
- this._priv_reloadingMetadata.manifest = manifest;
1968
- var initialAudioTrack = contentInfos.initialAudioTrack, initialTextTrack = contentInfos.initialTextTrack;
1969
- contentInfos.trackChoiceManager = new TrackChoiceManager({
1970
- preferTrickModeTracks: this._priv_preferTrickModeTracks,
1971
- });
1972
- var preferredAudioTracks = initialAudioTrack === undefined ?
1973
- this._priv_preferredAudioTracks :
1974
- [initialAudioTrack];
1975
- contentInfos.trackChoiceManager.setPreferredAudioTracks(preferredAudioTracks, true);
1976
- var preferredTextTracks = initialTextTrack === undefined ?
1977
- this._priv_preferredTextTracks :
1978
- [initialTextTrack];
1979
- contentInfos.trackChoiceManager.setPreferredTextTracks(preferredTextTracks, true);
1980
- contentInfos.trackChoiceManager
1981
- .setPreferredVideoTracks(this._priv_preferredVideoTracks, true);
1982
- manifest.addEventListener("manifestUpdate", function (updates) {
1983
- var _a, _b, _c;
1984
- // Update the tracks chosen if it changed
1985
- if (contentInfos.trackChoiceManager !== null) {
1986
- contentInfos.trackChoiceManager.update();
1987
- }
1988
- var currentPeriod = (_b = (_a = _this._priv_contentInfos) === null || _a === void 0 ? void 0 : _a.currentPeriod) !== null && _b !== void 0 ? _b : undefined;
1989
- var trackChoiceManager = (_c = _this._priv_contentInfos) === null || _c === void 0 ? void 0 : _c.trackChoiceManager;
1990
- if (currentPeriod === undefined || isNullOrUndefined(trackChoiceManager)) {
1991
- return;
1992
- }
1993
- for (var _i = 0, _d = updates.updatedPeriods; _i < _d.length; _i++) {
1994
- var update = _d[_i];
1995
- if (update.period.id === currentPeriod.id) {
1996
- if (update.result.addedAdaptations.length > 0 ||
1997
- update.result.removedAdaptations.length > 0) {
1998
- // We might have new (or less) tracks, send events just to be sure
1999
- var audioTracks = trackChoiceManager.getAvailableAudioTracks(currentPeriod);
2000
- _this._priv_triggerEventIfNotStopped("availableAudioTracksChange", audioTracks !== null && audioTracks !== void 0 ? audioTracks : [], cancelSignal);
2001
- var textTracks = trackChoiceManager.getAvailableTextTracks(currentPeriod);
2002
- _this._priv_triggerEventIfNotStopped("availableTextTracksChange", textTracks !== null && textTracks !== void 0 ? textTracks : [], cancelSignal);
2003
- var videoTracks = trackChoiceManager.getAvailableVideoTracks(currentPeriod);
2004
- _this._priv_triggerEventIfNotStopped("availableVideoTracksChange", videoTracks !== null && videoTracks !== void 0 ? videoTracks : [], cancelSignal);
2005
- }
2006
- }
2007
- return;
2008
- }
2009
- }, contentInfos.currentContentCanceller.signal);
2010
- };
2011
- /**
2012
- * Triggered each times the current Period Changed.
2013
- * Store and emit initial state for the Period.
2014
- *
2015
- * @param {Object} contentInfos
2016
- * @param {Object} periodInfo
2017
- */
2018
- Player.prototype._priv_onActivePeriodChanged = function (contentInfos, _a) {
2019
- var _b, _c, _d, _e, _f, _g, _h, _j;
2020
- var period = _a.period;
2021
- if (contentInfos.contentId !== ((_b = this._priv_contentInfos) === null || _b === void 0 ? void 0 : _b.contentId)) {
2022
- return; // Event for another content
2023
- }
2024
- contentInfos.currentPeriod = period;
2025
- var cancelSignal = contentInfos.currentContentCanceller.signal;
2026
- if (this._priv_contentEventsMemory.periodChange !== period) {
2027
- this._priv_contentEventsMemory.periodChange = period;
2028
- this._priv_triggerEventIfNotStopped("periodChange", period, cancelSignal);
2029
- }
2030
- this._priv_triggerEventIfNotStopped("availableAudioTracksChange", this.getAvailableAudioTracks(), cancelSignal);
2031
- this._priv_triggerEventIfNotStopped("availableTextTracksChange", this.getAvailableTextTracks(), cancelSignal);
2032
- this._priv_triggerEventIfNotStopped("availableVideoTracksChange", this.getAvailableVideoTracks(), cancelSignal);
2033
- var trackChoiceManager = (_c = this._priv_contentInfos) === null || _c === void 0 ? void 0 : _c.trackChoiceManager;
2034
- // Emit intial events for the Period
2035
- if (!isNullOrUndefined(trackChoiceManager)) {
2036
- var audioTrack = trackChoiceManager.getChosenAudioTrack(period);
2037
- this._priv_triggerEventIfNotStopped("audioTrackChange", audioTrack, cancelSignal);
2038
- var textTrack = trackChoiceManager.getChosenTextTrack(period);
2039
- this._priv_triggerEventIfNotStopped("textTrackChange", textTrack, cancelSignal);
2040
- var videoTrack = trackChoiceManager.getChosenVideoTrack(period);
2041
- this._priv_triggerEventIfNotStopped("videoTrackChange", videoTrack, cancelSignal);
2042
- }
2043
- else {
2044
- this._priv_triggerEventIfNotStopped("audioTrackChange", null, cancelSignal);
2045
- this._priv_triggerEventIfNotStopped("textTrackChange", null, cancelSignal);
2046
- this._priv_triggerEventIfNotStopped("videoTrackChange", null, cancelSignal);
2047
- }
2048
- this._priv_triggerAvailableBitratesChangeEvent("availableAudioBitratesChange", this.getAvailableAudioBitrates(), cancelSignal);
2049
- if (contentInfos.currentContentCanceller.isUsed()) {
2050
- return;
2051
- }
2052
- this._priv_triggerAvailableBitratesChangeEvent("availableVideoBitratesChange", this.getAvailableVideoBitrates(), cancelSignal);
2053
- if (contentInfos.currentContentCanceller.isUsed()) {
2054
- return;
2055
- }
2056
- var audioBitrate = (_f = (_e = (_d = this._priv_getCurrentRepresentations()) === null || _d === void 0 ? void 0 : _d.audio) === null || _e === void 0 ? void 0 : _e.bitrate) !== null && _f !== void 0 ? _f : -1;
2057
- this._priv_triggerCurrentBitrateChangeEvent("audioBitrateChange", audioBitrate, cancelSignal);
2058
- if (contentInfos.currentContentCanceller.isUsed()) {
2059
- return;
2060
- }
2061
- var videoBitrate = (_j = (_h = (_g = this._priv_getCurrentRepresentations()) === null || _g === void 0 ? void 0 : _g.video) === null || _h === void 0 ? void 0 : _h.bitrate) !== null && _j !== void 0 ? _j : -1;
2062
- this._priv_triggerCurrentBitrateChangeEvent("videoBitrateChange", videoBitrate, cancelSignal);
2063
- };
2064
- /**
2065
- * Triggered each times a new "PeriodStream" is ready.
2066
- * Choose the right Adaptation for the Period and emit it.
2067
- * @param {Object} contentInfos
2068
- * @param {Object} value
2069
- */
2070
- Player.prototype._priv_onPeriodStreamReady = function (contentInfos, value) {
2071
- var _a;
2072
- if (contentInfos.contentId !== ((_a = this._priv_contentInfos) === null || _a === void 0 ? void 0 : _a.contentId)) {
2073
- return; // Event for another content
2074
- }
2075
- var type = value.type, period = value.period, adaptationRef = value.adaptationRef;
2076
- var trackChoiceManager = contentInfos.trackChoiceManager;
2077
- switch (type) {
2078
- case "video":
2079
- if (isNullOrUndefined(trackChoiceManager)) {
2080
- log.error("API: TrackChoiceManager not instanciated for a new video period");
2081
- adaptationRef.setValue(null);
2082
- }
2083
- else {
2084
- trackChoiceManager.addPeriod(type, period, adaptationRef);
2085
- trackChoiceManager.setInitialVideoTrack(period);
2086
- }
2087
- break;
2088
- case "audio":
2089
- if (isNullOrUndefined(trackChoiceManager)) {
2090
- log.error("API: TrackChoiceManager not instanciated for a new ".concat(type, " period"));
2091
- adaptationRef.setValue(null);
2092
- }
2093
- else {
2094
- trackChoiceManager.addPeriod(type, period, adaptationRef);
2095
- trackChoiceManager.setInitialAudioTrack(period);
2096
- }
2097
- break;
2098
- case "text":
2099
- if (isNullOrUndefined(trackChoiceManager)) {
2100
- log.error("API: TrackChoiceManager not instanciated for a new ".concat(type, " period"));
2101
- adaptationRef.setValue(null);
2102
- }
2103
- else {
2104
- trackChoiceManager.addPeriod(type, period, adaptationRef);
2105
- trackChoiceManager.setInitialTextTrack(period);
2106
- }
2107
- break;
2108
- default:
2109
- var adaptations = period.adaptations[type];
2110
- if (!isNullOrUndefined(adaptations) && adaptations.length > 0) {
2111
- adaptationRef.setValue(adaptations[0]);
2112
- }
2113
- else {
2114
- adaptationRef.setValue(null);
2115
- }
2116
- break;
2117
- }
2118
- };
2119
- /**
2120
- * Triggered each times we "remove" a PeriodStream.
2121
- * @param {Object} contentInfos
2122
- * @param {Object} value
2123
- */
2124
- Player.prototype._priv_onPeriodStreamCleared = function (contentInfos, value) {
2125
- var _a;
2126
- if (contentInfos.contentId !== ((_a = this._priv_contentInfos) === null || _a === void 0 ? void 0 : _a.contentId)) {
2127
- return; // Event for another content
2128
- }
2129
- var type = value.type, period = value.period;
2130
- var trackChoiceManager = contentInfos.trackChoiceManager;
2131
- // Clean-up track choice from TrackChoiceManager
2132
- switch (type) {
2133
- case "audio":
2134
- case "text":
2135
- case "video":
2136
- if (!isNullOrUndefined(trackChoiceManager)) {
2137
- trackChoiceManager.removePeriod(type, period);
2138
- }
2139
- break;
2140
- }
2141
- // Clean-up stored Representation and Adaptation information
2142
- var activeAdaptations = contentInfos.activeAdaptations, activeRepresentations = contentInfos.activeRepresentations;
2143
- if (!isNullOrUndefined(activeAdaptations) &&
2144
- !isNullOrUndefined(activeAdaptations[period.id])) {
2145
- var activePeriodAdaptations = activeAdaptations[period.id];
2146
- delete activePeriodAdaptations[type];
2147
- if (Object.keys(activePeriodAdaptations).length === 0) {
2148
- delete activeAdaptations[period.id];
2149
- }
2150
- }
2151
- if (!isNullOrUndefined(activeRepresentations) &&
2152
- !isNullOrUndefined(activeRepresentations[period.id])) {
2153
- var activePeriodRepresentations = activeRepresentations[period.id];
2154
- delete activePeriodRepresentations[type];
2155
- if (Object.keys(activePeriodRepresentations).length === 0) {
2156
- delete activeRepresentations[period.id];
2157
- }
2158
- }
2159
- };
2160
- /**
2161
- * Triggered each times a new Adaptation is considered for the current
2162
- * content.
2163
- * Store given Adaptation and emit it if from the current Period.
2164
- * @param {Object} contentInfos
2165
- * @param {Object} value
2166
- */
2167
- Player.prototype._priv_onAdaptationChange = function (contentInfos, _a) {
2168
- var _b;
2169
- var _c;
2170
- var type = _a.type, adaptation = _a.adaptation, period = _a.period;
2171
- if (contentInfos.contentId !== ((_c = this._priv_contentInfos) === null || _c === void 0 ? void 0 : _c.contentId)) {
2172
- return; // Event for another content
2173
- }
2174
- // lazily create contentInfos.activeAdaptations
2175
- if (contentInfos.activeAdaptations === null) {
2176
- contentInfos.activeAdaptations = {};
2177
- }
2178
- var activeAdaptations = contentInfos.activeAdaptations, currentPeriod = contentInfos.currentPeriod;
2179
- var activePeriodAdaptations = activeAdaptations[period.id];
2180
- if (isNullOrUndefined(activePeriodAdaptations)) {
2181
- activeAdaptations[period.id] = (_b = {}, _b[type] = adaptation, _b);
2182
- }
2183
- else {
2184
- activePeriodAdaptations[type] = adaptation;
2185
- }
2186
- var trackChoiceManager = contentInfos.trackChoiceManager;
2187
- var cancelSignal = contentInfos.currentContentCanceller.signal;
2188
- if (trackChoiceManager !== null &&
2189
- currentPeriod !== null && !isNullOrUndefined(period) &&
2190
- period.id === currentPeriod.id) {
2191
- switch (type) {
2192
- case "audio":
2193
- var audioTrack = trackChoiceManager.getChosenAudioTrack(currentPeriod);
2194
- this._priv_triggerEventIfNotStopped("audioTrackChange", audioTrack, cancelSignal);
2195
- var availableAudioBitrates = this.getAvailableAudioBitrates();
2196
- this._priv_triggerAvailableBitratesChangeEvent("availableAudioBitratesChange", availableAudioBitrates, cancelSignal);
2197
- break;
2198
- case "text":
2199
- var textTrack = trackChoiceManager.getChosenTextTrack(currentPeriod);
2200
- this._priv_triggerEventIfNotStopped("textTrackChange", textTrack, cancelSignal);
2201
- break;
2202
- case "video":
2203
- var videoTrack = trackChoiceManager.getChosenVideoTrack(currentPeriod);
2204
- this._priv_triggerEventIfNotStopped("videoTrackChange", videoTrack, cancelSignal);
2205
- var availableVideoBitrates = this.getAvailableVideoBitrates();
2206
- this._priv_triggerAvailableBitratesChangeEvent("availableVideoBitratesChange", availableVideoBitrates, cancelSignal);
2207
- break;
2208
- }
2209
- }
2210
- };
2211
- /**
2212
- * Triggered each times a new Representation is considered during playback.
2213
- *
2214
- * Store given Representation and emit it if from the current Period.
2215
- *
2216
- * @param {Object} contentInfos
2217
- * @param {Object} obj
2218
- */
2219
- Player.prototype._priv_onRepresentationChange = function (contentInfos, _a) {
2220
- var _b;
2221
- var _c, _d;
2222
- var type = _a.type, period = _a.period, representation = _a.representation;
2223
- if (contentInfos.contentId !== ((_c = this._priv_contentInfos) === null || _c === void 0 ? void 0 : _c.contentId)) {
2224
- return; // Event for another content
2225
- }
2226
- // lazily create contentInfos.activeRepresentations
2227
- if (contentInfos.activeRepresentations === null) {
2228
- contentInfos.activeRepresentations = {};
2229
- }
2230
- var activeRepresentations = contentInfos.activeRepresentations, currentPeriod = contentInfos.currentPeriod;
2231
- var activePeriodRepresentations = activeRepresentations[period.id];
2232
- if (isNullOrUndefined(activePeriodRepresentations)) {
2233
- activeRepresentations[period.id] = (_b = {}, _b[type] = representation, _b);
2234
- }
2235
- else {
2236
- activePeriodRepresentations[type] = representation;
2237
- }
2238
- var bitrate = (_d = representation === null || representation === void 0 ? void 0 : representation.bitrate) !== null && _d !== void 0 ? _d : -1;
2239
- if (!isNullOrUndefined(period) &&
2240
- currentPeriod !== null &&
2241
- currentPeriod.id === period.id) {
2242
- var cancelSignal = this._priv_contentInfos.currentContentCanceller.signal;
2243
- if (type === "video") {
2244
- this._priv_triggerCurrentBitrateChangeEvent("videoBitrateChange", bitrate, cancelSignal);
2245
- }
2246
- else if (type === "audio") {
2247
- this._priv_triggerCurrentBitrateChangeEvent("audioBitrateChange", bitrate, cancelSignal);
2248
- }
2249
- }
2250
- };
2251
- /**
2252
- * Triggered each time a bitrate estimate is calculated.
2253
- *
2254
- * Emit it.
2255
- *
2256
- * @param {Object} value
2257
- */
2258
- Player.prototype._priv_onBitrateEstimationChange = function (_a) {
2259
- var type = _a.type, bitrate = _a.bitrate;
2260
- if (bitrate !== undefined) {
2261
- this._priv_bitrateInfos.lastBitrates[type] = bitrate;
2262
- }
2263
- this.trigger("bitrateEstimationChange", { type: type, bitrate: bitrate });
2264
- };
2265
- /**
2266
- * Triggered each time a textTrack is added to the video DOM Element.
2267
- *
2268
- * Trigger the right Player Event.
2269
- *
2270
- * @param {Array.<TextTrackElement>} tracks
2271
- */
2272
- Player.prototype._priv_onNativeTextTracksNext = function (tracks) {
2273
- this.trigger("nativeTextTracksChange", tracks);
2274
- };
2275
- /**
2276
- * Triggered each time the player state updates.
2277
- *
2278
- * Trigger the right Player Event.
2279
- *
2280
- * @param {string} newState
2281
- */
2282
- Player.prototype._priv_setPlayerState = function (newState) {
2283
- if (this.state !== newState) {
2284
- this.state = newState;
2285
- log.info("API: playerStateChange event", newState);
2286
- this.trigger("playerStateChange", newState);
2287
- }
2288
- };
2289
- /**
2290
- * Triggered each time a playback observation.
2291
- *
2292
- * Trigger the right Player Event
2293
- *
2294
- * @param {Object} contentInfos
2295
- * @param {Object} observation
2296
- */
2297
- Player.prototype._priv_triggerPositionUpdate = function (contentInfos, observation) {
2298
- var _a, _b;
2299
- if (contentInfos.contentId !== ((_a = this._priv_contentInfos) === null || _a === void 0 ? void 0 : _a.contentId)) {
2300
- return; // Event for another content
2301
- }
2302
- var isDirectFile = contentInfos.isDirectFile, manifest = contentInfos.manifest;
2303
- if ((!isDirectFile && manifest === null) || isNullOrUndefined(observation)) {
2304
- return;
2305
- }
2306
- var maximumPosition = manifest !== null ? manifest.getMaximumSafePosition() :
2307
- undefined;
2308
- var positionData = {
2309
- position: observation.position,
2310
- duration: observation.duration,
2311
- playbackRate: observation.playbackRate,
2312
- maximumBufferTime: maximumPosition,
2313
- // TODO bufferGap may be undefined
2314
- bufferGap: observation.bufferGap === undefined ||
2315
- !isFinite(observation.bufferGap) ?
2316
- 0 :
2317
- observation.bufferGap,
2318
- };
2319
- if (manifest !== null &&
2320
- manifest.isLive &&
2321
- observation.position > 0) {
2322
- var ast = (_b = manifest.availabilityStartTime) !== null && _b !== void 0 ? _b : 0;
2323
- positionData.wallClockTime = observation.position + ast;
2324
- var livePosition = manifest.getLivePosition();
2325
- if (livePosition !== undefined) {
2326
- positionData.liveGap = livePosition - observation.position;
2327
- }
2328
- }
2329
- else if (isDirectFile && this.videoElement !== null) {
2330
- var startDate = getStartDate(this.videoElement);
2331
- if (startDate !== undefined) {
2332
- positionData.wallClockTime = startDate + observation.position;
2333
- }
2334
- }
2335
- this.trigger("positionUpdate", positionData);
2336
- };
2337
- /**
2338
- * Trigger one of the "availableBitratesChange" event only if it changed from
2339
- * the previously stored value.
2340
- * @param {string} event
2341
- * @param {Array.<number>} newVal
2342
- * @param {Object} currentContentCancelSignal
2343
- */
2344
- Player.prototype._priv_triggerAvailableBitratesChangeEvent = function (event, newVal, currentContentCancelSignal) {
2345
- var prevVal = this._priv_contentEventsMemory[event];
2346
- if (!currentContentCancelSignal.isCancelled() &&
2347
- (prevVal === undefined || !areArraysOfNumbersEqual(newVal, prevVal))) {
2348
- this._priv_contentEventsMemory[event] = newVal;
2349
- this.trigger(event, newVal);
2350
- }
2351
- };
2352
- /**
2353
- * Trigger one of the "bitrateChange" event only if it changed from the
2354
- * previously stored value.
2355
- * @param {string} event
2356
- * @param {number} newVal
2357
- * @param {Object} currentContentCancelSignal
2358
- */
2359
- Player.prototype._priv_triggerCurrentBitrateChangeEvent = function (event, newVal, currentContentCancelSignal) {
2360
- if (!currentContentCancelSignal.isCancelled() &&
2361
- newVal !== this._priv_contentEventsMemory[event]) {
2362
- this._priv_contentEventsMemory[event] = newVal;
2363
- this.trigger(event, newVal);
2364
- }
2365
- };
2366
- Player.prototype._priv_getCurrentRepresentations = function () {
2367
- if (this._priv_contentInfos === null) {
2368
- return null;
2369
- }
2370
- var _a = this._priv_contentInfos, currentPeriod = _a.currentPeriod, activeRepresentations = _a.activeRepresentations;
2371
- if (currentPeriod === null ||
2372
- activeRepresentations === null ||
2373
- isNullOrUndefined(activeRepresentations[currentPeriod.id])) {
2374
- return null;
2375
- }
2376
- return activeRepresentations[currentPeriod.id];
2377
- };
2378
- /**
2379
- * @param {string} evt
2380
- * @param {*} arg
2381
- * @param {Object} currentContentCancelSignal
2382
- */
2383
- Player.prototype._priv_triggerEventIfNotStopped = function (evt, arg, currentContentCancelSignal) {
2384
- if (!currentContentCancelSignal.isCancelled()) {
2385
- this.trigger(evt, arg);
2386
- }
2387
- };
2388
- /**
2389
- * @param {Object} defaultAudioTrack
2390
- * @param {Object} defaultTextTrack
2391
- * @param {Object} cancelSignal
2392
- * @returns {Object}
2393
- */
2394
- Player.prototype._priv_initializeMediaElementTrackChoiceManager = function (defaultAudioTrack, defaultTextTrack, cancelSignal) {
2395
- var _this = this;
2396
- var _a, _b, _c;
2397
- assert(features.directfile !== null, "Initializing `MediaElementTrackChoiceManager` without Directfile feature");
2398
- assert(this.videoElement !== null, "Initializing `MediaElementTrackChoiceManager` on a disposed RxPlayer");
2399
- var mediaElementTrackChoiceManager = new features.directfile.mediaElementTrackChoiceManager(this.videoElement);
2400
- var preferredAudioTracks = defaultAudioTrack === undefined ?
2401
- this._priv_preferredAudioTracks :
2402
- [defaultAudioTrack];
2403
- mediaElementTrackChoiceManager.setPreferredAudioTracks(preferredAudioTracks, true);
2404
- var preferredTextTracks = defaultTextTrack === undefined ?
2405
- this._priv_preferredTextTracks :
2406
- [defaultTextTrack];
2407
- mediaElementTrackChoiceManager.setPreferredTextTracks(preferredTextTracks, true);
2408
- mediaElementTrackChoiceManager
2409
- .setPreferredVideoTracks(this._priv_preferredVideoTracks, true);
2410
- this._priv_triggerEventIfNotStopped("availableAudioTracksChange", mediaElementTrackChoiceManager.getAvailableAudioTracks(), cancelSignal);
2411
- this._priv_triggerEventIfNotStopped("availableVideoTracksChange", mediaElementTrackChoiceManager.getAvailableVideoTracks(), cancelSignal);
2412
- this._priv_triggerEventIfNotStopped("availableTextTracksChange", mediaElementTrackChoiceManager.getAvailableTextTracks(), cancelSignal);
2413
- this._priv_triggerEventIfNotStopped("audioTrackChange", (_a = mediaElementTrackChoiceManager.getChosenAudioTrack()) !== null && _a !== void 0 ? _a : null, cancelSignal);
2414
- this._priv_triggerEventIfNotStopped("textTrackChange", (_b = mediaElementTrackChoiceManager.getChosenTextTrack()) !== null && _b !== void 0 ? _b : null, cancelSignal);
2415
- this._priv_triggerEventIfNotStopped("videoTrackChange", (_c = mediaElementTrackChoiceManager.getChosenVideoTrack()) !== null && _c !== void 0 ? _c : null, cancelSignal);
2416
- mediaElementTrackChoiceManager
2417
- .addEventListener("availableVideoTracksChange", function (val) {
2418
- return _this.trigger("availableVideoTracksChange", val);
2419
- });
2420
- mediaElementTrackChoiceManager
2421
- .addEventListener("availableAudioTracksChange", function (val) {
2422
- return _this.trigger("availableAudioTracksChange", val);
2423
- });
2424
- mediaElementTrackChoiceManager
2425
- .addEventListener("availableTextTracksChange", function (val) {
2426
- return _this.trigger("availableTextTracksChange", val);
2427
- });
2428
- mediaElementTrackChoiceManager
2429
- .addEventListener("audioTrackChange", function (val) {
2430
- return _this.trigger("audioTrackChange", val);
2431
- });
2432
- mediaElementTrackChoiceManager
2433
- .addEventListener("videoTrackChange", function (val) {
2434
- return _this.trigger("videoTrackChange", val);
2435
- });
2436
- mediaElementTrackChoiceManager
2437
- .addEventListener("textTrackChange", function (val) {
2438
- return _this.trigger("textTrackChange", val);
2439
- });
2440
- return mediaElementTrackChoiceManager;
2441
- };
2442
- return Player;
2443
- }(EventEmitter));
2444
- Player.version = /* PLAYER_VERSION */ "3.32.1";
2445
- export default Player;