rx-player 4.0.0-dev.2023102700 → 4.0.0-dev.2023110700

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