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,1104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * Configuration file for the whole player.
5
+ * Feel free to tweak those values if you know what you're doing.
6
+ *
7
+ * Please not that you will need to re-build the whole project to take these
8
+ * modifications into account.
9
+ *
10
+ * @type {Object}
11
+ */
12
+ var DEFAULT_CONFIG = {
13
+ /**
14
+ * Volume set on unMute if the volume is set to 0 and either:
15
+ * - mute has never been called before
16
+ * - mute has last been called while the volume was already set to 0 (either
17
+ * via setVolume, or a previous mute call)
18
+ * @type {Number}
19
+ */
20
+ DEFAULT_UNMUTED_VOLUME: 0.1,
21
+ /**
22
+ * Default time interval after which a request will timeout, in ms.
23
+ * @type {Number}
24
+ */
25
+ DEFAULT_REQUEST_TIMEOUT: 30 * 1000,
26
+ /**
27
+ * Can be either:
28
+ * - "native": Subtitles are all displayed in a <track> element
29
+ * - "html": Subtitles are all displayed in a <div> separated from the video
30
+ * element. Can be useful to display richer TTML subtitles, for example.
31
+ * @type {Object|null}
32
+ */
33
+ DEFAULT_TEXT_TRACK_MODE: "native",
34
+ /**
35
+ * Default behavior for the `enableFastSwitching` loadVideo options.
36
+ *
37
+ * Fast-switching allows to provide quicker transitions from lower quality
38
+ * segments to higher quality segments but might be badly supported on some
39
+ * devices.
40
+ * When enabled, the RxPlayer might replace segments of a lower-quality
41
+ * (with a lower bitrate) with segments of a higher quality (with a higher
42
+ * bitrate). This allows to have a fast transition when network conditions
43
+ * improve.
44
+ * When disabled, segments of a lower-quality will not be replaced.
45
+ */
46
+ DEFAULT_ENABLE_FAST_SWITCHING: true,
47
+ /**
48
+ * In some cases after switching the current track or bitrate, the RxPlayer
49
+ * could be led to go into the `"RELOADING"` state, which corresponds to
50
+ * visually a black screen (with nothing audible) before restarting playback.
51
+ *
52
+ * We could want to seek back some milliseconds when doing that.
53
+ * For example, when switching the current audio track, it might make sense
54
+ * to restart some time before, so the beginning of the sentence can be heard
55
+ * again in the new language.
56
+ *
57
+ * This config property allows to set the relative position the RxPlayer will
58
+ * seek to after reloading, in seconds.
59
+ *
60
+ * For example: a value of `-0.7` means that will seek back 700 milliseconds
61
+ * when reloading due to a track or bitrate switch with necessitated a
62
+ * reloading.
63
+ */
64
+ DELTA_POSITION_AFTER_RELOAD: {
65
+ /** Relative position when switching the bitrate */
66
+ bitrateSwitch: -0.1,
67
+ /**
68
+ * Relative position when switching the track.
69
+ *
70
+ * From tests, I noticed that seeking back was only really "pleasant" when
71
+ * switching the audio track.
72
+ *
73
+ * E.g. switching the video track often means changing the camera angle or
74
+ * even totally changing what is being seen and rely much less on temporal
75
+ * context than when an audio track is switched.
76
+ * As such, I decided to only set a sensible seek-back behavior when
77
+ * switching the audio track, and only a minimal one (to still ensure
78
+ * nothing was missed) for video.
79
+ *
80
+ * "Other" mainly concern text track, where seeking back could even be
81
+ * annoying, so that behavior has been disabled in that case.
82
+ */
83
+ trackSwitch: { audio: -0.7,
84
+ video: -0.1,
85
+ other: 0 },
86
+ },
87
+ /**
88
+ * Behavior of the RxPlayer when encountering a whole other codec on a already
89
+ * existing audio or video SourceBuffer.
90
+ *
91
+ * Can be either:
92
+ *
93
+ * - "continue": Segments linked to the new codec will continue to be
94
+ * pushed to that same SourceBuffer. The RxPlayer will still try to call
95
+ * the `changeType` API on the SourceBuffer before pushing those
96
+ * segments but continue even if this call failed.
97
+ *
98
+ * - "reload": Every time a new incompatible codec is encountered on a
99
+ * given SourceBuffer, we will reload the MediaSource.
100
+ */
101
+ DEFAULT_CODEC_SWITCHING_BEHAVIOR: "continue",
102
+ /**
103
+ * If set to true, video through loadVideo will auto play by default
104
+ * @type {Boolean}
105
+ */
106
+ DEFAULT_AUTO_PLAY: false,
107
+ /**
108
+ * Default buffer goal in seconds.
109
+ * Once enough content has been downloaded to fill the buffer up to
110
+ * ``current position + DEFAULT_WANTED_BUFFER_AHEAD", we will stop downloading
111
+ * content.
112
+ * @type {Number}
113
+ */
114
+ DEFAULT_WANTED_BUFFER_AHEAD: 30,
115
+ /**
116
+ * Default max buffer size ahead of the current position in seconds.
117
+ * The buffer _after_ this limit will be garbage collected.
118
+ * Set to Infinity for no limit.
119
+ * @type {Number}
120
+ */
121
+ DEFAULT_MAX_BUFFER_AHEAD: Infinity,
122
+ /**
123
+ * Default max buffer size ahead of the current position in seconds.
124
+ * The buffer _before_ this limit will be garbage collected.
125
+ * Set to Infinity for no limit.
126
+ * @type {Number}
127
+ */
128
+ DEFAULT_MAX_BUFFER_BEHIND: Infinity,
129
+ /**
130
+ * Default video buffer memory limit in kilobytes.
131
+ * Once enough video content has been downloaded to fill the buffer up to
132
+ * DEFAULT_MAX_VIDEO_BUFFER_SIZE , we will stop downloading
133
+ * content.
134
+ * @type {Number}
135
+ */
136
+ DEFAULT_MAX_VIDEO_BUFFER_SIZE: Infinity,
137
+ /* eslint-disable @typescript-eslint/consistent-type-assertions */
138
+ /**
139
+ * Maximum possible buffer ahead for each type of buffer, to avoid too much
140
+ * memory usage when playing for a long time.
141
+ * Equal to Infinity if not defined here.
142
+ * @type {Object}
143
+ */
144
+ MAXIMUM_MAX_BUFFER_AHEAD: {
145
+ text: 5 * 60 * 60,
146
+ },
147
+ /* eslint-enable @typescript-eslint/consistent-type-assertions */
148
+ /* eslint-disable @typescript-eslint/consistent-type-assertions */
149
+ /**
150
+ * Maximum possible buffer behind for each type of buffer, to avoid too much
151
+ * memory usage when playing for a long time.
152
+ * Equal to Infinity if not defined here.
153
+ * @type {Object}
154
+ */
155
+ MAXIMUM_MAX_BUFFER_BEHIND: {
156
+ text: 5 * 60 * 60,
157
+ },
158
+ /* eslint-enable @typescript-eslint/consistent-type-assertions */
159
+ /**
160
+ * Default bitrate ceils initially set as the first content begins.
161
+ *
162
+ * If no track is found with a bitrate inferior or equal to the
163
+ * bitrate there, the one with the lowest bitrate will be taken instead.
164
+ *
165
+ * Set to 0 for the lowest bitrate, Infinity for the highest.
166
+ *
167
+ * These values are only useful for the first content played, as consecutive
168
+ * play will always take the last set one.
169
+ * @type {Object}
170
+ */
171
+ DEFAULT_BASE_BANDWIDTH: 0,
172
+ /**
173
+ * Delay after which, if the page is hidden, the user is considered inactive
174
+ * on the current video.
175
+ *
176
+ * Allow to enforce specific optimizations when the page is not shown.
177
+ * @see DEFAULT_THROTTLE_WHEN_HIDDEN
178
+ * @type {Number}
179
+ */
180
+ INACTIVITY_DELAY: 60 * 1000,
181
+ /**
182
+ * If true, if the video is considered in a "hidden" state for a delay specified by
183
+ * the INACTIVITY DELAY config property, we throttle automatically to the video
184
+ * representation with the lowest bitrate.
185
+ * @type {Boolean}
186
+ */
187
+ DEFAULT_THROTTLE_VIDEO_BITRATE_WHEN_HIDDEN: false,
188
+ /**
189
+ * Default video resolution limit behavior.
190
+ *
191
+ * This option allows for example to throttle the video resolution so it
192
+ * does not exceed the screen resolution.
193
+ *
194
+ * Here set to "none" by default to disable throttling.
195
+ * @type {Boolean}
196
+ */
197
+ DEFAULT_VIDEO_RESOLUTION_LIMIT: "none",
198
+ /**
199
+ * Default initial live gap considered if no presentation delay has been
200
+ * suggested, in seconds.
201
+ * @type {Number}
202
+ */
203
+ DEFAULT_LIVE_GAP: {
204
+ DEFAULT: 10,
205
+ LOW_LATENCY: 3.5,
206
+ },
207
+ /**
208
+ * Maximum time, in seconds, the player should automatically skip when stalled
209
+ * because of a current hole in the buffer.
210
+ * Bear in mind that this might seek over not-yet-downloaded/pushed segments.
211
+ * @type {Number}
212
+ */
213
+ BUFFER_DISCONTINUITY_THRESHOLD: 0.2,
214
+ /**
215
+ * When encountering small discontinuities, the RxPlayer may want, in specific
216
+ * conditions, ignore those and let the browser seek over them iself (this
217
+ * allows for example to avoid conflicts when both the browser and the
218
+ * RxPlayer want to seek at a different position, sometimes leading to a
219
+ * seeking loop).
220
+ * In this case, we however still want to seek it ourselves if the browser
221
+ * doesn't take the opportunity soon enough.
222
+ *
223
+ * This value specifies a delay after which a discontinuity ignored by the
224
+ * RxPlayer is finally considered.
225
+ * We want to maintain high enough to be sure the browser will not seek yet
226
+ * small enough so this (arguably rare) situation won't lead to too much
227
+ * waiting time.
228
+ */
229
+ FORCE_DISCONTINUITY_SEEK_DELAY: 5000,
230
+ /**
231
+ * Ratio used to know if an already loaded segment should be re-buffered.
232
+ * We re-load the given segment if the current one times that ratio is
233
+ * inferior to the new one.
234
+ * @type {Number}
235
+ */
236
+ BITRATE_REBUFFERING_RATIO: 1.5,
237
+ /**
238
+ * Those are used when a "QuotaExceededError" error is received after
239
+ * appending a new segment in the SourceBuffer.
240
+ *
241
+ * This error can arise when the browser's buffer is considered full.
242
+ * In this case, the player goes into manual garbage collection (GC) mode.
243
+ * @type {Object}
244
+ */
245
+ BUFFER_GC_GAPS: {
246
+ /**
247
+ * _Low_ gap (from current position) from which the buffer will be _garbage
248
+ * collected_ (read removed from the buffer) when a QuotaExceededError is
249
+ * received.
250
+ * In seconds.
251
+ * @type {Number}
252
+ */
253
+ CALM: 240,
254
+ /**
255
+ * _High_ gap (from current position) from which the buffer will be _garbage
256
+ * collected_ (read removed from the buffer) when a QuotaExceededError is
257
+ * received, if the low one does not clean up any buffer.
258
+ * In seconds.
259
+ * @type {Number}
260
+ */
261
+ BEEFY: 30,
262
+ },
263
+ /**
264
+ * The default number of times a manifest request will be re-performed
265
+ * when loaded/refreshed if the request finishes on an error which
266
+ * justify an retry.
267
+ *
268
+ * Note that some errors do not use this counter:
269
+ * - if the error is not due to the xhr, no retry will be peformed
270
+ * - if the error is an HTTP error code, but not a 500-smthg or a 404, no
271
+ * retry will be performed.
272
+ * @type Number
273
+ */
274
+ DEFAULT_MAX_MANIFEST_REQUEST_RETRY: 4,
275
+ /**
276
+ * Default delay, in seconds, during which a CDN will be "downgraded".
277
+ *
278
+ * For example in case of media content being available on multiple CDNs, the
279
+ * RxPlayer may decide that a CDN is less reliable (for example, it returned a
280
+ * server error) and should thus be avoided, at least for some time
281
+ *
282
+ * This value is the amount of time this CDN will be "less considered" than the
283
+ * alternatives.
284
+ */
285
+ DEFAULT_CDN_DOWNGRADE_TIME: 60,
286
+ /**
287
+ * The default number of times a segment request will be re-performed when
288
+ * on error which justify a retry.
289
+ *
290
+ * Note that some errors do not use this counter:
291
+ * - if the error is not due to the xhr, no retry will be peformed
292
+ * - if the error is an HTTP error code, but not a 500-smthg or a 404, no
293
+ * retry will be performed.
294
+ * @type Number
295
+ */
296
+ DEFAULT_MAX_REQUESTS_RETRY_ON_ERROR: 4,
297
+ /**
298
+ * Initial backoff delay when a segment / manifest download fails, in
299
+ * milliseconds.
300
+ *
301
+ * This delay will then grow exponentally by power of twos (200, 400, 800
302
+ * etc.)
303
+ *
304
+ * Please note that this delay is not exact, as it will be fuzzed.
305
+ * @type {Number}
306
+ */
307
+ INITIAL_BACKOFF_DELAY_BASE: {
308
+ REGULAR: 200,
309
+ LOW_LATENCY: 50,
310
+ },
311
+ /**
312
+ * Maximum backoff delay when a segment / manifest download fails, in
313
+ * milliseconds.
314
+ *
315
+ * Please note that this delay is not exact, as it will be fuzzed.
316
+ * @type {Number}
317
+ */
318
+ MAX_BACKOFF_DELAY_BASE: {
319
+ REGULAR: 3000,
320
+ LOW_LATENCY: 1000,
321
+ },
322
+ /**
323
+ * Minimum interval at which playback information samples will be taken. This
324
+ * variable is for the "regular" mediasource strategy (that is, not for the
325
+ * directfile API.
326
+ *
327
+ * At each of these interval, various different modules in the RxPlayer will
328
+ * run based on the information communicated.
329
+ *
330
+ * Keep in mind this is the minimum interval. This logic will also be
331
+ * triggered when various events of the media element are received.
332
+ * @type {Number}
333
+ */
334
+ SAMPLING_INTERVAL_MEDIASOURCE: 1000,
335
+ /**
336
+ * Same than SAMPLING_INTERVAL_MEDIASOURCE but for lowLatency mode.
337
+ * @type {Number}
338
+ */
339
+ SAMPLING_INTERVAL_LOW_LATENCY: 250,
340
+ /**
341
+ * Same than SAMPLING_INTERVAL_MEDIASOURCE but for the directfile API.
342
+ * @type {Number}
343
+ */
344
+ SAMPLING_INTERVAL_NO_MEDIASOURCE: 500,
345
+ /**
346
+ * Amount of buffer to have ahead of the current position before we may
347
+ * consider buffer-based adaptive estimates, in seconds.
348
+ *
349
+ * For example setting it to `10` means that we need to have ten seconds of
350
+ * buffer ahead of the current position before relying on buffer-based
351
+ * adaptive estimates.
352
+ *
353
+ * To avoid getting in-and-out of the buffer-based logic all the time, it
354
+ * should be set higher than `ABR_EXIT_BUFFER_BASED_ALGO`.
355
+ */
356
+ ABR_ENTER_BUFFER_BASED_ALGO: 10,
357
+ /**
358
+ * Below this amount of buffer ahead of the current position, in seconds, we
359
+ * will stop using buffer-based estimate in our adaptive logic to select a
360
+ * quality.
361
+ *
362
+ * For example setting it to `5` means that if we have less than 5 seconds of
363
+ * buffer ahead of the current position, we should stop relying on
364
+ * buffer-based estimates to choose a quality.
365
+ *
366
+ * To avoid getting in-and-out of the buffer-based logic all the time, it
367
+ * should be set lower than `ABR_ENTER_BUFFER_BASED_ALGO`.
368
+ */
369
+ ABR_EXIT_BUFFER_BASED_ALGO: 5,
370
+ /**
371
+ * Minimum number of bytes sampled before we trust the estimate.
372
+ * If we have not sampled much data, our estimate may not be accurate
373
+ * enough to trust.
374
+ * If the total of bytes sampled is less than this value, we use a
375
+ * default estimate.
376
+ * This specific value is based on experimentations.
377
+ * @type {Number}
378
+ */
379
+ ABR_MINIMUM_TOTAL_BYTES: 150e3,
380
+ /**
381
+ * Minimum number of bytes, under which samples are discarded.
382
+ * Our models do not include latency information, so connection startup time
383
+ * (time to first byte) is considered part of the download time.
384
+ * Because of this, we should ignore very small downloads which would cause
385
+ * our estimate to be too low.
386
+ * This specific value is based on experimentation.
387
+ * @type {Number}
388
+ */
389
+ ABR_MINIMUM_CHUNK_SIZE: 16e3,
390
+ /**
391
+ * Factor with which is multiplied the bandwidth estimate when the ABR is in
392
+ * starvation mode.
393
+ * @type {Object}
394
+ */
395
+ ABR_STARVATION_FACTOR: {
396
+ DEFAULT: 0.72,
397
+ LOW_LATENCY: 0.72,
398
+ },
399
+ /**
400
+ * Factor with which is multiplied the bandwidth estimate when the ABR is not
401
+ * in starvation mode.
402
+ * @type {Object}
403
+ */
404
+ ABR_REGULAR_FACTOR: {
405
+ DEFAULT: 0.72,
406
+ LOW_LATENCY: 0.72,
407
+ },
408
+ /**
409
+ * If a media buffer has less than ABR_STARVATION_GAP in seconds ahead of the
410
+ * current position in its buffer, the adaptive logic will go into starvation
411
+ * mode.
412
+ *
413
+ * It gets out of starvation mode when the OUT_OF_STARVATION_GAP value is
414
+ * reached.
415
+ *
416
+ * Under this starvation mode:
417
+ *
418
+ * - the bandwidth considered will be a little lower than the one estimated
419
+ *
420
+ * - the time the next important request take will be checked
421
+ * multiple times to detect when/if it takes too much time.
422
+ * If the request is considered too long, the bitrate will be hastily
423
+ * re-calculated from this single request.
424
+ *
425
+ * @type {Object}
426
+ */
427
+ ABR_STARVATION_GAP: {
428
+ DEFAULT: 5,
429
+ LOW_LATENCY: 5,
430
+ },
431
+ OUT_OF_STARVATION_GAP: {
432
+ DEFAULT: 7,
433
+ LOW_LATENCY: 7,
434
+ },
435
+ /**
436
+ * This is a security to avoid going into starvation mode when the content is
437
+ * ending (@see ABR_STARVATION_GAP).
438
+ * Basically, we subtract that value from the global duration of the content
439
+ * and we never enter "starvation mode" if the currently available buffer
440
+ * (which equals to the current position + the available buffer ahead of it)
441
+ * is equal or higher than this value.
442
+ * @type {Number}
443
+ */
444
+ ABR_STARVATION_DURATION_DELTA: 0.1,
445
+ /**
446
+ * Half-life, in seconds for a fastly-evolving exponential weighted moving
447
+ * average.
448
+ * The lower it is, the faster the ABR logic will react to the bandwidth
449
+ * falling quickly.
450
+ * Should be kept to a lower number than ABR_SLOW_EMA for coherency reasons.
451
+ * @type {Number}
452
+ */
453
+ ABR_FAST_EMA: 2,
454
+ /**
455
+ * Half-life, in seconds for a slowly-evolving exponential weighted moving
456
+ * average.
457
+ * The lower it is, the faster the ABR logic is going to react to recent
458
+ * bandwidth variation, on the higher and on the lower side.
459
+ * Should be kept to a higher number than ABR_FAST_EMA for coherency reasons.
460
+ * @type {Number}
461
+ */
462
+ ABR_SLOW_EMA: 10,
463
+ /**
464
+ * Number of seconds ahead in the buffer after which playback will resume when
465
+ * seeking on an unbuffered part of the content.
466
+ * @type {Number}
467
+ */
468
+ RESUME_GAP_AFTER_SEEKING: {
469
+ DEFAULT: 1.5,
470
+ LOW_LATENCY: 0.5,
471
+ },
472
+ /**
473
+ * Number of seconds ahead in the buffer after which playback will resume when
474
+ * the player was rebuffering due to a low readyState.
475
+ * @type {Number}
476
+ */
477
+ RESUME_GAP_AFTER_NOT_ENOUGH_DATA: {
478
+ DEFAULT: 0.5,
479
+ LOW_LATENCY: 0.5,
480
+ },
481
+ /**
482
+ * Number of seconds ahead in the buffer after which playback will resume
483
+ * after the player went through a buffering step.
484
+ * @type {Number}
485
+ */
486
+ RESUME_GAP_AFTER_BUFFERING: {
487
+ DEFAULT: 5,
488
+ LOW_LATENCY: 0.5,
489
+ },
490
+ /**
491
+ * Maximum number of seconds in the buffer based on which a "rebuffering"
492
+ * strategy will be considered:
493
+ * The player will pause playback to get enough time building a sufficient
494
+ * buffer. This mostly happen when seeking in an unbuffered part or when not
495
+ * enough buffer is ahead of the current position.
496
+ * @type {Number}
497
+ */
498
+ REBUFFERING_GAP: {
499
+ DEFAULT: 0.5,
500
+ LOW_LATENCY: 0.2,
501
+ },
502
+ /**
503
+ * Amount of time (in seconds) with data ahead of the current position, at
504
+ * which we always consider the browser to be able to play.
505
+ *
506
+ * If the media element has this amount of data in advance or more but
507
+ * playback cannot begin, the player will consider it "freezing".
508
+ */
509
+ MINIMUM_BUFFER_AMOUNT_BEFORE_FREEZING: 2,
510
+ /**
511
+ * A media whose position inexplicably does not increment despite playing is
512
+ * called as "freezing" in the RxPlayer.
513
+ *
514
+ * If the media is still "freezing" after waiting for `UNFREEZING_SEEK_DELAY`
515
+ * milliseconds, the RxPlayer will try to un-freeze the situation by interacting
516
+ * with the media element.
517
+ *
518
+ * Those interactions can be costly in time before playback continue, so it
519
+ * should be set at a sufficiently high value to avoid false positives.
520
+ */
521
+ UNFREEZING_SEEK_DELAY: 6000,
522
+ /**
523
+ * A media whose position inexplicably does not increment despite playing is
524
+ * called as "freezing" in the RxPlayer.
525
+ *
526
+ * A small freezing interval may be normal as the browser may take time before
527
+ * playing, e.g. after a seek.
528
+ *
529
+ * If the media is still "freezing" after waiting for `FREEZING_STALLED_DELAY`
530
+ * milliseconds, the RxPlayer will emit a BUFFERING state through its API to
531
+ * notify that the player cannot currently advance.
532
+ */
533
+ FREEZING_STALLED_DELAY: 600,
534
+ /**
535
+ * A media whose position inexplicably does not increment despite playing is
536
+ * called as "freezing" in the RxPlayer.
537
+ *
538
+ * If the media is frozen for a sufficiently large time
539
+ * (@see UNFREEZING_SEEK_DELAY), the RxPlayer will perform a seek corresponding
540
+ * to its current position plus `UNFREEZING_DELTA_POSITION` seconds.
541
+ *
542
+ * This should be kept short enough as the goal is just to un-freeze lower-level
543
+ * buffers.
544
+ */
545
+ UNFREEZING_DELTA_POSITION: 0.001,
546
+ /**
547
+ * Maximum authorized difference between what we calculated to be the
548
+ * beginning or end of the segment in a media buffer and what we
549
+ * actually are noticing now.
550
+ *
551
+ * If the segment seems to have removed more than this size in seconds, we
552
+ * will infer that the segment has been garbage collected and we might try to
553
+ * re-download it.
554
+ * @type {Number}
555
+ */
556
+ MAX_TIME_MISSING_FROM_COMPLETE_SEGMENT: 0.15,
557
+ /**
558
+ * The maximum authorized difference, in seconds, between the real buffered
559
+ * time of a given chunk and what the segment information of the Manifest
560
+ * tells us.
561
+ *
562
+ * Setting a value too high can lead to parts of the media buffer being
563
+ * linked to the wrong segments and to segments wrongly believed to be still
564
+ * complete (instead of garbage collected).
565
+ *
566
+ * Setting a value too low can lead to parts of the media buffer not being
567
+ * linked to the concerned segment and to segments wrongly believed to be
568
+ * partly garbage collected (instead of complete segments).
569
+ * @type {Number}
570
+ */
571
+ MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE: 0.4,
572
+ /**
573
+ * The maximum authorized difference, in seconds, between the duration a
574
+ * segment should have according to the Manifest and the actual duration it
575
+ * seems to have once pushed to the media buffer.
576
+ *
577
+ * Setting a value too high can lead to parts of the media buffer being
578
+ * linked to the wrong segments and to segments wrongly believed to be still
579
+ * complete (instead of garbage collected).
580
+ *
581
+ * Setting a value too low can lead to parts of the media buffer not being
582
+ * linked to the concerned segment and to segments wrongly believed to be
583
+ * partly garbage collected (instead of complete segments). This last point
584
+ * could lead to unnecessary segment re-downloading.
585
+ * @type {Number}
586
+ */
587
+ MAX_MANIFEST_BUFFERED_DURATION_DIFFERENCE: 0.3,
588
+ /**
589
+ * Minimum duration in seconds a segment should be into a buffered range to be
590
+ * considered as part of that range.
591
+ * Segments which have less than this amount of time "linked" to a buffered
592
+ * range will be deleted.
593
+ *
594
+ * Setting a value too low can lead in worst-case scenarios to segments being
595
+ * wrongly linked to the next or previous range it is truly linked too (if
596
+ * those ranges are too close).
597
+ *
598
+ * Setting a value too high can lead to part of the buffer not being assigned
599
+ * any segment. It also limits the minimum duration a segment can be.
600
+ *
601
+ * TODO As of now, this limits the minimum size a complete segment can be. A
602
+ * better logic would be to also consider the duration of a segment. Though
603
+ * this logic could lead to bugs with the current code.
604
+ * @type {Number}
605
+ */
606
+ MINIMUM_SEGMENT_SIZE: 0.005,
607
+ /**
608
+ * Append windows allow to filter media data from segments if they are outside
609
+ * a given limit.
610
+ * Coded frames with presentation timestamp within this range are allowed to
611
+ * be appended to the media buffer while coded frames outside this range are
612
+ * filtered out.
613
+ *
614
+ * Those are often set to be the start and end of the "Period" the segment is
615
+ * in.
616
+ * However, we noticed that some browsers were too aggressive when the exact
617
+ * limits were set: more data than needed was removed, often leading to
618
+ * discontinuities.
619
+ *
620
+ * Those securities are added to the set windows (substracted from the window
621
+ * start and added to the window end) to avoid those problems.
622
+ * @type {Object}
623
+ */
624
+ APPEND_WINDOW_SECURITIES: {
625
+ START: 0.2,
626
+ END: 0.1,
627
+ },
628
+ /**
629
+ * Maximum interval at which text tracks are refreshed in an "html"
630
+ * textTrackMode.
631
+ *
632
+ * The text tracks are also refreshed on various video events, this interval
633
+ * will only trigger a refresh if none of those events was received during
634
+ * that timespan.
635
+ *
636
+ * Note that if the TextTrack cue did not change between two intervals or
637
+ * events, the DOM won't be refreshed.
638
+ * The TextTrack cues structure is also optimized for fast retrieval.
639
+ * We should thus not have much of a performance impact here if we set a low
640
+ * interval.
641
+ *
642
+ * @type {Number}
643
+ */
644
+ MAXIMUM_HTML_TEXT_TRACK_UPDATE_INTERVAL: 50,
645
+ /**
646
+ * On browsers with no ResizeObserver API, this will be the interval in
647
+ * milliseconds at which we should check if the text track element has
648
+ * changed its size, and updates proportional text-track data accordingly
649
+ * (like a proportional font-size).
650
+ *
651
+ * This is only used:
652
+ * - in an "html" textTrackMode
653
+ * - when some styling is proportional in the text track data
654
+ *
655
+ * Putting a value too low will render faster but might use to much proc time.
656
+ * Putting a value too high might provoke a re-render too late after the user
657
+ * changed the element's size (e.g. when going to fullscreen mode).
658
+ *
659
+ * @type {Number}
660
+ */
661
+ TEXT_TRACK_SIZE_CHECKS_INTERVAL: 250,
662
+ /**
663
+ * The Buffer padding is a time offset from the current time that affects
664
+ * the buffer.
665
+ *
666
+ * Basically, from a given time, if the current buffer gap number (time
667
+ * between the current time and the end of the downloaded buffer) is above
668
+ * the padding described here (of the corresponding type), we won't
669
+ * reschedule segments for that range.
670
+ *
671
+ * This is to avoid excessive re-buffering.
672
+ *
673
+ * Keeping the padding too low would increase the risk of re-bufferings.
674
+ *
675
+ * Keeping the padding too high would delay visible quality increase.
676
+ *
677
+ * @type {Object}
678
+ */
679
+ BUFFER_PADDING: {
680
+ audio: 1,
681
+ video: 3,
682
+ other: 1, // tracks which are not audio/video (like text).
683
+ },
684
+ /**
685
+ * Segments of different types are downloaded by steps:
686
+ *
687
+ * - first the audio/video/text Segments which are immediately needed
688
+ *
689
+ * - then once every of those Segments have been downloaded, less-needed
690
+ * Segments
691
+ *
692
+ * - then once every of those less-needed Segments have been downloaded,
693
+ * even less-needed Segments
694
+ *
695
+ * - etc.
696
+ *
697
+ * This stepped download strategy allows to make a better use of network
698
+ * ressources.
699
+ *
700
+ * For example, if more than sufficient audio buffer has been downloaded but
701
+ * the immediately-needed video Segment is still pending its request, we might
702
+ * be in a situation of rebuffering.
703
+ * In that case, a better strategy would be to make sure every network
704
+ * ressource is allocated for this video Segment before rebuffering happens.
705
+ *
706
+ * This is where those steps become useful.
707
+ *
708
+ * --
709
+ *
710
+ * The numbers defined in this Array describe what the steps are.
711
+ *
712
+ * Each number is linked to a distance from the current playing position, in
713
+ * seconds.
714
+ * Distances which will be used as limit points, from which a new step is
715
+ * reached (see example).
716
+ *
717
+ * In the RxPlayer's code, each step is then translated in to a priority
718
+ * number.
719
+ * The lower is that number, the lower is the step and the lower is the step,
720
+ * the higher is the priority.
721
+ *
722
+ * Note: You can set an empty array to deactivate the steps feature (every
723
+ * Segments have the same priority).
724
+ *
725
+ * @example
726
+ *
727
+ * let's imagine the following SEGMENT_PRIORITIES_STEPS array:
728
+ * [5, 11, 17, 25]
729
+ *
730
+ * To link each Segments to a corresponding priority number (and thus to a
731
+ * specific step), we have to consider the distance between the current
732
+ * position and the start time of the Segment.
733
+ *
734
+ * We have in our example 5 groups, which correspond to the following possible
735
+ * distances:
736
+ * 1. inferior to 5 => first step (priority number = 0)
737
+ * 2. between 5 and 11 => second step (priority number = 1)
738
+ * 3. between 11 and 17 => third step (priority number = 2)
739
+ * 4. between 17 and 25 => fourth step (priority number = 3)
740
+ * 5. superior to 25 => fifth step (priority number = 4)
741
+ *
742
+ * Segments corresponding to a lower-step will need to all be downloaded
743
+ * before Segments of a newer step begin.
744
+ *
745
+ * @type {Array.<Number>}
746
+ */
747
+ SEGMENT_PRIORITIES_STEPS: [2,
748
+ 4,
749
+ 8,
750
+ 12,
751
+ 18,
752
+ 25],
753
+ // 7th Step (priority number = 6): >= 25
754
+ /**
755
+ * Some segment requests are said to be "high priority".
756
+ *
757
+ * Requests in that category once done will cancel any segment request that
758
+ * has a low priority number (see `SEGMENT_PRIORITIES_STEPS`) - meaning a
759
+ * priority number equal to `MIN_CANCELABLE_PRIORITY` or more.
760
+ *
761
+ * Enter here the last priority number that is considered high priority
762
+ * (beginning by the first step, which has the priority number `0`).
763
+ * @type {number}
764
+ */
765
+ MAX_HIGH_PRIORITY_LEVEL: 1,
766
+ /**
767
+ * Enter here the first priority step (see `SEGMENT_PRIORITIES_STEPS`) that
768
+ * will be considered as low priority.
769
+ *
770
+ * Segment requests with a low priority will be cancelled if a high priority
771
+ * segment request (see MAX_HIGH_PRIORITY_LEVEL) is scheduled while they are
772
+ * pending.
773
+ *
774
+ * This number should be strictly superior to the value indicated in
775
+ * `MAX_HIGH_PRIORITY_LEVEL`.
776
+ * @type {number}
777
+ */
778
+ MIN_CANCELABLE_PRIORITY: 3,
779
+ /**
780
+ * Codecs used in the videoCapabilities of the MediaKeySystemConfiguration
781
+ * (DRM).
782
+ *
783
+ * Defined in order of importance (first will be tested first etc.)
784
+ * @type {Array.<string>}
785
+ */
786
+ EME_DEFAULT_VIDEO_CODECS: ["video/mp4;codecs=\"avc1.4d401e\"",
787
+ "video/mp4;codecs=\"avc1.42e01e\"",
788
+ "video/webm;codecs=\"vp8\""],
789
+ /**
790
+ * Codecs used in the audioCapabilities of the MediaKeySystemConfiguration
791
+ * (DRM).
792
+ *
793
+ * Defined in order of importance (first will be tested first etc.)
794
+ * @type {Array.<string>}
795
+ */
796
+ EME_DEFAULT_AUDIO_CODECS: ["audio/mp4;codecs=\"mp4a.40.2\"",
797
+ "audio/webm;codecs=opus"],
798
+ /**
799
+ * Robustnesses used in the {audio,video}Capabilities of the
800
+ * MediaKeySystemConfiguration (DRM).
801
+ *
802
+ * Only used for widevine keysystems.
803
+ *
804
+ * Defined in order of importance (first will be tested first etc.)
805
+ * @type {Array.<string>}
806
+ */
807
+ EME_DEFAULT_WIDEVINE_ROBUSTNESSES: ["HW_SECURE_ALL",
808
+ "HW_SECURE_DECODE",
809
+ "HW_SECURE_CRYPTO",
810
+ "SW_SECURE_DECODE",
811
+ "SW_SECURE_CRYPTO"],
812
+ /**
813
+ * Robustnesses used in the {audio,video}Capabilities of the
814
+ * MediaKeySystemConfiguration (DRM).
815
+ *
816
+ * Only used for "com.microsoft.playready.recommendation" keysystems.
817
+ *
818
+ * Defined in order of importance (first will be tested first etc.)
819
+ * @type {Array.<string>}
820
+ */
821
+ EME_DEFAULT_PLAYREADY_RECOMMENDATION_ROBUSTNESSES: ["3000",
822
+ "2000"],
823
+ /**
824
+ * Link canonical key systems names to their respective reverse domain name,
825
+ * used in the EME APIs.
826
+ * This allows to have a simpler API, where users just need to set "widevine"
827
+ * or "playready" as a keySystem.
828
+ * @type {Object}
829
+ */
830
+ /* eslint-disable @typescript-eslint/consistent-type-assertions */
831
+ EME_KEY_SYSTEMS: {
832
+ clearkey: ["webkit-org.w3.clearkey",
833
+ "org.w3.clearkey"],
834
+ widevine: ["com.widevine.alpha"],
835
+ playready: ["com.microsoft.playready.recommendation",
836
+ "com.microsoft.playready",
837
+ "com.chromecast.playready",
838
+ "com.youtube.playready"],
839
+ fairplay: ["com.apple.fps.1_0"],
840
+ },
841
+ /* eslint-enable @typescript-eslint/consistent-type-assertions */
842
+ /**
843
+ * The Manifest parsing logic has a notion of "unsafeMode" which allows to
844
+ * speed-up this process a lot with a small risk of de-synchronization with
845
+ * what actually is on the server.
846
+ * Because using that mode is risky, and can lead to all sort of problems, we
847
+ * regularly should fall back to a regular "safe" parsing every once in a
848
+ * while.
849
+ * This value defines how many consecutive time maximum the "unsafeMode"
850
+ * parsing can be done.
851
+ */
852
+ MAX_CONSECUTIVE_MANIFEST_PARSING_IN_UNSAFE_MODE: 10,
853
+ /**
854
+ * Minimum time spent parsing the Manifest before we can authorize parsing
855
+ * it in an "unsafeMode", to speed-up the process with a little risk.
856
+ * Please note that this parsing time also sometimes includes idle time such
857
+ * as when the parser is waiting for a request to finish.
858
+ */
859
+ MIN_MANIFEST_PARSING_TIME_TO_ENTER_UNSAFE_MODE: 200,
860
+ /**
861
+ * Minimum amount of <S> elements in a DASH MPD's <SegmentTimeline> element
862
+ * necessary to begin parsing the current SegmentTimeline element in an
863
+ * unsafe manner (meaning: with risks of de-synchronization).
864
+ * This is only done when the "unsafeMode" parsing mode is enabled.
865
+ */
866
+ MIN_DASH_S_ELEMENTS_TO_PARSE_UNSAFELY: 300,
867
+ /**
868
+ * When we detect that the local Manifest might be out-of-sync with the
869
+ * server's one, we schedule a Manifest refresh.
870
+ * However, as this "unsynchronization" is only a theory and as we do not want
871
+ * to send too many Manifest requests, we keep a delay between the last
872
+ * Manifest refresh done and that one.
873
+ * This value indicates which delay we want. Note that the Manifest could
874
+ * still be refreshed before this delay for other reasons.
875
+ * @type {Number}
876
+ */
877
+ OUT_OF_SYNC_MANIFEST_REFRESH_DELAY: 3000,
878
+ /**
879
+ * When a partial Manifest update (that is an update with a partial sub-set
880
+ * of the Manifest) fails, we will perform an update with the whole Manifest
881
+ * instead.
882
+ * To not overload the client - as parsing a Manifest can be resource heavy -
883
+ * we set a minimum delay to wait before doing the corresponding request.
884
+ * @type {Number}
885
+ */
886
+ FAILED_PARTIAL_UPDATE_MANIFEST_REFRESH_DELAY: 3000,
887
+ /**
888
+ * DASH Manifest based on a SegmentTimeline should normally have an
889
+ * MPD@minimumUpdatePeriod attribute which should be sufficient to
890
+ * know when to refresh it.
891
+ * However, there is a specific case, for when it is equal to 0.
892
+ * As of DASH-IF IOP (valid in v4.3), when a DASH's MPD set a
893
+ * MPD@minimumUpdatePeriod to `0`, a client should not refresh the MPD
894
+ * unless told to do so through inband events, in the stream.
895
+ * In reality however, we found it to not always be the case (even with
896
+ * DASH-IF own streams) and moreover to not always be the best thing to do.
897
+ * We prefer to refresh in average at a regular interval when we do not have
898
+ * this information.
899
+ * /!\ This value is expressed in seconds.
900
+ */
901
+ DASH_FALLBACK_LIFETIME_WHEN_MINIMUM_UPDATE_PERIOD_EQUAL_0: 3,
902
+ /**
903
+ * Default value for the maximum number of simultaneous MediaKeySessions that
904
+ * will be kept in a cache (linked to the MediaKeys instance) to avoid doing
905
+ * superfluous license requests.
906
+ *
907
+ * If this number is reached, any new session creation will close the oldest
908
+ * one.
909
+ * Another value can be configured through the API, in which case this default
910
+ * will be overwritten.
911
+ * @type {Number}
912
+ */
913
+ EME_DEFAULT_MAX_SIMULTANEOUS_MEDIA_KEY_SESSIONS: 15,
914
+ /**
915
+ * When playing contents with a persistent license, we will usually store some
916
+ * information related to that MediaKeySession, to be able to play it at a
917
+ * later time.
918
+ *
919
+ * Those information are removed once a MediaKeySession is not considered
920
+ * as "usable" anymore. But to know that, the RxPlayer has to load it.
921
+ *
922
+ * But the RxPlayer does not re-load every persisted MediaKeySession every
923
+ * time to check each one of them one by one, as this would not be a
924
+ * performant thing to do.
925
+ *
926
+ * So this is only done when and if the corresponding content is encountered
927
+ * again and only if it contains the same initialization data.
928
+ *
929
+ * We have to consider that those "information" contain binary data which can
930
+ * be of arbitrary length. Size taken by an array of them can relatively
931
+ * rapidly take a lot of space in JS memory.
932
+ *
933
+ * So to avoid this storage to take too much space (would it be in the chosen
934
+ * browser's storage or in JS memory), we now set a higher bound for the
935
+ * amount of MediaKeySession information that can be stored at the same time.
936
+ *
937
+ * I set the value of 1000 here, as it seems big enough to not be considered a
938
+ * problem (though it can become one, when contents have a lot of keys per
939
+ * content), and still low enough so it should not cause much problem (my
940
+ * method to choose that number was to work with power of 10s and choosing the
941
+ * amount which seemed the most sensible one).
942
+ *
943
+ * This wasn't battle-tested however.
944
+ */
945
+ EME_MAX_STORED_PERSISTENT_SESSION_INFORMATION: 1000,
946
+ /**
947
+ * After loading a persistent MediaKeySession, the RxPlayer needs to ensure
948
+ * that its keys still allow to decrypt a content.
949
+ *
950
+ * However on some browsers, the `keyStatuses` property that we used to check
951
+ * the keys' satuses linked to that session can be empty for some time after
952
+ * the loading operation is done.
953
+ *
954
+ * This value allows to configure a delay in milliseconds that will be the
955
+ * maximum time we will wait after a persistent session is loaded.
956
+ * If after that time, the `keyStatuses` property is still empty, we will
957
+ * consider that session as not usable.
958
+ */
959
+ EME_WAITING_DELAY_LOADED_SESSION_EMPTY_KEYSTATUSES: 100,
960
+ /**
961
+ * The player relies on browser events and properties to update its status to
962
+ * "ENDED".
963
+ *
964
+ * Sadly in some cases, like in Chrome 54, this event is never triggered on
965
+ * some contents probably due to a browser bug.
966
+ *
967
+ * This threshold resolves this issue by forcing the status to "ENDED" when:
968
+ * 1. the player is stalling
969
+ * 2. the absolute difference between current playback time and duration is
970
+ * under this value
971
+ *
972
+ * If set to null, this workaround is disabled and the player only relies on
973
+ * browser events.
974
+ *
975
+ * @type {Number|null}
976
+ */
977
+ FORCED_ENDED_THRESHOLD: 0.0008,
978
+ /**
979
+ * Maximum duration from the current position we will let in the buffer when
980
+ * switching an Adaptation/Representations of a given type.
981
+ *
982
+ * For example, if we have ``text: { before: 1, after: 4 }``, it means that
983
+ * when switching subtitles, we will let 1 second before and 4 second after
984
+ * the current position in the previous language (until the new segments
985
+ * overwrite it).
986
+ * This is to allow smooth transitions and avoid de-synchronization that
987
+ * can happen when removing the content being decoded.
988
+ * @type {Object}
989
+ */
990
+ ADAP_REP_SWITCH_BUFFER_PADDINGS: {
991
+ video: { before: 5, after: 5 },
992
+ audio: { before: 2, after: 2.5 },
993
+ text: { before: 0, after: 0 }, // not managed natively, so no problem here
994
+ },
995
+ /**
996
+ * Interval, in milliseconds, at which we should manually flush
997
+ * SourceBuffers.
998
+ * Some browsers (happened with firefox 66) sometimes "forget" to send us
999
+ * `update` or `updateend` events.
1000
+ * In that case, we're completely unable to continue the queue here and
1001
+ * stay locked in a waiting state.
1002
+ * This interval is here to check at regular intervals if the underlying
1003
+ * SourceBuffer is currently updating.
1004
+ * @type {Number}
1005
+ */
1006
+ SOURCE_BUFFER_FLUSHING_INTERVAL: 500,
1007
+ /**
1008
+ * Any already-pushed segment starting before or at the current position +
1009
+ * CONTENT_REPLACEMENT_PADDING won't be replaced by new segments.
1010
+ *
1011
+ * This allows to avoid overwriting segments that are currently being decoded
1012
+ * as we encountered many decoding issues when doing so.
1013
+ * @type {Number} - in seconds
1014
+ */
1015
+ CONTENT_REPLACEMENT_PADDING: 1.2,
1016
+ /**
1017
+ * For video and audio segments, determines two thresholds below which :
1018
+ * - The segment is considered as loaded from cache
1019
+ * - The segment may be loaded from cache depending on the previous request
1020
+ */
1021
+ CACHE_LOAD_DURATION_THRESHOLDS: {
1022
+ video: 50,
1023
+ audio: 10,
1024
+ },
1025
+ /** Interval we will use to poll for checking if an event shall be emitted */
1026
+ STREAM_EVENT_EMITTER_POLL_INTERVAL: 250,
1027
+ /**
1028
+ * In Javascript, numbers are encoded in a way that a floating number may be
1029
+ * represented internally with a rounding error. When multiplying times in
1030
+ * seconds by the timescale, we've encoutered cases were the rounding error
1031
+ * was amplified by a factor which is about the timescale.
1032
+ * Example :
1033
+ * (192797480.641122).toFixed(20) = 192797480.64112201333045959473
1034
+ * (error is 0.0000000133...)
1035
+ * 192797480.641122 * 10000000 = 1927974806411220.2 (error is 0.2)
1036
+ * 192797480.641122 * 10000000 * 4 = 7711899225644881 (error is 1)
1037
+ * The error is much more significant here, once the timescale has been
1038
+ * applied.
1039
+ * Thus, we consider that our max tolerable rounding error is 1ms.
1040
+ * It is much more than max rounding errors when seen into practice,
1041
+ * and not significant from the media loss perspective.
1042
+ */
1043
+ DEFAULT_MAXIMUM_TIME_ROUNDING_ERROR: 1 / 1000,
1044
+ /**
1045
+ * RxPlayer's media buffers have a linked history registering recent events
1046
+ * that happened on those.
1047
+ * The reason is to implement various heuristics in case of weird browser
1048
+ * behavior.
1049
+ *
1050
+ * The `BUFFERED_HISTORY_RETENTION_TIME` is the minimum age an entry of
1051
+ * that history can have before being removed from the history.
1052
+ */
1053
+ BUFFERED_HISTORY_RETENTION_TIME: 60000,
1054
+ /**
1055
+ * RxPlayer's media buffers have a linked history registering recent events
1056
+ * that happened on those.
1057
+ * The reason is to implement various heuristics in case of weird browser
1058
+ * behavior.
1059
+ *
1060
+ * The `BUFFERED_HISTORY_RETENTION_TIME` is the maximum number of entries
1061
+ * there can be in that history.
1062
+ */
1063
+ BUFFERED_HISTORY_MAXIMUM_ENTRIES: 200,
1064
+ /**
1065
+ * Minimum buffer in seconds ahead relative to current time
1066
+ * we should be able to download, even in cases of saturated memory.
1067
+ */
1068
+ MIN_BUFFER_AHEAD: 5,
1069
+ /**
1070
+ * Distance in seconds behind the current position
1071
+ * the player will free up to in the case we agressively free up memory
1072
+ * It is set to avoid playback issues
1073
+ */
1074
+ UPTO_CURRENT_POSITION_CLEANUP: 5,
1075
+ /**
1076
+ * Default "switching mode" used when locking video Representations.
1077
+ * That is, which behavior the RxPlayer should have by default when
1078
+ * explicitely and manually switching from a previous set of video
1079
+ * Representations to a new one.
1080
+ */
1081
+ DEFAULT_VIDEO_REPRESENTATIONS_SWITCHING_MODE: "seamless",
1082
+ /**
1083
+ * Default "switching mode" used when locking audio Representations.
1084
+ * That is, which behavior the RxPlayer should have by default when
1085
+ * explicitely and manually switching from a previous set of audio
1086
+ * Representations to a new one.
1087
+ */
1088
+ DEFAULT_AUDIO_REPRESENTATIONS_SWITCHING_MODE: "seamless",
1089
+ /**
1090
+ * Default "switching mode" used when switching between video tracks.
1091
+ * That is, which behavior the RxPlayer should have by default when
1092
+ * explicitely and manually switching from a previous video track to a new
1093
+ * one.
1094
+ */
1095
+ DEFAULT_VIDEO_TRACK_SWITCHING_MODE: "reload",
1096
+ /**
1097
+ * Default "switching mode" used when switching between audio tracks.
1098
+ * That is, which behavior the RxPlayer should have by default when
1099
+ * explicitely and manually switching from a previous audio track to a new
1100
+ * one.
1101
+ */
1102
+ DEFAULT_AUDIO_TRACK_SWITCHING_MODE: "seamless",
1103
+ };
1104
+ exports.default = DEFAULT_CONFIG;