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

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