rx-player 4.1.0-dev.2024040900 → 4.1.0-dev.2024070800
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.
- package/CHANGELOG.md +37 -9
- package/VERSION +1 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.d.ts +1 -0
- package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.d.ts.map +1 -0
- package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.js +1 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_worker.d.ts +1 -0
- package/dist/commonjs/__GENERATED_CODE/embedded_worker.d.ts.map +1 -0
- package/dist/commonjs/__GENERATED_CODE/embedded_worker.js +1 -1
- package/dist/commonjs/__GENERATED_CODE/index.d.ts +1 -1
- package/dist/commonjs/__GENERATED_CODE/index.d.ts.map +1 -0
- package/dist/commonjs/__GENERATED_CODE/index.js +1 -3
- package/dist/commonjs/compat/add_class_name.d.ts +1 -0
- package/dist/commonjs/compat/add_class_name.d.ts.map +1 -0
- package/dist/commonjs/compat/add_text_track.d.ts +1 -0
- package/dist/commonjs/compat/add_text_track.d.ts.map +1 -0
- package/dist/commonjs/compat/browser_compatibility_types.d.ts +3 -1
- package/dist/commonjs/compat/browser_compatibility_types.d.ts.map +1 -0
- package/dist/commonjs/compat/browser_detection.d.ts +1 -0
- package/dist/commonjs/compat/browser_detection.d.ts.map +1 -0
- package/dist/commonjs/compat/browser_version.d.ts +1 -0
- package/dist/commonjs/compat/browser_version.d.ts.map +1 -0
- package/dist/commonjs/compat/can_patch_isobmff.d.ts +1 -0
- package/dist/commonjs/compat/can_patch_isobmff.d.ts.map +1 -0
- package/dist/commonjs/compat/can_rely_on_request_media_key_system_access.d.ts +35 -0
- package/dist/commonjs/compat/can_rely_on_request_media_key_system_access.d.ts.map +1 -0
- package/dist/commonjs/compat/can_rely_on_request_media_key_system_access.js +44 -0
- package/dist/commonjs/compat/can_rely_on_video_visibility_and_size.d.ts +1 -0
- package/dist/commonjs/compat/can_rely_on_video_visibility_and_size.d.ts.map +1 -0
- package/dist/commonjs/compat/can_reuse_media_keys.d.ts +1 -0
- package/dist/commonjs/compat/can_reuse_media_keys.d.ts.map +1 -0
- package/dist/commonjs/compat/can_seek_directly_after_loaded_metadata.d.ts +1 -0
- package/dist/commonjs/compat/can_seek_directly_after_loaded_metadata.d.ts.map +1 -0
- package/dist/commonjs/compat/change_source_buffer_type.d.ts +1 -0
- package/dist/commonjs/compat/change_source_buffer_type.d.ts.map +1 -0
- package/dist/commonjs/compat/clear_element_src.d.ts +1 -0
- package/dist/commonjs/compat/clear_element_src.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/close_session.d.ts +1 -0
- package/dist/commonjs/compat/eme/close_session.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/constants.d.ts +1 -0
- package/dist/commonjs/compat/eme/constants.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/custom_key_system_access.d.ts +1 -0
- package/dist/commonjs/compat/eme/custom_key_system_access.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.d.ts +1 -0
- package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/custom_media_keys/index.d.ts +4 -2
- package/dist/commonjs/compat/eme/custom_media_keys/index.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +1 -0
- package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/custom_media_keys/ms_media_keys_constructor.d.ts +1 -0
- package/dist/commonjs/compat/eme/custom_media_keys/ms_media_keys_constructor.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +1 -0
- package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/custom_media_keys/types.d.ts +1 -0
- package/dist/commonjs/compat/eme/custom_media_keys/types.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.d.ts +1 -0
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts +3 -1
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/eme-api-implementation.d.ts +1 -0
- package/dist/commonjs/compat/eme/eme-api-implementation.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/generate_key_request.d.ts +1 -0
- package/dist/commonjs/compat/eme/generate_key_request.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/get_init_data.d.ts +1 -0
- package/dist/commonjs/compat/eme/get_init_data.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/get_uuid_kid_from_keystatus_kid.d.ts +1 -0
- package/dist/commonjs/compat/eme/get_uuid_kid_from_keystatus_kid.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/get_webkit_fairplay_initdata.d.ts +1 -0
- package/dist/commonjs/compat/eme/get_webkit_fairplay_initdata.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/index.d.ts +9 -5
- package/dist/commonjs/compat/eme/index.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/load_session.d.ts +1 -0
- package/dist/commonjs/compat/eme/load_session.d.ts.map +1 -0
- package/dist/commonjs/compat/eme/set_media_keys.d.ts +1 -0
- package/dist/commonjs/compat/eme/set_media_keys.d.ts.map +1 -0
- package/dist/commonjs/compat/enable_audio_track.d.ts +1 -0
- package/dist/commonjs/compat/enable_audio_track.d.ts.map +1 -0
- package/dist/commonjs/compat/event_listeners.d.ts +1 -0
- package/dist/commonjs/compat/event_listeners.d.ts.map +1 -0
- package/dist/commonjs/compat/generate_init_data.d.ts +14 -0
- package/dist/commonjs/compat/generate_init_data.d.ts.map +1 -0
- package/dist/commonjs/compat/generate_init_data.js +60 -0
- package/dist/commonjs/compat/get_start_date.d.ts +1 -0
- package/dist/commonjs/compat/get_start_date.d.ts.map +1 -0
- package/dist/commonjs/compat/has_issues_with_high_media_source_duration.d.ts +1 -0
- package/dist/commonjs/compat/has_issues_with_high_media_source_duration.d.ts.map +1 -0
- package/dist/commonjs/compat/has_mse_in_worker.d.ts +1 -0
- package/dist/commonjs/compat/has_mse_in_worker.d.ts.map +1 -0
- package/dist/commonjs/compat/has_webassembly.d.ts +1 -0
- package/dist/commonjs/compat/has_webassembly.d.ts.map +1 -0
- package/dist/commonjs/compat/has_worker_api.d.ts +1 -0
- package/dist/commonjs/compat/has_worker_api.d.ts.map +1 -0
- package/dist/commonjs/compat/is_codec_supported.d.ts +1 -0
- package/dist/commonjs/compat/is_codec_supported.d.ts.map +1 -0
- package/dist/commonjs/compat/is_debug_mode_enabled.d.ts +1 -0
- package/dist/commonjs/compat/is_debug_mode_enabled.d.ts.map +1 -0
- package/dist/commonjs/compat/is_seeking_approximate.d.ts +1 -0
- package/dist/commonjs/compat/is_seeking_approximate.d.ts.map +1 -0
- package/dist/commonjs/compat/is_vtt_cue.d.ts +1 -0
- package/dist/commonjs/compat/is_vtt_cue.d.ts.map +1 -0
- package/dist/commonjs/compat/make_vtt_cue.d.ts +1 -0
- package/dist/commonjs/compat/make_vtt_cue.d.ts.map +1 -0
- package/dist/commonjs/compat/may_media_element_fail_on_undecipherable_data.d.ts +1 -0
- package/dist/commonjs/compat/may_media_element_fail_on_undecipherable_data.d.ts.map +1 -0
- package/dist/commonjs/compat/on_height_width_change.d.ts +1 -0
- package/dist/commonjs/compat/on_height_width_change.d.ts.map +1 -0
- package/dist/commonjs/compat/patch_webkit_source_buffer.d.ts +1 -0
- package/dist/commonjs/compat/patch_webkit_source_buffer.d.ts.map +1 -0
- package/dist/commonjs/compat/remove_cue.d.ts +1 -0
- package/dist/commonjs/compat/remove_cue.d.ts.map +1 -0
- package/dist/commonjs/compat/should_await_set_media_keys.d.ts +1 -0
- package/dist/commonjs/compat/should_await_set_media_keys.d.ts.map +1 -0
- package/dist/commonjs/compat/should_favour_custom_safari_EME.d.ts +1 -0
- package/dist/commonjs/compat/should_favour_custom_safari_EME.d.ts.map +1 -0
- package/dist/commonjs/compat/should_reload_media_source_on_decipherability_update.d.ts +1 -0
- package/dist/commonjs/compat/should_reload_media_source_on_decipherability_update.d.ts.map +1 -0
- package/dist/commonjs/compat/should_renew_media_key_system_access.d.ts +1 -0
- package/dist/commonjs/compat/should_renew_media_key_system_access.d.ts.map +1 -0
- package/dist/commonjs/compat/should_unset_media_keys.d.ts +1 -0
- package/dist/commonjs/compat/should_unset_media_keys.d.ts.map +1 -0
- package/dist/commonjs/compat/should_validate_metadata.d.ts +1 -0
- package/dist/commonjs/compat/should_validate_metadata.d.ts.map +1 -0
- package/dist/commonjs/compat/should_wait_for_data_before_loaded.d.ts +1 -0
- package/dist/commonjs/compat/should_wait_for_data_before_loaded.d.ts.map +1 -0
- package/dist/commonjs/compat/should_wait_for_have_enough_data.d.ts +1 -0
- package/dist/commonjs/compat/should_wait_for_have_enough_data.d.ts.map +1 -0
- package/dist/commonjs/config.d.ts +1 -0
- package/dist/commonjs/config.d.ts.map +1 -0
- package/dist/commonjs/core/adaptive/adaptive_representation_selector.d.ts +3 -2
- package/dist/commonjs/core/adaptive/adaptive_representation_selector.d.ts.map +1 -0
- package/dist/commonjs/core/adaptive/buffer_based_chooser.d.ts +1 -0
- package/dist/commonjs/core/adaptive/buffer_based_chooser.d.ts.map +1 -0
- package/dist/commonjs/core/adaptive/guess_based_chooser.d.ts +1 -0
- package/dist/commonjs/core/adaptive/guess_based_chooser.d.ts.map +1 -0
- package/dist/commonjs/core/adaptive/index.d.ts +4 -2
- package/dist/commonjs/core/adaptive/index.d.ts.map +1 -0
- package/dist/commonjs/core/adaptive/network_analyzer.d.ts +1 -0
- package/dist/commonjs/core/adaptive/network_analyzer.d.ts.map +1 -0
- package/dist/commonjs/core/adaptive/utils/bandwidth_estimator.d.ts +1 -0
- package/dist/commonjs/core/adaptive/utils/bandwidth_estimator.d.ts.map +1 -0
- package/dist/commonjs/core/adaptive/utils/ewma.d.ts +1 -0
- package/dist/commonjs/core/adaptive/utils/ewma.d.ts.map +1 -0
- package/dist/commonjs/core/adaptive/utils/filter_by_bitrate.d.ts +1 -0
- package/dist/commonjs/core/adaptive/utils/filter_by_bitrate.d.ts.map +1 -0
- package/dist/commonjs/core/adaptive/utils/filter_by_resolution.d.ts +1 -0
- package/dist/commonjs/core/adaptive/utils/filter_by_resolution.d.ts.map +1 -0
- package/dist/commonjs/core/adaptive/utils/get_buffer_levels.d.ts +1 -0
- package/dist/commonjs/core/adaptive/utils/get_buffer_levels.d.ts.map +1 -0
- package/dist/commonjs/core/adaptive/utils/last_estimate_storage.d.ts +1 -0
- package/dist/commonjs/core/adaptive/utils/last_estimate_storage.d.ts.map +1 -0
- package/dist/commonjs/core/adaptive/utils/pending_requests_store.d.ts +1 -0
- package/dist/commonjs/core/adaptive/utils/pending_requests_store.d.ts.map +1 -0
- package/dist/commonjs/core/adaptive/utils/representation_score_calculator.d.ts +1 -0
- package/dist/commonjs/core/adaptive/utils/representation_score_calculator.d.ts.map +1 -0
- package/dist/commonjs/core/adaptive/utils/select_optimal_representation.d.ts +1 -0
- package/dist/commonjs/core/adaptive/utils/select_optimal_representation.d.ts.map +1 -0
- package/dist/commonjs/core/fetchers/cdn_prioritizer.d.ts +1 -0
- package/dist/commonjs/core/fetchers/cdn_prioritizer.d.ts.map +1 -0
- package/dist/commonjs/core/fetchers/index.d.ts +7 -3
- package/dist/commonjs/core/fetchers/index.d.ts.map +1 -0
- package/dist/commonjs/core/fetchers/manifest/index.d.ts +4 -2
- package/dist/commonjs/core/fetchers/manifest/index.d.ts.map +1 -0
- package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.d.ts +1 -0
- package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.d.ts.map +1 -0
- package/dist/commonjs/core/fetchers/segment/index.d.ts +5 -3
- package/dist/commonjs/core/fetchers/segment/index.d.ts.map +1 -0
- package/dist/commonjs/core/fetchers/segment/initialization_segment_cache.d.ts +1 -0
- package/dist/commonjs/core/fetchers/segment/initialization_segment_cache.d.ts.map +1 -0
- package/dist/commonjs/core/fetchers/segment/prioritized_segment_fetcher.d.ts +1 -0
- package/dist/commonjs/core/fetchers/segment/prioritized_segment_fetcher.d.ts.map +1 -0
- package/dist/commonjs/core/fetchers/segment/segment_fetcher.d.ts +1 -0
- package/dist/commonjs/core/fetchers/segment/segment_fetcher.d.ts.map +1 -0
- package/dist/commonjs/core/fetchers/segment/segment_fetcher_creator.d.ts +1 -0
- package/dist/commonjs/core/fetchers/segment/segment_fetcher_creator.d.ts.map +1 -0
- package/dist/commonjs/core/fetchers/segment/task_prioritizer.d.ts +1 -0
- package/dist/commonjs/core/fetchers/segment/task_prioritizer.d.ts.map +1 -0
- package/dist/commonjs/core/fetchers/utils/error_selector.d.ts +1 -0
- package/dist/commonjs/core/fetchers/utils/error_selector.d.ts.map +1 -0
- package/dist/commonjs/core/fetchers/utils/schedule_request.d.ts +1 -0
- package/dist/commonjs/core/fetchers/utils/schedule_request.d.ts.map +1 -0
- package/dist/commonjs/core/main/common/DecipherabilityFreezeDetector.d.ts +1 -0
- package/dist/commonjs/core/main/common/DecipherabilityFreezeDetector.d.ts.map +1 -0
- package/dist/commonjs/core/main/common/content_time_boundaries_observer.d.ts +1 -0
- package/dist/commonjs/core/main/common/content_time_boundaries_observer.d.ts.map +1 -0
- package/dist/commonjs/core/main/common/content_time_boundaries_observer.js +41 -19
- package/dist/commonjs/core/main/common/create_content_time_boundaries_observer.d.ts +1 -0
- package/dist/commonjs/core/main/common/create_content_time_boundaries_observer.d.ts.map +1 -0
- package/dist/commonjs/core/main/common/get_buffered_data_per_media_buffer.d.ts +1 -0
- package/dist/commonjs/core/main/common/get_buffered_data_per_media_buffer.d.ts.map +1 -0
- package/dist/commonjs/core/main/worker/content_preparer.d.ts +1 -0
- package/dist/commonjs/core/main/worker/content_preparer.d.ts.map +1 -0
- package/dist/commonjs/core/main/worker/globals.d.ts +1 -0
- package/dist/commonjs/core/main/worker/globals.d.ts.map +1 -0
- package/dist/commonjs/core/main/worker/index.d.ts +1 -0
- package/dist/commonjs/core/main/worker/index.d.ts.map +1 -0
- package/dist/commonjs/core/main/worker/send_message.d.ts +1 -0
- package/dist/commonjs/core/main/worker/send_message.d.ts.map +1 -0
- package/dist/commonjs/core/main/worker/track_choice_setter.d.ts +1 -0
- package/dist/commonjs/core/main/worker/track_choice_setter.d.ts.map +1 -0
- package/dist/commonjs/core/main/worker/worker_main.d.ts +1 -0
- package/dist/commonjs/core/main/worker/worker_main.d.ts.map +1 -0
- package/dist/commonjs/core/main/worker/worker_main.js +22 -0
- package/dist/commonjs/core/main/worker/worker_text_displayer_interface.d.ts +1 -0
- package/dist/commonjs/core/main/worker/worker_text_displayer_interface.d.ts.map +1 -0
- package/dist/commonjs/core/segment_sinks/garbage_collector.d.ts +1 -0
- package/dist/commonjs/core/segment_sinks/garbage_collector.d.ts.map +1 -0
- package/dist/commonjs/core/segment_sinks/garbage_collector.js +44 -24
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/audio_video_segment_buffer.d.ts +1 -0
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/audio_video_segment_buffer.d.ts.map +1 -0
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/index.d.ts +1 -0
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/index.d.ts.map +1 -0
- package/dist/commonjs/core/segment_sinks/implementations/index.d.ts +4 -2
- package/dist/commonjs/core/segment_sinks/implementations/index.d.ts.map +1 -0
- package/dist/commonjs/core/segment_sinks/implementations/text/index.d.ts +4 -2
- package/dist/commonjs/core/segment_sinks/implementations/text/index.d.ts.map +1 -0
- package/dist/commonjs/core/segment_sinks/implementations/text/text_segment_buffer.d.ts +1 -0
- package/dist/commonjs/core/segment_sinks/implementations/text/text_segment_buffer.d.ts.map +1 -0
- package/dist/commonjs/core/segment_sinks/implementations/types.d.ts +1 -0
- package/dist/commonjs/core/segment_sinks/implementations/types.d.ts.map +1 -0
- package/dist/commonjs/core/segment_sinks/implementations/utils/manual_time_ranges.d.ts +1 -0
- package/dist/commonjs/core/segment_sinks/implementations/utils/manual_time_ranges.d.ts.map +1 -0
- package/dist/commonjs/core/segment_sinks/index.d.ts +7 -3
- package/dist/commonjs/core/segment_sinks/index.d.ts.map +1 -0
- package/dist/commonjs/core/segment_sinks/inventory/buffered_history.d.ts +1 -0
- package/dist/commonjs/core/segment_sinks/inventory/buffered_history.d.ts.map +1 -0
- package/dist/commonjs/core/segment_sinks/inventory/index.d.ts +7 -4
- package/dist/commonjs/core/segment_sinks/inventory/index.d.ts.map +1 -0
- package/dist/commonjs/core/segment_sinks/inventory/segment_inventory.d.ts +1 -0
- package/dist/commonjs/core/segment_sinks/inventory/segment_inventory.d.ts.map +1 -0
- package/dist/commonjs/core/segment_sinks/inventory/types.d.ts +7 -1
- package/dist/commonjs/core/segment_sinks/inventory/types.d.ts.map +1 -0
- package/dist/commonjs/core/segment_sinks/inventory/utils.d.ts +1 -0
- package/dist/commonjs/core/segment_sinks/inventory/utils.d.ts.map +1 -0
- package/dist/commonjs/core/segment_sinks/inventory/utils.js +25 -3
- package/dist/commonjs/core/segment_sinks/segment_buffers_store.d.ts +26 -0
- package/dist/commonjs/core/segment_sinks/segment_buffers_store.d.ts.map +1 -0
- package/dist/commonjs/core/segment_sinks/segment_buffers_store.js +35 -0
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.d.ts +1 -0
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.d.ts.map +1 -0
- package/dist/commonjs/core/stream/adaptation/get_representations_switch_strategy.d.ts +1 -0
- package/dist/commonjs/core/stream/adaptation/get_representations_switch_strategy.d.ts.map +1 -0
- package/dist/commonjs/core/stream/adaptation/index.d.ts +1 -0
- package/dist/commonjs/core/stream/adaptation/index.d.ts.map +1 -0
- package/dist/commonjs/core/stream/adaptation/types.d.ts +1 -0
- package/dist/commonjs/core/stream/adaptation/types.d.ts.map +1 -0
- package/dist/commonjs/core/stream/index.d.ts +7 -5
- package/dist/commonjs/core/stream/index.d.ts.map +1 -0
- package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.d.ts +1 -0
- package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.d.ts.map +1 -0
- package/dist/commonjs/core/stream/orchestrator/index.d.ts +4 -2
- package/dist/commonjs/core/stream/orchestrator/index.d.ts.map +1 -0
- package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.d.ts +1 -0
- package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.d.ts.map +1 -0
- package/dist/commonjs/core/stream/period/index.d.ts +1 -0
- package/dist/commonjs/core/stream/period/index.d.ts.map +1 -0
- package/dist/commonjs/core/stream/period/period_stream.d.ts +1 -0
- package/dist/commonjs/core/stream/period/period_stream.d.ts.map +1 -0
- package/dist/commonjs/core/stream/period/types.d.ts +3 -2
- package/dist/commonjs/core/stream/period/types.d.ts.map +1 -0
- package/dist/commonjs/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +1 -0
- package/dist/commonjs/core/stream/period/utils/get_adaptation_switch_strategy.d.ts.map +1 -0
- package/dist/commonjs/core/stream/representation/index.d.ts +1 -0
- package/dist/commonjs/core/stream/representation/index.d.ts.map +1 -0
- package/dist/commonjs/core/stream/representation/representation_stream.d.ts +1 -0
- package/dist/commonjs/core/stream/representation/representation_stream.d.ts.map +1 -0
- package/dist/commonjs/core/stream/representation/types.d.ts +1 -0
- package/dist/commonjs/core/stream/representation/types.d.ts.map +1 -0
- package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.d.ts +1 -0
- package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.d.ts.map +1 -0
- package/dist/commonjs/core/stream/representation/utils/check_for_discontinuity.d.ts +1 -0
- package/dist/commonjs/core/stream/representation/utils/check_for_discontinuity.d.ts.map +1 -0
- package/dist/commonjs/core/stream/representation/utils/downloading_queue.d.ts +1 -0
- package/dist/commonjs/core/stream/representation/utils/downloading_queue.d.ts.map +1 -0
- package/dist/commonjs/core/stream/representation/utils/get_buffer_status.d.ts +1 -0
- package/dist/commonjs/core/stream/representation/utils/get_buffer_status.d.ts.map +1 -0
- package/dist/commonjs/core/stream/representation/utils/get_needed_segments.d.ts +1 -0
- package/dist/commonjs/core/stream/representation/utils/get_needed_segments.d.ts.map +1 -0
- package/dist/commonjs/core/stream/representation/utils/get_needed_segments.js +38 -30
- package/dist/commonjs/core/stream/representation/utils/get_segment_priority.d.ts +1 -0
- package/dist/commonjs/core/stream/representation/utils/get_segment_priority.d.ts.map +1 -0
- package/dist/commonjs/core/stream/representation/utils/push_init_segment.d.ts +1 -0
- package/dist/commonjs/core/stream/representation/utils/push_init_segment.d.ts.map +1 -0
- package/dist/commonjs/core/stream/representation/utils/push_media_segment.d.ts +1 -0
- package/dist/commonjs/core/stream/representation/utils/push_media_segment.d.ts.map +1 -0
- package/dist/commonjs/core/types.d.ts +1 -0
- package/dist/commonjs/core/types.d.ts.map +1 -0
- package/dist/commonjs/default_config.d.ts +1 -0
- package/dist/commonjs/default_config.d.ts.map +1 -0
- package/dist/commonjs/errors/custom_loader_error.d.ts +1 -1
- package/dist/commonjs/errors/custom_loader_error.d.ts.map +1 -0
- package/dist/commonjs/errors/custom_loader_error.js +1 -2
- package/dist/commonjs/errors/encrypted_media_error.d.ts +1 -1
- package/dist/commonjs/errors/encrypted_media_error.d.ts.map +1 -0
- package/dist/commonjs/errors/encrypted_media_error.js +1 -2
- package/dist/commonjs/errors/error_codes.d.ts +1 -0
- package/dist/commonjs/errors/error_codes.d.ts.map +1 -0
- package/dist/commonjs/errors/error_message.d.ts +1 -0
- package/dist/commonjs/errors/error_message.d.ts.map +1 -0
- package/dist/commonjs/errors/format_error.d.ts +1 -0
- package/dist/commonjs/errors/format_error.d.ts.map +1 -0
- package/dist/commonjs/errors/index.d.ts +13 -6
- package/dist/commonjs/errors/index.d.ts.map +1 -0
- package/dist/commonjs/errors/is_known_error.d.ts +1 -0
- package/dist/commonjs/errors/is_known_error.d.ts.map +1 -0
- package/dist/commonjs/errors/media_error.d.ts +1 -1
- package/dist/commonjs/errors/media_error.d.ts.map +1 -0
- package/dist/commonjs/errors/media_error.js +1 -2
- package/dist/commonjs/errors/network_error.d.ts +1 -1
- package/dist/commonjs/errors/network_error.d.ts.map +1 -0
- package/dist/commonjs/errors/network_error.js +1 -2
- package/dist/commonjs/errors/other_error.d.ts +1 -1
- package/dist/commonjs/errors/other_error.d.ts.map +1 -0
- package/dist/commonjs/errors/other_error.js +1 -2
- package/dist/commonjs/errors/source_buffer_error.d.ts +1 -1
- package/dist/commonjs/errors/source_buffer_error.d.ts.map +1 -0
- package/dist/commonjs/errors/source_buffer_error.js +1 -2
- package/dist/commonjs/errors/worker_initialization_error.d.ts +1 -1
- package/dist/commonjs/errors/worker_initialization_error.d.ts.map +1 -0
- package/dist/commonjs/errors/worker_initialization_error.js +1 -2
- package/dist/commonjs/experimental/features/index.d.ts +1 -0
- package/dist/commonjs/experimental/features/index.d.ts.map +1 -0
- package/dist/commonjs/experimental/features/local.d.ts +1 -0
- package/dist/commonjs/experimental/features/local.d.ts.map +1 -0
- package/dist/commonjs/experimental/features/metaplaylist.d.ts +1 -0
- package/dist/commonjs/experimental/features/metaplaylist.d.ts.map +1 -0
- package/dist/commonjs/experimental/features/multi_thread.d.ts +1 -0
- package/dist/commonjs/experimental/features/multi_thread.d.ts.map +1 -0
- package/dist/commonjs/experimental/index.d.ts +1 -0
- package/dist/commonjs/experimental/index.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/dash.d.ts +1 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/dash.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts +1 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/index.d.ts +1 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/index.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +1 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +1 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +1 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/types.d.ts +1 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/types.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts +1 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +3 -3
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.d.ts +1 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.js +2 -2
- package/dist/commonjs/experimental/tools/createMetaplaylist/get_duration_from_manifest.d.ts +1 -0
- package/dist/commonjs/experimental/tools/createMetaplaylist/get_duration_from_manifest.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/createMetaplaylist/index.d.ts +1 -0
- package/dist/commonjs/experimental/tools/createMetaplaylist/index.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/index.d.ts +1 -0
- package/dist/commonjs/experimental/tools/index.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/index.d.ts +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/index.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.d.ts +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/capabilities.d.ts +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/capabilities.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/index.d.ts +3 -2
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/index.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/log.d.ts +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/log.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.d.ts +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.d.ts +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/index.d.ts +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/index.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.d.ts +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.d.ts +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/types.d.ts +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/types.d.ts.map +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/utils.d.ts +1 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/utils.d.ts.map +1 -0
- package/dist/commonjs/features/add_features.d.ts +1 -0
- package/dist/commonjs/features/add_features.d.ts.map +1 -0
- package/dist/commonjs/features/features_object.d.ts +1 -0
- package/dist/commonjs/features/features_object.d.ts.map +1 -0
- package/dist/commonjs/features/index.d.ts +4 -2
- package/dist/commonjs/features/index.d.ts.map +1 -0
- package/dist/commonjs/features/list/dash.d.ts +1 -0
- package/dist/commonjs/features/list/dash.d.ts.map +1 -0
- package/dist/commonjs/features/list/dash_wasm.d.ts +1 -0
- package/dist/commonjs/features/list/dash_wasm.d.ts.map +1 -0
- package/dist/commonjs/features/list/debug_element.d.ts +1 -0
- package/dist/commonjs/features/list/debug_element.d.ts.map +1 -0
- package/dist/commonjs/features/list/directfile.d.ts +1 -0
- package/dist/commonjs/features/list/directfile.d.ts.map +1 -0
- package/dist/commonjs/features/list/eme.d.ts +1 -0
- package/dist/commonjs/features/list/eme.d.ts.map +1 -0
- package/dist/commonjs/features/list/html_sami_parser.d.ts +1 -0
- package/dist/commonjs/features/list/html_sami_parser.d.ts.map +1 -0
- package/dist/commonjs/features/list/html_srt_parser.d.ts +1 -0
- package/dist/commonjs/features/list/html_srt_parser.d.ts.map +1 -0
- package/dist/commonjs/features/list/html_text_buffer.d.ts +1 -0
- package/dist/commonjs/features/list/html_text_buffer.d.ts.map +1 -0
- package/dist/commonjs/features/list/html_ttml_parser.d.ts +1 -0
- package/dist/commonjs/features/list/html_ttml_parser.d.ts.map +1 -0
- package/dist/commonjs/features/list/html_vtt_parser.d.ts +1 -0
- package/dist/commonjs/features/list/html_vtt_parser.d.ts.map +1 -0
- package/dist/commonjs/features/list/index.d.ts +1 -0
- package/dist/commonjs/features/list/index.d.ts.map +1 -0
- package/dist/commonjs/features/list/media_source_main.d.ts +1 -0
- package/dist/commonjs/features/list/media_source_main.d.ts.map +1 -0
- package/dist/commonjs/features/list/native_sami_parser.d.ts +1 -0
- package/dist/commonjs/features/list/native_sami_parser.d.ts.map +1 -0
- package/dist/commonjs/features/list/native_srt_parser.d.ts +1 -0
- package/dist/commonjs/features/list/native_srt_parser.d.ts.map +1 -0
- package/dist/commonjs/features/list/native_text_buffer.d.ts +1 -0
- package/dist/commonjs/features/list/native_text_buffer.d.ts.map +1 -0
- package/dist/commonjs/features/list/native_ttml_parser.d.ts +1 -0
- package/dist/commonjs/features/list/native_ttml_parser.d.ts.map +1 -0
- package/dist/commonjs/features/list/native_vtt_parser.d.ts +1 -0
- package/dist/commonjs/features/list/native_vtt_parser.d.ts.map +1 -0
- package/dist/commonjs/features/list/smooth.d.ts +1 -0
- package/dist/commonjs/features/list/smooth.d.ts.map +1 -0
- package/dist/commonjs/features/types.d.ts +1 -0
- package/dist/commonjs/features/types.d.ts.map +1 -0
- package/dist/commonjs/index.d.ts +1 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +4 -0
- package/dist/commonjs/log.d.ts +1 -0
- package/dist/commonjs/log.d.ts.map +1 -0
- package/dist/commonjs/main_thread/api/debug/buffer_graph.d.ts +4 -3
- package/dist/commonjs/main_thread/api/debug/buffer_graph.d.ts.map +1 -0
- package/dist/commonjs/main_thread/api/debug/buffer_graph.js +63 -18
- package/dist/commonjs/main_thread/api/debug/buffer_size_graph.d.ts +1 -0
- package/dist/commonjs/main_thread/api/debug/buffer_size_graph.d.ts.map +1 -0
- package/dist/commonjs/main_thread/api/debug/constants.d.ts +1 -0
- package/dist/commonjs/main_thread/api/debug/constants.d.ts.map +1 -0
- package/dist/commonjs/main_thread/api/debug/index.d.ts +1 -0
- package/dist/commonjs/main_thread/api/debug/index.d.ts.map +1 -0
- package/dist/commonjs/main_thread/api/debug/modules/general_info.d.ts +1 -0
- package/dist/commonjs/main_thread/api/debug/modules/general_info.d.ts.map +1 -0
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_content.d.ts +1 -0
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_content.d.ts.map +1 -0
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_content.js +60 -19
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_size.d.ts +1 -0
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_size.d.ts.map +1 -0
- package/dist/commonjs/main_thread/api/debug/render.d.ts +1 -0
- package/dist/commonjs/main_thread/api/debug/render.d.ts.map +1 -0
- package/dist/commonjs/main_thread/api/debug/utils.d.ts +1 -0
- package/dist/commonjs/main_thread/api/debug/utils.d.ts.map +1 -0
- package/dist/commonjs/main_thread/api/index.d.ts +1 -0
- package/dist/commonjs/main_thread/api/index.d.ts.map +1 -0
- package/dist/commonjs/main_thread/api/option_utils.d.ts +1 -0
- package/dist/commonjs/main_thread/api/option_utils.d.ts.map +1 -0
- package/dist/commonjs/main_thread/api/public_api.d.ts +13 -8
- package/dist/commonjs/main_thread/api/public_api.d.ts.map +1 -0
- package/dist/commonjs/main_thread/api/public_api.js +58 -21
- package/dist/commonjs/main_thread/api/utils.d.ts +1 -0
- package/dist/commonjs/main_thread/api/utils.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/attach_media_keys.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/attach_media_keys.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/clear_on_stop.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/clear_on_stop.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/content_decryptor.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/content_decryptor.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/content_decryptor.js +26 -15
- package/dist/commonjs/main_thread/decrypt/create_or_load_session.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/create_or_load_session.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/create_session.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/create_session.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/dispose_decryption_resources.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/dispose_decryption_resources.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/find_key_system.d.ts +9 -0
- package/dist/commonjs/main_thread/decrypt/find_key_system.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/find_key_system.js +42 -1
- package/dist/commonjs/main_thread/decrypt/get_key_system_configuration.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/get_key_system_configuration.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/get_media_keys.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/get_media_keys.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/index.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/index.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/init_media_keys.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/init_media_keys.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/session_events_listener.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/session_events_listener.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/session_events_listener.js +2 -2
- package/dist/commonjs/main_thread/decrypt/set_server_certificate.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/set_server_certificate.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/types.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/types.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/are_init_values_compatible.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/are_init_values_compatible.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/check_key_statuses.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/check_key_statuses.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/check_key_statuses.js +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/clean_old_loaded_sessions.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/clean_old_loaded_sessions.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/clean_old_stored_persistent_info.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/clean_old_stored_persistent_info.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/get_drm_system_id.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/get_drm_system_id.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/init_data_values_container.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/init_data_values_container.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/is_session_usable.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/is_session_usable.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/key_id_comparison.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/key_id_comparison.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/key_session_record.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/key_session_record.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/loaded_sessions_store.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/loaded_sessions_store.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/media_keys_infos_store.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/media_keys_infos_store.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/persistent_sessions_store.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/persistent_sessions_store.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/serializable_bytes.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/serializable_bytes.d.ts.map +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/server_certificate_store.d.ts +1 -0
- package/dist/commonjs/main_thread/decrypt/utils/server_certificate_store.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/directfile_content_initializer.d.ts +1 -0
- package/dist/commonjs/main_thread/init/directfile_content_initializer.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/directfile_content_initializer.js +3 -1
- package/dist/commonjs/main_thread/init/index.d.ts +3 -1
- package/dist/commonjs/main_thread/init/index.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/media_source_content_initializer.d.ts +1 -0
- package/dist/commonjs/main_thread/init/media_source_content_initializer.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/media_source_content_initializer.js +9 -1
- package/dist/commonjs/main_thread/init/multi_thread_content_initializer.d.ts +6 -0
- package/dist/commonjs/main_thread/init/multi_thread_content_initializer.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/multi_thread_content_initializer.js +97 -11
- package/dist/commonjs/main_thread/init/send_message.d.ts +1 -0
- package/dist/commonjs/main_thread/init/send_message.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/types.d.ts +4 -2
- package/dist/commonjs/main_thread/init/types.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/utils/create_core_playback_observer.d.ts +1 -0
- package/dist/commonjs/main_thread/init/utils/create_core_playback_observer.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/utils/create_media_source.d.ts +1 -0
- package/dist/commonjs/main_thread/init/utils/create_media_source.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/utils/get_initial_time.d.ts +1 -0
- package/dist/commonjs/main_thread/init/utils/get_initial_time.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/utils/get_loaded_reference.d.ts +1 -0
- package/dist/commonjs/main_thread/init/utils/get_loaded_reference.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/utils/initial_seek_and_play.d.ts +1 -0
- package/dist/commonjs/main_thread/init/utils/initial_seek_and_play.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/utils/initialize_content_decryption.d.ts +1 -0
- package/dist/commonjs/main_thread/init/utils/initialize_content_decryption.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/utils/main_thread_text_displayer_interface.d.ts +1 -0
- package/dist/commonjs/main_thread/init/utils/main_thread_text_displayer_interface.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/utils/rebuffering_controller.d.ts +1 -0
- package/dist/commonjs/main_thread/init/utils/rebuffering_controller.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/utils/rebuffering_controller.js +48 -26
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/are_same_stream_events.d.ts +1 -0
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/are_same_stream_events.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/index.d.ts +1 -0
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/index.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +1 -0
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +85 -54
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts +1 -0
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/types.d.ts +1 -0
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/types.d.ts.map +1 -0
- package/dist/commonjs/main_thread/init/utils/throw_on_media_error.d.ts +1 -0
- package/dist/commonjs/main_thread/init/utils/throw_on_media_error.d.ts.map +1 -0
- package/dist/commonjs/main_thread/text_displayer/html/html_parsers.d.ts +1 -0
- package/dist/commonjs/main_thread/text_displayer/html/html_parsers.d.ts.map +1 -0
- package/dist/commonjs/main_thread/text_displayer/html/html_text_displayer.d.ts +1 -0
- package/dist/commonjs/main_thread/text_displayer/html/html_text_displayer.d.ts.map +1 -0
- package/dist/commonjs/main_thread/text_displayer/html/html_text_displayer.js +65 -12
- package/dist/commonjs/main_thread/text_displayer/html/index.d.ts +1 -0
- package/dist/commonjs/main_thread/text_displayer/html/index.d.ts.map +1 -0
- package/dist/commonjs/main_thread/text_displayer/html/text_track_cues_store.d.ts +1 -0
- package/dist/commonjs/main_thread/text_displayer/html/text_track_cues_store.d.ts.map +1 -0
- package/dist/commonjs/main_thread/text_displayer/html/text_track_cues_store.js +39 -7
- package/dist/commonjs/main_thread/text_displayer/html/update_proportional_elements.d.ts +1 -0
- package/dist/commonjs/main_thread/text_displayer/html/update_proportional_elements.d.ts.map +1 -0
- package/dist/commonjs/main_thread/text_displayer/html/utils.d.ts +1 -0
- package/dist/commonjs/main_thread/text_displayer/html/utils.d.ts.map +1 -0
- package/dist/commonjs/main_thread/text_displayer/index.d.ts +3 -2
- package/dist/commonjs/main_thread/text_displayer/index.d.ts.map +1 -0
- package/dist/commonjs/main_thread/text_displayer/manual_time_ranges.d.ts +1 -0
- package/dist/commonjs/main_thread/text_displayer/manual_time_ranges.d.ts.map +1 -0
- package/dist/commonjs/main_thread/text_displayer/native/index.d.ts +1 -0
- package/dist/commonjs/main_thread/text_displayer/native/index.d.ts.map +1 -0
- package/dist/commonjs/main_thread/text_displayer/native/native_parsers.d.ts +1 -0
- package/dist/commonjs/main_thread/text_displayer/native/native_parsers.d.ts.map +1 -0
- package/dist/commonjs/main_thread/text_displayer/native/native_text_displayer.d.ts +1 -0
- package/dist/commonjs/main_thread/text_displayer/native/native_text_displayer.d.ts.map +1 -0
- package/dist/commonjs/main_thread/text_displayer/native/native_text_displayer.js +27 -5
- package/dist/commonjs/main_thread/text_displayer/types.d.ts +1 -0
- package/dist/commonjs/main_thread/text_displayer/types.d.ts.map +1 -0
- package/dist/commonjs/main_thread/tracks_store/index.d.ts +1 -0
- package/dist/commonjs/main_thread/tracks_store/index.d.ts.map +1 -0
- package/dist/commonjs/main_thread/tracks_store/media_element_tracks_store.d.ts +1 -0
- package/dist/commonjs/main_thread/tracks_store/media_element_tracks_store.d.ts.map +1 -0
- package/dist/commonjs/main_thread/tracks_store/track_dispatcher.d.ts +1 -0
- package/dist/commonjs/main_thread/tracks_store/track_dispatcher.d.ts.map +1 -0
- package/dist/commonjs/main_thread/tracks_store/tracks_store.d.ts +1 -0
- package/dist/commonjs/main_thread/tracks_store/tracks_store.d.ts.map +1 -0
- package/dist/commonjs/main_thread/types.d.ts +1 -0
- package/dist/commonjs/main_thread/types.d.ts.map +1 -0
- package/dist/commonjs/manifest/classes/adaptation.d.ts +1 -0
- package/dist/commonjs/manifest/classes/adaptation.d.ts.map +1 -0
- package/dist/commonjs/manifest/classes/index.d.ts +12 -6
- package/dist/commonjs/manifest/classes/index.d.ts.map +1 -0
- package/dist/commonjs/manifest/classes/manifest.d.ts +2 -1
- package/dist/commonjs/manifest/classes/manifest.d.ts.map +1 -0
- package/dist/commonjs/manifest/classes/period.d.ts +1 -0
- package/dist/commonjs/manifest/classes/period.d.ts.map +1 -0
- package/dist/commonjs/manifest/classes/representation.d.ts +1 -0
- package/dist/commonjs/manifest/classes/representation.d.ts.map +1 -0
- package/dist/commonjs/manifest/classes/representation_index/index.d.ts +3 -1
- package/dist/commonjs/manifest/classes/representation_index/index.d.ts.map +1 -0
- package/dist/commonjs/manifest/classes/representation_index/static.d.ts +1 -0
- package/dist/commonjs/manifest/classes/representation_index/static.d.ts.map +1 -0
- package/dist/commonjs/manifest/classes/representation_index/types.d.ts +1 -0
- package/dist/commonjs/manifest/classes/representation_index/types.d.ts.map +1 -0
- package/dist/commonjs/manifest/classes/types.d.ts +1 -0
- package/dist/commonjs/manifest/classes/types.d.ts.map +1 -0
- package/dist/commonjs/manifest/classes/update_period_in_place.d.ts +1 -0
- package/dist/commonjs/manifest/classes/update_period_in_place.d.ts.map +1 -0
- package/dist/commonjs/manifest/classes/update_periods.d.ts +1 -0
- package/dist/commonjs/manifest/classes/update_periods.d.ts.map +1 -0
- package/dist/commonjs/manifest/classes/utils.d.ts +1 -0
- package/dist/commonjs/manifest/classes/utils.d.ts.map +1 -0
- package/dist/commonjs/manifest/index.d.ts +3 -1
- package/dist/commonjs/manifest/index.d.ts.map +1 -0
- package/dist/commonjs/manifest/types.d.ts +1 -0
- package/dist/commonjs/manifest/types.d.ts.map +1 -0
- package/dist/commonjs/manifest/utils.d.ts +1 -0
- package/dist/commonjs/manifest/utils.d.ts.map +1 -0
- package/dist/commonjs/minimal.d.ts +1 -0
- package/dist/commonjs/minimal.d.ts.map +1 -0
- package/dist/commonjs/mse/index.d.ts +3 -1
- package/dist/commonjs/mse/index.d.ts.map +1 -0
- package/dist/commonjs/mse/main_codec_support_prober.d.ts +1 -0
- package/dist/commonjs/mse/main_codec_support_prober.d.ts.map +1 -0
- package/dist/commonjs/mse/main_media_source_interface.d.ts +1 -0
- package/dist/commonjs/mse/main_media_source_interface.d.ts.map +1 -0
- package/dist/commonjs/mse/types.d.ts +1 -0
- package/dist/commonjs/mse/types.d.ts.map +1 -0
- package/dist/commonjs/mse/utils/end_of_stream.d.ts +1 -0
- package/dist/commonjs/mse/utils/end_of_stream.d.ts.map +1 -0
- package/dist/commonjs/mse/utils/end_of_stream.js +6 -1
- package/dist/commonjs/mse/utils/media_source_duration_updater.d.ts +1 -0
- package/dist/commonjs/mse/utils/media_source_duration_updater.d.ts.map +1 -0
- package/dist/commonjs/mse/worker_codec_support_prober.d.ts +1 -0
- package/dist/commonjs/mse/worker_codec_support_prober.d.ts.map +1 -0
- package/dist/commonjs/mse/worker_media_source_interface.d.ts +1 -0
- package/dist/commonjs/mse/worker_media_source_interface.d.ts.map +1 -0
- package/dist/commonjs/multithread_types.d.ts +22 -4
- package/dist/commonjs/multithread_types.d.ts.map +1 -0
- package/dist/commonjs/parsers/containers/isobmff/constants.d.ts +1 -0
- package/dist/commonjs/parsers/containers/isobmff/constants.d.ts.map +1 -0
- package/dist/commonjs/parsers/containers/isobmff/create_box.d.ts +1 -0
- package/dist/commonjs/parsers/containers/isobmff/create_box.d.ts.map +1 -0
- package/dist/commonjs/parsers/containers/isobmff/drm/index.d.ts +1 -0
- package/dist/commonjs/parsers/containers/isobmff/drm/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/containers/isobmff/drm/playready.d.ts +1 -0
- package/dist/commonjs/parsers/containers/isobmff/drm/playready.d.ts.map +1 -0
- package/dist/commonjs/parsers/containers/isobmff/extract_complete_chunks.d.ts +1 -0
- package/dist/commonjs/parsers/containers/isobmff/extract_complete_chunks.d.ts.map +1 -0
- package/dist/commonjs/parsers/containers/isobmff/find_complete_box.d.ts +1 -0
- package/dist/commonjs/parsers/containers/isobmff/find_complete_box.d.ts.map +1 -0
- package/dist/commonjs/parsers/containers/isobmff/get_box.d.ts +1 -0
- package/dist/commonjs/parsers/containers/isobmff/get_box.d.ts.map +1 -0
- package/dist/commonjs/parsers/containers/isobmff/index.d.ts +3 -1
- package/dist/commonjs/parsers/containers/isobmff/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/containers/isobmff/read.d.ts +1 -0
- package/dist/commonjs/parsers/containers/isobmff/read.d.ts.map +1 -0
- package/dist/commonjs/parsers/containers/isobmff/take_pssh_out.d.ts +1 -0
- package/dist/commonjs/parsers/containers/isobmff/take_pssh_out.d.ts.map +1 -0
- package/dist/commonjs/parsers/containers/isobmff/utils.d.ts +1 -0
- package/dist/commonjs/parsers/containers/isobmff/utils.d.ts.map +1 -0
- package/dist/commonjs/parsers/containers/isobmff/utils.js +3 -1
- package/dist/commonjs/parsers/containers/matroska/index.d.ts +3 -1
- package/dist/commonjs/parsers/containers/matroska/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/containers/matroska/utils.d.ts +1 -0
- package/dist/commonjs/parsers/containers/matroska/utils.d.ts.map +1 -0
- package/dist/commonjs/parsers/images/bif.d.ts +1 -0
- package/dist/commonjs/parsers/images/bif.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/attach_trickmode_track.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/attach_trickmode_track.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/content_protection_parser.d.ts +99 -0
- package/dist/commonjs/parsers/manifest/dash/common/content_protection_parser.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/content_protection_parser.js +261 -0
- package/dist/commonjs/parsers/manifest/dash/common/convert_supplemental_codecs.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/convert_supplemental_codecs.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_clock_offset.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_clock_offset.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_hdr_information.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_hdr_information.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_periods_time_infos.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_periods_time_infos.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/index.d.ts +4 -2
- package/dist/commonjs/parsers/manifest/dash/common/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/base.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/base.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_init_segment.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_init_segment.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/index.d.ts +11 -5
- package/dist/commonjs/parsers/manifest/dash/common/indexes/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/list.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/list.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/template.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/template.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/index.d.ts +4 -2
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/tokens.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/tokens.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/utils.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/utils.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/infer_adaptation_type.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/infer_adaptation_type.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.d.ts +4 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.js +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_availability_start_time.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_availability_start_time.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_mpd.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_mpd.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_mpd.js +10 -5
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.d.ts +4 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.js +8 -6
- package/dist/commonjs/parsers/manifest/dash/common/parse_representation_index.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_representation_index.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_representations.d.ts +4 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_representations.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_representations.js +15 -56
- package/dist/commonjs/parsers/manifest/dash/common/resolve_base_urls.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/common/resolve_base_urls.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/index.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/AdaptationSet.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/AdaptationSet.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/BaseURL.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/BaseURL.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/ContentComponent.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/ContentComponent.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/ContentProtection.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/ContentProtection.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/ContentProtection.js +7 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/EventStream.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/EventStream.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Initialization.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Initialization.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/MPD.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/MPD.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/MPD.js +12 -1
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Period.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Period.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Period.js +15 -1
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Representation.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Representation.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentBase.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentBase.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentList.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentList.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTemplate.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTemplate.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTimeline.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTimeline.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentURL.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentURL.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/utils.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/utils.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/utils.js +1 -2
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/parse_from_xml_string.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/parse_from_xml_string.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/index.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/index.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/AdaptationSet.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/AdaptationSet.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/BaseURL.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/BaseURL.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/ContentComponent.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/ContentComponent.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/ContentProtection.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/ContentProtection.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/ContentProtection.js +7 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/EventStream.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/EventStream.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/Initialization.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/Initialization.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/MPD.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/MPD.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/MPD.js +12 -1
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/Period.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/Period.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/Period.js +15 -1
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/Representation.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/Representation.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/SegmentBase.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/SegmentBase.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/SegmentList.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/SegmentList.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/SegmentTemplate.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/SegmentTemplate.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/SegmentTimeline.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/SegmentTimeline.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/SegmentURL.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/SegmentURL.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/utils.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/utils.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/utils.js +1 -2
- package/dist/commonjs/parsers/manifest/dash/native-parser/parse_from_document.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/parse_from_document.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/node_parser_types.d.ts +9 -0
- package/dist/commonjs/parsers/manifest/dash/node_parser_types.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/parsers_types.d.ts +2 -1
- package/dist/commonjs/parsers/manifest/dash/parsers_types.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/index.d.ts +4 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +6 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +14 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +14 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/types.d.ts +3 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/types.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/utils.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/utils.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/index.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/local/index.d.ts +2 -1
- package/dist/commonjs/parsers/manifest/local/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/local/parse_local_manifest.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/local/parse_local_manifest.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/local/representation_index.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/local/representation_index.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/local/types.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/local/types.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/metaplaylist/index.d.ts +4 -2
- package/dist/commonjs/parsers/manifest/metaplaylist/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/metaplaylist/representation_index.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/metaplaylist/representation_index.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/smooth/create_parser.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/smooth/create_parser.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/smooth/get_codecs.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/smooth/get_codecs.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/smooth/index.d.ts +5 -2
- package/dist/commonjs/parsers/manifest/smooth/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/smooth/parse_C_nodes.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/smooth/parse_C_nodes.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/smooth/representation_index.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/smooth/representation_index.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/smooth/utils/add_segment_infos.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/smooth/utils/add_segment_infos.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/smooth/utils/parseBoolean.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/smooth/utils/parseBoolean.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/smooth/utils/reduceChildren.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/smooth/utils/reduceChildren.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/smooth/utils/tokens.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/smooth/utils/tokens.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/types.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/types.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/utils/check_manifest_ids.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/utils/check_manifest_ids.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/utils/clear_timeline_from_position.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/utils/clear_timeline_from_position.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/utils/get_first_time_from_adaptation.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/utils/get_first_time_from_adaptation.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/utils/get_last_time_from_adaptation.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/utils/get_last_time_from_adaptation.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/utils/get_maximum_positions.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/utils/get_maximum_positions.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/utils/get_minimum_position.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/utils/get_minimum_position.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/utils/index_helpers.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/utils/index_helpers.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/utils/update_segment_timeline.d.ts +1 -0
- package/dist/commonjs/parsers/manifest/utils/update_segment_timeline.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/index.d.ts +2 -1
- package/dist/commonjs/parsers/texttracks/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/sami/html.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/sami/html.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/sami/native.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/sami/native.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/srt/find_end_of_cue_block.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/srt/find_end_of_cue_block.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/srt/get_cue_blocks.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/srt/get_cue_blocks.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/srt/html.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/srt/html.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/srt/native.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/srt/native.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/srt/parse_cue.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/srt/parse_cue.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/srt/parse_timestamp.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/srt/parse_timestamp.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/get_parameters.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/get_parameters.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/get_styling.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/get_styling.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/get_time_delimiters.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/get_time_delimiters.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_extent.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_extent.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_font_size.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_font_size.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_line_height.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_line_height.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_origin.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_origin.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_padding.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_padding.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/create_element.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/create_element.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/generate_css_test_outline.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/generate_css_test_outline.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/index.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_cue.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_cue.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/ttml_color_to_css_color.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/ttml_color_to_css_color.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/native/index.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/native/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_cue.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_cue.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/parse_ttml.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/parse_ttml.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/regexps.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/regexps.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/time_parsing.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/time_parsing.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/xml_utils.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/ttml/xml_utils.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/types.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/types.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/get_cue_blocks.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/get_cue_blocks.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/get_style_blocks.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/get_style_blocks.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_default_style_elements.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_default_style_elements.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_style_attribute.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_style_attribute.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_styled_element.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_styled_element.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/index.d.ts +2 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_style_block.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_style_block.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_to_div.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_to_div.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/to_html.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/to_html.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/index.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/index.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_vtt_to_cues.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_vtt_to_cues.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/to_native_cue.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/to_native_cue.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/parse_cue_block.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/parse_cue_block.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/parse_timestamp.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/parse_timestamp.d.ts.map +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/utils.d.ts +1 -0
- package/dist/commonjs/parsers/texttracks/webvtt/utils.d.ts.map +1 -0
- package/dist/commonjs/playback_observer/index.d.ts +1 -0
- package/dist/commonjs/playback_observer/index.d.ts.map +1 -0
- package/dist/commonjs/playback_observer/media_element_playback_observer.d.ts +1 -0
- package/dist/commonjs/playback_observer/media_element_playback_observer.d.ts.map +1 -0
- package/dist/commonjs/playback_observer/types.d.ts +1 -0
- package/dist/commonjs/playback_observer/types.d.ts.map +1 -0
- package/dist/commonjs/playback_observer/utils/generate_read_only_observer.d.ts +1 -0
- package/dist/commonjs/playback_observer/utils/generate_read_only_observer.d.ts.map +1 -0
- package/dist/commonjs/playback_observer/utils/observation_position.d.ts +12 -0
- package/dist/commonjs/playback_observer/utils/observation_position.d.ts.map +1 -0
- package/dist/commonjs/playback_observer/utils/observation_position.js +11 -0
- package/dist/commonjs/playback_observer/worker_playback_observer.d.ts +1 -0
- package/dist/commonjs/playback_observer/worker_playback_observer.d.ts.map +1 -0
- package/dist/commonjs/public_types.d.ts +3 -2
- package/dist/commonjs/public_types.d.ts.map +1 -0
- package/dist/commonjs/tools/TextTrackRenderer/index.d.ts +4 -2
- package/dist/commonjs/tools/TextTrackRenderer/index.d.ts.map +1 -0
- package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.d.ts +1 -0
- package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.d.ts.map +1 -0
- package/dist/commonjs/tools/index.d.ts +1 -0
- package/dist/commonjs/tools/index.d.ts.map +1 -0
- package/dist/commonjs/tools/parseBIFThumbnails/index.d.ts +1 -0
- package/dist/commonjs/tools/parseBIFThumbnails/index.d.ts.map +1 -0
- package/dist/commonjs/tools/string_utils/index.d.ts +1 -0
- package/dist/commonjs/tools/string_utils/index.d.ts.map +1 -0
- package/dist/commonjs/transports/dash/add_segment_integrity_checks_to_loader.d.ts +1 -0
- package/dist/commonjs/transports/dash/add_segment_integrity_checks_to_loader.d.ts.map +1 -0
- package/dist/commonjs/transports/dash/construct_segment_url.d.ts +1 -0
- package/dist/commonjs/transports/dash/construct_segment_url.d.ts.map +1 -0
- package/dist/commonjs/transports/dash/get_events_out_of_emsgs.d.ts +1 -0
- package/dist/commonjs/transports/dash/get_events_out_of_emsgs.d.ts.map +1 -0
- package/dist/commonjs/transports/dash/index.d.ts +1 -0
- package/dist/commonjs/transports/dash/index.d.ts.map +1 -0
- package/dist/commonjs/transports/dash/init_segment_loader.d.ts +1 -0
- package/dist/commonjs/transports/dash/init_segment_loader.d.ts.map +1 -0
- package/dist/commonjs/transports/dash/low_latency_segment_loader.d.ts +1 -0
- package/dist/commonjs/transports/dash/low_latency_segment_loader.d.ts.map +1 -0
- package/dist/commonjs/transports/dash/low_latency_segment_loader.js +1 -0
- package/dist/commonjs/transports/dash/manifest_parser.d.ts +1 -0
- package/dist/commonjs/transports/dash/manifest_parser.d.ts.map +1 -0
- package/dist/commonjs/transports/dash/pipelines.d.ts +1 -0
- package/dist/commonjs/transports/dash/pipelines.d.ts.map +1 -0
- package/dist/commonjs/transports/dash/segment_loader.d.ts +1 -0
- package/dist/commonjs/transports/dash/segment_loader.d.ts.map +1 -0
- package/dist/commonjs/transports/dash/segment_parser.d.ts +1 -0
- package/dist/commonjs/transports/dash/segment_parser.d.ts.map +1 -0
- package/dist/commonjs/transports/dash/text_loader.d.ts +1 -0
- package/dist/commonjs/transports/dash/text_loader.d.ts.map +1 -0
- package/dist/commonjs/transports/dash/text_parser.d.ts +1 -0
- package/dist/commonjs/transports/dash/text_parser.d.ts.map +1 -0
- package/dist/commonjs/transports/index.d.ts +1 -0
- package/dist/commonjs/transports/index.d.ts.map +1 -0
- package/dist/commonjs/transports/local/index.d.ts +1 -0
- package/dist/commonjs/transports/local/index.d.ts.map +1 -0
- package/dist/commonjs/transports/local/pipelines.d.ts +1 -0
- package/dist/commonjs/transports/local/pipelines.d.ts.map +1 -0
- package/dist/commonjs/transports/local/segment_loader.d.ts +1 -0
- package/dist/commonjs/transports/local/segment_loader.d.ts.map +1 -0
- package/dist/commonjs/transports/local/segment_parser.d.ts +1 -0
- package/dist/commonjs/transports/local/segment_parser.d.ts.map +1 -0
- package/dist/commonjs/transports/local/text_parser.d.ts +1 -0
- package/dist/commonjs/transports/local/text_parser.d.ts.map +1 -0
- package/dist/commonjs/transports/metaplaylist/index.d.ts +1 -0
- package/dist/commonjs/transports/metaplaylist/index.d.ts.map +1 -0
- package/dist/commonjs/transports/metaplaylist/manifest_loader.d.ts +1 -0
- package/dist/commonjs/transports/metaplaylist/manifest_loader.d.ts.map +1 -0
- package/dist/commonjs/transports/metaplaylist/pipelines.d.ts +1 -0
- package/dist/commonjs/transports/metaplaylist/pipelines.d.ts.map +1 -0
- package/dist/commonjs/transports/smooth/extract_timings_infos.d.ts +1 -0
- package/dist/commonjs/transports/smooth/extract_timings_infos.d.ts.map +1 -0
- package/dist/commonjs/transports/smooth/index.d.ts +1 -0
- package/dist/commonjs/transports/smooth/index.d.ts.map +1 -0
- package/dist/commonjs/transports/smooth/is_mp4_embedded_track.d.ts +1 -0
- package/dist/commonjs/transports/smooth/is_mp4_embedded_track.d.ts.map +1 -0
- package/dist/commonjs/transports/smooth/isobmff/create_audio_init_segment.d.ts +1 -0
- package/dist/commonjs/transports/smooth/isobmff/create_audio_init_segment.d.ts.map +1 -0
- package/dist/commonjs/transports/smooth/isobmff/create_boxes.d.ts +1 -0
- package/dist/commonjs/transports/smooth/isobmff/create_boxes.d.ts.map +1 -0
- package/dist/commonjs/transports/smooth/isobmff/create_init_segment.d.ts +1 -0
- package/dist/commonjs/transports/smooth/isobmff/create_init_segment.d.ts.map +1 -0
- package/dist/commonjs/transports/smooth/isobmff/create_traf_box.d.ts +1 -0
- package/dist/commonjs/transports/smooth/isobmff/create_traf_box.d.ts.map +1 -0
- package/dist/commonjs/transports/smooth/isobmff/create_video_init_segment.d.ts +1 -0
- package/dist/commonjs/transports/smooth/isobmff/create_video_init_segment.d.ts.map +1 -0
- package/dist/commonjs/transports/smooth/isobmff/get_aaces_header.d.ts +1 -0
- package/dist/commonjs/transports/smooth/isobmff/get_aaces_header.d.ts.map +1 -0
- package/dist/commonjs/transports/smooth/isobmff/index.d.ts +5 -2
- package/dist/commonjs/transports/smooth/isobmff/index.d.ts.map +1 -0
- package/dist/commonjs/transports/smooth/isobmff/parse_tfrf.d.ts +1 -0
- package/dist/commonjs/transports/smooth/isobmff/parse_tfrf.d.ts.map +1 -0
- package/dist/commonjs/transports/smooth/isobmff/parse_tfxd.d.ts +1 -0
- package/dist/commonjs/transports/smooth/isobmff/parse_tfxd.d.ts.map +1 -0
- package/dist/commonjs/transports/smooth/isobmff/patch_segment.d.ts +1 -0
- package/dist/commonjs/transports/smooth/isobmff/patch_segment.d.ts.map +1 -0
- package/dist/commonjs/transports/smooth/pipelines.d.ts +1 -0
- package/dist/commonjs/transports/smooth/pipelines.d.ts.map +1 -0
- package/dist/commonjs/transports/smooth/segment_loader.d.ts +1 -0
- package/dist/commonjs/transports/smooth/segment_loader.d.ts.map +1 -0
- package/dist/commonjs/transports/smooth/utils.d.ts +1 -0
- package/dist/commonjs/transports/smooth/utils.d.ts.map +1 -0
- package/dist/commonjs/transports/types.d.ts +1 -0
- package/dist/commonjs/transports/types.d.ts.map +1 -0
- package/dist/commonjs/transports/utils/byte_range.d.ts +1 -0
- package/dist/commonjs/transports/utils/byte_range.d.ts.map +1 -0
- package/dist/commonjs/transports/utils/call_custom_manifest_loader.d.ts +1 -0
- package/dist/commonjs/transports/utils/call_custom_manifest_loader.d.ts.map +1 -0
- package/dist/commonjs/transports/utils/check_isobmff_integrity.d.ts +1 -0
- package/dist/commonjs/transports/utils/check_isobmff_integrity.d.ts.map +1 -0
- package/dist/commonjs/transports/utils/generate_manifest_loader.d.ts +1 -0
- package/dist/commonjs/transports/utils/generate_manifest_loader.d.ts.map +1 -0
- package/dist/commonjs/transports/utils/get_isobmff_timing_infos.d.ts +1 -0
- package/dist/commonjs/transports/utils/get_isobmff_timing_infos.d.ts.map +1 -0
- package/dist/commonjs/transports/utils/infer_segment_container.d.ts +1 -0
- package/dist/commonjs/transports/utils/infer_segment_container.d.ts.map +1 -0
- package/dist/commonjs/transports/utils/parse_text_track.d.ts +1 -0
- package/dist/commonjs/transports/utils/parse_text_track.d.ts.map +1 -0
- package/dist/commonjs/utils/are_arrays_of_numbers_equal.d.ts +1 -0
- package/dist/commonjs/utils/are_arrays_of_numbers_equal.d.ts.map +1 -0
- package/dist/commonjs/utils/are_codecs_compatible.d.ts +1 -0
- package/dist/commonjs/utils/are_codecs_compatible.d.ts.map +1 -0
- package/dist/commonjs/utils/array_find.d.ts +1 -0
- package/dist/commonjs/utils/array_find.d.ts.map +1 -0
- package/dist/commonjs/utils/array_find_index.d.ts +1 -0
- package/dist/commonjs/utils/array_find_index.d.ts.map +1 -0
- package/dist/commonjs/utils/array_includes.d.ts +1 -0
- package/dist/commonjs/utils/array_includes.d.ts.map +1 -0
- package/dist/commonjs/utils/assert.d.ts +1 -1
- package/dist/commonjs/utils/assert.d.ts.map +1 -0
- package/dist/commonjs/utils/assert.js +1 -2
- package/dist/commonjs/utils/base64.d.ts +1 -0
- package/dist/commonjs/utils/base64.d.ts.map +1 -0
- package/dist/commonjs/utils/byte_parsing.d.ts +1 -0
- package/dist/commonjs/utils/byte_parsing.d.ts.map +1 -0
- package/dist/commonjs/utils/cancellable_sleep.d.ts +1 -0
- package/dist/commonjs/utils/cancellable_sleep.d.ts.map +1 -0
- package/dist/commonjs/utils/create_cancellable_promise.d.ts +1 -0
- package/dist/commonjs/utils/create_cancellable_promise.d.ts.map +1 -0
- package/dist/commonjs/utils/deep_merge.d.ts +1 -0
- package/dist/commonjs/utils/deep_merge.d.ts.map +1 -0
- package/dist/commonjs/utils/event_emitter.d.ts +1 -0
- package/dist/commonjs/utils/event_emitter.d.ts.map +1 -0
- package/dist/commonjs/utils/flat_map.d.ts +1 -0
- package/dist/commonjs/utils/flat_map.d.ts.map +1 -0
- package/dist/commonjs/utils/get_fuzzed_delay.d.ts +1 -0
- package/dist/commonjs/utils/get_fuzzed_delay.d.ts.map +1 -0
- package/dist/commonjs/utils/global_scope.d.ts +1 -0
- package/dist/commonjs/utils/global_scope.d.ts.map +1 -0
- package/dist/commonjs/utils/hash_buffer.d.ts +1 -0
- package/dist/commonjs/utils/hash_buffer.d.ts.map +1 -0
- package/dist/commonjs/utils/id_generator.d.ts +1 -0
- package/dist/commonjs/utils/id_generator.d.ts.map +1 -0
- package/dist/commonjs/utils/is_node.d.ts +1 -0
- package/dist/commonjs/utils/is_node.d.ts.map +1 -0
- package/dist/commonjs/utils/is_non_empty_string.d.ts +1 -0
- package/dist/commonjs/utils/is_non_empty_string.d.ts.map +1 -0
- package/dist/commonjs/utils/is_null_or_undefined.d.ts +1 -0
- package/dist/commonjs/utils/is_null_or_undefined.d.ts.map +1 -0
- package/dist/commonjs/utils/is_worker.d.ts +1 -0
- package/dist/commonjs/utils/is_worker.d.ts.map +1 -0
- package/dist/commonjs/utils/languages/ISO_639-1_to_ISO_639-3.d.ts +1 -0
- package/dist/commonjs/utils/languages/ISO_639-1_to_ISO_639-3.d.ts.map +1 -0
- package/dist/commonjs/utils/languages/ISO_639-2_to_ISO_639-3.d.ts +1 -0
- package/dist/commonjs/utils/languages/ISO_639-2_to_ISO_639-3.d.ts.map +1 -0
- package/dist/commonjs/utils/languages/index.d.ts +5 -2
- package/dist/commonjs/utils/languages/index.d.ts.map +1 -0
- package/dist/commonjs/utils/languages/normalize.d.ts +3 -1
- package/dist/commonjs/utils/languages/normalize.d.ts.map +1 -0
- package/dist/commonjs/utils/languages/normalize.js +4 -1
- package/dist/commonjs/utils/logger.d.ts +1 -0
- package/dist/commonjs/utils/logger.d.ts.map +1 -0
- package/dist/commonjs/utils/monotonic_timestamp.d.ts +1 -0
- package/dist/commonjs/utils/monotonic_timestamp.d.ts.map +1 -0
- package/dist/commonjs/utils/noop.d.ts +1 -0
- package/dist/commonjs/utils/noop.d.ts.map +1 -0
- package/dist/commonjs/utils/object_assign.d.ts +1 -0
- package/dist/commonjs/utils/object_assign.d.ts.map +1 -0
- package/dist/commonjs/utils/object_values.d.ts +1 -0
- package/dist/commonjs/utils/object_values.d.ts.map +1 -0
- package/dist/commonjs/utils/queue_microtask.d.ts +1 -0
- package/dist/commonjs/utils/queue_microtask.d.ts.map +1 -0
- package/dist/commonjs/utils/ranges.d.ts +3 -1
- package/dist/commonjs/utils/ranges.d.ts.map +1 -0
- package/dist/commonjs/utils/reference.d.ts +1 -0
- package/dist/commonjs/utils/reference.d.ts.map +1 -0
- package/dist/commonjs/utils/request/fetch.d.ts +1 -0
- package/dist/commonjs/utils/request/fetch.d.ts.map +1 -0
- package/dist/commonjs/utils/request/fetch.js +14 -0
- package/dist/commonjs/utils/request/index.d.ts +9 -4
- package/dist/commonjs/utils/request/index.d.ts.map +1 -0
- package/dist/commonjs/utils/request/request_error.d.ts +1 -1
- package/dist/commonjs/utils/request/request_error.d.ts.map +1 -0
- package/dist/commonjs/utils/request/request_error.js +14 -12
- package/dist/commonjs/utils/request/xhr.d.ts +1 -0
- package/dist/commonjs/utils/request/xhr.d.ts.map +1 -0
- package/dist/commonjs/utils/request/xhr.js +17 -0
- package/dist/commonjs/utils/resolve_url.d.ts +14 -10
- package/dist/commonjs/utils/resolve_url.d.ts.map +1 -0
- package/dist/commonjs/utils/resolve_url.js +237 -71
- package/dist/commonjs/utils/retry_promise_with_backoff.d.ts +1 -0
- package/dist/commonjs/utils/retry_promise_with_backoff.d.ts.map +1 -0
- package/dist/commonjs/utils/sleep.d.ts +1 -0
- package/dist/commonjs/utils/sleep.d.ts.map +1 -0
- package/dist/commonjs/utils/slice_uint8array.d.ts +1 -0
- package/dist/commonjs/utils/slice_uint8array.d.ts.map +1 -0
- package/dist/commonjs/utils/sorted_list.d.ts +1 -0
- package/dist/commonjs/utils/sorted_list.d.ts.map +1 -0
- package/dist/commonjs/utils/starts_with.d.ts +1 -0
- package/dist/commonjs/utils/starts_with.d.ts.map +1 -0
- package/dist/commonjs/utils/string_parsing.d.ts +2 -1
- package/dist/commonjs/utils/string_parsing.d.ts.map +1 -0
- package/dist/commonjs/utils/string_parsing.js +1 -1
- package/dist/commonjs/utils/sync_or_async.d.ts +1 -0
- package/dist/commonjs/utils/sync_or_async.d.ts.map +1 -0
- package/dist/commonjs/utils/task_canceller.d.ts +1 -1
- package/dist/commonjs/utils/task_canceller.d.ts.map +1 -0
- package/dist/commonjs/utils/task_canceller.js +3 -2
- package/dist/commonjs/utils/warn_once.d.ts +1 -0
- package/dist/commonjs/utils/warn_once.d.ts.map +1 -0
- package/dist/commonjs/utils/weak_map_memory.d.ts +1 -0
- package/dist/commonjs/utils/weak_map_memory.d.ts.map +1 -0
- package/dist/commonjs/utils/wrapInPromise.d.ts +1 -0
- package/dist/commonjs/utils/wrapInPromise.d.ts.map +1 -0
- package/dist/commonjs/utils/xml-parser.d.ts +1 -0
- package/dist/commonjs/utils/xml-parser.d.ts.map +1 -0
- package/dist/commonjs/worker_entry_point.d.ts +1 -0
- package/dist/commonjs/worker_entry_point.d.ts.map +1 -0
- package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.d.ts +1 -0
- package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.d.ts.map +1 -0
- package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.js +1 -1
- package/dist/es2017/__GENERATED_CODE/embedded_worker.d.ts +1 -0
- package/dist/es2017/__GENERATED_CODE/embedded_worker.d.ts.map +1 -0
- package/dist/es2017/__GENERATED_CODE/embedded_worker.js +1 -1
- package/dist/es2017/__GENERATED_CODE/index.d.ts +1 -1
- package/dist/es2017/__GENERATED_CODE/index.d.ts.map +1 -0
- package/dist/es2017/__GENERATED_CODE/index.js +0 -1
- package/dist/es2017/compat/add_class_name.d.ts +1 -0
- package/dist/es2017/compat/add_class_name.d.ts.map +1 -0
- package/dist/es2017/compat/add_text_track.d.ts +1 -0
- package/dist/es2017/compat/add_text_track.d.ts.map +1 -0
- package/dist/es2017/compat/browser_compatibility_types.d.ts +3 -1
- package/dist/es2017/compat/browser_compatibility_types.d.ts.map +1 -0
- package/dist/es2017/compat/browser_compatibility_types.js +1 -1
- package/dist/es2017/compat/browser_detection.d.ts +1 -0
- package/dist/es2017/compat/browser_detection.d.ts.map +1 -0
- package/dist/es2017/compat/browser_version.d.ts +1 -0
- package/dist/es2017/compat/browser_version.d.ts.map +1 -0
- package/dist/es2017/compat/can_patch_isobmff.d.ts +1 -0
- package/dist/es2017/compat/can_patch_isobmff.d.ts.map +1 -0
- package/dist/es2017/compat/can_rely_on_request_media_key_system_access.d.ts +35 -0
- package/dist/es2017/compat/can_rely_on_request_media_key_system_access.d.ts.map +1 -0
- package/dist/es2017/compat/can_rely_on_request_media_key_system_access.js +40 -0
- package/dist/es2017/compat/can_rely_on_video_visibility_and_size.d.ts +1 -0
- package/dist/es2017/compat/can_rely_on_video_visibility_and_size.d.ts.map +1 -0
- package/dist/es2017/compat/can_reuse_media_keys.d.ts +1 -0
- package/dist/es2017/compat/can_reuse_media_keys.d.ts.map +1 -0
- package/dist/es2017/compat/can_seek_directly_after_loaded_metadata.d.ts +1 -0
- package/dist/es2017/compat/can_seek_directly_after_loaded_metadata.d.ts.map +1 -0
- package/dist/es2017/compat/change_source_buffer_type.d.ts +1 -0
- package/dist/es2017/compat/change_source_buffer_type.d.ts.map +1 -0
- package/dist/es2017/compat/clear_element_src.d.ts +1 -0
- package/dist/es2017/compat/clear_element_src.d.ts.map +1 -0
- package/dist/es2017/compat/eme/close_session.d.ts +1 -0
- package/dist/es2017/compat/eme/close_session.d.ts.map +1 -0
- package/dist/es2017/compat/eme/constants.d.ts +1 -0
- package/dist/es2017/compat/eme/constants.d.ts.map +1 -0
- package/dist/es2017/compat/eme/custom_key_system_access.d.ts +1 -0
- package/dist/es2017/compat/eme/custom_key_system_access.d.ts.map +1 -0
- package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.d.ts +1 -0
- package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.d.ts.map +1 -0
- package/dist/es2017/compat/eme/custom_media_keys/index.d.ts +4 -2
- package/dist/es2017/compat/eme/custom_media_keys/index.d.ts.map +1 -0
- package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +1 -0
- package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts.map +1 -0
- package/dist/es2017/compat/eme/custom_media_keys/ms_media_keys_constructor.d.ts +1 -0
- package/dist/es2017/compat/eme/custom_media_keys/ms_media_keys_constructor.d.ts.map +1 -0
- package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +1 -0
- package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts.map +1 -0
- package/dist/es2017/compat/eme/custom_media_keys/types.d.ts +1 -0
- package/dist/es2017/compat/eme/custom_media_keys/types.d.ts.map +1 -0
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.d.ts +1 -0
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.d.ts.map +1 -0
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts +3 -1
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts.map +1 -0
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +0 -2
- package/dist/es2017/compat/eme/eme-api-implementation.d.ts +1 -0
- package/dist/es2017/compat/eme/eme-api-implementation.d.ts.map +1 -0
- package/dist/es2017/compat/eme/generate_key_request.d.ts +1 -0
- package/dist/es2017/compat/eme/generate_key_request.d.ts.map +1 -0
- package/dist/es2017/compat/eme/get_init_data.d.ts +1 -0
- package/dist/es2017/compat/eme/get_init_data.d.ts.map +1 -0
- package/dist/es2017/compat/eme/get_uuid_kid_from_keystatus_kid.d.ts +1 -0
- package/dist/es2017/compat/eme/get_uuid_kid_from_keystatus_kid.d.ts.map +1 -0
- package/dist/es2017/compat/eme/get_webkit_fairplay_initdata.d.ts +1 -0
- package/dist/es2017/compat/eme/get_webkit_fairplay_initdata.d.ts.map +1 -0
- package/dist/es2017/compat/eme/index.d.ts +9 -5
- package/dist/es2017/compat/eme/index.d.ts.map +1 -0
- package/dist/es2017/compat/eme/index.js +1 -1
- package/dist/es2017/compat/eme/load_session.d.ts +1 -0
- package/dist/es2017/compat/eme/load_session.d.ts.map +1 -0
- package/dist/es2017/compat/eme/set_media_keys.d.ts +1 -0
- package/dist/es2017/compat/eme/set_media_keys.d.ts.map +1 -0
- package/dist/es2017/compat/enable_audio_track.d.ts +1 -0
- package/dist/es2017/compat/enable_audio_track.d.ts.map +1 -0
- package/dist/es2017/compat/event_listeners.d.ts +1 -0
- package/dist/es2017/compat/event_listeners.d.ts.map +1 -0
- package/dist/es2017/compat/generate_init_data.d.ts +14 -0
- package/dist/es2017/compat/generate_init_data.d.ts.map +1 -0
- package/dist/es2017/compat/generate_init_data.js +56 -0
- package/dist/es2017/compat/get_start_date.d.ts +1 -0
- package/dist/es2017/compat/get_start_date.d.ts.map +1 -0
- package/dist/es2017/compat/has_issues_with_high_media_source_duration.d.ts +1 -0
- package/dist/es2017/compat/has_issues_with_high_media_source_duration.d.ts.map +1 -0
- package/dist/es2017/compat/has_mse_in_worker.d.ts +1 -0
- package/dist/es2017/compat/has_mse_in_worker.d.ts.map +1 -0
- package/dist/es2017/compat/has_webassembly.d.ts +1 -0
- package/dist/es2017/compat/has_webassembly.d.ts.map +1 -0
- package/dist/es2017/compat/has_worker_api.d.ts +1 -0
- package/dist/es2017/compat/has_worker_api.d.ts.map +1 -0
- package/dist/es2017/compat/is_codec_supported.d.ts +1 -0
- package/dist/es2017/compat/is_codec_supported.d.ts.map +1 -0
- package/dist/es2017/compat/is_debug_mode_enabled.d.ts +1 -0
- package/dist/es2017/compat/is_debug_mode_enabled.d.ts.map +1 -0
- package/dist/es2017/compat/is_seeking_approximate.d.ts +1 -0
- package/dist/es2017/compat/is_seeking_approximate.d.ts.map +1 -0
- package/dist/es2017/compat/is_vtt_cue.d.ts +1 -0
- package/dist/es2017/compat/is_vtt_cue.d.ts.map +1 -0
- package/dist/es2017/compat/make_vtt_cue.d.ts +1 -0
- package/dist/es2017/compat/make_vtt_cue.d.ts.map +1 -0
- package/dist/es2017/compat/may_media_element_fail_on_undecipherable_data.d.ts +1 -0
- package/dist/es2017/compat/may_media_element_fail_on_undecipherable_data.d.ts.map +1 -0
- package/dist/es2017/compat/on_height_width_change.d.ts +1 -0
- package/dist/es2017/compat/on_height_width_change.d.ts.map +1 -0
- package/dist/es2017/compat/patch_webkit_source_buffer.d.ts +1 -0
- package/dist/es2017/compat/patch_webkit_source_buffer.d.ts.map +1 -0
- package/dist/es2017/compat/remove_cue.d.ts +1 -0
- package/dist/es2017/compat/remove_cue.d.ts.map +1 -0
- package/dist/es2017/compat/should_await_set_media_keys.d.ts +1 -0
- package/dist/es2017/compat/should_await_set_media_keys.d.ts.map +1 -0
- package/dist/es2017/compat/should_favour_custom_safari_EME.d.ts +1 -0
- package/dist/es2017/compat/should_favour_custom_safari_EME.d.ts.map +1 -0
- package/dist/es2017/compat/should_reload_media_source_on_decipherability_update.d.ts +1 -0
- package/dist/es2017/compat/should_reload_media_source_on_decipherability_update.d.ts.map +1 -0
- package/dist/es2017/compat/should_renew_media_key_system_access.d.ts +1 -0
- package/dist/es2017/compat/should_renew_media_key_system_access.d.ts.map +1 -0
- package/dist/es2017/compat/should_unset_media_keys.d.ts +1 -0
- package/dist/es2017/compat/should_unset_media_keys.d.ts.map +1 -0
- package/dist/es2017/compat/should_validate_metadata.d.ts +1 -0
- package/dist/es2017/compat/should_validate_metadata.d.ts.map +1 -0
- package/dist/es2017/compat/should_wait_for_data_before_loaded.d.ts +1 -0
- package/dist/es2017/compat/should_wait_for_data_before_loaded.d.ts.map +1 -0
- package/dist/es2017/compat/should_wait_for_have_enough_data.d.ts +1 -0
- package/dist/es2017/compat/should_wait_for_have_enough_data.d.ts.map +1 -0
- package/dist/es2017/config.d.ts +1 -0
- package/dist/es2017/config.d.ts.map +1 -0
- package/dist/es2017/core/adaptive/adaptive_representation_selector.d.ts +3 -2
- package/dist/es2017/core/adaptive/adaptive_representation_selector.d.ts.map +1 -0
- package/dist/es2017/core/adaptive/buffer_based_chooser.d.ts +1 -0
- package/dist/es2017/core/adaptive/buffer_based_chooser.d.ts.map +1 -0
- package/dist/es2017/core/adaptive/guess_based_chooser.d.ts +1 -0
- package/dist/es2017/core/adaptive/guess_based_chooser.d.ts.map +1 -0
- package/dist/es2017/core/adaptive/index.d.ts +4 -2
- package/dist/es2017/core/adaptive/index.d.ts.map +1 -0
- package/dist/es2017/core/adaptive/network_analyzer.d.ts +1 -0
- package/dist/es2017/core/adaptive/network_analyzer.d.ts.map +1 -0
- package/dist/es2017/core/adaptive/utils/bandwidth_estimator.d.ts +1 -0
- package/dist/es2017/core/adaptive/utils/bandwidth_estimator.d.ts.map +1 -0
- package/dist/es2017/core/adaptive/utils/ewma.d.ts +1 -0
- package/dist/es2017/core/adaptive/utils/ewma.d.ts.map +1 -0
- package/dist/es2017/core/adaptive/utils/filter_by_bitrate.d.ts +1 -0
- package/dist/es2017/core/adaptive/utils/filter_by_bitrate.d.ts.map +1 -0
- package/dist/es2017/core/adaptive/utils/filter_by_resolution.d.ts +1 -0
- package/dist/es2017/core/adaptive/utils/filter_by_resolution.d.ts.map +1 -0
- package/dist/es2017/core/adaptive/utils/get_buffer_levels.d.ts +1 -0
- package/dist/es2017/core/adaptive/utils/get_buffer_levels.d.ts.map +1 -0
- package/dist/es2017/core/adaptive/utils/last_estimate_storage.d.ts +1 -0
- package/dist/es2017/core/adaptive/utils/last_estimate_storage.d.ts.map +1 -0
- package/dist/es2017/core/adaptive/utils/pending_requests_store.d.ts +1 -0
- package/dist/es2017/core/adaptive/utils/pending_requests_store.d.ts.map +1 -0
- package/dist/es2017/core/adaptive/utils/representation_score_calculator.d.ts +1 -0
- package/dist/es2017/core/adaptive/utils/representation_score_calculator.d.ts.map +1 -0
- package/dist/es2017/core/adaptive/utils/select_optimal_representation.d.ts +1 -0
- package/dist/es2017/core/adaptive/utils/select_optimal_representation.d.ts.map +1 -0
- package/dist/es2017/core/fetchers/cdn_prioritizer.d.ts +1 -0
- package/dist/es2017/core/fetchers/cdn_prioritizer.d.ts.map +1 -0
- package/dist/es2017/core/fetchers/index.d.ts +7 -3
- package/dist/es2017/core/fetchers/index.d.ts.map +1 -0
- package/dist/es2017/core/fetchers/index.js +1 -1
- package/dist/es2017/core/fetchers/manifest/index.d.ts +4 -2
- package/dist/es2017/core/fetchers/manifest/index.d.ts.map +1 -0
- package/dist/es2017/core/fetchers/manifest/manifest_fetcher.d.ts +1 -0
- package/dist/es2017/core/fetchers/manifest/manifest_fetcher.d.ts.map +1 -0
- package/dist/es2017/core/fetchers/segment/index.d.ts +5 -3
- package/dist/es2017/core/fetchers/segment/index.d.ts.map +1 -0
- package/dist/es2017/core/fetchers/segment/initialization_segment_cache.d.ts +1 -0
- package/dist/es2017/core/fetchers/segment/initialization_segment_cache.d.ts.map +1 -0
- package/dist/es2017/core/fetchers/segment/prioritized_segment_fetcher.d.ts +1 -0
- package/dist/es2017/core/fetchers/segment/prioritized_segment_fetcher.d.ts.map +1 -0
- package/dist/es2017/core/fetchers/segment/segment_fetcher.d.ts +1 -0
- package/dist/es2017/core/fetchers/segment/segment_fetcher.d.ts.map +1 -0
- package/dist/es2017/core/fetchers/segment/segment_fetcher_creator.d.ts +1 -0
- package/dist/es2017/core/fetchers/segment/segment_fetcher_creator.d.ts.map +1 -0
- package/dist/es2017/core/fetchers/segment/task_prioritizer.d.ts +1 -0
- package/dist/es2017/core/fetchers/segment/task_prioritizer.d.ts.map +1 -0
- package/dist/es2017/core/fetchers/utils/error_selector.d.ts +1 -0
- package/dist/es2017/core/fetchers/utils/error_selector.d.ts.map +1 -0
- package/dist/es2017/core/fetchers/utils/schedule_request.d.ts +1 -0
- package/dist/es2017/core/fetchers/utils/schedule_request.d.ts.map +1 -0
- package/dist/es2017/core/main/common/DecipherabilityFreezeDetector.d.ts +1 -0
- package/dist/es2017/core/main/common/DecipherabilityFreezeDetector.d.ts.map +1 -0
- package/dist/es2017/core/main/common/content_time_boundaries_observer.d.ts +1 -0
- package/dist/es2017/core/main/common/content_time_boundaries_observer.d.ts.map +1 -0
- package/dist/es2017/core/main/common/content_time_boundaries_observer.js +6 -6
- package/dist/es2017/core/main/common/create_content_time_boundaries_observer.d.ts +1 -0
- package/dist/es2017/core/main/common/create_content_time_boundaries_observer.d.ts.map +1 -0
- package/dist/es2017/core/main/common/get_buffered_data_per_media_buffer.d.ts +1 -0
- package/dist/es2017/core/main/common/get_buffered_data_per_media_buffer.d.ts.map +1 -0
- package/dist/es2017/core/main/worker/content_preparer.d.ts +1 -0
- package/dist/es2017/core/main/worker/content_preparer.d.ts.map +1 -0
- package/dist/es2017/core/main/worker/globals.d.ts +1 -0
- package/dist/es2017/core/main/worker/globals.d.ts.map +1 -0
- package/dist/es2017/core/main/worker/index.d.ts +1 -0
- package/dist/es2017/core/main/worker/index.d.ts.map +1 -0
- package/dist/es2017/core/main/worker/send_message.d.ts +1 -0
- package/dist/es2017/core/main/worker/send_message.d.ts.map +1 -0
- package/dist/es2017/core/main/worker/track_choice_setter.d.ts +1 -0
- package/dist/es2017/core/main/worker/track_choice_setter.d.ts.map +1 -0
- package/dist/es2017/core/main/worker/worker_main.d.ts +1 -0
- package/dist/es2017/core/main/worker/worker_main.d.ts.map +1 -0
- package/dist/es2017/core/main/worker/worker_main.js +22 -0
- package/dist/es2017/core/main/worker/worker_text_displayer_interface.d.ts +1 -0
- package/dist/es2017/core/main/worker/worker_text_displayer_interface.d.ts.map +1 -0
- package/dist/es2017/core/segment_sinks/garbage_collector.d.ts +1 -0
- package/dist/es2017/core/segment_sinks/garbage_collector.d.ts.map +1 -0
- package/dist/es2017/core/segment_sinks/garbage_collector.js +2 -4
- package/dist/es2017/core/segment_sinks/implementations/audio_video/audio_video_segment_buffer.d.ts +1 -0
- package/dist/es2017/core/segment_sinks/implementations/audio_video/audio_video_segment_buffer.d.ts.map +1 -0
- package/dist/es2017/core/segment_sinks/implementations/audio_video/index.d.ts +1 -0
- package/dist/es2017/core/segment_sinks/implementations/audio_video/index.d.ts.map +1 -0
- package/dist/es2017/core/segment_sinks/implementations/index.d.ts +4 -2
- package/dist/es2017/core/segment_sinks/implementations/index.d.ts.map +1 -0
- package/dist/es2017/core/segment_sinks/implementations/text/index.d.ts +4 -2
- package/dist/es2017/core/segment_sinks/implementations/text/index.d.ts.map +1 -0
- package/dist/es2017/core/segment_sinks/implementations/text/text_segment_buffer.d.ts +1 -0
- package/dist/es2017/core/segment_sinks/implementations/text/text_segment_buffer.d.ts.map +1 -0
- package/dist/es2017/core/segment_sinks/implementations/types.d.ts +1 -0
- package/dist/es2017/core/segment_sinks/implementations/types.d.ts.map +1 -0
- package/dist/es2017/core/segment_sinks/implementations/utils/manual_time_ranges.d.ts +1 -0
- package/dist/es2017/core/segment_sinks/implementations/utils/manual_time_ranges.d.ts.map +1 -0
- package/dist/es2017/core/segment_sinks/index.d.ts +7 -3
- package/dist/es2017/core/segment_sinks/index.d.ts.map +1 -0
- package/dist/es2017/core/segment_sinks/index.js +1 -1
- package/dist/es2017/core/segment_sinks/inventory/buffered_history.d.ts +1 -0
- package/dist/es2017/core/segment_sinks/inventory/buffered_history.d.ts.map +1 -0
- package/dist/es2017/core/segment_sinks/inventory/index.d.ts +7 -4
- package/dist/es2017/core/segment_sinks/inventory/index.d.ts.map +1 -0
- package/dist/es2017/core/segment_sinks/inventory/segment_inventory.d.ts +1 -0
- package/dist/es2017/core/segment_sinks/inventory/segment_inventory.d.ts.map +1 -0
- package/dist/es2017/core/segment_sinks/inventory/types.d.ts +7 -1
- package/dist/es2017/core/segment_sinks/inventory/types.d.ts.map +1 -0
- package/dist/es2017/core/segment_sinks/inventory/utils.d.ts +1 -0
- package/dist/es2017/core/segment_sinks/inventory/utils.d.ts.map +1 -0
- package/dist/es2017/core/segment_sinks/inventory/utils.js +3 -3
- package/dist/es2017/core/segment_sinks/segment_buffers_store.d.ts +26 -0
- package/dist/es2017/core/segment_sinks/segment_buffers_store.d.ts.map +1 -0
- package/dist/es2017/core/segment_sinks/segment_buffers_store.js +24 -0
- package/dist/es2017/core/stream/adaptation/adaptation_stream.d.ts +1 -0
- package/dist/es2017/core/stream/adaptation/adaptation_stream.d.ts.map +1 -0
- package/dist/es2017/core/stream/adaptation/get_representations_switch_strategy.d.ts +1 -0
- package/dist/es2017/core/stream/adaptation/get_representations_switch_strategy.d.ts.map +1 -0
- package/dist/es2017/core/stream/adaptation/index.d.ts +1 -0
- package/dist/es2017/core/stream/adaptation/index.d.ts.map +1 -0
- package/dist/es2017/core/stream/adaptation/types.d.ts +1 -0
- package/dist/es2017/core/stream/adaptation/types.d.ts.map +1 -0
- package/dist/es2017/core/stream/index.d.ts +7 -5
- package/dist/es2017/core/stream/index.d.ts.map +1 -0
- package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.d.ts +1 -0
- package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.d.ts.map +1 -0
- package/dist/es2017/core/stream/orchestrator/index.d.ts +4 -2
- package/dist/es2017/core/stream/orchestrator/index.d.ts.map +1 -0
- package/dist/es2017/core/stream/orchestrator/stream_orchestrator.d.ts +1 -0
- package/dist/es2017/core/stream/orchestrator/stream_orchestrator.d.ts.map +1 -0
- package/dist/es2017/core/stream/period/index.d.ts +1 -0
- package/dist/es2017/core/stream/period/index.d.ts.map +1 -0
- package/dist/es2017/core/stream/period/period_stream.d.ts +1 -0
- package/dist/es2017/core/stream/period/period_stream.d.ts.map +1 -0
- package/dist/es2017/core/stream/period/types.d.ts +3 -2
- package/dist/es2017/core/stream/period/types.d.ts.map +1 -0
- package/dist/es2017/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +1 -0
- package/dist/es2017/core/stream/period/utils/get_adaptation_switch_strategy.d.ts.map +1 -0
- package/dist/es2017/core/stream/representation/index.d.ts +1 -0
- package/dist/es2017/core/stream/representation/index.d.ts.map +1 -0
- package/dist/es2017/core/stream/representation/representation_stream.d.ts +1 -0
- package/dist/es2017/core/stream/representation/representation_stream.d.ts.map +1 -0
- package/dist/es2017/core/stream/representation/types.d.ts +1 -0
- package/dist/es2017/core/stream/representation/types.d.ts.map +1 -0
- package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.d.ts +1 -0
- package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.d.ts.map +1 -0
- package/dist/es2017/core/stream/representation/utils/check_for_discontinuity.d.ts +1 -0
- package/dist/es2017/core/stream/representation/utils/check_for_discontinuity.d.ts.map +1 -0
- package/dist/es2017/core/stream/representation/utils/downloading_queue.d.ts +1 -0
- package/dist/es2017/core/stream/representation/utils/downloading_queue.d.ts.map +1 -0
- package/dist/es2017/core/stream/representation/utils/get_buffer_status.d.ts +1 -0
- package/dist/es2017/core/stream/representation/utils/get_buffer_status.d.ts.map +1 -0
- package/dist/es2017/core/stream/representation/utils/get_needed_segments.d.ts +1 -0
- package/dist/es2017/core/stream/representation/utils/get_needed_segments.d.ts.map +1 -0
- package/dist/es2017/core/stream/representation/utils/get_needed_segments.js +38 -30
- package/dist/es2017/core/stream/representation/utils/get_segment_priority.d.ts +1 -0
- package/dist/es2017/core/stream/representation/utils/get_segment_priority.d.ts.map +1 -0
- package/dist/es2017/core/stream/representation/utils/push_init_segment.d.ts +1 -0
- package/dist/es2017/core/stream/representation/utils/push_init_segment.d.ts.map +1 -0
- package/dist/es2017/core/stream/representation/utils/push_media_segment.d.ts +1 -0
- package/dist/es2017/core/stream/representation/utils/push_media_segment.d.ts.map +1 -0
- package/dist/es2017/core/types.d.ts +1 -0
- package/dist/es2017/core/types.d.ts.map +1 -0
- package/dist/es2017/default_config.d.ts +1 -0
- package/dist/es2017/default_config.d.ts.map +1 -0
- package/dist/es2017/errors/custom_loader_error.d.ts +1 -1
- package/dist/es2017/errors/custom_loader_error.d.ts.map +1 -0
- package/dist/es2017/errors/custom_loader_error.js +1 -2
- package/dist/es2017/errors/encrypted_media_error.d.ts +1 -1
- package/dist/es2017/errors/encrypted_media_error.d.ts.map +1 -0
- package/dist/es2017/errors/encrypted_media_error.js +1 -2
- package/dist/es2017/errors/error_codes.d.ts +1 -0
- package/dist/es2017/errors/error_codes.d.ts.map +1 -0
- package/dist/es2017/errors/error_message.d.ts +1 -0
- package/dist/es2017/errors/error_message.d.ts.map +1 -0
- package/dist/es2017/errors/format_error.d.ts +1 -0
- package/dist/es2017/errors/format_error.d.ts.map +1 -0
- package/dist/es2017/errors/index.d.ts +13 -6
- package/dist/es2017/errors/index.d.ts.map +1 -0
- package/dist/es2017/errors/index.js +2 -2
- package/dist/es2017/errors/is_known_error.d.ts +1 -0
- package/dist/es2017/errors/is_known_error.d.ts.map +1 -0
- package/dist/es2017/errors/media_error.d.ts +1 -1
- package/dist/es2017/errors/media_error.d.ts.map +1 -0
- package/dist/es2017/errors/media_error.js +1 -2
- package/dist/es2017/errors/network_error.d.ts +1 -1
- package/dist/es2017/errors/network_error.d.ts.map +1 -0
- package/dist/es2017/errors/network_error.js +1 -2
- package/dist/es2017/errors/other_error.d.ts +1 -1
- package/dist/es2017/errors/other_error.d.ts.map +1 -0
- package/dist/es2017/errors/other_error.js +1 -2
- package/dist/es2017/errors/source_buffer_error.d.ts +1 -1
- package/dist/es2017/errors/source_buffer_error.d.ts.map +1 -0
- package/dist/es2017/errors/source_buffer_error.js +1 -2
- package/dist/es2017/errors/worker_initialization_error.d.ts +1 -1
- package/dist/es2017/errors/worker_initialization_error.d.ts.map +1 -0
- package/dist/es2017/errors/worker_initialization_error.js +1 -2
- package/dist/es2017/experimental/features/index.d.ts +1 -0
- package/dist/es2017/experimental/features/index.d.ts.map +1 -0
- package/dist/es2017/experimental/features/local.d.ts +1 -0
- package/dist/es2017/experimental/features/local.d.ts.map +1 -0
- package/dist/es2017/experimental/features/metaplaylist.d.ts +1 -0
- package/dist/es2017/experimental/features/metaplaylist.d.ts.map +1 -0
- package/dist/es2017/experimental/features/multi_thread.d.ts +1 -0
- package/dist/es2017/experimental/features/multi_thread.d.ts.map +1 -0
- package/dist/es2017/experimental/index.d.ts +1 -0
- package/dist/es2017/experimental/index.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/dash.d.ts +1 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/dash.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts +1 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/index.d.ts +1 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/index.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +1 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +1 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +1 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/types.d.ts +1 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/types.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts +1 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.d.ts +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.js +2 -2
- package/dist/es2017/experimental/tools/createMetaplaylist/get_duration_from_manifest.d.ts +1 -0
- package/dist/es2017/experimental/tools/createMetaplaylist/get_duration_from_manifest.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/createMetaplaylist/index.d.ts +1 -0
- package/dist/es2017/experimental/tools/createMetaplaylist/index.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/index.d.ts +1 -0
- package/dist/es2017/experimental/tools/index.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/index.d.ts +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/index.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.d.ts +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/capabilities.d.ts +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/capabilities.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/index.d.ts +3 -2
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/index.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/log.d.ts +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/log.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.d.ts +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.d.ts +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/index.d.ts +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/index.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.d.ts +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.d.ts +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/types.d.ts +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/types.d.ts.map +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/utils.d.ts +1 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/utils.d.ts.map +1 -0
- package/dist/es2017/features/add_features.d.ts +1 -0
- package/dist/es2017/features/add_features.d.ts.map +1 -0
- package/dist/es2017/features/features_object.d.ts +1 -0
- package/dist/es2017/features/features_object.d.ts.map +1 -0
- package/dist/es2017/features/index.d.ts +4 -2
- package/dist/es2017/features/index.d.ts.map +1 -0
- package/dist/es2017/features/list/dash.d.ts +1 -0
- package/dist/es2017/features/list/dash.d.ts.map +1 -0
- package/dist/es2017/features/list/dash_wasm.d.ts +1 -0
- package/dist/es2017/features/list/dash_wasm.d.ts.map +1 -0
- package/dist/es2017/features/list/debug_element.d.ts +1 -0
- package/dist/es2017/features/list/debug_element.d.ts.map +1 -0
- package/dist/es2017/features/list/directfile.d.ts +1 -0
- package/dist/es2017/features/list/directfile.d.ts.map +1 -0
- package/dist/es2017/features/list/eme.d.ts +1 -0
- package/dist/es2017/features/list/eme.d.ts.map +1 -0
- package/dist/es2017/features/list/html_sami_parser.d.ts +1 -0
- package/dist/es2017/features/list/html_sami_parser.d.ts.map +1 -0
- package/dist/es2017/features/list/html_srt_parser.d.ts +1 -0
- package/dist/es2017/features/list/html_srt_parser.d.ts.map +1 -0
- package/dist/es2017/features/list/html_text_buffer.d.ts +1 -0
- package/dist/es2017/features/list/html_text_buffer.d.ts.map +1 -0
- package/dist/es2017/features/list/html_ttml_parser.d.ts +1 -0
- package/dist/es2017/features/list/html_ttml_parser.d.ts.map +1 -0
- package/dist/es2017/features/list/html_vtt_parser.d.ts +1 -0
- package/dist/es2017/features/list/html_vtt_parser.d.ts.map +1 -0
- package/dist/es2017/features/list/index.d.ts +1 -0
- package/dist/es2017/features/list/index.d.ts.map +1 -0
- package/dist/es2017/features/list/media_source_main.d.ts +1 -0
- package/dist/es2017/features/list/media_source_main.d.ts.map +1 -0
- package/dist/es2017/features/list/native_sami_parser.d.ts +1 -0
- package/dist/es2017/features/list/native_sami_parser.d.ts.map +1 -0
- package/dist/es2017/features/list/native_srt_parser.d.ts +1 -0
- package/dist/es2017/features/list/native_srt_parser.d.ts.map +1 -0
- package/dist/es2017/features/list/native_text_buffer.d.ts +1 -0
- package/dist/es2017/features/list/native_text_buffer.d.ts.map +1 -0
- package/dist/es2017/features/list/native_ttml_parser.d.ts +1 -0
- package/dist/es2017/features/list/native_ttml_parser.d.ts.map +1 -0
- package/dist/es2017/features/list/native_vtt_parser.d.ts +1 -0
- package/dist/es2017/features/list/native_vtt_parser.d.ts.map +1 -0
- package/dist/es2017/features/list/smooth.d.ts +1 -0
- package/dist/es2017/features/list/smooth.d.ts.map +1 -0
- package/dist/es2017/features/types.d.ts +1 -0
- package/dist/es2017/features/types.d.ts.map +1 -0
- package/dist/es2017/index.d.ts +1 -0
- package/dist/es2017/index.d.ts.map +1 -0
- package/dist/es2017/index.js +4 -0
- package/dist/es2017/log.d.ts +1 -0
- package/dist/es2017/log.d.ts.map +1 -0
- package/dist/es2017/main_thread/api/debug/buffer_graph.d.ts +4 -3
- package/dist/es2017/main_thread/api/debug/buffer_graph.d.ts.map +1 -0
- package/dist/es2017/main_thread/api/debug/buffer_graph.js +20 -9
- package/dist/es2017/main_thread/api/debug/buffer_size_graph.d.ts +1 -0
- package/dist/es2017/main_thread/api/debug/buffer_size_graph.d.ts.map +1 -0
- package/dist/es2017/main_thread/api/debug/constants.d.ts +1 -0
- package/dist/es2017/main_thread/api/debug/constants.d.ts.map +1 -0
- package/dist/es2017/main_thread/api/debug/index.d.ts +1 -0
- package/dist/es2017/main_thread/api/debug/index.d.ts.map +1 -0
- package/dist/es2017/main_thread/api/debug/modules/general_info.d.ts +1 -0
- package/dist/es2017/main_thread/api/debug/modules/general_info.d.ts.map +1 -0
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_content.d.ts +1 -0
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_content.d.ts.map +1 -0
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_content.js +24 -5
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_size.d.ts +1 -0
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_size.d.ts.map +1 -0
- package/dist/es2017/main_thread/api/debug/render.d.ts +1 -0
- package/dist/es2017/main_thread/api/debug/render.d.ts.map +1 -0
- package/dist/es2017/main_thread/api/debug/utils.d.ts +1 -0
- package/dist/es2017/main_thread/api/debug/utils.d.ts.map +1 -0
- package/dist/es2017/main_thread/api/index.d.ts +1 -0
- package/dist/es2017/main_thread/api/index.d.ts.map +1 -0
- package/dist/es2017/main_thread/api/option_utils.d.ts +1 -0
- package/dist/es2017/main_thread/api/option_utils.d.ts.map +1 -0
- package/dist/es2017/main_thread/api/public_api.d.ts +13 -8
- package/dist/es2017/main_thread/api/public_api.d.ts.map +1 -0
- package/dist/es2017/main_thread/api/public_api.js +15 -19
- package/dist/es2017/main_thread/api/utils.d.ts +1 -0
- package/dist/es2017/main_thread/api/utils.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/attach_media_keys.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/attach_media_keys.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/clear_on_stop.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/clear_on_stop.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/content_decryptor.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/content_decryptor.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/content_decryptor.js +12 -1
- package/dist/es2017/main_thread/decrypt/create_or_load_session.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/create_or_load_session.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/create_session.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/create_session.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/dispose_decryption_resources.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/dispose_decryption_resources.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/find_key_system.d.ts +9 -0
- package/dist/es2017/main_thread/decrypt/find_key_system.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/find_key_system.js +26 -1
- package/dist/es2017/main_thread/decrypt/get_key_system_configuration.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/get_key_system_configuration.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/get_media_keys.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/get_media_keys.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/index.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/index.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/init_media_keys.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/init_media_keys.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/session_events_listener.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/session_events_listener.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/session_events_listener.js +2 -2
- package/dist/es2017/main_thread/decrypt/set_server_certificate.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/set_server_certificate.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/types.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/types.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/utils/are_init_values_compatible.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/utils/are_init_values_compatible.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/utils/check_key_statuses.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/utils/check_key_statuses.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/utils/check_key_statuses.js +1 -1
- package/dist/es2017/main_thread/decrypt/utils/clean_old_loaded_sessions.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/utils/clean_old_loaded_sessions.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/utils/clean_old_stored_persistent_info.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/utils/clean_old_stored_persistent_info.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/utils/get_drm_system_id.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/utils/get_drm_system_id.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/utils/init_data_values_container.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/utils/init_data_values_container.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/utils/is_session_usable.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/utils/is_session_usable.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/utils/key_id_comparison.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/utils/key_id_comparison.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/utils/key_session_record.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/utils/key_session_record.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/utils/loaded_sessions_store.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/utils/loaded_sessions_store.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/utils/media_keys_infos_store.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/utils/media_keys_infos_store.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/utils/persistent_sessions_store.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/utils/persistent_sessions_store.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/utils/serializable_bytes.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/utils/serializable_bytes.d.ts.map +1 -0
- package/dist/es2017/main_thread/decrypt/utils/server_certificate_store.d.ts +1 -0
- package/dist/es2017/main_thread/decrypt/utils/server_certificate_store.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/directfile_content_initializer.d.ts +1 -0
- package/dist/es2017/main_thread/init/directfile_content_initializer.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/directfile_content_initializer.js +3 -1
- package/dist/es2017/main_thread/init/index.d.ts +3 -1
- package/dist/es2017/main_thread/init/index.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/index.js +1 -1
- package/dist/es2017/main_thread/init/media_source_content_initializer.d.ts +1 -0
- package/dist/es2017/main_thread/init/media_source_content_initializer.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/media_source_content_initializer.js +5 -1
- package/dist/es2017/main_thread/init/multi_thread_content_initializer.d.ts +6 -0
- package/dist/es2017/main_thread/init/multi_thread_content_initializer.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/multi_thread_content_initializer.js +39 -4
- package/dist/es2017/main_thread/init/send_message.d.ts +1 -0
- package/dist/es2017/main_thread/init/send_message.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/types.d.ts +4 -2
- package/dist/es2017/main_thread/init/types.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/utils/create_core_playback_observer.d.ts +1 -0
- package/dist/es2017/main_thread/init/utils/create_core_playback_observer.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/utils/create_media_source.d.ts +1 -0
- package/dist/es2017/main_thread/init/utils/create_media_source.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/utils/get_initial_time.d.ts +1 -0
- package/dist/es2017/main_thread/init/utils/get_initial_time.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/utils/get_loaded_reference.d.ts +1 -0
- package/dist/es2017/main_thread/init/utils/get_loaded_reference.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/utils/initial_seek_and_play.d.ts +1 -0
- package/dist/es2017/main_thread/init/utils/initial_seek_and_play.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/utils/initialize_content_decryption.d.ts +1 -0
- package/dist/es2017/main_thread/init/utils/initialize_content_decryption.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/utils/main_thread_text_displayer_interface.d.ts +1 -0
- package/dist/es2017/main_thread/init/utils/main_thread_text_displayer_interface.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/utils/rebuffering_controller.d.ts +1 -0
- package/dist/es2017/main_thread/init/utils/rebuffering_controller.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/utils/rebuffering_controller.js +3 -3
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/are_same_stream_events.d.ts +1 -0
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/are_same_stream_events.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/index.d.ts +1 -0
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/index.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +1 -0
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +2 -4
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts +1 -0
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/types.d.ts +1 -0
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/types.d.ts.map +1 -0
- package/dist/es2017/main_thread/init/utils/throw_on_media_error.d.ts +1 -0
- package/dist/es2017/main_thread/init/utils/throw_on_media_error.d.ts.map +1 -0
- package/dist/es2017/main_thread/text_displayer/html/html_parsers.d.ts +1 -0
- package/dist/es2017/main_thread/text_displayer/html/html_parsers.d.ts.map +1 -0
- package/dist/es2017/main_thread/text_displayer/html/html_text_displayer.d.ts +1 -0
- package/dist/es2017/main_thread/text_displayer/html/html_text_displayer.d.ts.map +1 -0
- package/dist/es2017/main_thread/text_displayer/html/html_text_displayer.js +7 -8
- package/dist/es2017/main_thread/text_displayer/html/index.d.ts +1 -0
- package/dist/es2017/main_thread/text_displayer/html/index.d.ts.map +1 -0
- package/dist/es2017/main_thread/text_displayer/html/text_track_cues_store.d.ts +1 -0
- package/dist/es2017/main_thread/text_displayer/html/text_track_cues_store.d.ts.map +1 -0
- package/dist/es2017/main_thread/text_displayer/html/text_track_cues_store.js +7 -7
- package/dist/es2017/main_thread/text_displayer/html/update_proportional_elements.d.ts +1 -0
- package/dist/es2017/main_thread/text_displayer/html/update_proportional_elements.d.ts.map +1 -0
- package/dist/es2017/main_thread/text_displayer/html/utils.d.ts +1 -0
- package/dist/es2017/main_thread/text_displayer/html/utils.d.ts.map +1 -0
- package/dist/es2017/main_thread/text_displayer/index.d.ts +3 -2
- package/dist/es2017/main_thread/text_displayer/index.d.ts.map +1 -0
- package/dist/es2017/main_thread/text_displayer/manual_time_ranges.d.ts +1 -0
- package/dist/es2017/main_thread/text_displayer/manual_time_ranges.d.ts.map +1 -0
- package/dist/es2017/main_thread/text_displayer/native/index.d.ts +1 -0
- package/dist/es2017/main_thread/text_displayer/native/index.d.ts.map +1 -0
- package/dist/es2017/main_thread/text_displayer/native/native_parsers.d.ts +1 -0
- package/dist/es2017/main_thread/text_displayer/native/native_parsers.d.ts.map +1 -0
- package/dist/es2017/main_thread/text_displayer/native/native_text_displayer.d.ts +1 -0
- package/dist/es2017/main_thread/text_displayer/native/native_text_displayer.d.ts.map +1 -0
- package/dist/es2017/main_thread/text_displayer/native/native_text_displayer.js +2 -2
- package/dist/es2017/main_thread/text_displayer/types.d.ts +1 -0
- package/dist/es2017/main_thread/text_displayer/types.d.ts.map +1 -0
- package/dist/es2017/main_thread/tracks_store/index.d.ts +1 -0
- package/dist/es2017/main_thread/tracks_store/index.d.ts.map +1 -0
- package/dist/es2017/main_thread/tracks_store/media_element_tracks_store.d.ts +1 -0
- package/dist/es2017/main_thread/tracks_store/media_element_tracks_store.d.ts.map +1 -0
- package/dist/es2017/main_thread/tracks_store/track_dispatcher.d.ts +1 -0
- package/dist/es2017/main_thread/tracks_store/track_dispatcher.d.ts.map +1 -0
- package/dist/es2017/main_thread/tracks_store/tracks_store.d.ts +1 -0
- package/dist/es2017/main_thread/tracks_store/tracks_store.d.ts.map +1 -0
- package/dist/es2017/main_thread/types.d.ts +1 -0
- package/dist/es2017/main_thread/types.d.ts.map +1 -0
- package/dist/es2017/manifest/classes/adaptation.d.ts +1 -0
- package/dist/es2017/manifest/classes/adaptation.d.ts.map +1 -0
- package/dist/es2017/manifest/classes/index.d.ts +12 -6
- package/dist/es2017/manifest/classes/index.d.ts.map +1 -0
- package/dist/es2017/manifest/classes/index.js +2 -6
- package/dist/es2017/manifest/classes/manifest.d.ts +2 -1
- package/dist/es2017/manifest/classes/manifest.d.ts.map +1 -0
- package/dist/es2017/manifest/classes/period.d.ts +1 -0
- package/dist/es2017/manifest/classes/period.d.ts.map +1 -0
- package/dist/es2017/manifest/classes/representation.d.ts +1 -0
- package/dist/es2017/manifest/classes/representation.d.ts.map +1 -0
- package/dist/es2017/manifest/classes/representation_index/index.d.ts +3 -1
- package/dist/es2017/manifest/classes/representation_index/index.d.ts.map +1 -0
- package/dist/es2017/manifest/classes/representation_index/index.js +1 -1
- package/dist/es2017/manifest/classes/representation_index/static.d.ts +1 -0
- package/dist/es2017/manifest/classes/representation_index/static.d.ts.map +1 -0
- package/dist/es2017/manifest/classes/representation_index/types.d.ts +1 -0
- package/dist/es2017/manifest/classes/representation_index/types.d.ts.map +1 -0
- package/dist/es2017/manifest/classes/types.d.ts +1 -0
- package/dist/es2017/manifest/classes/types.d.ts.map +1 -0
- package/dist/es2017/manifest/classes/update_period_in_place.d.ts +1 -0
- package/dist/es2017/manifest/classes/update_period_in_place.d.ts.map +1 -0
- package/dist/es2017/manifest/classes/update_periods.d.ts +1 -0
- package/dist/es2017/manifest/classes/update_periods.d.ts.map +1 -0
- package/dist/es2017/manifest/classes/utils.d.ts +1 -0
- package/dist/es2017/manifest/classes/utils.d.ts.map +1 -0
- package/dist/es2017/manifest/index.d.ts +3 -1
- package/dist/es2017/manifest/index.d.ts.map +1 -0
- package/dist/es2017/manifest/types.d.ts +1 -0
- package/dist/es2017/manifest/types.d.ts.map +1 -0
- package/dist/es2017/manifest/utils.d.ts +1 -0
- package/dist/es2017/manifest/utils.d.ts.map +1 -0
- package/dist/es2017/minimal.d.ts +1 -0
- package/dist/es2017/minimal.d.ts.map +1 -0
- package/dist/es2017/mse/index.d.ts +3 -1
- package/dist/es2017/mse/index.d.ts.map +1 -0
- package/dist/es2017/mse/main_codec_support_prober.d.ts +1 -0
- package/dist/es2017/mse/main_codec_support_prober.d.ts.map +1 -0
- package/dist/es2017/mse/main_media_source_interface.d.ts +1 -0
- package/dist/es2017/mse/main_media_source_interface.d.ts.map +1 -0
- package/dist/es2017/mse/types.d.ts +1 -0
- package/dist/es2017/mse/types.d.ts.map +1 -0
- package/dist/es2017/mse/utils/end_of_stream.d.ts +1 -0
- package/dist/es2017/mse/utils/end_of_stream.d.ts.map +1 -0
- package/dist/es2017/mse/utils/end_of_stream.js +6 -1
- package/dist/es2017/mse/utils/media_source_duration_updater.d.ts +1 -0
- package/dist/es2017/mse/utils/media_source_duration_updater.d.ts.map +1 -0
- package/dist/es2017/mse/worker_codec_support_prober.d.ts +1 -0
- package/dist/es2017/mse/worker_codec_support_prober.d.ts.map +1 -0
- package/dist/es2017/mse/worker_media_source_interface.d.ts +1 -0
- package/dist/es2017/mse/worker_media_source_interface.d.ts.map +1 -0
- package/dist/es2017/multithread_types.d.ts +22 -4
- package/dist/es2017/multithread_types.d.ts.map +1 -0
- package/dist/es2017/parsers/containers/isobmff/constants.d.ts +1 -0
- package/dist/es2017/parsers/containers/isobmff/constants.d.ts.map +1 -0
- package/dist/es2017/parsers/containers/isobmff/create_box.d.ts +1 -0
- package/dist/es2017/parsers/containers/isobmff/create_box.d.ts.map +1 -0
- package/dist/es2017/parsers/containers/isobmff/drm/index.d.ts +1 -0
- package/dist/es2017/parsers/containers/isobmff/drm/index.d.ts.map +1 -0
- package/dist/es2017/parsers/containers/isobmff/drm/playready.d.ts +1 -0
- package/dist/es2017/parsers/containers/isobmff/drm/playready.d.ts.map +1 -0
- package/dist/es2017/parsers/containers/isobmff/extract_complete_chunks.d.ts +1 -0
- package/dist/es2017/parsers/containers/isobmff/extract_complete_chunks.d.ts.map +1 -0
- package/dist/es2017/parsers/containers/isobmff/find_complete_box.d.ts +1 -0
- package/dist/es2017/parsers/containers/isobmff/find_complete_box.d.ts.map +1 -0
- package/dist/es2017/parsers/containers/isobmff/get_box.d.ts +1 -0
- package/dist/es2017/parsers/containers/isobmff/get_box.d.ts.map +1 -0
- package/dist/es2017/parsers/containers/isobmff/index.d.ts +3 -1
- package/dist/es2017/parsers/containers/isobmff/index.d.ts.map +1 -0
- package/dist/es2017/parsers/containers/isobmff/read.d.ts +1 -0
- package/dist/es2017/parsers/containers/isobmff/read.d.ts.map +1 -0
- package/dist/es2017/parsers/containers/isobmff/take_pssh_out.d.ts +1 -0
- package/dist/es2017/parsers/containers/isobmff/take_pssh_out.d.ts.map +1 -0
- package/dist/es2017/parsers/containers/isobmff/utils.d.ts +1 -0
- package/dist/es2017/parsers/containers/isobmff/utils.d.ts.map +1 -0
- package/dist/es2017/parsers/containers/isobmff/utils.js +3 -1
- package/dist/es2017/parsers/containers/matroska/index.d.ts +3 -1
- package/dist/es2017/parsers/containers/matroska/index.d.ts.map +1 -0
- package/dist/es2017/parsers/containers/matroska/utils.d.ts +1 -0
- package/dist/es2017/parsers/containers/matroska/utils.d.ts.map +1 -0
- package/dist/es2017/parsers/images/bif.d.ts +1 -0
- package/dist/es2017/parsers/images/bif.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/attach_trickmode_track.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/attach_trickmode_track.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/content_protection_parser.d.ts +99 -0
- package/dist/es2017/parsers/manifest/dash/common/content_protection_parser.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/content_protection_parser.js +198 -0
- package/dist/es2017/parsers/manifest/dash/common/convert_supplemental_codecs.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/convert_supplemental_codecs.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/get_clock_offset.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/get_clock_offset.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/get_hdr_information.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/get_hdr_information.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/get_periods_time_infos.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/get_periods_time_infos.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/index.d.ts +4 -2
- package/dist/es2017/parsers/manifest/dash/common/index.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/base.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/base.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_init_segment.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_init_segment.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/index.d.ts +11 -5
- package/dist/es2017/parsers/manifest/dash/common/indexes/index.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/list.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/list.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/template.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/template.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/index.d.ts +4 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/index.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/tokens.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/tokens.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/utils.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/utils.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/infer_adaptation_type.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/infer_adaptation_type.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.d.ts +4 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.js +1 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_availability_start_time.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_availability_start_time.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_mpd.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_mpd.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_mpd.js +9 -4
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.d.ts +4 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.js +5 -3
- package/dist/es2017/parsers/manifest/dash/common/parse_representation_index.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_representation_index.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_representations.d.ts +4 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_representations.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_representations.js +9 -47
- package/dist/es2017/parsers/manifest/dash/common/resolve_base_urls.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/common/resolve_base_urls.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/index.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/index.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/AdaptationSet.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/AdaptationSet.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/BaseURL.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/BaseURL.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/ContentComponent.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/ContentComponent.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/ContentProtection.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/ContentProtection.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/ContentProtection.js +7 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/EventStream.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/EventStream.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Initialization.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Initialization.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/MPD.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/MPD.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/MPD.js +12 -1
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Period.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Period.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Period.js +15 -1
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Representation.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Representation.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentBase.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentBase.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentList.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentList.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTemplate.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTemplate.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTimeline.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTimeline.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentURL.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentURL.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/utils.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/utils.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/utils.js +1 -2
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/parse_from_xml_string.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/parse_from_xml_string.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/index.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/index.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/index.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/index.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/AdaptationSet.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/AdaptationSet.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/BaseURL.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/BaseURL.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/ContentComponent.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/ContentComponent.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/ContentProtection.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/ContentProtection.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/ContentProtection.js +7 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/EventStream.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/EventStream.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/Initialization.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/Initialization.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/MPD.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/MPD.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/MPD.js +12 -1
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/Period.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/Period.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/Period.js +15 -1
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/Representation.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/Representation.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/SegmentBase.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/SegmentBase.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/SegmentList.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/SegmentList.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/SegmentTemplate.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/SegmentTemplate.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/SegmentTimeline.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/SegmentTimeline.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/SegmentURL.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/SegmentURL.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/utils.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/utils.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/utils.js +1 -2
- package/dist/es2017/parsers/manifest/dash/native-parser/parse_from_document.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/parse_from_document.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/node_parser_types.d.ts +9 -0
- package/dist/es2017/parsers/manifest/dash/node_parser_types.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/parsers_types.d.ts +2 -1
- package/dist/es2017/parsers/manifest/dash/parsers_types.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/index.d.ts +4 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/index.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +6 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +14 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +14 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/types.d.ts +3 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/types.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/utils.d.ts +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/utils.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/index.d.ts +1 -0
- package/dist/es2017/parsers/manifest/index.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/local/index.d.ts +2 -1
- package/dist/es2017/parsers/manifest/local/index.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/local/parse_local_manifest.d.ts +1 -0
- package/dist/es2017/parsers/manifest/local/parse_local_manifest.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/local/representation_index.d.ts +1 -0
- package/dist/es2017/parsers/manifest/local/representation_index.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/local/types.d.ts +1 -0
- package/dist/es2017/parsers/manifest/local/types.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/metaplaylist/index.d.ts +4 -2
- package/dist/es2017/parsers/manifest/metaplaylist/index.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts +1 -0
- package/dist/es2017/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/metaplaylist/representation_index.d.ts +1 -0
- package/dist/es2017/parsers/manifest/metaplaylist/representation_index.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/smooth/create_parser.d.ts +1 -0
- package/dist/es2017/parsers/manifest/smooth/create_parser.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/smooth/get_codecs.d.ts +1 -0
- package/dist/es2017/parsers/manifest/smooth/get_codecs.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/smooth/index.d.ts +5 -2
- package/dist/es2017/parsers/manifest/smooth/index.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/smooth/parse_C_nodes.d.ts +1 -0
- package/dist/es2017/parsers/manifest/smooth/parse_C_nodes.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/smooth/parse_protection_node.d.ts +1 -0
- package/dist/es2017/parsers/manifest/smooth/parse_protection_node.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/smooth/representation_index.d.ts +1 -0
- package/dist/es2017/parsers/manifest/smooth/representation_index.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts +1 -0
- package/dist/es2017/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/smooth/utils/add_segment_infos.d.ts +1 -0
- package/dist/es2017/parsers/manifest/smooth/utils/add_segment_infos.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/smooth/utils/parseBoolean.d.ts +1 -0
- package/dist/es2017/parsers/manifest/smooth/utils/parseBoolean.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/smooth/utils/reduceChildren.d.ts +1 -0
- package/dist/es2017/parsers/manifest/smooth/utils/reduceChildren.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/smooth/utils/tokens.d.ts +1 -0
- package/dist/es2017/parsers/manifest/smooth/utils/tokens.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/types.d.ts +1 -0
- package/dist/es2017/parsers/manifest/types.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/utils/check_manifest_ids.d.ts +1 -0
- package/dist/es2017/parsers/manifest/utils/check_manifest_ids.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/utils/clear_timeline_from_position.d.ts +1 -0
- package/dist/es2017/parsers/manifest/utils/clear_timeline_from_position.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/utils/get_first_time_from_adaptation.d.ts +1 -0
- package/dist/es2017/parsers/manifest/utils/get_first_time_from_adaptation.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/utils/get_last_time_from_adaptation.d.ts +1 -0
- package/dist/es2017/parsers/manifest/utils/get_last_time_from_adaptation.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/utils/get_maximum_positions.d.ts +1 -0
- package/dist/es2017/parsers/manifest/utils/get_maximum_positions.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/utils/get_minimum_position.d.ts +1 -0
- package/dist/es2017/parsers/manifest/utils/get_minimum_position.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/utils/index_helpers.d.ts +1 -0
- package/dist/es2017/parsers/manifest/utils/index_helpers.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/utils/update_segment_timeline.d.ts +1 -0
- package/dist/es2017/parsers/manifest/utils/update_segment_timeline.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/index.d.ts +2 -1
- package/dist/es2017/parsers/texttracks/index.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/sami/html.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/sami/html.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/sami/native.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/sami/native.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/srt/find_end_of_cue_block.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/srt/find_end_of_cue_block.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/srt/get_cue_blocks.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/srt/get_cue_blocks.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/srt/html.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/srt/html.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/srt/native.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/srt/native.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/srt/parse_cue.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/srt/parse_cue.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/srt/parse_timestamp.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/srt/parse_timestamp.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/get_parameters.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/get_parameters.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/get_styling.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/get_styling.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/get_time_delimiters.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/get_time_delimiters.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_extent.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_extent.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_font_size.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_font_size.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_line_height.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_line_height.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_origin.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_origin.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_padding.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_padding.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/create_element.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/create_element.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/generate_css_test_outline.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/generate_css_test_outline.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/index.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/index.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/parse_cue.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/parse_cue.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/ttml_color_to_css_color.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/html/ttml_color_to_css_color.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/native/index.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/native/index.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/native/parse_cue.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/native/parse_cue.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/parse_ttml.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/parse_ttml.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/regexps.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/regexps.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/time_parsing.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/time_parsing.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/ttml/xml_utils.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/ttml/xml_utils.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/types.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/types.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/get_cue_blocks.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/get_cue_blocks.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/get_style_blocks.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/get_style_blocks.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/create_default_style_elements.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/create_default_style_elements.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/create_style_attribute.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/create_style_attribute.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/create_styled_element.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/create_styled_element.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/index.d.ts +2 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/index.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_style_block.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_style_block.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_to_div.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_to_div.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/to_html.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/to_html.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/index.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/index.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_vtt_to_cues.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_vtt_to_cues.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/to_native_cue.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/to_native_cue.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/parse_cue_block.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/parse_cue_block.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/parse_timestamp.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/parse_timestamp.d.ts.map +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/utils.d.ts +1 -0
- package/dist/es2017/parsers/texttracks/webvtt/utils.d.ts.map +1 -0
- package/dist/es2017/playback_observer/index.d.ts +1 -0
- package/dist/es2017/playback_observer/index.d.ts.map +1 -0
- package/dist/es2017/playback_observer/media_element_playback_observer.d.ts +1 -0
- package/dist/es2017/playback_observer/media_element_playback_observer.d.ts.map +1 -0
- package/dist/es2017/playback_observer/types.d.ts +1 -0
- package/dist/es2017/playback_observer/types.d.ts.map +1 -0
- package/dist/es2017/playback_observer/utils/generate_read_only_observer.d.ts +1 -0
- package/dist/es2017/playback_observer/utils/generate_read_only_observer.d.ts.map +1 -0
- package/dist/es2017/playback_observer/utils/observation_position.d.ts +12 -0
- package/dist/es2017/playback_observer/utils/observation_position.d.ts.map +1 -0
- package/dist/es2017/playback_observer/utils/observation_position.js +11 -0
- package/dist/es2017/playback_observer/worker_playback_observer.d.ts +1 -0
- package/dist/es2017/playback_observer/worker_playback_observer.d.ts.map +1 -0
- package/dist/es2017/public_types.d.ts +3 -2
- package/dist/es2017/public_types.d.ts.map +1 -0
- package/dist/es2017/tools/TextTrackRenderer/index.d.ts +4 -2
- package/dist/es2017/tools/TextTrackRenderer/index.d.ts.map +1 -0
- package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.d.ts +1 -0
- package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.d.ts.map +1 -0
- package/dist/es2017/tools/index.d.ts +1 -0
- package/dist/es2017/tools/index.d.ts.map +1 -0
- package/dist/es2017/tools/parseBIFThumbnails/index.d.ts +1 -0
- package/dist/es2017/tools/parseBIFThumbnails/index.d.ts.map +1 -0
- package/dist/es2017/tools/string_utils/index.d.ts +1 -0
- package/dist/es2017/tools/string_utils/index.d.ts.map +1 -0
- package/dist/es2017/transports/dash/add_segment_integrity_checks_to_loader.d.ts +1 -0
- package/dist/es2017/transports/dash/add_segment_integrity_checks_to_loader.d.ts.map +1 -0
- package/dist/es2017/transports/dash/construct_segment_url.d.ts +1 -0
- package/dist/es2017/transports/dash/construct_segment_url.d.ts.map +1 -0
- package/dist/es2017/transports/dash/get_events_out_of_emsgs.d.ts +1 -0
- package/dist/es2017/transports/dash/get_events_out_of_emsgs.d.ts.map +1 -0
- package/dist/es2017/transports/dash/index.d.ts +1 -0
- package/dist/es2017/transports/dash/index.d.ts.map +1 -0
- package/dist/es2017/transports/dash/init_segment_loader.d.ts +1 -0
- package/dist/es2017/transports/dash/init_segment_loader.d.ts.map +1 -0
- package/dist/es2017/transports/dash/low_latency_segment_loader.d.ts +1 -0
- package/dist/es2017/transports/dash/low_latency_segment_loader.d.ts.map +1 -0
- package/dist/es2017/transports/dash/low_latency_segment_loader.js +1 -0
- package/dist/es2017/transports/dash/manifest_parser.d.ts +1 -0
- package/dist/es2017/transports/dash/manifest_parser.d.ts.map +1 -0
- package/dist/es2017/transports/dash/pipelines.d.ts +1 -0
- package/dist/es2017/transports/dash/pipelines.d.ts.map +1 -0
- package/dist/es2017/transports/dash/segment_loader.d.ts +1 -0
- package/dist/es2017/transports/dash/segment_loader.d.ts.map +1 -0
- package/dist/es2017/transports/dash/segment_parser.d.ts +1 -0
- package/dist/es2017/transports/dash/segment_parser.d.ts.map +1 -0
- package/dist/es2017/transports/dash/text_loader.d.ts +1 -0
- package/dist/es2017/transports/dash/text_loader.d.ts.map +1 -0
- package/dist/es2017/transports/dash/text_parser.d.ts +1 -0
- package/dist/es2017/transports/dash/text_parser.d.ts.map +1 -0
- package/dist/es2017/transports/index.d.ts +1 -0
- package/dist/es2017/transports/index.d.ts.map +1 -0
- package/dist/es2017/transports/local/index.d.ts +1 -0
- package/dist/es2017/transports/local/index.d.ts.map +1 -0
- package/dist/es2017/transports/local/pipelines.d.ts +1 -0
- package/dist/es2017/transports/local/pipelines.d.ts.map +1 -0
- package/dist/es2017/transports/local/segment_loader.d.ts +1 -0
- package/dist/es2017/transports/local/segment_loader.d.ts.map +1 -0
- package/dist/es2017/transports/local/segment_parser.d.ts +1 -0
- package/dist/es2017/transports/local/segment_parser.d.ts.map +1 -0
- package/dist/es2017/transports/local/text_parser.d.ts +1 -0
- package/dist/es2017/transports/local/text_parser.d.ts.map +1 -0
- package/dist/es2017/transports/metaplaylist/index.d.ts +1 -0
- package/dist/es2017/transports/metaplaylist/index.d.ts.map +1 -0
- package/dist/es2017/transports/metaplaylist/manifest_loader.d.ts +1 -0
- package/dist/es2017/transports/metaplaylist/manifest_loader.d.ts.map +1 -0
- package/dist/es2017/transports/metaplaylist/pipelines.d.ts +1 -0
- package/dist/es2017/transports/metaplaylist/pipelines.d.ts.map +1 -0
- package/dist/es2017/transports/smooth/extract_timings_infos.d.ts +1 -0
- package/dist/es2017/transports/smooth/extract_timings_infos.d.ts.map +1 -0
- package/dist/es2017/transports/smooth/index.d.ts +1 -0
- package/dist/es2017/transports/smooth/index.d.ts.map +1 -0
- package/dist/es2017/transports/smooth/is_mp4_embedded_track.d.ts +1 -0
- package/dist/es2017/transports/smooth/is_mp4_embedded_track.d.ts.map +1 -0
- package/dist/es2017/transports/smooth/isobmff/create_audio_init_segment.d.ts +1 -0
- package/dist/es2017/transports/smooth/isobmff/create_audio_init_segment.d.ts.map +1 -0
- package/dist/es2017/transports/smooth/isobmff/create_boxes.d.ts +1 -0
- package/dist/es2017/transports/smooth/isobmff/create_boxes.d.ts.map +1 -0
- package/dist/es2017/transports/smooth/isobmff/create_init_segment.d.ts +1 -0
- package/dist/es2017/transports/smooth/isobmff/create_init_segment.d.ts.map +1 -0
- package/dist/es2017/transports/smooth/isobmff/create_traf_box.d.ts +1 -0
- package/dist/es2017/transports/smooth/isobmff/create_traf_box.d.ts.map +1 -0
- package/dist/es2017/transports/smooth/isobmff/create_video_init_segment.d.ts +1 -0
- package/dist/es2017/transports/smooth/isobmff/create_video_init_segment.d.ts.map +1 -0
- package/dist/es2017/transports/smooth/isobmff/get_aaces_header.d.ts +1 -0
- package/dist/es2017/transports/smooth/isobmff/get_aaces_header.d.ts.map +1 -0
- package/dist/es2017/transports/smooth/isobmff/index.d.ts +5 -2
- package/dist/es2017/transports/smooth/isobmff/index.d.ts.map +1 -0
- package/dist/es2017/transports/smooth/isobmff/parse_tfrf.d.ts +1 -0
- package/dist/es2017/transports/smooth/isobmff/parse_tfrf.d.ts.map +1 -0
- package/dist/es2017/transports/smooth/isobmff/parse_tfxd.d.ts +1 -0
- package/dist/es2017/transports/smooth/isobmff/parse_tfxd.d.ts.map +1 -0
- package/dist/es2017/transports/smooth/isobmff/patch_segment.d.ts +1 -0
- package/dist/es2017/transports/smooth/isobmff/patch_segment.d.ts.map +1 -0
- package/dist/es2017/transports/smooth/pipelines.d.ts +1 -0
- package/dist/es2017/transports/smooth/pipelines.d.ts.map +1 -0
- package/dist/es2017/transports/smooth/segment_loader.d.ts +1 -0
- package/dist/es2017/transports/smooth/segment_loader.d.ts.map +1 -0
- package/dist/es2017/transports/smooth/utils.d.ts +1 -0
- package/dist/es2017/transports/smooth/utils.d.ts.map +1 -0
- package/dist/es2017/transports/types.d.ts +1 -0
- package/dist/es2017/transports/types.d.ts.map +1 -0
- package/dist/es2017/transports/utils/byte_range.d.ts +1 -0
- package/dist/es2017/transports/utils/byte_range.d.ts.map +1 -0
- package/dist/es2017/transports/utils/call_custom_manifest_loader.d.ts +1 -0
- package/dist/es2017/transports/utils/call_custom_manifest_loader.d.ts.map +1 -0
- package/dist/es2017/transports/utils/check_isobmff_integrity.d.ts +1 -0
- package/dist/es2017/transports/utils/check_isobmff_integrity.d.ts.map +1 -0
- package/dist/es2017/transports/utils/generate_manifest_loader.d.ts +1 -0
- package/dist/es2017/transports/utils/generate_manifest_loader.d.ts.map +1 -0
- package/dist/es2017/transports/utils/get_isobmff_timing_infos.d.ts +1 -0
- package/dist/es2017/transports/utils/get_isobmff_timing_infos.d.ts.map +1 -0
- package/dist/es2017/transports/utils/infer_segment_container.d.ts +1 -0
- package/dist/es2017/transports/utils/infer_segment_container.d.ts.map +1 -0
- package/dist/es2017/transports/utils/parse_text_track.d.ts +1 -0
- package/dist/es2017/transports/utils/parse_text_track.d.ts.map +1 -0
- package/dist/es2017/utils/are_arrays_of_numbers_equal.d.ts +1 -0
- package/dist/es2017/utils/are_arrays_of_numbers_equal.d.ts.map +1 -0
- package/dist/es2017/utils/are_codecs_compatible.d.ts +1 -0
- package/dist/es2017/utils/are_codecs_compatible.d.ts.map +1 -0
- package/dist/es2017/utils/array_find.d.ts +1 -0
- package/dist/es2017/utils/array_find.d.ts.map +1 -0
- package/dist/es2017/utils/array_find_index.d.ts +1 -0
- package/dist/es2017/utils/array_find_index.d.ts.map +1 -0
- package/dist/es2017/utils/array_includes.d.ts +1 -0
- package/dist/es2017/utils/array_includes.d.ts.map +1 -0
- package/dist/es2017/utils/assert.d.ts +1 -1
- package/dist/es2017/utils/assert.d.ts.map +1 -0
- package/dist/es2017/utils/assert.js +1 -2
- package/dist/es2017/utils/base64.d.ts +1 -0
- package/dist/es2017/utils/base64.d.ts.map +1 -0
- package/dist/es2017/utils/byte_parsing.d.ts +1 -0
- package/dist/es2017/utils/byte_parsing.d.ts.map +1 -0
- package/dist/es2017/utils/cancellable_sleep.d.ts +1 -0
- package/dist/es2017/utils/cancellable_sleep.d.ts.map +1 -0
- package/dist/es2017/utils/create_cancellable_promise.d.ts +1 -0
- package/dist/es2017/utils/create_cancellable_promise.d.ts.map +1 -0
- package/dist/es2017/utils/deep_merge.d.ts +1 -0
- package/dist/es2017/utils/deep_merge.d.ts.map +1 -0
- package/dist/es2017/utils/event_emitter.d.ts +1 -0
- package/dist/es2017/utils/event_emitter.d.ts.map +1 -0
- package/dist/es2017/utils/flat_map.d.ts +1 -0
- package/dist/es2017/utils/flat_map.d.ts.map +1 -0
- package/dist/es2017/utils/get_fuzzed_delay.d.ts +1 -0
- package/dist/es2017/utils/get_fuzzed_delay.d.ts.map +1 -0
- package/dist/es2017/utils/global_scope.d.ts +1 -0
- package/dist/es2017/utils/global_scope.d.ts.map +1 -0
- package/dist/es2017/utils/hash_buffer.d.ts +1 -0
- package/dist/es2017/utils/hash_buffer.d.ts.map +1 -0
- package/dist/es2017/utils/id_generator.d.ts +1 -0
- package/dist/es2017/utils/id_generator.d.ts.map +1 -0
- package/dist/es2017/utils/is_node.d.ts +1 -0
- package/dist/es2017/utils/is_node.d.ts.map +1 -0
- package/dist/es2017/utils/is_non_empty_string.d.ts +1 -0
- package/dist/es2017/utils/is_non_empty_string.d.ts.map +1 -0
- package/dist/es2017/utils/is_null_or_undefined.d.ts +1 -0
- package/dist/es2017/utils/is_null_or_undefined.d.ts.map +1 -0
- package/dist/es2017/utils/is_worker.d.ts +1 -0
- package/dist/es2017/utils/is_worker.d.ts.map +1 -0
- package/dist/es2017/utils/languages/ISO_639-1_to_ISO_639-3.d.ts +1 -0
- package/dist/es2017/utils/languages/ISO_639-1_to_ISO_639-3.d.ts.map +1 -0
- package/dist/es2017/utils/languages/ISO_639-2_to_ISO_639-3.d.ts +1 -0
- package/dist/es2017/utils/languages/ISO_639-2_to_ISO_639-3.d.ts.map +1 -0
- package/dist/es2017/utils/languages/index.d.ts +5 -2
- package/dist/es2017/utils/languages/index.d.ts.map +1 -0
- package/dist/es2017/utils/languages/index.js +2 -2
- package/dist/es2017/utils/languages/normalize.d.ts +3 -1
- package/dist/es2017/utils/languages/normalize.d.ts.map +1 -0
- package/dist/es2017/utils/languages/normalize.js +5 -2
- package/dist/es2017/utils/logger.d.ts +1 -0
- package/dist/es2017/utils/logger.d.ts.map +1 -0
- package/dist/es2017/utils/monotonic_timestamp.d.ts +1 -0
- package/dist/es2017/utils/monotonic_timestamp.d.ts.map +1 -0
- package/dist/es2017/utils/noop.d.ts +1 -0
- package/dist/es2017/utils/noop.d.ts.map +1 -0
- package/dist/es2017/utils/object_assign.d.ts +1 -0
- package/dist/es2017/utils/object_assign.d.ts.map +1 -0
- package/dist/es2017/utils/object_values.d.ts +1 -0
- package/dist/es2017/utils/object_values.d.ts.map +1 -0
- package/dist/es2017/utils/queue_microtask.d.ts +1 -0
- package/dist/es2017/utils/queue_microtask.d.ts.map +1 -0
- package/dist/es2017/utils/ranges.d.ts +3 -1
- package/dist/es2017/utils/ranges.d.ts.map +1 -0
- package/dist/es2017/utils/reference.d.ts +1 -0
- package/dist/es2017/utils/reference.d.ts.map +1 -0
- package/dist/es2017/utils/request/fetch.d.ts +1 -0
- package/dist/es2017/utils/request/fetch.d.ts.map +1 -0
- package/dist/es2017/utils/request/fetch.js +14 -0
- package/dist/es2017/utils/request/index.d.ts +9 -4
- package/dist/es2017/utils/request/index.d.ts.map +1 -0
- package/dist/es2017/utils/request/index.js +3 -3
- package/dist/es2017/utils/request/request_error.d.ts +1 -1
- package/dist/es2017/utils/request/request_error.d.ts.map +1 -0
- package/dist/es2017/utils/request/request_error.js +13 -12
- package/dist/es2017/utils/request/xhr.d.ts +1 -0
- package/dist/es2017/utils/request/xhr.d.ts.map +1 -0
- package/dist/es2017/utils/request/xhr.js +17 -0
- package/dist/es2017/utils/resolve_url.d.ts +14 -10
- package/dist/es2017/utils/resolve_url.d.ts.map +1 -0
- package/dist/es2017/utils/resolve_url.js +206 -65
- package/dist/es2017/utils/retry_promise_with_backoff.d.ts +1 -0
- package/dist/es2017/utils/retry_promise_with_backoff.d.ts.map +1 -0
- package/dist/es2017/utils/sleep.d.ts +1 -0
- package/dist/es2017/utils/sleep.d.ts.map +1 -0
- package/dist/es2017/utils/slice_uint8array.d.ts +1 -0
- package/dist/es2017/utils/slice_uint8array.d.ts.map +1 -0
- package/dist/es2017/utils/sorted_list.d.ts +1 -0
- package/dist/es2017/utils/sorted_list.d.ts.map +1 -0
- package/dist/es2017/utils/starts_with.d.ts +1 -0
- package/dist/es2017/utils/starts_with.d.ts.map +1 -0
- package/dist/es2017/utils/string_parsing.d.ts +2 -1
- package/dist/es2017/utils/string_parsing.d.ts.map +1 -0
- package/dist/es2017/utils/string_parsing.js +1 -1
- package/dist/es2017/utils/sync_or_async.d.ts +1 -0
- package/dist/es2017/utils/sync_or_async.d.ts.map +1 -0
- package/dist/es2017/utils/task_canceller.d.ts +1 -1
- package/dist/es2017/utils/task_canceller.d.ts.map +1 -0
- package/dist/es2017/utils/task_canceller.js +2 -2
- package/dist/es2017/utils/warn_once.d.ts +1 -0
- package/dist/es2017/utils/warn_once.d.ts.map +1 -0
- package/dist/es2017/utils/weak_map_memory.d.ts +1 -0
- package/dist/es2017/utils/weak_map_memory.d.ts.map +1 -0
- package/dist/es2017/utils/wrapInPromise.d.ts +1 -0
- package/dist/es2017/utils/wrapInPromise.d.ts.map +1 -0
- package/dist/es2017/utils/xml-parser.d.ts +1 -0
- package/dist/es2017/utils/xml-parser.d.ts.map +1 -0
- package/dist/es2017/worker_entry_point.d.ts +1 -0
- package/dist/es2017/worker_entry_point.d.ts.map +1 -0
- package/dist/mpd-parser.wasm +0 -0
- package/dist/rx-player.js +17 -55660
- package/dist/worker.js +7 -7
- package/package.json +23 -45
- package/src/README.md +364 -0
- package/src/__GENERATED_CODE/embedded_dash_wasm.ts +3 -0
- package/src/__GENERATED_CODE/embedded_worker.ts +3 -0
- package/src/__GENERATED_CODE/index.ts +2 -0
- package/src/compat/README.md +35 -0
- package/src/compat/__tests__/add_text_track.test.ts +114 -0
- package/src/compat/__tests__/browser_compatibility_types.test.ts +118 -0
- package/src/compat/__tests__/browser_version.test.ts +72 -0
- package/src/compat/__tests__/can_patch_isobmff.test.ts +33 -0
- package/src/compat/__tests__/can_rely_on_video_visibility_and_size.test.ts +61 -0
- package/src/compat/__tests__/can_reuse_media_keys.test.ts +36 -0
- package/src/compat/__tests__/change_source_buffer_type.test.ts +39 -0
- package/src/compat/__tests__/clear_element_src.test.ts +239 -0
- package/src/compat/__tests__/enable_audio_track.test.ts +336 -0
- package/src/compat/__tests__/generate_init_data.test.ts +20 -0
- package/src/compat/__tests__/is_codec_supported.test.ts +65 -0
- package/src/compat/__tests__/is_seeking_approximate.test.ts +33 -0
- package/src/compat/__tests__/is_vtt_cue.test.ts +57 -0
- package/src/compat/__tests__/make_vtt_cue.test.ts +80 -0
- package/src/compat/__tests__/patch_webkit_source_buffer.test.ts +97 -0
- package/src/compat/__tests__/remove_cue.test.ts +217 -0
- package/src/compat/__tests__/should_favour_custom_safari_EME.test.ts +112 -0
- package/src/compat/__tests__/should_reload_media_source_on_decipherability_update.test.ts +38 -0
- package/src/compat/__tests__/should_renew_media_key_system_access.test.ts +40 -0
- package/src/compat/__tests__/should_unset_media_keys.test.ts +37 -0
- package/src/compat/__tests__/should_validate_metadata.test.ts +40 -0
- package/src/compat/__tests__/should_wait_for_data_before_loaded.test.ts +66 -0
- package/src/compat/__tests__/should_wait_for_have_enough_data.test.ts +37 -0
- package/src/compat/add_class_name.ts +42 -0
- package/src/compat/add_text_track.ts +56 -0
- package/src/compat/browser_compatibility_types.ts +215 -0
- package/src/compat/browser_detection.ts +181 -0
- package/src/compat/browser_version.ts +44 -0
- package/src/compat/can_patch_isobmff.ts +30 -0
- package/src/compat/can_rely_on_request_media_key_system_access.ts +42 -0
- package/src/compat/can_rely_on_video_visibility_and_size.ts +52 -0
- package/src/compat/can_reuse_media_keys.ts +17 -0
- package/src/compat/can_seek_directly_after_loaded_metadata.ts +9 -0
- package/src/compat/change_source_buffer_type.ts +69 -0
- package/src/compat/clear_element_src.ts +55 -0
- package/src/compat/eme/close_session.ts +113 -0
- package/src/compat/eme/constants.ts +21 -0
- package/src/compat/eme/custom_key_system_access.ts +67 -0
- package/src/compat/eme/custom_media_keys/ie11_media_keys.ts +200 -0
- package/src/compat/eme/custom_media_keys/index.ts +22 -0
- package/src/compat/eme/custom_media_keys/moz_media_keys_constructor.ts +86 -0
- package/src/compat/eme/custom_media_keys/ms_media_keys_constructor.ts +67 -0
- package/src/compat/eme/custom_media_keys/old_webkit_media_keys.ts +242 -0
- package/src/compat/eme/custom_media_keys/types.ts +61 -0
- package/src/compat/eme/custom_media_keys/webkit_media_keys.ts +306 -0
- package/src/compat/eme/custom_media_keys/webkit_media_keys_constructor.ts +48 -0
- package/src/compat/eme/eme-api-implementation.ts +321 -0
- package/src/compat/eme/generate_key_request.ts +161 -0
- package/src/compat/eme/get_init_data.ts +159 -0
- package/src/compat/eme/get_uuid_kid_from_keystatus_kid.ts +35 -0
- package/src/compat/eme/get_webkit_fairplay_initdata.ts +72 -0
- package/src/compat/eme/index.ts +39 -0
- package/src/compat/eme/load_session.ts +73 -0
- package/src/compat/eme/set_media_keys.ts +49 -0
- package/src/compat/enable_audio_track.ts +33 -0
- package/src/compat/event_listeners.ts +633 -0
- package/src/compat/generate_init_data.ts +69 -0
- package/src/compat/get_start_date.ts +46 -0
- package/src/compat/has_issues_with_high_media_source_duration.ts +27 -0
- package/src/compat/has_mse_in_worker.ts +6 -0
- package/src/compat/has_webassembly.ts +7 -0
- package/src/compat/has_worker_api.ts +15 -0
- package/src/compat/is_codec_supported.ts +67 -0
- package/src/compat/is_debug_mode_enabled.ts +12 -0
- package/src/compat/is_seeking_approximate.ts +32 -0
- package/src/compat/is_vtt_cue.ts +31 -0
- package/src/compat/make_vtt_cue.ts +51 -0
- package/src/compat/may_media_element_fail_on_undecipherable_data.ts +18 -0
- package/src/compat/on_height_width_change.ts +126 -0
- package/src/compat/patch_webkit_source_buffer.ts +93 -0
- package/src/compat/remove_cue.ts +64 -0
- package/src/compat/should_await_set_media_keys.ts +20 -0
- package/src/compat/should_favour_custom_safari_EME.ts +29 -0
- package/src/compat/should_reload_media_source_on_decipherability_update.ts +31 -0
- package/src/compat/should_renew_media_key_system_access.ts +26 -0
- package/src/compat/should_unset_media_keys.ts +27 -0
- package/src/compat/should_validate_metadata.ts +27 -0
- package/src/compat/should_wait_for_data_before_loaded.ts +33 -0
- package/src/compat/should_wait_for_have_enough_data.ts +17 -0
- package/src/config.ts +26 -0
- package/src/core/README.md +53 -0
- package/src/core/adaptive/README.md +154 -0
- package/src/core/adaptive/__tests__/buffer_based_chooser.test.ts +539 -0
- package/src/core/adaptive/adaptive_representation_selector.ts +850 -0
- package/src/core/adaptive/buffer_based_chooser.ts +266 -0
- package/src/core/adaptive/guess_based_chooser.ts +324 -0
- package/src/core/adaptive/index.ts +47 -0
- package/src/core/adaptive/network_analyzer.ts +437 -0
- package/src/core/adaptive/utils/__tests__/bandwith_estimator.test.ts +117 -0
- package/src/core/adaptive/utils/__tests__/ewma.test.ts +64 -0
- package/src/core/adaptive/utils/__tests__/filter_by_bitrate.test.ts +41 -0
- package/src/core/adaptive/utils/__tests__/filter_by_resolution.test.ts +83 -0
- package/src/core/adaptive/utils/__tests__/get_buffer_levels.test.ts +35 -0
- package/src/core/adaptive/utils/__tests__/select_optimal_representation.test.ts +48 -0
- package/src/core/adaptive/utils/bandwidth_estimator.ts +86 -0
- package/src/core/adaptive/utils/ewma.ts +58 -0
- package/src/core/adaptive/utils/filter_by_bitrate.ts +46 -0
- package/src/core/adaptive/utils/filter_by_resolution.ts +65 -0
- package/src/core/adaptive/utils/get_buffer_levels.ts +55 -0
- package/src/core/adaptive/utils/last_estimate_storage.ts +79 -0
- package/src/core/adaptive/utils/pending_requests_store.ts +157 -0
- package/src/core/adaptive/utils/representation_score_calculator.ts +174 -0
- package/src/core/adaptive/utils/select_optimal_representation.ts +44 -0
- package/src/core/fetchers/README.md +83 -0
- package/src/core/fetchers/cdn_prioritizer.ts +209 -0
- package/src/core/fetchers/index.ts +36 -0
- package/src/core/fetchers/manifest/index.ts +25 -0
- package/src/core/fetchers/manifest/manifest_fetcher.ts +836 -0
- package/src/core/fetchers/segment/__tests__/initialization_segment_cache.test.ts +301 -0
- package/src/core/fetchers/segment/__tests__/task_prioritizer.test.ts +942 -0
- package/src/core/fetchers/segment/index.ts +22 -0
- package/src/core/fetchers/segment/initialization_segment_cache.ts +65 -0
- package/src/core/fetchers/segment/prioritized_segment_fetcher.ts +105 -0
- package/src/core/fetchers/segment/segment_fetcher.ts +528 -0
- package/src/core/fetchers/segment/segment_fetcher_creator.ts +122 -0
- package/src/core/fetchers/segment/task_prioritizer.ts +461 -0
- package/src/core/fetchers/utils/error_selector.ts +34 -0
- package/src/core/fetchers/utils/schedule_request.ts +445 -0
- package/src/core/main/README.md +18 -0
- package/src/core/main/common/DecipherabilityFreezeDetector.ts +147 -0
- package/src/core/main/common/content_time_boundaries_observer.ts +656 -0
- package/src/core/main/common/create_content_time_boundaries_observer.ts +71 -0
- package/src/core/main/common/get_buffered_data_per_media_buffer.ts +49 -0
- package/src/core/main/worker/content_preparer.ts +422 -0
- package/src/core/main/worker/globals.ts +38 -0
- package/src/core/main/worker/index.ts +2 -0
- package/src/core/main/worker/send_message.ts +26 -0
- package/src/core/main/worker/track_choice_setter.ts +170 -0
- package/src/core/main/worker/worker_main.ts +929 -0
- package/src/core/main/worker/worker_text_displayer_interface.ts +162 -0
- package/src/core/segment_sinks/README.md +203 -0
- package/src/core/segment_sinks/garbage_collector.ts +197 -0
- package/src/core/segment_sinks/implementations/audio_video/audio_video_segment_buffer.ts +372 -0
- package/src/core/segment_sinks/implementations/audio_video/index.ts +18 -0
- package/src/core/segment_sinks/implementations/index.ts +22 -0
- package/src/core/segment_sinks/implementations/text/index.ts +5 -0
- package/src/core/segment_sinks/implementations/text/text_segment_buffer.ts +242 -0
- package/src/core/segment_sinks/implementations/types.ts +347 -0
- package/src/core/segment_sinks/implementations/utils/manual_time_ranges.ts +76 -0
- package/src/core/segment_sinks/index.ts +66 -0
- package/src/core/segment_sinks/inventory/buffered_history.ts +126 -0
- package/src/core/segment_sinks/inventory/index.ts +25 -0
- package/src/core/segment_sinks/inventory/segment_inventory.ts +1386 -0
- package/src/core/segment_sinks/inventory/types.ts +43 -0
- package/src/core/segment_sinks/inventory/utils.ts +59 -0
- package/src/core/segment_sinks/segment_buffers_store.ts +422 -0
- package/src/core/stream/README.md +56 -0
- package/src/core/stream/adaptation/adaptation_stream.ts +495 -0
- package/src/core/stream/adaptation/get_representations_switch_strategy.ts +171 -0
- package/src/core/stream/adaptation/index.ts +20 -0
- package/src/core/stream/adaptation/types.ts +210 -0
- package/src/core/stream/index.ts +44 -0
- package/src/core/stream/orchestrator/README.md +337 -0
- package/src/core/stream/orchestrator/get_time_ranges_for_content.ts +75 -0
- package/src/core/stream/orchestrator/index.ts +31 -0
- package/src/core/stream/orchestrator/stream_orchestrator.ts +787 -0
- package/src/core/stream/period/index.ts +20 -0
- package/src/core/stream/period/period_stream.ts +579 -0
- package/src/core/stream/period/types.ts +124 -0
- package/src/core/stream/period/utils/get_adaptation_switch_strategy.ts +196 -0
- package/src/core/stream/representation/README.md +22 -0
- package/src/core/stream/representation/index.ts +20 -0
- package/src/core/stream/representation/representation_stream.ts +511 -0
- package/src/core/stream/representation/types.ts +339 -0
- package/src/core/stream/representation/utils/append_segment_to_buffer.ts +94 -0
- package/src/core/stream/representation/utils/check_for_discontinuity.ts +325 -0
- package/src/core/stream/representation/utils/downloading_queue.ts +644 -0
- package/src/core/stream/representation/utils/get_buffer_status.ts +307 -0
- package/src/core/stream/representation/utils/get_needed_segments.ts +671 -0
- package/src/core/stream/representation/utils/get_segment_priority.ts +43 -0
- package/src/core/stream/representation/utils/push_init_segment.ts +88 -0
- package/src/core/stream/representation/utils/push_media_segment.ts +119 -0
- package/src/core/types.ts +53 -0
- package/src/default_config.ts +1196 -0
- package/src/errors/README.md +17 -0
- package/src/errors/__tests__/encrypted_media_error.test.ts +30 -0
- package/src/errors/__tests__/error_message.test.ts +8 -0
- package/src/errors/__tests__/format_error.test.ts +54 -0
- package/src/errors/__tests__/is_known_error.test.ts +39 -0
- package/src/errors/__tests__/media_error.test.ts +39 -0
- package/src/errors/__tests__/network_error.test.ts +53 -0
- package/src/errors/__tests__/other_error.test.ts +38 -0
- package/src/errors/custom_loader_error.ts +45 -0
- package/src/errors/encrypted_media_error.ts +98 -0
- package/src/errors/error_codes.ts +146 -0
- package/src/errors/error_message.ts +25 -0
- package/src/errors/format_error.ts +41 -0
- package/src/errors/index.ts +53 -0
- package/src/errors/is_known_error.ts +37 -0
- package/src/errors/media_error.ts +109 -0
- package/src/errors/network_error.ts +91 -0
- package/src/errors/other_error.ts +65 -0
- package/src/errors/source_buffer_error.ts +59 -0
- package/src/errors/worker_initialization_error.ts +32 -0
- package/src/experimental/README.md +19 -0
- package/src/experimental/features/__tests__/index.test.ts +11 -0
- package/src/experimental/features/__tests__/local.test.ts +21 -0
- package/src/experimental/features/__tests__/metaplaylist.test.ts +21 -0
- package/src/experimental/features/__tests__/multi_thread.test.ts +18 -0
- package/src/experimental/features/index.ts +19 -0
- package/src/experimental/features/local.ts +29 -0
- package/src/experimental/features/metaplaylist.ts +29 -0
- package/src/experimental/features/multi_thread.ts +13 -0
- package/src/experimental/index.ts +3 -0
- package/src/experimental/tools/VideoThumbnailLoader/features/dash.ts +23 -0
- package/src/experimental/tools/VideoThumbnailLoader/features/metaplaylist.ts +23 -0
- package/src/experimental/tools/VideoThumbnailLoader/index.ts +19 -0
- package/src/experimental/tools/VideoThumbnailLoader/load_and_push_segment.ts +75 -0
- package/src/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.ts +83 -0
- package/src/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.ts +50 -0
- package/src/experimental/tools/VideoThumbnailLoader/types.ts +32 -0
- package/src/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.ts +438 -0
- package/src/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.ts +34 -0
- package/src/experimental/tools/createMetaplaylist/get_duration_from_manifest.ts +136 -0
- package/src/experimental/tools/createMetaplaylist/index.ts +75 -0
- package/src/experimental/tools/index.ts +21 -0
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/capabilities.test.ts +24 -0
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/DRMInfos.test.ts +116 -0
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/HDCPPolicy.test.ts +127 -0
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/decodingInfos.test.ts +372 -0
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/defaultCodecFinder.test.ts +137 -0
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/mediaContentType.test.ts +274 -0
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/mediaDisplayInfos.test.ts +174 -0
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/utils.test.ts +242 -0
- package/src/experimental/tools/mediaCapabilitiesProber/api/index.ts +192 -0
- package/src/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.ts +143 -0
- package/src/experimental/tools/mediaCapabilitiesProber/capabilities.ts +129 -0
- package/src/experimental/tools/mediaCapabilitiesProber/index.ts +20 -0
- package/src/experimental/tools/mediaCapabilitiesProber/log.ts +21 -0
- package/src/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.ts +71 -0
- package/src/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.ts +103 -0
- package/src/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.ts +106 -0
- package/src/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.ts +70 -0
- package/src/experimental/tools/mediaCapabilitiesProber/probers/index.ts +40 -0
- package/src/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.ts +71 -0
- package/src/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.ts +102 -0
- package/src/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.ts +111 -0
- package/src/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.ts +61 -0
- package/src/experimental/tools/mediaCapabilitiesProber/types.ts +75 -0
- package/src/experimental/tools/mediaCapabilitiesProber/utils.ts +112 -0
- package/src/features/README.md +10 -0
- package/src/features/__tests__/add_features.test.ts +57 -0
- package/src/features/add_features.ts +38 -0
- package/src/features/features_object.ts +38 -0
- package/src/features/index.ts +38 -0
- package/src/features/list/__tests__/dash.test.ts +27 -0
- package/src/features/list/__tests__/dash_wasm.test.ts +32 -0
- package/src/features/list/__tests__/debug_element.test.ts +13 -0
- package/src/features/list/__tests__/directfile.test.ts +19 -0
- package/src/features/list/__tests__/eme.test.ts +13 -0
- package/src/features/list/__tests__/html_sami_parser.test.ts +20 -0
- package/src/features/list/__tests__/html_srt_parser.test.ts +19 -0
- package/src/features/list/__tests__/html_text_buffer.test.ts +13 -0
- package/src/features/list/__tests__/html_ttml_parser.test.ts +19 -0
- package/src/features/list/__tests__/html_vtt_parser.test.ts +19 -0
- package/src/features/list/__tests__/index.test.ts +56 -0
- package/src/features/list/__tests__/native_sami_parser.test.ts +20 -0
- package/src/features/list/__tests__/native_srt_parser.test.ts +19 -0
- package/src/features/list/__tests__/native_text_buffer.test.ts +13 -0
- package/src/features/list/__tests__/native_ttml_parser.test.ts +19 -0
- package/src/features/list/__tests__/native_vtt_parser.test.ts +19 -0
- package/src/features/list/__tests__/smooth.test.ts +21 -0
- package/src/features/list/dash.ts +37 -0
- package/src/features/list/dash_wasm.ts +41 -0
- package/src/features/list/debug_element.ts +13 -0
- package/src/features/list/directfile.ts +31 -0
- package/src/features/list/eme.ts +29 -0
- package/src/features/list/html_sami_parser.ts +31 -0
- package/src/features/list/html_srt_parser.ts +31 -0
- package/src/features/list/html_text_buffer.ts +29 -0
- package/src/features/list/html_ttml_parser.ts +31 -0
- package/src/features/list/html_vtt_parser.ts +31 -0
- package/src/features/list/index.ts +33 -0
- package/src/features/list/media_source_main.ts +13 -0
- package/src/features/list/native_sami_parser.ts +31 -0
- package/src/features/list/native_srt_parser.ts +31 -0
- package/src/features/list/native_text_buffer.ts +29 -0
- package/src/features/list/native_ttml_parser.ts +31 -0
- package/src/features/list/native_vtt_parser.ts +31 -0
- package/src/features/list/smooth.ts +35 -0
- package/src/features/types.ts +187 -0
- package/src/globals.dev.d.ts +17 -0
- package/src/globals.prod.d.ts +17 -0
- package/src/index.ts +67 -0
- package/src/log.ts +22 -0
- package/src/main_thread/README.md +42 -0
- package/src/main_thread/api/README.md +32 -0
- package/src/main_thread/api/__tests__/option_utils.test.ts +1094 -0
- package/src/main_thread/api/__tests__/public_api.test.ts +481 -0
- package/src/main_thread/api/__tests__/utils.test.ts +176 -0
- package/src/main_thread/api/debug/buffer_graph.ts +243 -0
- package/src/main_thread/api/debug/buffer_size_graph.ts +127 -0
- package/src/main_thread/api/debug/constants.ts +2 -0
- package/src/main_thread/api/debug/index.ts +3 -0
- package/src/main_thread/api/debug/modules/general_info.ts +214 -0
- package/src/main_thread/api/debug/modules/segment_buffer_content.ts +186 -0
- package/src/main_thread/api/debug/modules/segment_buffer_size.ts +43 -0
- package/src/main_thread/api/debug/render.ts +40 -0
- package/src/main_thread/api/debug/utils.ts +100 -0
- package/src/main_thread/api/index.ts +18 -0
- package/src/main_thread/api/option_utils.ts +462 -0
- package/src/main_thread/api/public_api.ts +3295 -0
- package/src/main_thread/api/utils.ts +255 -0
- package/src/main_thread/decrypt/README.md +28 -0
- package/src/main_thread/decrypt/__tests__/__global__/content_decryptor.test.ts +45 -0
- package/src/main_thread/decrypt/__tests__/__global__/find_key_system.test.ts +60 -0
- package/src/main_thread/decrypt/__tests__/__global__/get_license.test.ts +488 -0
- package/src/main_thread/decrypt/__tests__/__global__/init_data.test.ts +733 -0
- package/src/main_thread/decrypt/__tests__/__global__/media_key_system_access.test.ts +833 -0
- package/src/main_thread/decrypt/__tests__/__global__/media_keys.test.ts +362 -0
- package/src/main_thread/decrypt/__tests__/__global__/server_certificate.test.ts +260 -0
- package/src/main_thread/decrypt/__tests__/__global__/utils.ts +525 -0
- package/src/main_thread/decrypt/attach_media_keys.ts +117 -0
- package/src/main_thread/decrypt/clear_on_stop.ts +48 -0
- package/src/main_thread/decrypt/content_decryptor.ts +1274 -0
- package/src/main_thread/decrypt/create_or_load_session.ts +138 -0
- package/src/main_thread/decrypt/create_session.ts +213 -0
- package/src/main_thread/decrypt/dispose_decryption_resources.ts +39 -0
- package/src/main_thread/decrypt/find_key_system.ts +430 -0
- package/src/main_thread/decrypt/get_key_system_configuration.ts +36 -0
- package/src/main_thread/decrypt/get_media_keys.ts +144 -0
- package/src/main_thread/decrypt/index.ts +29 -0
- package/src/main_thread/decrypt/init_media_keys.ts +53 -0
- package/src/main_thread/decrypt/session_events_listener.ts +360 -0
- package/src/main_thread/decrypt/set_server_certificate.ts +107 -0
- package/src/main_thread/decrypt/types.ts +411 -0
- package/src/main_thread/decrypt/utils/__tests__/are_init_values_compatible.test.ts +162 -0
- package/src/main_thread/decrypt/utils/__tests__/clean_old_loaded_sessions.test.ts +152 -0
- package/src/main_thread/decrypt/utils/__tests__/clean_old_stored_persistent_info.test.ts +128 -0
- package/src/main_thread/decrypt/utils/are_init_values_compatible.ts +162 -0
- package/src/main_thread/decrypt/utils/check_key_statuses.ts +230 -0
- package/src/main_thread/decrypt/utils/clean_old_loaded_sessions.ts +45 -0
- package/src/main_thread/decrypt/utils/clean_old_stored_persistent_info.ts +50 -0
- package/src/main_thread/decrypt/utils/get_drm_system_id.ts +41 -0
- package/src/main_thread/decrypt/utils/init_data_values_container.ts +129 -0
- package/src/main_thread/decrypt/utils/is_session_usable.ts +67 -0
- package/src/main_thread/decrypt/utils/key_id_comparison.ts +57 -0
- package/src/main_thread/decrypt/utils/key_session_record.ts +172 -0
- package/src/main_thread/decrypt/utils/loaded_sessions_store.ts +511 -0
- package/src/main_thread/decrypt/utils/media_keys_infos_store.ts +84 -0
- package/src/main_thread/decrypt/utils/persistent_sessions_store.ts +373 -0
- package/src/main_thread/decrypt/utils/serializable_bytes.ts +56 -0
- package/src/main_thread/decrypt/utils/server_certificate_store.ts +146 -0
- package/src/main_thread/init/README.md +90 -0
- package/src/main_thread/init/directfile_content_initializer.ts +331 -0
- package/src/main_thread/init/index.ts +22 -0
- package/src/main_thread/init/media_source_content_initializer.ts +1147 -0
- package/src/main_thread/init/multi_thread_content_initializer.ts +2060 -0
- package/src/main_thread/init/send_message.ts +15 -0
- package/src/main_thread/init/types.ts +250 -0
- package/src/main_thread/init/utils/__tests__/are_same_stream_events.test.ts +55 -0
- package/src/main_thread/init/utils/__tests__/refresh_scheduled_events_list.test.ts +73 -0
- package/src/main_thread/init/utils/create_core_playback_observer.ts +196 -0
- package/src/main_thread/init/utils/create_media_source.ts +123 -0
- package/src/main_thread/init/utils/get_initial_time.ts +169 -0
- package/src/main_thread/init/utils/get_loaded_reference.ts +85 -0
- package/src/main_thread/init/utils/initial_seek_and_play.ts +287 -0
- package/src/main_thread/init/utils/initialize_content_decryption.ts +201 -0
- package/src/main_thread/init/utils/main_thread_text_displayer_interface.ts +59 -0
- package/src/main_thread/init/utils/rebuffering_controller.ts +637 -0
- package/src/main_thread/init/utils/stream_events_emitter/are_same_stream_events.ts +38 -0
- package/src/main_thread/init/utils/stream_events_emitter/index.ts +19 -0
- package/src/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.ts +93 -0
- package/src/main_thread/init/utils/stream_events_emitter/stream_events_emitter.ts +259 -0
- package/src/main_thread/init/utils/stream_events_emitter/types.ts +46 -0
- package/src/main_thread/init/utils/throw_on_media_error.ts +76 -0
- package/src/main_thread/text_displayer/html/__tests__/text_track_cues_store.test.ts +310 -0
- package/src/main_thread/text_displayer/html/__tests__/utils.test.ts +377 -0
- package/src/main_thread/text_displayer/html/html_parsers.ts +35 -0
- package/src/main_thread/text_displayer/html/html_text_displayer.ts +436 -0
- package/src/main_thread/text_displayer/html/index.ts +2 -0
- package/src/main_thread/text_displayer/html/text_track_cues_store.ts +380 -0
- package/src/main_thread/text_displayer/html/update_proportional_elements.ts +76 -0
- package/src/main_thread/text_displayer/html/utils.ts +166 -0
- package/src/main_thread/text_displayer/index.ts +3 -0
- package/src/main_thread/text_displayer/manual_time_ranges.ts +60 -0
- package/src/main_thread/text_displayer/native/index.ts +2 -0
- package/src/main_thread/text_displayer/native/native_parsers.ts +31 -0
- package/src/main_thread/text_displayer/native/native_text_displayer.ts +254 -0
- package/src/main_thread/text_displayer/types.ts +74 -0
- package/src/main_thread/tracks_store/README.md +21 -0
- package/src/main_thread/tracks_store/__tests__/media_element_tracks_store.test.ts +172 -0
- package/src/main_thread/tracks_store/index.ts +22 -0
- package/src/main_thread/tracks_store/media_element_tracks_store.ts +811 -0
- package/src/main_thread/tracks_store/track_dispatcher.ts +296 -0
- package/src/main_thread/tracks_store/tracks_store.ts +1493 -0
- package/src/main_thread/types.ts +15 -0
- package/src/manifest/README.md +11 -0
- package/src/manifest/classes/README.md +55 -0
- package/src/manifest/classes/__tests__/adaptation.test.ts +390 -0
- package/src/manifest/classes/__tests__/manifest.test.ts +523 -0
- package/src/manifest/classes/__tests__/period.test.ts +967 -0
- package/src/manifest/classes/__tests__/representation.test.ts +482 -0
- package/src/manifest/classes/__tests__/update_period_in_place.test.ts +1318 -0
- package/src/manifest/classes/__tests__/update_periods.test.ts +959 -0
- package/src/manifest/classes/adaptation.ts +286 -0
- package/src/manifest/classes/index.ts +53 -0
- package/src/manifest/classes/manifest.ts +707 -0
- package/src/manifest/classes/period.ts +267 -0
- package/src/manifest/classes/representation.ts +487 -0
- package/src/manifest/classes/representation_index/__tests__/static.test.ts +64 -0
- package/src/manifest/classes/representation_index/index.ts +26 -0
- package/src/manifest/classes/representation_index/static.ts +169 -0
- package/src/manifest/classes/representation_index/types.ts +458 -0
- package/src/manifest/classes/types.ts +30 -0
- package/src/manifest/classes/update_period_in_place.ts +163 -0
- package/src/manifest/classes/update_periods.ts +279 -0
- package/src/manifest/classes/utils.ts +71 -0
- package/src/manifest/index.ts +45 -0
- package/src/manifest/types.ts +407 -0
- package/src/manifest/utils.ts +672 -0
- package/src/minimal.ts +47 -0
- package/src/mse/README.md +30 -0
- package/src/mse/index.ts +7 -0
- package/src/mse/main_codec_support_prober.ts +52 -0
- package/src/mse/main_media_source_interface.ts +595 -0
- package/src/mse/types.ts +314 -0
- package/src/mse/utils/end_of_stream.ts +126 -0
- package/src/mse/utils/media_source_duration_updater.ts +366 -0
- package/src/mse/worker_codec_support_prober.ts +75 -0
- package/src/mse/worker_media_source_interface.ts +471 -0
- package/src/multithread_types.ts +999 -0
- package/src/parsers/README.md +20 -0
- package/src/parsers/containers/isobmff/__tests__/find_complete_box.test.ts +42 -0
- package/src/parsers/containers/isobmff/constants.ts +24 -0
- package/src/parsers/containers/isobmff/create_box.ts +72 -0
- package/src/parsers/containers/isobmff/drm/index.ts +17 -0
- package/src/parsers/containers/isobmff/drm/playready.ts +38 -0
- package/src/parsers/containers/isobmff/extract_complete_chunks.ts +74 -0
- package/src/parsers/containers/isobmff/find_complete_box.ts +58 -0
- package/src/parsers/containers/isobmff/get_box.ts +276 -0
- package/src/parsers/containers/isobmff/index.ts +40 -0
- package/src/parsers/containers/isobmff/read.ts +96 -0
- package/src/parsers/containers/isobmff/take_pssh_out.ts +97 -0
- package/src/parsers/containers/isobmff/utils.ts +576 -0
- package/src/parsers/containers/matroska/index.ts +18 -0
- package/src/parsers/containers/matroska/utils.ts +325 -0
- package/src/parsers/images/bif.ts +145 -0
- package/src/parsers/manifest/dash/common/__tests__/attach_trickmode_track.test.ts +48 -0
- package/src/parsers/manifest/dash/common/__tests__/convert_supplemental_codecs.test.ts +34 -0
- package/src/parsers/manifest/dash/common/__tests__/flatten_overlapping_period.test.ts +143 -0
- package/src/parsers/manifest/dash/common/__tests__/get_clock_offset.test.ts +52 -0
- package/src/parsers/manifest/dash/common/__tests__/get_http_utc-timing_url.test.ts +150 -0
- package/src/parsers/manifest/dash/common/__tests__/get_periods_time_infos.test.ts +91 -0
- package/src/parsers/manifest/dash/common/__tests__/manifest_bounds_calculator.test.ts +265 -0
- package/src/parsers/manifest/dash/common/__tests__/parse_availability_start_time.test.ts +65 -0
- package/src/parsers/manifest/dash/common/attach_trickmode_track.ts +54 -0
- package/src/parsers/manifest/dash/common/content_protection_parser.ts +255 -0
- package/src/parsers/manifest/dash/common/convert_supplemental_codecs.ts +25 -0
- package/src/parsers/manifest/dash/common/flatten_overlapping_periods.ts +89 -0
- package/src/parsers/manifest/dash/common/get_clock_offset.ts +40 -0
- package/src/parsers/manifest/dash/common/get_hdr_information.ts +86 -0
- package/src/parsers/manifest/dash/common/get_http_utc-timing_url.ts +44 -0
- package/src/parsers/manifest/dash/common/get_minimum_and_maximum_positions.ts +41 -0
- package/src/parsers/manifest/dash/common/get_periods_time_infos.ts +93 -0
- package/src/parsers/manifest/dash/common/index.ts +37 -0
- package/src/parsers/manifest/dash/common/indexes/__tests__/tokens.test.ts +48 -0
- package/src/parsers/manifest/dash/common/indexes/base.ts +451 -0
- package/src/parsers/manifest/dash/common/indexes/get_init_segment.ts +58 -0
- package/src/parsers/manifest/dash/common/indexes/get_segments_from_timeline.ts +149 -0
- package/src/parsers/manifest/dash/common/indexes/index.ts +37 -0
- package/src/parsers/manifest/dash/common/indexes/list.ts +361 -0
- package/src/parsers/manifest/dash/common/indexes/template.ts +675 -0
- package/src/parsers/manifest/dash/common/indexes/timeline/__tests__/parse_s_element.test.ts +180 -0
- package/src/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.ts +57 -0
- package/src/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.ts +115 -0
- package/src/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.ts +73 -0
- package/src/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.ts +171 -0
- package/src/parsers/manifest/dash/common/indexes/timeline/index.ts +20 -0
- package/src/parsers/manifest/dash/common/indexes/timeline/parse_s_element.ts +118 -0
- package/src/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.ts +1095 -0
- package/src/parsers/manifest/dash/common/indexes/tokens.ts +127 -0
- package/src/parsers/manifest/dash/common/indexes/utils.ts +30 -0
- package/src/parsers/manifest/dash/common/infer_adaptation_type.ts +140 -0
- package/src/parsers/manifest/dash/common/manifest_bounds_calculator.ts +174 -0
- package/src/parsers/manifest/dash/common/parse_adaptation_sets.ts +573 -0
- package/src/parsers/manifest/dash/common/parse_availability_start_time.ts +37 -0
- package/src/parsers/manifest/dash/common/parse_mpd.ts +428 -0
- package/src/parsers/manifest/dash/common/parse_periods.ts +388 -0
- package/src/parsers/manifest/dash/common/parse_representation_index.ts +215 -0
- package/src/parsers/manifest/dash/common/parse_representations.ts +305 -0
- package/src/parsers/manifest/dash/common/resolve_base_urls.ts +58 -0
- package/src/parsers/manifest/dash/fast-js-parser/__tests__/parse_from_xml_string.test.ts +25 -0
- package/src/parsers/manifest/dash/fast-js-parser/index.ts +18 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/AdaptationSet.ts +427 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/BaseURL.ts +36 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/ContentComponent.ts +50 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/ContentProtection.ts +101 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/EventStream.ts +123 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/Initialization.ts +52 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/MPD.ts +228 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/Period.ts +191 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/Representation.ts +262 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentBase.ts +134 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentList.ts +52 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTemplate.ts +104 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTimeline.ts +37 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentURL.ts +66 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/__tests__/AdaptationSet.test.ts +519 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/__tests__/ContentComponent.test.ts +48 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/__tests__/ContentProtection.test.ts +180 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/__tests__/Initialization.test.ts +105 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/__tests__/SegmentURL.test.ts +145 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/__tests__/utils.test.ts +188 -0
- package/src/parsers/manifest/dash/fast-js-parser/node_parsers/utils.ts +399 -0
- package/src/parsers/manifest/dash/fast-js-parser/parse_from_xml_string.ts +135 -0
- package/src/parsers/manifest/dash/index.ts +22 -0
- package/src/parsers/manifest/dash/native-parser/__tests__/parse_from_document.test.ts +28 -0
- package/src/parsers/manifest/dash/native-parser/index.ts +18 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/AdaptationSet.ts +425 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/BaseURL.ts +34 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/ContentComponent.ts +49 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/ContentProtection.ts +99 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/EventStream.ts +118 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/Initialization.ts +47 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/MPD.ts +198 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/Period.ts +163 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/Representation.ts +257 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/SegmentBase.ts +129 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/SegmentList.ts +50 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/SegmentTemplate.ts +102 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/SegmentTimeline.ts +33 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/SegmentURL.ts +61 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/__tests__/AdaptationSet.test.ts +617 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/__tests__/ContentComponent.test.ts +52 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/__tests__/ContentProtection.test.ts +246 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/__tests__/Initialization.test.ts +116 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/__tests__/SegmentTimeline.test.ts +104 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/__tests__/SegmentURL.test.ts +165 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/__tests__/utils.test.ts +201 -0
- package/src/parsers/manifest/dash/native-parser/node_parsers/utils.ts +385 -0
- package/src/parsers/manifest/dash/native-parser/parse_from_document.ts +125 -0
- package/src/parsers/manifest/dash/node_parser_types.ts +440 -0
- package/src/parsers/manifest/dash/parsers_types.ts +90 -0
- package/src/parsers/manifest/dash/wasm-parser/Cargo.lock +25 -0
- package/src/parsers/manifest/dash/wasm-parser/Cargo.toml +16 -0
- package/src/parsers/manifest/dash/wasm-parser/README.md +243 -0
- package/src/parsers/manifest/dash/wasm-parser/index.ts +20 -0
- package/src/parsers/manifest/dash/wasm-parser/rs/errors.rs +28 -0
- package/src/parsers/manifest/dash/wasm-parser/rs/events.rs +382 -0
- package/src/parsers/manifest/dash/wasm-parser/rs/lib.rs +85 -0
- package/src/parsers/manifest/dash/wasm-parser/rs/processor/attributes.rs +416 -0
- package/src/parsers/manifest/dash/wasm-parser/rs/processor/mod.rs +472 -0
- package/src/parsers/manifest/dash/wasm-parser/rs/processor/s_element.rs +72 -0
- package/src/parsers/manifest/dash/wasm-parser/rs/reader.rs +17 -0
- package/src/parsers/manifest/dash/wasm-parser/rs/reportable.rs +147 -0
- package/src/parsers/manifest/dash/wasm-parser/rs/utils.rs +266 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.ts +495 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.ts +376 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.ts +38 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.ts +52 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.ts +64 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.ts +137 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/MPD.ts +191 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/Period.ts +208 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/Representation.ts +252 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.ts +44 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.ts +111 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.ts +56 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.ts +132 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.ts +63 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/XLink.ts +64 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/index.ts +17 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/root.ts +69 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/parsers_stack.ts +82 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/types.ts +299 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/utils.ts +48 -0
- package/src/parsers/manifest/index.ts +17 -0
- package/src/parsers/manifest/local/index.ts +25 -0
- package/src/parsers/manifest/local/parse_local_manifest.ts +180 -0
- package/src/parsers/manifest/local/representation_index.ts +254 -0
- package/src/parsers/manifest/local/types.ts +293 -0
- package/src/parsers/manifest/metaplaylist/index.ts +25 -0
- package/src/parsers/manifest/metaplaylist/metaplaylist_parser.ts +366 -0
- package/src/parsers/manifest/metaplaylist/representation_index.ts +274 -0
- package/src/parsers/manifest/smooth/create_parser.ts +723 -0
- package/src/parsers/manifest/smooth/get_codecs.ts +52 -0
- package/src/parsers/manifest/smooth/index.ts +23 -0
- package/src/parsers/manifest/smooth/parse_C_nodes.ts +68 -0
- package/src/parsers/manifest/smooth/parse_protection_node.ts +83 -0
- package/src/parsers/manifest/smooth/representation_index.ts +547 -0
- package/src/parsers/manifest/smooth/shared_smooth_segment_timeline.ts +246 -0
- package/src/parsers/manifest/smooth/utils/add_segment_infos.ts +78 -0
- package/src/parsers/manifest/smooth/utils/parseBoolean.ts +29 -0
- package/src/parsers/manifest/smooth/utils/reduceChildren.ts +36 -0
- package/src/parsers/manifest/smooth/utils/tokens.ts +44 -0
- package/src/parsers/manifest/types.ts +403 -0
- package/src/parsers/manifest/utils/__tests__/get_first_time_from_adaptations.test.ts +224 -0
- package/src/parsers/manifest/utils/__tests__/get_last_time_from_adaptation.test.ts +224 -0
- package/src/parsers/manifest/utils/__tests__/index_helpers.test.ts +25 -0
- package/src/parsers/manifest/utils/__tests__/update_segment_timeline.test.ts +613 -0
- package/src/parsers/manifest/utils/check_manifest_ids.ts +79 -0
- package/src/parsers/manifest/utils/clear_timeline_from_position.ts +77 -0
- package/src/parsers/manifest/utils/get_first_time_from_adaptation.ts +49 -0
- package/src/parsers/manifest/utils/get_last_time_from_adaptation.ts +51 -0
- package/src/parsers/manifest/utils/get_maximum_positions.ts +88 -0
- package/src/parsers/manifest/utils/get_minimum_position.ts +81 -0
- package/src/parsers/manifest/utils/index_helpers.ts +203 -0
- package/src/parsers/manifest/utils/update_segment_timeline.ts +145 -0
- package/src/parsers/texttracks/index.ts +21 -0
- package/src/parsers/texttracks/sami/html.ts +220 -0
- package/src/parsers/texttracks/sami/native.ts +190 -0
- package/src/parsers/texttracks/srt/__tests__/find_end_of_cue_block.test.ts +84 -0
- package/src/parsers/texttracks/srt/__tests__/get_cue_blocks.test.ts +88 -0
- package/src/parsers/texttracks/srt/__tests__/parse_cue.test.ts +87 -0
- package/src/parsers/texttracks/srt/__tests__/parse_timestamp.test.ts +21 -0
- package/src/parsers/texttracks/srt/find_end_of_cue_block.ts +46 -0
- package/src/parsers/texttracks/srt/get_cue_blocks.ts +50 -0
- package/src/parsers/texttracks/srt/html.ts +183 -0
- package/src/parsers/texttracks/srt/native.ts +72 -0
- package/src/parsers/texttracks/srt/parse_cue.ts +72 -0
- package/src/parsers/texttracks/srt/parse_timestamp.ts +35 -0
- package/src/parsers/texttracks/ttml/__tests__/resolve_styles_inheritance.test.ts +257 -0
- package/src/parsers/texttracks/ttml/get_parameters.ts +101 -0
- package/src/parsers/texttracks/ttml/get_styling.ts +145 -0
- package/src/parsers/texttracks/ttml/get_time_delimiters.ts +50 -0
- package/src/parsers/texttracks/ttml/html/__tests__/__global__/html_ttml_parser.test.ts +187 -0
- package/src/parsers/texttracks/ttml/html/__tests__/generate_css_test_outline.test.ts +19 -0
- package/src/parsers/texttracks/ttml/html/__tests__/ttml_color_to_css_color.test.ts +38 -0
- package/src/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.ts +69 -0
- package/src/parsers/texttracks/ttml/html/apply_extent.ts +56 -0
- package/src/parsers/texttracks/ttml/html/apply_font_size.ts +59 -0
- package/src/parsers/texttracks/ttml/html/apply_line_height.ts +48 -0
- package/src/parsers/texttracks/ttml/html/apply_origin.ts +55 -0
- package/src/parsers/texttracks/ttml/html/apply_padding.ts +134 -0
- package/src/parsers/texttracks/ttml/html/create_element.ts +552 -0
- package/src/parsers/texttracks/ttml/html/generate_css_test_outline.ts +48 -0
- package/src/parsers/texttracks/ttml/html/index.ts +23 -0
- package/src/parsers/texttracks/ttml/html/parse_cue.ts +62 -0
- package/src/parsers/texttracks/ttml/html/parse_ttml_to_div.ts +56 -0
- package/src/parsers/texttracks/ttml/html/ttml_color_to_css_color.ts +92 -0
- package/src/parsers/texttracks/ttml/native/index.ts +23 -0
- package/src/parsers/texttracks/ttml/native/parse_cue.ts +231 -0
- package/src/parsers/texttracks/ttml/native/parse_ttml_to_vtt.ts +39 -0
- package/src/parsers/texttracks/ttml/parse_ttml.ts +216 -0
- package/src/parsers/texttracks/ttml/regexps.ts +61 -0
- package/src/parsers/texttracks/ttml/resolve_styles_inheritance.ts +81 -0
- package/src/parsers/texttracks/ttml/time_parsing.ts +145 -0
- package/src/parsers/texttracks/ttml/xml_utils.ts +169 -0
- package/src/parsers/texttracks/types.ts +38 -0
- package/src/parsers/texttracks/webvtt/__tests__/get_cue_blocks.test.ts +165 -0
- package/src/parsers/texttracks/webvtt/__tests__/get_style_blocks.test.ts +45 -0
- package/src/parsers/texttracks/webvtt/__tests__/parse_cue_block.test.ts +187 -0
- package/src/parsers/texttracks/webvtt/__tests__/parse_timestamp.test.ts +24 -0
- package/src/parsers/texttracks/webvtt/__tests__/utils.test.ts +374 -0
- package/src/parsers/texttracks/webvtt/get_cue_blocks.ts +48 -0
- package/src/parsers/texttracks/webvtt/get_style_blocks.ts +57 -0
- package/src/parsers/texttracks/webvtt/html/__tests__/convert_payload_to_html.test.ts +94 -0
- package/src/parsers/texttracks/webvtt/html/__tests__/create_default_style_elements.test.ts +27 -0
- package/src/parsers/texttracks/webvtt/html/__tests__/create_style_attribute.test.ts +140 -0
- package/src/parsers/texttracks/webvtt/html/__tests__/create_styled_element.test.ts +104 -0
- package/src/parsers/texttracks/webvtt/html/__tests__/parse_style_block.test.ts +279 -0
- package/src/parsers/texttracks/webvtt/html/__tests__/parse_webvtt_to_div.test.ts +156 -0
- package/src/parsers/texttracks/webvtt/html/__tests__/to_html.test.ts +206 -0
- package/src/parsers/texttracks/webvtt/html/convert_payload_to_html.ts +43 -0
- package/src/parsers/texttracks/webvtt/html/create_default_style_elements.ts +26 -0
- package/src/parsers/texttracks/webvtt/html/create_style_attribute.ts +219 -0
- package/src/parsers/texttracks/webvtt/html/create_styled_element.ts +88 -0
- package/src/parsers/texttracks/webvtt/html/index.ts +25 -0
- package/src/parsers/texttracks/webvtt/html/parse_style_block.ts +80 -0
- package/src/parsers/texttracks/webvtt/html/parse_webvtt_to_div.ts +63 -0
- package/src/parsers/texttracks/webvtt/html/to_html.ts +91 -0
- package/src/parsers/texttracks/webvtt/native/index.ts +23 -0
- package/src/parsers/texttracks/webvtt/native/parse_vtt_to_cues.ts +68 -0
- package/src/parsers/texttracks/webvtt/native/set_settings_on_cue.ts +96 -0
- package/src/parsers/texttracks/webvtt/native/to_native_cue.ts +32 -0
- package/src/parsers/texttracks/webvtt/parse_cue_block.ts +128 -0
- package/src/parsers/texttracks/webvtt/parse_timestamp.ts +37 -0
- package/src/parsers/texttracks/webvtt/utils.ts +139 -0
- package/src/playback_observer/index.ts +12 -0
- package/src/playback_observer/media_element_playback_observer.ts +947 -0
- package/src/playback_observer/types.ts +238 -0
- package/src/playback_observer/utils/generate_read_only_observer.ts +64 -0
- package/src/playback_observer/utils/observation_position.ts +116 -0
- package/src/playback_observer/worker_playback_observer.ts +140 -0
- package/src/public_types.ts +1077 -0
- package/src/tools/README.md +7 -0
- package/src/tools/TextTrackRenderer/index.ts +27 -0
- package/src/tools/TextTrackRenderer/text_track_renderer.ts +105 -0
- package/src/tools/index.ts +21 -0
- package/src/tools/parseBIFThumbnails/index.ts +42 -0
- package/src/tools/string_utils/index.ts +24 -0
- package/src/transports/README.md +251 -0
- package/src/transports/dash/add_segment_integrity_checks_to_loader.ts +97 -0
- package/src/transports/dash/construct_segment_url.ts +32 -0
- package/src/transports/dash/get_events_out_of_emsgs.ts +113 -0
- package/src/transports/dash/index.ts +23 -0
- package/src/transports/dash/init_segment_loader.ts +125 -0
- package/src/transports/dash/low_latency_segment_loader.ts +93 -0
- package/src/transports/dash/manifest_parser.ts +376 -0
- package/src/transports/dash/pipelines.ts +69 -0
- package/src/transports/dash/segment_loader.ts +273 -0
- package/src/transports/dash/segment_parser.ts +204 -0
- package/src/transports/dash/text_loader.ts +123 -0
- package/src/transports/dash/text_parser.ts +250 -0
- package/src/transports/index.ts +17 -0
- package/src/transports/local/index.ts +18 -0
- package/src/transports/local/pipelines.ts +96 -0
- package/src/transports/local/segment_loader.ts +213 -0
- package/src/transports/local/segment_parser.ts +106 -0
- package/src/transports/local/text_parser.ts +197 -0
- package/src/transports/metaplaylist/README.md +89 -0
- package/src/transports/metaplaylist/index.ts +23 -0
- package/src/transports/metaplaylist/manifest_loader.ts +63 -0
- package/src/transports/metaplaylist/pipelines.ts +400 -0
- package/src/transports/smooth/extract_timings_infos.ts +134 -0
- package/src/transports/smooth/index.ts +23 -0
- package/src/transports/smooth/is_mp4_embedded_track.ts +25 -0
- package/src/transports/smooth/isobmff/__tests__/create_boxes.test.ts +323 -0
- package/src/transports/smooth/isobmff/create_audio_init_segment.ts +88 -0
- package/src/transports/smooth/isobmff/create_boxes.ts +526 -0
- package/src/transports/smooth/isobmff/create_init_segment.ts +92 -0
- package/src/transports/smooth/isobmff/create_traf_box.ts +36 -0
- package/src/transports/smooth/isobmff/create_video_init_segment.ts +78 -0
- package/src/transports/smooth/isobmff/get_aaces_header.ts +50 -0
- package/src/transports/smooth/isobmff/index.ts +31 -0
- package/src/transports/smooth/isobmff/parse_tfrf.ts +54 -0
- package/src/transports/smooth/isobmff/parse_tfxd.ts +38 -0
- package/src/transports/smooth/isobmff/patch_segment.ts +174 -0
- package/src/transports/smooth/pipelines.ts +416 -0
- package/src/transports/smooth/segment_loader.ts +326 -0
- package/src/transports/smooth/utils.ts +47 -0
- package/src/transports/types.ts +802 -0
- package/src/transports/utils/__tests__/byte_range.test.ts +36 -0
- package/src/transports/utils/__tests__/check_isobmff_integrity.test.ts +143 -0
- package/src/transports/utils/__tests__/infer_segment_container.test.ts +66 -0
- package/src/transports/utils/byte_range.ts +24 -0
- package/src/transports/utils/call_custom_manifest_loader.ts +145 -0
- package/src/transports/utils/check_isobmff_integrity.ts +50 -0
- package/src/transports/utils/generate_manifest_loader.ts +97 -0
- package/src/transports/utils/get_isobmff_timing_infos.ts +90 -0
- package/src/transports/utils/infer_segment_container.ts +47 -0
- package/src/transports/utils/parse_text_track.ts +160 -0
- package/src/utils/README.md +12 -0
- package/src/utils/__tests__/are_arrays_of_numbers_equal.test.ts +69 -0
- package/src/utils/__tests__/are_codecs_compatible.test.ts +59 -0
- package/src/utils/__tests__/array_find.test.ts +112 -0
- package/src/utils/__tests__/array_find_index.test.ts +111 -0
- package/src/utils/__tests__/array_includes.test.ts +115 -0
- package/src/utils/__tests__/assert.test.ts +244 -0
- package/src/utils/__tests__/base64.test.ts +204 -0
- package/src/utils/__tests__/byte_parsing.test.ts +205 -0
- package/src/utils/__tests__/deep_merge.test.ts +48 -0
- package/src/utils/__tests__/event_emitter.test.ts +537 -0
- package/src/utils/__tests__/flat_map.test.ts +60 -0
- package/src/utils/__tests__/get_fuzzed_delay.test.ts +17 -0
- package/src/utils/__tests__/hash_buffer.test.ts +28 -0
- package/src/utils/__tests__/id_generator.test.ts +68 -0
- package/src/utils/__tests__/is_non_empty_string.test.ts +28 -0
- package/src/utils/__tests__/is_null_or_undefined.test.ts +18 -0
- package/src/utils/__tests__/logger.test.ts +197 -0
- package/src/utils/__tests__/noop.test.ts +8 -0
- package/src/utils/__tests__/object_assign.test.ts +59 -0
- package/src/utils/__tests__/object_values.test.ts +11 -0
- package/src/utils/__tests__/ranges.test.ts +1150 -0
- package/src/utils/__tests__/resolve_url.test.ts +157 -0
- package/src/utils/__tests__/retry_promise_with_backoff.test.ts +40 -0
- package/src/utils/__tests__/sorted_list.test.ts +302 -0
- package/src/utils/__tests__/starts_with.test.ts +50 -0
- package/src/utils/__tests__/string_parsing.test.ts +273 -0
- package/src/utils/__tests__/warn_once.test.ts +23 -0
- package/src/utils/__tests__/weak_map_memory.test.ts +169 -0
- package/src/utils/__tests__/xml-parser.test.ts +441 -0
- package/src/utils/are_arrays_of_numbers_equal.ts +39 -0
- package/src/utils/are_codecs_compatible.ts +51 -0
- package/src/utils/array_find.ts +52 -0
- package/src/utils/array_find_index.ts +54 -0
- package/src/utils/array_includes.ts +89 -0
- package/src/utils/assert.ts +112 -0
- package/src/utils/base64.ts +211 -0
- package/src/utils/byte_parsing.ts +274 -0
- package/src/utils/cancellable_sleep.ts +41 -0
- package/src/utils/create_cancellable_promise.ts +63 -0
- package/src/utils/deep_merge.ts +52 -0
- package/src/utils/event_emitter.ts +155 -0
- package/src/utils/flat_map.ts +47 -0
- package/src/utils/get_fuzzed_delay.ts +27 -0
- package/src/utils/global_scope.ts +22 -0
- package/src/utils/hash_buffer.ts +42 -0
- package/src/utils/id_generator.ts +35 -0
- package/src/utils/is_node.ts +21 -0
- package/src/utils/is_non_empty_string.ts +23 -0
- package/src/utils/is_null_or_undefined.ts +27 -0
- package/src/utils/is_worker.ts +8 -0
- package/src/utils/languages/ISO_639-1_to_ISO_639-3.ts +207 -0
- package/src/utils/languages/ISO_639-2_to_ISO_639-3.ts +43 -0
- package/src/utils/languages/__tests__/normalize.test.ts +326 -0
- package/src/utils/languages/index.ts +24 -0
- package/src/utils/languages/normalize.ts +155 -0
- package/src/utils/logger.ts +116 -0
- package/src/utils/monotonic_timestamp.ts +43 -0
- package/src/utils/noop.ts +26 -0
- package/src/utils/object_assign.ts +90 -0
- package/src/utils/object_values.ts +29 -0
- package/src/utils/queue_microtask.ts +5 -0
- package/src/utils/ranges.ts +571 -0
- package/src/utils/reference.ts +395 -0
- package/src/utils/request/__tests__/request_error.test.ts +30 -0
- package/src/utils/request/fetch.ts +292 -0
- package/src/utils/request/index.ts +34 -0
- package/src/utils/request/request_error.ts +91 -0
- package/src/utils/request/xhr.ts +325 -0
- package/src/utils/resolve_url.ts +280 -0
- package/src/utils/retry_promise_with_backoff.ts +100 -0
- package/src/utils/sleep.ts +14 -0
- package/src/utils/slice_uint8array.ts +45 -0
- package/src/utils/sorted_list.ts +240 -0
- package/src/utils/starts_with.ts +43 -0
- package/src/utils/string_parsing.ts +432 -0
- package/src/utils/sync_or_async.ts +94 -0
- package/src/utils/task_canceller.ts +367 -0
- package/src/utils/warn_once.ts +34 -0
- package/src/utils/weak_map_memory.ts +89 -0
- package/src/utils/wrapInPromise.ts +22 -0
- package/src/utils/xml-parser.ts +396 -0
- package/src/worker_entry_point.ts +7 -0
- package/vitest.config.mjs +97 -0
- package/vitest.config.unit.mjs +24 -0
- package/dist/commonjs/__GENERATED_CODE/embedded_worker_es5.d.ts +0 -3
- package/dist/commonjs/__GENERATED_CODE/embedded_worker_es5.js +0 -6
- package/dist/commonjs/main_thread/decrypt/__tests__/__global__/utils.d.ts +0 -184
- package/dist/commonjs/main_thread/decrypt/__tests__/__global__/utils.js +0 -439
- package/dist/es2017/__GENERATED_CODE/embedded_worker_es5.d.ts +0 -3
- package/dist/es2017/__GENERATED_CODE/embedded_worker_es5.js +0 -3
- package/dist/es2017/main_thread/decrypt/__tests__/__global__/utils.d.ts +0 -184
- package/dist/es2017/main_thread/decrypt/__tests__/__global__/utils.js +0 -378
- package/dist/rx-player.min.js +0 -2
- package/dist/rx-player.min.js.LICENSE.txt +0 -1
- package/dist/worker.es5.js +0 -2
- package/dist/worker.es5.js.LICENSE.txt +0 -1
|
@@ -0,0 +1,1386 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2015 CANAL+ Group
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import config from "../../../config";
|
|
18
|
+
import log from "../../../log";
|
|
19
|
+
import type { IAdaptation, ISegment, IPeriod, IRepresentation } from "../../../manifest";
|
|
20
|
+
import { areSameContent } from "../../../manifest";
|
|
21
|
+
import isNullOrUndefined from "../../../utils/is_null_or_undefined";
|
|
22
|
+
import getMonotonicTimeStamp from "../../../utils/monotonic_timestamp";
|
|
23
|
+
import type { IRange } from "../../../utils/ranges";
|
|
24
|
+
import type { IBufferedHistoryEntry } from "./buffered_history";
|
|
25
|
+
import BufferedHistory from "./buffered_history";
|
|
26
|
+
import type { IChunkContext } from "./types";
|
|
27
|
+
|
|
28
|
+
/** Categorization of a given chunk in the `SegmentInventory`. */
|
|
29
|
+
export const enum ChunkStatus {
|
|
30
|
+
/**
|
|
31
|
+
* This chunk is only a part of a partially-pushed segment for now, meaning
|
|
32
|
+
* that it is only a sub-part of a requested segment that was not yet
|
|
33
|
+
* fully-loaded and pushed.
|
|
34
|
+
*
|
|
35
|
+
* Once and if the corresponding segment is fully-pushed, its `ChunkStatus`
|
|
36
|
+
* switches to `FullyLoaded`.
|
|
37
|
+
*/
|
|
38
|
+
PartiallyPushed = 0,
|
|
39
|
+
/** This chunk corresponds to a fully-loaded segment. */
|
|
40
|
+
FullyLoaded = 1,
|
|
41
|
+
/**
|
|
42
|
+
* This chunk's push operation failed, in this scenario there is no certitude
|
|
43
|
+
* about the presence of that chunk in the buffer: it may not be present,
|
|
44
|
+
* partially-present, or fully-present depending on why that push operation
|
|
45
|
+
* failed, which is generally only known by the lower-level code.
|
|
46
|
+
*/
|
|
47
|
+
Failed = 2,
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** Information stored on a single chunk by the SegmentInventory. */
|
|
51
|
+
export interface IBufferedChunk {
|
|
52
|
+
/**
|
|
53
|
+
* Value of the monotonically-increasing timestamp used by the RxPlayer at
|
|
54
|
+
* the time the segment was succesfully pushed to the buffer.
|
|
55
|
+
*
|
|
56
|
+
* We add this value here as we may want to wait for some time before
|
|
57
|
+
* synchronizing the buffer to ensure the browser has properly considered the
|
|
58
|
+
* full segment in its `buffered` value.
|
|
59
|
+
*/
|
|
60
|
+
insertionTs: number;
|
|
61
|
+
/**
|
|
62
|
+
* Complete size of the pushed chunk, in bytes.
|
|
63
|
+
* Note that this does not always reflect the memory imprint of the segment in
|
|
64
|
+
* memory:
|
|
65
|
+
*
|
|
66
|
+
* 1. It's the size of the original container file. A browser receiving that
|
|
67
|
+
* segment might then transform it under another form that may be more or
|
|
68
|
+
* less voluminous.
|
|
69
|
+
*
|
|
70
|
+
* 2. It's the size of the full chunk. In some scenarios only a sub-part of
|
|
71
|
+
* that chunk is actually considered (examples: when using append
|
|
72
|
+
* windows, when another chunk overlap that one etc.).
|
|
73
|
+
*/
|
|
74
|
+
chunkSize: number | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Last inferred end in the media buffer this chunk ends at, in seconds.
|
|
77
|
+
*
|
|
78
|
+
* Depending on if contiguous chunks were around it during the first
|
|
79
|
+
* synchronization for that chunk this value could be more or less precize.
|
|
80
|
+
*/
|
|
81
|
+
bufferedEnd: number | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Last inferred start in the media buffer this chunk starts at, in seconds.
|
|
84
|
+
*
|
|
85
|
+
* Depending on if contiguous chunks were around it during the first
|
|
86
|
+
* synchronization for that chunk this value could be more or less precize.
|
|
87
|
+
*/
|
|
88
|
+
bufferedStart: number | undefined;
|
|
89
|
+
/** Supposed end, in seconds, the chunk is expected to end at. */
|
|
90
|
+
end: number;
|
|
91
|
+
/**
|
|
92
|
+
* If `true` the `end` property is an estimate the `SegmentInventory` has
|
|
93
|
+
* a high confidence in.
|
|
94
|
+
* In that situation, `bufferedEnd` can easily be compared to it to check if
|
|
95
|
+
* that segment has been partially, or fully, garbage collected.
|
|
96
|
+
*
|
|
97
|
+
* If `false`, it is just a guess based on segment information.
|
|
98
|
+
*/
|
|
99
|
+
precizeEnd: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* If `true` the `start` property is an estimate the `SegmentInventory` has
|
|
102
|
+
* a high confidence in.
|
|
103
|
+
* In that situation, `bufferedStart` can easily be compared to it to check if
|
|
104
|
+
* that segment has been partially, or fully, garbage collected.
|
|
105
|
+
*
|
|
106
|
+
* If `false`, it is just a guess based on segment information.
|
|
107
|
+
*/
|
|
108
|
+
precizeStart: boolean;
|
|
109
|
+
/** Information on what that chunk actually contains. */
|
|
110
|
+
infos: IChunkContext;
|
|
111
|
+
/**
|
|
112
|
+
* Status of this chunk.
|
|
113
|
+
* @see ChunkStatus
|
|
114
|
+
*/
|
|
115
|
+
status: ChunkStatus;
|
|
116
|
+
/**
|
|
117
|
+
* If `true`, the segment as a whole is divided into multiple parts in the
|
|
118
|
+
* buffer, with other segment(s) between them.
|
|
119
|
+
* If `false`, it is contiguous.
|
|
120
|
+
*
|
|
121
|
+
* Splitted segments are a rare occurence that is more complicated to handle
|
|
122
|
+
* than contiguous ones.
|
|
123
|
+
*/
|
|
124
|
+
splitted: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Supposed start, in seconds, the chunk is expected to start at.
|
|
127
|
+
*
|
|
128
|
+
* If the current `chunk` is part of a "partially pushed" segment (see
|
|
129
|
+
* `partiallyPushed`), the definition of this property is flexible in the way
|
|
130
|
+
* that it can correspond either to the start of the chunk or to the start of
|
|
131
|
+
* the whole segment the chunk is linked to.
|
|
132
|
+
* As such, this property should not be relied on until the segment has been
|
|
133
|
+
* fully-pushed.
|
|
134
|
+
*/
|
|
135
|
+
start: number; // Supposed start the segment should start from, in seconds
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** information to provide when "inserting" a new chunk into the SegmentInventory. */
|
|
139
|
+
export interface IInsertedChunkInfos {
|
|
140
|
+
/** The Adaptation that chunk is linked to */
|
|
141
|
+
adaptation: IAdaptation;
|
|
142
|
+
/** The Period that chunk is linked to */
|
|
143
|
+
period: IPeriod;
|
|
144
|
+
/** The Representation that chunk is linked to. */
|
|
145
|
+
representation: IRepresentation;
|
|
146
|
+
/** The Segment that chunk is linked to. */
|
|
147
|
+
segment: ISegment;
|
|
148
|
+
/** Estimated size of the full pushed chunk, in bytes. */
|
|
149
|
+
chunkSize: number | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* Start time, in seconds, this chunk most probably begins from after being
|
|
152
|
+
* pushed.
|
|
153
|
+
* In doubt, you can set it at the start of the whole segment (after
|
|
154
|
+
* considering the possible offsets and append windows).
|
|
155
|
+
*/
|
|
156
|
+
start: number;
|
|
157
|
+
/**
|
|
158
|
+
* End time, in seconds, this chunk most probably ends at after being
|
|
159
|
+
* pushed.
|
|
160
|
+
*
|
|
161
|
+
* In doubt, you can set it at the end of the whole segment (after
|
|
162
|
+
* considering the possible offsets and append windows).
|
|
163
|
+
*/
|
|
164
|
+
end: number;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Keep track of every chunk downloaded and currently in the linked media
|
|
169
|
+
* buffer.
|
|
170
|
+
*
|
|
171
|
+
* The main point of this class is to know which chunks are already pushed to
|
|
172
|
+
* the corresponding media buffer, at which bitrate, and which have been garbage-collected
|
|
173
|
+
* since by the browser (and thus may need to be re-loaded).
|
|
174
|
+
* @class SegmentInventory
|
|
175
|
+
*/
|
|
176
|
+
export default class SegmentInventory {
|
|
177
|
+
/**
|
|
178
|
+
* Keeps track of all the segments which should be currently in the browser's
|
|
179
|
+
* memory.
|
|
180
|
+
* This array contains objects, each being related to a single downloaded
|
|
181
|
+
* chunk or segment which is at least partially added in the media buffer.
|
|
182
|
+
*/
|
|
183
|
+
private _inventory: IBufferedChunk[];
|
|
184
|
+
|
|
185
|
+
private _bufferedHistory: BufferedHistory;
|
|
186
|
+
|
|
187
|
+
constructor() {
|
|
188
|
+
const { BUFFERED_HISTORY_RETENTION_TIME, BUFFERED_HISTORY_MAXIMUM_ENTRIES } =
|
|
189
|
+
config.getCurrent();
|
|
190
|
+
this._inventory = [];
|
|
191
|
+
this._bufferedHistory = new BufferedHistory(
|
|
192
|
+
BUFFERED_HISTORY_RETENTION_TIME,
|
|
193
|
+
BUFFERED_HISTORY_MAXIMUM_ENTRIES,
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Reset the whole inventory.
|
|
199
|
+
*/
|
|
200
|
+
public reset(): void {
|
|
201
|
+
this._inventory.length = 0;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Infer each segment's `bufferedStart` and `bufferedEnd` properties from the
|
|
206
|
+
* ranges given.
|
|
207
|
+
*
|
|
208
|
+
* The ranges object given should come from the media buffer linked to that
|
|
209
|
+
* SegmentInventory.
|
|
210
|
+
*
|
|
211
|
+
* /!\ A SegmentInventory should not be associated to multiple media buffers
|
|
212
|
+
* at a time, so each `synchronizeBuffered` call should be given ranges coming
|
|
213
|
+
* from the same buffer.
|
|
214
|
+
* @param {Array.<Object>} ranges
|
|
215
|
+
*/
|
|
216
|
+
public synchronizeBuffered(ranges: IRange[]): void {
|
|
217
|
+
const inventory = this._inventory;
|
|
218
|
+
let inventoryIndex = 0; // Current index considered.
|
|
219
|
+
let thisSegment = inventory[0]; // Current segmentInfos considered
|
|
220
|
+
const { MINIMUM_SEGMENT_SIZE } = config.getCurrent();
|
|
221
|
+
/** Type of buffer considered, used for logs */
|
|
222
|
+
const bufferType: string | undefined = thisSegment?.infos.adaptation.type;
|
|
223
|
+
|
|
224
|
+
if (log.hasLevel("DEBUG")) {
|
|
225
|
+
const prettyPrintedRanges = ranges.map((r) => `${r.start}-${r.end}`).join(",");
|
|
226
|
+
log.debug(
|
|
227
|
+
`SI: synchronizing ${bufferType ?? "unknown"} buffered ranges:`,
|
|
228
|
+
prettyPrintedRanges,
|
|
229
|
+
);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
const rangesLength = ranges.length;
|
|
233
|
+
for (let i = 0; i < rangesLength; i++) {
|
|
234
|
+
if (thisSegment === undefined) {
|
|
235
|
+
// we arrived at the end of our inventory
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
// take the i'nth contiguous buffered range
|
|
240
|
+
const rangeStart = ranges[i].start;
|
|
241
|
+
const rangeEnd = ranges[i].end;
|
|
242
|
+
if (rangeEnd - rangeStart < MINIMUM_SEGMENT_SIZE) {
|
|
243
|
+
log.warn(
|
|
244
|
+
"SI: skipped range when synchronizing because it was too small",
|
|
245
|
+
bufferType,
|
|
246
|
+
rangeStart,
|
|
247
|
+
rangeEnd,
|
|
248
|
+
);
|
|
249
|
+
continue;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
const indexBefore = inventoryIndex; // keep track of that number
|
|
253
|
+
|
|
254
|
+
// Find the first segment either within this range or completely past
|
|
255
|
+
// it:
|
|
256
|
+
// skip until first segment with at least `MINIMUM_SEGMENT_SIZE` past the
|
|
257
|
+
// start of that range.
|
|
258
|
+
while (
|
|
259
|
+
thisSegment !== undefined &&
|
|
260
|
+
(thisSegment.bufferedEnd ?? thisSegment.end) - rangeStart < MINIMUM_SEGMENT_SIZE
|
|
261
|
+
) {
|
|
262
|
+
thisSegment = inventory[++inventoryIndex];
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// Contains infos about the last garbage-collected segment before
|
|
266
|
+
// `thisSegment`.
|
|
267
|
+
let lastDeletedSegmentInfos: { end: number; precizeEnd: boolean } | null = null;
|
|
268
|
+
|
|
269
|
+
// remove garbage-collected segments
|
|
270
|
+
// (Those not in that range nor in the previous one)
|
|
271
|
+
const numberOfSegmentToDelete = inventoryIndex - indexBefore;
|
|
272
|
+
if (numberOfSegmentToDelete > 0) {
|
|
273
|
+
const lastDeletedSegment = inventory[indexBefore + numberOfSegmentToDelete - 1]; // last garbage-collected segment
|
|
274
|
+
|
|
275
|
+
lastDeletedSegmentInfos = {
|
|
276
|
+
end: lastDeletedSegment.bufferedEnd ?? lastDeletedSegment.end,
|
|
277
|
+
precizeEnd: lastDeletedSegment.precizeEnd,
|
|
278
|
+
};
|
|
279
|
+
log.debug(`SI: ${numberOfSegmentToDelete} segments GCed.`, bufferType);
|
|
280
|
+
const removed = inventory.splice(indexBefore, numberOfSegmentToDelete);
|
|
281
|
+
for (const seg of removed) {
|
|
282
|
+
if (
|
|
283
|
+
seg.bufferedStart === undefined &&
|
|
284
|
+
seg.bufferedEnd === undefined &&
|
|
285
|
+
seg.status !== ChunkStatus.Failed
|
|
286
|
+
) {
|
|
287
|
+
this._bufferedHistory.addBufferedSegment(seg.infos, null);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
inventoryIndex = indexBefore;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
if (thisSegment === undefined) {
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
// If the current segment is actually completely outside that range (it
|
|
298
|
+
// is contained in one of the next one), skip that part.
|
|
299
|
+
if (
|
|
300
|
+
rangeEnd - (thisSegment.bufferedStart ?? thisSegment.start) >=
|
|
301
|
+
MINIMUM_SEGMENT_SIZE
|
|
302
|
+
) {
|
|
303
|
+
guessBufferedStartFromRangeStart(
|
|
304
|
+
thisSegment,
|
|
305
|
+
rangeStart,
|
|
306
|
+
lastDeletedSegmentInfos,
|
|
307
|
+
bufferType,
|
|
308
|
+
);
|
|
309
|
+
|
|
310
|
+
if (inventoryIndex === inventory.length - 1) {
|
|
311
|
+
// This is the last segment in the inventory.
|
|
312
|
+
// We can directly update the end as the end of the current range.
|
|
313
|
+
guessBufferedEndFromRangeEnd(thisSegment, rangeEnd, bufferType);
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
thisSegment = inventory[++inventoryIndex];
|
|
318
|
+
|
|
319
|
+
// Make contiguous until first segment outside that range
|
|
320
|
+
let thisSegmentStart = thisSegment.bufferedStart ?? thisSegment.start;
|
|
321
|
+
let thisSegmentEnd = thisSegment.bufferedEnd ?? thisSegment.end;
|
|
322
|
+
const nextRangeStart = i < rangesLength - 1 ? ranges[i + 1].start : undefined;
|
|
323
|
+
while (thisSegment !== undefined) {
|
|
324
|
+
if (rangeEnd < thisSegmentStart) {
|
|
325
|
+
// `thisSegment` is part of the next range
|
|
326
|
+
break;
|
|
327
|
+
}
|
|
328
|
+
if (
|
|
329
|
+
rangeEnd - thisSegmentStart < MINIMUM_SEGMENT_SIZE &&
|
|
330
|
+
thisSegmentEnd - rangeEnd >= MINIMUM_SEGMENT_SIZE
|
|
331
|
+
) {
|
|
332
|
+
// Ambiguous, but `thisSegment` seems more to come after the current
|
|
333
|
+
// range than during it.
|
|
334
|
+
break;
|
|
335
|
+
}
|
|
336
|
+
if (
|
|
337
|
+
nextRangeStart !== undefined &&
|
|
338
|
+
rangeEnd - thisSegmentStart < thisSegmentEnd - nextRangeStart
|
|
339
|
+
) {
|
|
340
|
+
// Ambiguous, but `thisSegment` has more chance to be part of the
|
|
341
|
+
// next range than the current one
|
|
342
|
+
break;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
const prevSegment = inventory[inventoryIndex - 1];
|
|
346
|
+
|
|
347
|
+
// those segments are contiguous, we have no way to infer their real
|
|
348
|
+
// end
|
|
349
|
+
if (prevSegment.bufferedEnd === undefined) {
|
|
350
|
+
if (thisSegment.precizeStart) {
|
|
351
|
+
prevSegment.bufferedEnd = thisSegment.start;
|
|
352
|
+
} else if (prevSegment.infos.segment.complete) {
|
|
353
|
+
prevSegment.bufferedEnd = prevSegment.end;
|
|
354
|
+
} else {
|
|
355
|
+
// We cannot truly trust the anounced end here as the segment was
|
|
356
|
+
// potentially not complete at its time of announce.
|
|
357
|
+
// Just assume the next's segment announced start is right - as
|
|
358
|
+
// `start` is in that scenario more "trustable" than `end`.
|
|
359
|
+
prevSegment.bufferedEnd = thisSegment.start;
|
|
360
|
+
}
|
|
361
|
+
log.debug(
|
|
362
|
+
"SI: calculating buffered end of contiguous segment",
|
|
363
|
+
bufferType,
|
|
364
|
+
prevSegment.bufferedEnd,
|
|
365
|
+
prevSegment.end,
|
|
366
|
+
);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
thisSegment.bufferedStart = prevSegment.bufferedEnd;
|
|
370
|
+
thisSegment = inventory[++inventoryIndex];
|
|
371
|
+
if (thisSegment !== undefined) {
|
|
372
|
+
thisSegmentStart = thisSegment.bufferedStart ?? thisSegment.start;
|
|
373
|
+
thisSegmentEnd = thisSegment.bufferedEnd ?? thisSegment.end;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
// update the bufferedEnd of the last segment in that range
|
|
379
|
+
const lastSegmentInRange = inventory[inventoryIndex - 1];
|
|
380
|
+
if (lastSegmentInRange !== undefined) {
|
|
381
|
+
guessBufferedEndFromRangeEnd(lastSegmentInRange, rangeEnd, bufferType);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
// if we still have segments left, they are not affiliated to any range.
|
|
386
|
+
// They might have been garbage collected, delete them from here.
|
|
387
|
+
if (!isNullOrUndefined(thisSegment)) {
|
|
388
|
+
const { SEGMENT_SYNCHRONIZATION_DELAY } = config.getCurrent();
|
|
389
|
+
const now = getMonotonicTimeStamp();
|
|
390
|
+
for (let i = inventoryIndex; i < inventory.length; i++) {
|
|
391
|
+
const segmentInfo = inventory[i];
|
|
392
|
+
if (now - segmentInfo.insertionTs >= SEGMENT_SYNCHRONIZATION_DELAY) {
|
|
393
|
+
log.debug(
|
|
394
|
+
"SI: A segment at the end has been completely GCed",
|
|
395
|
+
bufferType,
|
|
396
|
+
`${segmentInfo.start}-${segmentInfo.end}`,
|
|
397
|
+
);
|
|
398
|
+
if (
|
|
399
|
+
segmentInfo.bufferedStart === undefined &&
|
|
400
|
+
segmentInfo.bufferedEnd === undefined &&
|
|
401
|
+
segmentInfo.status !== ChunkStatus.Failed
|
|
402
|
+
) {
|
|
403
|
+
this._bufferedHistory.addBufferedSegment(segmentInfo.infos, null);
|
|
404
|
+
}
|
|
405
|
+
inventory.splice(i, 1);
|
|
406
|
+
i--;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
if (bufferType !== undefined && log.hasLevel("DEBUG")) {
|
|
411
|
+
log.debug(
|
|
412
|
+
`SI: current ${bufferType} inventory timeline:\n` +
|
|
413
|
+
prettyPrintInventory(this._inventory),
|
|
414
|
+
);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Add a new chunk in the inventory.
|
|
420
|
+
*
|
|
421
|
+
* Chunks are decodable sub-parts of a whole segment. Once all chunks in a
|
|
422
|
+
* segment have been inserted, you should call the `completeSegment` method.
|
|
423
|
+
* @param {Object} chunkInformation
|
|
424
|
+
* @param {boolean} succeed - If `true` the insertion operation finished with
|
|
425
|
+
* success, if `false` an error arised while doing it.
|
|
426
|
+
* @param {number} insertionTs - The monotonically-increasing timestamp at the
|
|
427
|
+
* time the segment has been confirmed to be inserted by the buffer.
|
|
428
|
+
*/
|
|
429
|
+
public insertChunk(
|
|
430
|
+
{
|
|
431
|
+
period,
|
|
432
|
+
adaptation,
|
|
433
|
+
representation,
|
|
434
|
+
segment,
|
|
435
|
+
chunkSize,
|
|
436
|
+
start,
|
|
437
|
+
end,
|
|
438
|
+
}: IInsertedChunkInfos,
|
|
439
|
+
succeed: boolean,
|
|
440
|
+
insertionTs: number,
|
|
441
|
+
): void {
|
|
442
|
+
if (segment.isInit) {
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
const bufferType = adaptation.type;
|
|
447
|
+
if (start >= end) {
|
|
448
|
+
log.warn(
|
|
449
|
+
"SI: Invalid chunked inserted: starts before it ends",
|
|
450
|
+
bufferType,
|
|
451
|
+
start,
|
|
452
|
+
end,
|
|
453
|
+
);
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
const inventory = this._inventory;
|
|
458
|
+
const newSegment = {
|
|
459
|
+
status: succeed ? ChunkStatus.PartiallyPushed : ChunkStatus.Failed,
|
|
460
|
+
insertionTs,
|
|
461
|
+
chunkSize,
|
|
462
|
+
splitted: false,
|
|
463
|
+
start,
|
|
464
|
+
end,
|
|
465
|
+
precizeStart: false,
|
|
466
|
+
precizeEnd: false,
|
|
467
|
+
bufferedStart: undefined,
|
|
468
|
+
bufferedEnd: undefined,
|
|
469
|
+
infos: { segment, period, adaptation, representation },
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
// begin by the end as in most use cases this will be faster
|
|
473
|
+
for (let i = inventory.length - 1; i >= 0; i--) {
|
|
474
|
+
const segmentI = inventory[i];
|
|
475
|
+
|
|
476
|
+
if (segmentI.start <= start) {
|
|
477
|
+
if (segmentI.end <= start) {
|
|
478
|
+
// our segment is after, push it after this one
|
|
479
|
+
//
|
|
480
|
+
// Case 1:
|
|
481
|
+
// prevSegment : |------|
|
|
482
|
+
// newSegment : |======|
|
|
483
|
+
// ===> : |------|======|
|
|
484
|
+
//
|
|
485
|
+
// Case 2:
|
|
486
|
+
// prevSegment : |------|
|
|
487
|
+
// newSegment : |======|
|
|
488
|
+
// ===> : |------| |======|
|
|
489
|
+
log.debug(
|
|
490
|
+
"SI: Pushing segment strictly after previous one.",
|
|
491
|
+
bufferType,
|
|
492
|
+
start,
|
|
493
|
+
segmentI.end,
|
|
494
|
+
);
|
|
495
|
+
this._inventory.splice(i + 1, 0, newSegment);
|
|
496
|
+
|
|
497
|
+
i += 2; // Go to segment immediately after newSegment
|
|
498
|
+
while (i < inventory.length && inventory[i].start < newSegment.end) {
|
|
499
|
+
if (inventory[i].end > newSegment.end) {
|
|
500
|
+
// The next segment ends after newSegment.
|
|
501
|
+
// Mutate the next segment.
|
|
502
|
+
//
|
|
503
|
+
// Case 1:
|
|
504
|
+
// prevSegment : |------|
|
|
505
|
+
// newSegment : |======|
|
|
506
|
+
// nextSegment : |----|
|
|
507
|
+
// ===> : |------|======|-|
|
|
508
|
+
log.debug(
|
|
509
|
+
"SI: Segment pushed updates the start of the next one",
|
|
510
|
+
bufferType,
|
|
511
|
+
newSegment.end,
|
|
512
|
+
inventory[i].start,
|
|
513
|
+
);
|
|
514
|
+
inventory[i].start = newSegment.end;
|
|
515
|
+
inventory[i].bufferedStart = undefined;
|
|
516
|
+
inventory[i].precizeStart =
|
|
517
|
+
inventory[i].precizeStart && newSegment.precizeEnd;
|
|
518
|
+
return;
|
|
519
|
+
}
|
|
520
|
+
// The next segment was completely contained in newSegment.
|
|
521
|
+
// Remove it.
|
|
522
|
+
//
|
|
523
|
+
// Case 1:
|
|
524
|
+
// prevSegment : |------|
|
|
525
|
+
// newSegment : |======|
|
|
526
|
+
// nextSegment : |---|
|
|
527
|
+
// ===> : |------|======|
|
|
528
|
+
//
|
|
529
|
+
// Case 2:
|
|
530
|
+
// prevSegment : |------|
|
|
531
|
+
// newSegment : |======|
|
|
532
|
+
// nextSegment : |----|
|
|
533
|
+
// ===> : |------|======|
|
|
534
|
+
log.debug(
|
|
535
|
+
"SI: Segment pushed removes the next one",
|
|
536
|
+
bufferType,
|
|
537
|
+
start,
|
|
538
|
+
end,
|
|
539
|
+
inventory[i].start,
|
|
540
|
+
inventory[i].end,
|
|
541
|
+
);
|
|
542
|
+
inventory.splice(i, 1);
|
|
543
|
+
}
|
|
544
|
+
return;
|
|
545
|
+
} else {
|
|
546
|
+
if (segmentI.start === start) {
|
|
547
|
+
if (segmentI.end <= end) {
|
|
548
|
+
// In those cases, replace
|
|
549
|
+
//
|
|
550
|
+
// Case 1:
|
|
551
|
+
// prevSegment : |-------|
|
|
552
|
+
// newSegment : |=======|
|
|
553
|
+
// ===> : |=======|
|
|
554
|
+
//
|
|
555
|
+
// Case 2:
|
|
556
|
+
// prevSegment : |-------|
|
|
557
|
+
// newSegment : |==========|
|
|
558
|
+
// ===> : |==========|
|
|
559
|
+
log.debug(
|
|
560
|
+
"SI: Segment pushed replace another one",
|
|
561
|
+
bufferType,
|
|
562
|
+
start,
|
|
563
|
+
end,
|
|
564
|
+
segmentI.end,
|
|
565
|
+
);
|
|
566
|
+
this._inventory.splice(i, 1, newSegment);
|
|
567
|
+
i += 1; // Go to segment immediately after newSegment
|
|
568
|
+
while (i < inventory.length && inventory[i].start < newSegment.end) {
|
|
569
|
+
if (inventory[i].end > newSegment.end) {
|
|
570
|
+
// The next segment ends after newSegment.
|
|
571
|
+
// Mutate the next segment.
|
|
572
|
+
//
|
|
573
|
+
// Case 1:
|
|
574
|
+
// newSegment : |======|
|
|
575
|
+
// nextSegment : |----|
|
|
576
|
+
// ===> : |======|--|
|
|
577
|
+
log.debug(
|
|
578
|
+
"SI: Segment pushed updates the start of the next one",
|
|
579
|
+
bufferType,
|
|
580
|
+
newSegment.end,
|
|
581
|
+
inventory[i].start,
|
|
582
|
+
);
|
|
583
|
+
inventory[i].start = newSegment.end;
|
|
584
|
+
inventory[i].bufferedStart = undefined;
|
|
585
|
+
inventory[i].precizeStart =
|
|
586
|
+
inventory[i].precizeStart && newSegment.precizeEnd;
|
|
587
|
+
return;
|
|
588
|
+
}
|
|
589
|
+
// The next segment was completely contained in newSegment.
|
|
590
|
+
// Remove it.
|
|
591
|
+
//
|
|
592
|
+
// Case 1:
|
|
593
|
+
// newSegment : |======|
|
|
594
|
+
// nextSegment : |---|
|
|
595
|
+
// ===> : |======|
|
|
596
|
+
//
|
|
597
|
+
// Case 2:
|
|
598
|
+
// newSegment : |======|
|
|
599
|
+
// nextSegment : |----|
|
|
600
|
+
// ===> : |======|
|
|
601
|
+
log.debug(
|
|
602
|
+
"SI: Segment pushed removes the next one",
|
|
603
|
+
bufferType,
|
|
604
|
+
start,
|
|
605
|
+
end,
|
|
606
|
+
inventory[i].start,
|
|
607
|
+
inventory[i].end,
|
|
608
|
+
);
|
|
609
|
+
inventory.splice(i, 1);
|
|
610
|
+
}
|
|
611
|
+
return;
|
|
612
|
+
} else {
|
|
613
|
+
// The previous segment starts at the same time and finishes
|
|
614
|
+
// after the new segment.
|
|
615
|
+
// Update the start of the previous segment and put the new
|
|
616
|
+
// segment before.
|
|
617
|
+
//
|
|
618
|
+
// Case 1:
|
|
619
|
+
// prevSegment : |------------|
|
|
620
|
+
// newSegment : |==========|
|
|
621
|
+
// ===> : |==========|-|
|
|
622
|
+
log.debug(
|
|
623
|
+
"SI: Segment pushed ends before another with the same start",
|
|
624
|
+
bufferType,
|
|
625
|
+
start,
|
|
626
|
+
end,
|
|
627
|
+
segmentI.end,
|
|
628
|
+
);
|
|
629
|
+
inventory.splice(i, 0, newSegment);
|
|
630
|
+
segmentI.start = newSegment.end;
|
|
631
|
+
segmentI.bufferedStart = undefined;
|
|
632
|
+
segmentI.precizeStart = segmentI.precizeStart && newSegment.precizeEnd;
|
|
633
|
+
return;
|
|
634
|
+
}
|
|
635
|
+
} else {
|
|
636
|
+
if (segmentI.end <= newSegment.end) {
|
|
637
|
+
// our segment has a "complex" relation with this one,
|
|
638
|
+
// update the old one end and add this one after it.
|
|
639
|
+
//
|
|
640
|
+
// Case 1:
|
|
641
|
+
// prevSegment : |-------|
|
|
642
|
+
// newSegment : |======|
|
|
643
|
+
// ===> : |--|======|
|
|
644
|
+
//
|
|
645
|
+
// Case 2:
|
|
646
|
+
// prevSegment : |-------|
|
|
647
|
+
// newSegment : |====|
|
|
648
|
+
// ===> : |--|====|
|
|
649
|
+
log.debug(
|
|
650
|
+
"SI: Segment pushed updates end of previous one",
|
|
651
|
+
bufferType,
|
|
652
|
+
start,
|
|
653
|
+
end,
|
|
654
|
+
segmentI.start,
|
|
655
|
+
segmentI.end,
|
|
656
|
+
);
|
|
657
|
+
this._inventory.splice(i + 1, 0, newSegment);
|
|
658
|
+
segmentI.end = newSegment.start;
|
|
659
|
+
segmentI.bufferedEnd = undefined;
|
|
660
|
+
segmentI.precizeEnd = segmentI.precizeEnd && newSegment.precizeStart;
|
|
661
|
+
i += 2; // Go to segment immediately after newSegment
|
|
662
|
+
while (i < inventory.length && inventory[i].start < newSegment.end) {
|
|
663
|
+
if (inventory[i].end > newSegment.end) {
|
|
664
|
+
// The next segment ends after newSegment.
|
|
665
|
+
// Mutate the next segment.
|
|
666
|
+
//
|
|
667
|
+
// Case 1:
|
|
668
|
+
// newSegment : |======|
|
|
669
|
+
// nextSegment : |----|
|
|
670
|
+
// ===> : |======|--|
|
|
671
|
+
log.debug(
|
|
672
|
+
"SI: Segment pushed updates the start of the next one",
|
|
673
|
+
bufferType,
|
|
674
|
+
newSegment.end,
|
|
675
|
+
inventory[i].start,
|
|
676
|
+
);
|
|
677
|
+
inventory[i].start = newSegment.end;
|
|
678
|
+
inventory[i].bufferedStart = undefined;
|
|
679
|
+
inventory[i].precizeStart =
|
|
680
|
+
inventory[i].precizeStart && newSegment.precizeEnd;
|
|
681
|
+
return;
|
|
682
|
+
}
|
|
683
|
+
// The next segment was completely contained in newSegment.
|
|
684
|
+
// Remove it.
|
|
685
|
+
//
|
|
686
|
+
// Case 1:
|
|
687
|
+
// newSegment : |======|
|
|
688
|
+
// nextSegment : |---|
|
|
689
|
+
// ===> : |======|
|
|
690
|
+
//
|
|
691
|
+
// Case 2:
|
|
692
|
+
// newSegment : |======|
|
|
693
|
+
// nextSegment : |----|
|
|
694
|
+
// ===> : |======|
|
|
695
|
+
log.debug(
|
|
696
|
+
"SI: Segment pushed removes the next one",
|
|
697
|
+
bufferType,
|
|
698
|
+
start,
|
|
699
|
+
end,
|
|
700
|
+
inventory[i].start,
|
|
701
|
+
inventory[i].end,
|
|
702
|
+
);
|
|
703
|
+
inventory.splice(i, 1);
|
|
704
|
+
}
|
|
705
|
+
return;
|
|
706
|
+
} else {
|
|
707
|
+
// The previous segment completely recovers the new segment.
|
|
708
|
+
// Split the previous segment into two segments, before and after
|
|
709
|
+
// the new segment.
|
|
710
|
+
//
|
|
711
|
+
// Case 1:
|
|
712
|
+
// prevSegment : |---------|
|
|
713
|
+
// newSegment : |====|
|
|
714
|
+
// ===> : |--|====|-|
|
|
715
|
+
log.warn(
|
|
716
|
+
"SI: Segment pushed is contained in a previous one",
|
|
717
|
+
bufferType,
|
|
718
|
+
start,
|
|
719
|
+
end,
|
|
720
|
+
segmentI.start,
|
|
721
|
+
segmentI.end,
|
|
722
|
+
);
|
|
723
|
+
const nextSegment = {
|
|
724
|
+
status: segmentI.status,
|
|
725
|
+
insertionTs: segmentI.insertionTs,
|
|
726
|
+
/**
|
|
727
|
+
* Note: this sadly means we're doing as if
|
|
728
|
+
* that chunk is present two times.
|
|
729
|
+
* Thankfully, this scenario should be
|
|
730
|
+
* fairly rare.
|
|
731
|
+
*/
|
|
732
|
+
chunkSize: segmentI.chunkSize,
|
|
733
|
+
splitted: true,
|
|
734
|
+
start: newSegment.end,
|
|
735
|
+
end: segmentI.end,
|
|
736
|
+
precizeStart:
|
|
737
|
+
segmentI.precizeStart && segmentI.precizeEnd && newSegment.precizeEnd,
|
|
738
|
+
precizeEnd: segmentI.precizeEnd,
|
|
739
|
+
bufferedStart: undefined,
|
|
740
|
+
bufferedEnd: segmentI.end,
|
|
741
|
+
infos: segmentI.infos,
|
|
742
|
+
};
|
|
743
|
+
segmentI.end = newSegment.start;
|
|
744
|
+
segmentI.splitted = true;
|
|
745
|
+
segmentI.bufferedEnd = undefined;
|
|
746
|
+
segmentI.precizeEnd = segmentI.precizeEnd && newSegment.precizeStart;
|
|
747
|
+
inventory.splice(i + 1, 0, newSegment);
|
|
748
|
+
inventory.splice(i + 2, 0, nextSegment);
|
|
749
|
+
return;
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
// if we got here, we are at the first segment
|
|
757
|
+
// check bounds of the previous first segment
|
|
758
|
+
const firstSegment = this._inventory[0];
|
|
759
|
+
if (firstSegment === undefined) {
|
|
760
|
+
// we do not have any segment yet
|
|
761
|
+
log.debug("SI: first segment pushed", bufferType, start, end);
|
|
762
|
+
this._inventory.push(newSegment);
|
|
763
|
+
return;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
if (firstSegment.start >= end) {
|
|
767
|
+
// our segment is before, put it before
|
|
768
|
+
//
|
|
769
|
+
// Case 1:
|
|
770
|
+
// firstSegment : |----|
|
|
771
|
+
// newSegment : |====|
|
|
772
|
+
// ===> : |====|----|
|
|
773
|
+
//
|
|
774
|
+
// Case 2:
|
|
775
|
+
// firstSegment : |----|
|
|
776
|
+
// newSegment : |====|
|
|
777
|
+
// ===> : |====| |----|
|
|
778
|
+
log.debug(
|
|
779
|
+
"SI: Segment pushed comes before all previous ones",
|
|
780
|
+
bufferType,
|
|
781
|
+
start,
|
|
782
|
+
end,
|
|
783
|
+
firstSegment.start,
|
|
784
|
+
);
|
|
785
|
+
this._inventory.splice(0, 0, newSegment);
|
|
786
|
+
} else if (firstSegment.end <= end) {
|
|
787
|
+
// Our segment is bigger, replace the first
|
|
788
|
+
//
|
|
789
|
+
// Case 1:
|
|
790
|
+
// firstSegment : |---|
|
|
791
|
+
// newSegment : |=======|
|
|
792
|
+
// ===> : |=======|
|
|
793
|
+
//
|
|
794
|
+
// Case 2:
|
|
795
|
+
// firstSegment : |-----|
|
|
796
|
+
// newSegment : |=======|
|
|
797
|
+
// ===> : |=======|
|
|
798
|
+
log.debug(
|
|
799
|
+
"SI: Segment pushed starts before and completely " +
|
|
800
|
+
"recovers the previous first one",
|
|
801
|
+
bufferType,
|
|
802
|
+
start,
|
|
803
|
+
end,
|
|
804
|
+
firstSegment.start,
|
|
805
|
+
firstSegment.end,
|
|
806
|
+
);
|
|
807
|
+
this._inventory.splice(0, 1, newSegment);
|
|
808
|
+
while (inventory.length > 1 && inventory[1].start < newSegment.end) {
|
|
809
|
+
if (inventory[1].end > newSegment.end) {
|
|
810
|
+
// The next segment ends after newSegment.
|
|
811
|
+
// Mutate the next segment.
|
|
812
|
+
//
|
|
813
|
+
// Case 1:
|
|
814
|
+
// newSegment : |======|
|
|
815
|
+
// nextSegment : |----|
|
|
816
|
+
// ===> : |======|--|
|
|
817
|
+
log.debug(
|
|
818
|
+
"SI: Segment pushed updates the start of the next one",
|
|
819
|
+
bufferType,
|
|
820
|
+
newSegment.end,
|
|
821
|
+
inventory[1].start,
|
|
822
|
+
);
|
|
823
|
+
inventory[1].start = newSegment.end;
|
|
824
|
+
inventory[1].bufferedStart = undefined;
|
|
825
|
+
inventory[1].precizeStart = newSegment.precizeEnd;
|
|
826
|
+
return;
|
|
827
|
+
}
|
|
828
|
+
// The next segment was completely contained in newSegment.
|
|
829
|
+
// Remove it.
|
|
830
|
+
//
|
|
831
|
+
// Case 1:
|
|
832
|
+
// newSegment : |======|
|
|
833
|
+
// nextSegment : |---|
|
|
834
|
+
// ===> : |======|
|
|
835
|
+
//
|
|
836
|
+
// Case 2:
|
|
837
|
+
// newSegment : |======|
|
|
838
|
+
// nextSegment : |----|
|
|
839
|
+
// ===> : |======|
|
|
840
|
+
log.debug(
|
|
841
|
+
"SI: Segment pushed removes the next one",
|
|
842
|
+
bufferType,
|
|
843
|
+
start,
|
|
844
|
+
end,
|
|
845
|
+
inventory[1].start,
|
|
846
|
+
inventory[1].end,
|
|
847
|
+
);
|
|
848
|
+
inventory.splice(1, 1);
|
|
849
|
+
}
|
|
850
|
+
return;
|
|
851
|
+
} else {
|
|
852
|
+
// our segment has a "complex" relation with the first one,
|
|
853
|
+
// update the old one start and add this one before it.
|
|
854
|
+
//
|
|
855
|
+
// Case 1:
|
|
856
|
+
// firstSegment : |------|
|
|
857
|
+
// newSegment : |======|
|
|
858
|
+
// ===> : |======|--|
|
|
859
|
+
log.debug(
|
|
860
|
+
"SI: Segment pushed start of the next one",
|
|
861
|
+
bufferType,
|
|
862
|
+
start,
|
|
863
|
+
end,
|
|
864
|
+
firstSegment.start,
|
|
865
|
+
firstSegment.end,
|
|
866
|
+
);
|
|
867
|
+
firstSegment.start = end;
|
|
868
|
+
firstSegment.bufferedStart = undefined;
|
|
869
|
+
firstSegment.precizeStart = newSegment.precizeEnd;
|
|
870
|
+
this._inventory.splice(0, 0, newSegment);
|
|
871
|
+
return;
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Indicate that inserted chunks can now be considered as a fully-loaded
|
|
877
|
+
* segment.
|
|
878
|
+
* Take in argument the same content than what was given to `insertChunk` for
|
|
879
|
+
* the corresponding chunks.
|
|
880
|
+
* @param {Object} content
|
|
881
|
+
*/
|
|
882
|
+
public completeSegment(content: {
|
|
883
|
+
period: IPeriod;
|
|
884
|
+
adaptation: IAdaptation;
|
|
885
|
+
representation: IRepresentation;
|
|
886
|
+
segment: ISegment;
|
|
887
|
+
}): void {
|
|
888
|
+
if (content.segment.isInit) {
|
|
889
|
+
return;
|
|
890
|
+
}
|
|
891
|
+
const inventory = this._inventory;
|
|
892
|
+
|
|
893
|
+
const resSegments: IBufferedChunk[] = [];
|
|
894
|
+
|
|
895
|
+
for (let i = 0; i < inventory.length; i++) {
|
|
896
|
+
if (areSameContent(inventory[i].infos, content)) {
|
|
897
|
+
let splitted = false;
|
|
898
|
+
if (resSegments.length > 0) {
|
|
899
|
+
splitted = true;
|
|
900
|
+
if (resSegments.length === 1) {
|
|
901
|
+
log.warn(
|
|
902
|
+
"SI: Completed Segment is splitted.",
|
|
903
|
+
content.segment.id,
|
|
904
|
+
content.segment.time,
|
|
905
|
+
content.segment.end,
|
|
906
|
+
);
|
|
907
|
+
resSegments[0].splitted = true;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
const firstI = i;
|
|
912
|
+
let segmentSize = inventory[i].chunkSize;
|
|
913
|
+
i += 1;
|
|
914
|
+
while (i < inventory.length && areSameContent(inventory[i].infos, content)) {
|
|
915
|
+
const chunkSize = inventory[i].chunkSize;
|
|
916
|
+
if (segmentSize !== undefined && chunkSize !== undefined) {
|
|
917
|
+
segmentSize += chunkSize;
|
|
918
|
+
}
|
|
919
|
+
i++;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
const lastI = i - 1;
|
|
923
|
+
const length = lastI - firstI;
|
|
924
|
+
const lastEnd = inventory[lastI].end;
|
|
925
|
+
const lastBufferedEnd = inventory[lastI].bufferedEnd;
|
|
926
|
+
if (length > 0) {
|
|
927
|
+
this._inventory.splice(firstI + 1, length);
|
|
928
|
+
i -= length;
|
|
929
|
+
}
|
|
930
|
+
if (this._inventory[firstI].status === ChunkStatus.PartiallyPushed) {
|
|
931
|
+
this._inventory[firstI].status = ChunkStatus.FullyLoaded;
|
|
932
|
+
}
|
|
933
|
+
this._inventory[firstI].chunkSize = segmentSize;
|
|
934
|
+
this._inventory[firstI].end = lastEnd;
|
|
935
|
+
this._inventory[firstI].bufferedEnd = lastBufferedEnd;
|
|
936
|
+
this._inventory[firstI].splitted = splitted;
|
|
937
|
+
resSegments.push(this._inventory[firstI]);
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
if (resSegments.length === 0) {
|
|
942
|
+
log.warn(
|
|
943
|
+
"SI: Completed Segment not found",
|
|
944
|
+
content.segment.id,
|
|
945
|
+
content.segment.time,
|
|
946
|
+
);
|
|
947
|
+
} else {
|
|
948
|
+
for (const seg of resSegments) {
|
|
949
|
+
if (seg.bufferedStart !== undefined && seg.bufferedEnd !== undefined) {
|
|
950
|
+
if (seg.status !== ChunkStatus.Failed) {
|
|
951
|
+
this._bufferedHistory.addBufferedSegment(seg.infos, {
|
|
952
|
+
start: seg.bufferedStart,
|
|
953
|
+
end: seg.bufferedEnd,
|
|
954
|
+
});
|
|
955
|
+
}
|
|
956
|
+
} else {
|
|
957
|
+
// TODO FIXME There might be a false positive here when the
|
|
958
|
+
// `SEGMENT_SYNCHRONIZATION_DELAY` config value is at play
|
|
959
|
+
log.debug(
|
|
960
|
+
"SI: buffered range not known after sync. Skipping history.",
|
|
961
|
+
seg.start,
|
|
962
|
+
seg.end,
|
|
963
|
+
);
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* Returns the whole inventory.
|
|
971
|
+
*
|
|
972
|
+
* To get a list synchronized with what a media buffer actually has buffered
|
|
973
|
+
* you might want to call `synchronizeBuffered` before calling this method.
|
|
974
|
+
* @returns {Array.<Object>}
|
|
975
|
+
*/
|
|
976
|
+
public getInventory(): IBufferedChunk[] {
|
|
977
|
+
return this._inventory;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* Returns a recent history of registered operations performed and event
|
|
982
|
+
* received linked to the segment given in argument.
|
|
983
|
+
*
|
|
984
|
+
* Not all operations and events are registered in the returned history.
|
|
985
|
+
* Please check the return type for more information on what is available.
|
|
986
|
+
*
|
|
987
|
+
* Note that history is short-lived for memory usage and performance reasons.
|
|
988
|
+
* You may not receive any information on operations that happened too long
|
|
989
|
+
* ago.
|
|
990
|
+
* @param {Object} context
|
|
991
|
+
* @returns {Array.<Object>}
|
|
992
|
+
*/
|
|
993
|
+
public getHistoryFor(context: IChunkContext): IBufferedHistoryEntry[] {
|
|
994
|
+
return this._bufferedHistory.getHistoryFor(context);
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* Returns `true` if the buffered start of the given chunk looks coherent enough
|
|
1000
|
+
* relatively to what is announced in the Manifest.
|
|
1001
|
+
* @param {Object} thisSegment
|
|
1002
|
+
* @returns {Boolean}
|
|
1003
|
+
*/
|
|
1004
|
+
function bufferedStartLooksCoherent(thisSegment: IBufferedChunk): boolean {
|
|
1005
|
+
if (
|
|
1006
|
+
thisSegment.bufferedStart === undefined ||
|
|
1007
|
+
thisSegment.status !== ChunkStatus.FullyLoaded
|
|
1008
|
+
) {
|
|
1009
|
+
return false;
|
|
1010
|
+
}
|
|
1011
|
+
const { start, end } = thisSegment;
|
|
1012
|
+
const duration = end - start;
|
|
1013
|
+
const {
|
|
1014
|
+
MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE,
|
|
1015
|
+
MAX_MANIFEST_BUFFERED_DURATION_DIFFERENCE,
|
|
1016
|
+
} = config.getCurrent();
|
|
1017
|
+
return (
|
|
1018
|
+
Math.abs(start - thisSegment.bufferedStart) <=
|
|
1019
|
+
MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE &&
|
|
1020
|
+
(thisSegment.bufferedEnd === undefined ||
|
|
1021
|
+
(thisSegment.bufferedEnd > thisSegment.bufferedStart &&
|
|
1022
|
+
Math.abs(thisSegment.bufferedEnd - thisSegment.bufferedStart - duration) <=
|
|
1023
|
+
Math.min(MAX_MANIFEST_BUFFERED_DURATION_DIFFERENCE, duration / 3)))
|
|
1024
|
+
);
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* Returns `true` if the buffered end of the given chunk looks coherent enough
|
|
1029
|
+
* relatively to what is announced in the Manifest.
|
|
1030
|
+
* @param {Object} thisSegment
|
|
1031
|
+
* @returns {Boolean}
|
|
1032
|
+
*/
|
|
1033
|
+
function bufferedEndLooksCoherent(thisSegment: IBufferedChunk): boolean {
|
|
1034
|
+
if (
|
|
1035
|
+
thisSegment.bufferedEnd === undefined ||
|
|
1036
|
+
!thisSegment.infos.segment.complete ||
|
|
1037
|
+
thisSegment.status !== ChunkStatus.FullyLoaded
|
|
1038
|
+
) {
|
|
1039
|
+
return false;
|
|
1040
|
+
}
|
|
1041
|
+
const { start, end } = thisSegment;
|
|
1042
|
+
const duration = end - start;
|
|
1043
|
+
const {
|
|
1044
|
+
MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE,
|
|
1045
|
+
MAX_MANIFEST_BUFFERED_DURATION_DIFFERENCE,
|
|
1046
|
+
} = config.getCurrent();
|
|
1047
|
+
return (
|
|
1048
|
+
Math.abs(end - thisSegment.bufferedEnd) <=
|
|
1049
|
+
MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE &&
|
|
1050
|
+
thisSegment.bufferedStart !== undefined &&
|
|
1051
|
+
thisSegment.bufferedEnd > thisSegment.bufferedStart &&
|
|
1052
|
+
Math.abs(thisSegment.bufferedEnd - thisSegment.bufferedStart - duration) <=
|
|
1053
|
+
Math.min(MAX_MANIFEST_BUFFERED_DURATION_DIFFERENCE, duration / 3)
|
|
1054
|
+
);
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
* Evaluate the given buffered Chunk's buffered start from its range's start,
|
|
1059
|
+
* considering that this chunk is the first one in it.
|
|
1060
|
+
* @param {Object} firstSegmentInRange
|
|
1061
|
+
* @param {number} rangeStart
|
|
1062
|
+
* @param {Object} lastDeletedSegmentInfos
|
|
1063
|
+
*/
|
|
1064
|
+
function guessBufferedStartFromRangeStart(
|
|
1065
|
+
firstSegmentInRange: IBufferedChunk,
|
|
1066
|
+
rangeStart: number,
|
|
1067
|
+
lastDeletedSegmentInfos: { end: number; precizeEnd: boolean } | null,
|
|
1068
|
+
bufferType: string,
|
|
1069
|
+
): void {
|
|
1070
|
+
const {
|
|
1071
|
+
MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE,
|
|
1072
|
+
MISSING_DATA_TRIGGER_SYNC_DELAY,
|
|
1073
|
+
SEGMENT_SYNCHRONIZATION_DELAY,
|
|
1074
|
+
} = config.getCurrent();
|
|
1075
|
+
if (firstSegmentInRange.bufferedStart !== undefined) {
|
|
1076
|
+
if (firstSegmentInRange.bufferedStart < rangeStart) {
|
|
1077
|
+
log.debug(
|
|
1078
|
+
"SI: Segment partially GCed at the start",
|
|
1079
|
+
bufferType,
|
|
1080
|
+
firstSegmentInRange.bufferedStart,
|
|
1081
|
+
rangeStart,
|
|
1082
|
+
);
|
|
1083
|
+
firstSegmentInRange.bufferedStart = rangeStart;
|
|
1084
|
+
}
|
|
1085
|
+
if (
|
|
1086
|
+
!firstSegmentInRange.precizeStart &&
|
|
1087
|
+
bufferedStartLooksCoherent(firstSegmentInRange)
|
|
1088
|
+
) {
|
|
1089
|
+
firstSegmentInRange.start = firstSegmentInRange.bufferedStart;
|
|
1090
|
+
firstSegmentInRange.precizeStart = true;
|
|
1091
|
+
}
|
|
1092
|
+
} else if (firstSegmentInRange.precizeStart) {
|
|
1093
|
+
log.debug(
|
|
1094
|
+
"SI: buffered start is precize start",
|
|
1095
|
+
bufferType,
|
|
1096
|
+
firstSegmentInRange.start,
|
|
1097
|
+
);
|
|
1098
|
+
firstSegmentInRange.bufferedStart = firstSegmentInRange.start;
|
|
1099
|
+
} else if (
|
|
1100
|
+
lastDeletedSegmentInfos !== null &&
|
|
1101
|
+
lastDeletedSegmentInfos.end > rangeStart &&
|
|
1102
|
+
(lastDeletedSegmentInfos.precizeEnd ||
|
|
1103
|
+
firstSegmentInRange.start - lastDeletedSegmentInfos.end <=
|
|
1104
|
+
MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE)
|
|
1105
|
+
) {
|
|
1106
|
+
log.debug(
|
|
1107
|
+
"SI: buffered start is end of previous segment",
|
|
1108
|
+
bufferType,
|
|
1109
|
+
rangeStart,
|
|
1110
|
+
firstSegmentInRange.start,
|
|
1111
|
+
lastDeletedSegmentInfos.end,
|
|
1112
|
+
);
|
|
1113
|
+
firstSegmentInRange.bufferedStart = lastDeletedSegmentInfos.end;
|
|
1114
|
+
if (bufferedStartLooksCoherent(firstSegmentInRange)) {
|
|
1115
|
+
firstSegmentInRange.start = lastDeletedSegmentInfos.end;
|
|
1116
|
+
firstSegmentInRange.precizeStart = true;
|
|
1117
|
+
}
|
|
1118
|
+
} else if (
|
|
1119
|
+
firstSegmentInRange.start - rangeStart <=
|
|
1120
|
+
MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE
|
|
1121
|
+
) {
|
|
1122
|
+
const now = getMonotonicTimeStamp();
|
|
1123
|
+
if (
|
|
1124
|
+
firstSegmentInRange.start - rangeStart >= MISSING_DATA_TRIGGER_SYNC_DELAY &&
|
|
1125
|
+
now - firstSegmentInRange.insertionTs < SEGMENT_SYNCHRONIZATION_DELAY
|
|
1126
|
+
) {
|
|
1127
|
+
log.debug(
|
|
1128
|
+
"SI: Ignored bufferedStart synchronization",
|
|
1129
|
+
bufferType,
|
|
1130
|
+
rangeStart,
|
|
1131
|
+
firstSegmentInRange.start,
|
|
1132
|
+
now - firstSegmentInRange.insertionTs,
|
|
1133
|
+
);
|
|
1134
|
+
return;
|
|
1135
|
+
}
|
|
1136
|
+
log.debug(
|
|
1137
|
+
"SI: found true buffered start",
|
|
1138
|
+
bufferType,
|
|
1139
|
+
rangeStart,
|
|
1140
|
+
firstSegmentInRange.start,
|
|
1141
|
+
);
|
|
1142
|
+
firstSegmentInRange.bufferedStart = rangeStart;
|
|
1143
|
+
if (bufferedStartLooksCoherent(firstSegmentInRange)) {
|
|
1144
|
+
firstSegmentInRange.start = rangeStart;
|
|
1145
|
+
firstSegmentInRange.precizeStart = true;
|
|
1146
|
+
}
|
|
1147
|
+
} else if (rangeStart < firstSegmentInRange.start) {
|
|
1148
|
+
log.debug(
|
|
1149
|
+
"SI: range start too far from expected start",
|
|
1150
|
+
bufferType,
|
|
1151
|
+
rangeStart,
|
|
1152
|
+
firstSegmentInRange.start,
|
|
1153
|
+
);
|
|
1154
|
+
firstSegmentInRange.bufferedStart = firstSegmentInRange.start;
|
|
1155
|
+
} else {
|
|
1156
|
+
const now = getMonotonicTimeStamp();
|
|
1157
|
+
if (
|
|
1158
|
+
firstSegmentInRange.start - rangeStart >= MISSING_DATA_TRIGGER_SYNC_DELAY &&
|
|
1159
|
+
now - firstSegmentInRange.insertionTs < SEGMENT_SYNCHRONIZATION_DELAY
|
|
1160
|
+
) {
|
|
1161
|
+
log.debug(
|
|
1162
|
+
"SI: Ignored bufferedStart synchronization",
|
|
1163
|
+
bufferType,
|
|
1164
|
+
rangeStart,
|
|
1165
|
+
firstSegmentInRange.start,
|
|
1166
|
+
now - firstSegmentInRange.insertionTs,
|
|
1167
|
+
);
|
|
1168
|
+
return;
|
|
1169
|
+
}
|
|
1170
|
+
log.debug(
|
|
1171
|
+
"SI: Segment appears immediately garbage collected at the start",
|
|
1172
|
+
bufferType,
|
|
1173
|
+
rangeStart,
|
|
1174
|
+
firstSegmentInRange.start,
|
|
1175
|
+
);
|
|
1176
|
+
firstSegmentInRange.bufferedStart = rangeStart;
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* Evaluate the given buffered Chunk's buffered end from its range's end,
|
|
1182
|
+
* considering that this chunk is the last one in it.
|
|
1183
|
+
* @param {Object} lastSegmentInRange
|
|
1184
|
+
* @param {number} rangeEnd
|
|
1185
|
+
* @param {string} bufferType
|
|
1186
|
+
*/
|
|
1187
|
+
function guessBufferedEndFromRangeEnd(
|
|
1188
|
+
lastSegmentInRange: IBufferedChunk,
|
|
1189
|
+
rangeEnd: number,
|
|
1190
|
+
bufferType?: string,
|
|
1191
|
+
): void {
|
|
1192
|
+
const {
|
|
1193
|
+
MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE,
|
|
1194
|
+
MISSING_DATA_TRIGGER_SYNC_DELAY,
|
|
1195
|
+
SEGMENT_SYNCHRONIZATION_DELAY,
|
|
1196
|
+
} = config.getCurrent();
|
|
1197
|
+
if (lastSegmentInRange.bufferedEnd !== undefined) {
|
|
1198
|
+
if (lastSegmentInRange.bufferedEnd > rangeEnd) {
|
|
1199
|
+
log.debug(
|
|
1200
|
+
"SI: Segment partially GCed at the end",
|
|
1201
|
+
bufferType,
|
|
1202
|
+
lastSegmentInRange.bufferedEnd,
|
|
1203
|
+
rangeEnd,
|
|
1204
|
+
);
|
|
1205
|
+
lastSegmentInRange.bufferedEnd = rangeEnd;
|
|
1206
|
+
}
|
|
1207
|
+
if (
|
|
1208
|
+
!lastSegmentInRange.precizeEnd &&
|
|
1209
|
+
rangeEnd - lastSegmentInRange.end <= MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE &&
|
|
1210
|
+
bufferedEndLooksCoherent(lastSegmentInRange)
|
|
1211
|
+
) {
|
|
1212
|
+
lastSegmentInRange.precizeEnd = true;
|
|
1213
|
+
lastSegmentInRange.end = rangeEnd;
|
|
1214
|
+
}
|
|
1215
|
+
} else if (lastSegmentInRange.precizeEnd) {
|
|
1216
|
+
log.debug("SI: buffered end is precize end", bufferType, lastSegmentInRange.end);
|
|
1217
|
+
lastSegmentInRange.bufferedEnd = lastSegmentInRange.end;
|
|
1218
|
+
} else if (
|
|
1219
|
+
rangeEnd - lastSegmentInRange.end <= MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE ||
|
|
1220
|
+
!lastSegmentInRange.infos.segment.complete
|
|
1221
|
+
) {
|
|
1222
|
+
const now = getMonotonicTimeStamp();
|
|
1223
|
+
if (
|
|
1224
|
+
rangeEnd - lastSegmentInRange.end >= MISSING_DATA_TRIGGER_SYNC_DELAY &&
|
|
1225
|
+
now - lastSegmentInRange.insertionTs < SEGMENT_SYNCHRONIZATION_DELAY
|
|
1226
|
+
) {
|
|
1227
|
+
log.debug(
|
|
1228
|
+
"SI: Ignored bufferedEnd synchronization",
|
|
1229
|
+
bufferType,
|
|
1230
|
+
rangeEnd,
|
|
1231
|
+
lastSegmentInRange.end,
|
|
1232
|
+
now - lastSegmentInRange.insertionTs,
|
|
1233
|
+
);
|
|
1234
|
+
return;
|
|
1235
|
+
}
|
|
1236
|
+
log.debug(
|
|
1237
|
+
"SI: found true buffered end",
|
|
1238
|
+
bufferType,
|
|
1239
|
+
rangeEnd,
|
|
1240
|
+
lastSegmentInRange.end,
|
|
1241
|
+
);
|
|
1242
|
+
lastSegmentInRange.bufferedEnd = rangeEnd;
|
|
1243
|
+
if (bufferedEndLooksCoherent(lastSegmentInRange)) {
|
|
1244
|
+
lastSegmentInRange.end = rangeEnd;
|
|
1245
|
+
lastSegmentInRange.precizeEnd = true;
|
|
1246
|
+
}
|
|
1247
|
+
} else if (rangeEnd > lastSegmentInRange.end) {
|
|
1248
|
+
log.debug(
|
|
1249
|
+
"SI: range end too far from expected end",
|
|
1250
|
+
bufferType,
|
|
1251
|
+
rangeEnd,
|
|
1252
|
+
lastSegmentInRange.end,
|
|
1253
|
+
);
|
|
1254
|
+
lastSegmentInRange.bufferedEnd = lastSegmentInRange.end;
|
|
1255
|
+
} else {
|
|
1256
|
+
const now = getMonotonicTimeStamp();
|
|
1257
|
+
if (
|
|
1258
|
+
rangeEnd - lastSegmentInRange.end >= MISSING_DATA_TRIGGER_SYNC_DELAY &&
|
|
1259
|
+
now - lastSegmentInRange.insertionTs < SEGMENT_SYNCHRONIZATION_DELAY
|
|
1260
|
+
) {
|
|
1261
|
+
log.debug(
|
|
1262
|
+
"SI: Ignored bufferedEnd synchronization",
|
|
1263
|
+
bufferType,
|
|
1264
|
+
rangeEnd,
|
|
1265
|
+
lastSegmentInRange.end,
|
|
1266
|
+
now - lastSegmentInRange.insertionTs,
|
|
1267
|
+
);
|
|
1268
|
+
return;
|
|
1269
|
+
}
|
|
1270
|
+
log.debug(
|
|
1271
|
+
"SI: Segment appears immediately garbage collected at the end",
|
|
1272
|
+
bufferType,
|
|
1273
|
+
lastSegmentInRange.bufferedEnd,
|
|
1274
|
+
rangeEnd,
|
|
1275
|
+
);
|
|
1276
|
+
lastSegmentInRange.bufferedEnd = rangeEnd;
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
* Pretty print the inventory, to easily note which segments are where in the
|
|
1282
|
+
* current buffer.
|
|
1283
|
+
*
|
|
1284
|
+
* This is mostly useful when logging.
|
|
1285
|
+
*
|
|
1286
|
+
* @example
|
|
1287
|
+
* This function is called by giving it the inventory, such as:
|
|
1288
|
+
* ```js
|
|
1289
|
+
* prettyPrintInventory(inventory);
|
|
1290
|
+
* ```
|
|
1291
|
+
*
|
|
1292
|
+
* Let's consider this possible return:
|
|
1293
|
+
* ```
|
|
1294
|
+
* 0.00|A|9.00 ~ 9.00|B|45.08 ~ 282.08|B|318.08
|
|
1295
|
+
* [A] P: gen-dash-period-0 || R: video/5(2362822)
|
|
1296
|
+
* [B] P: gen-dash-period-0 || R: video/6(2470094)
|
|
1297
|
+
* ```
|
|
1298
|
+
* We have a first part, from 0 to 9 seconds, which contains segments for
|
|
1299
|
+
* the Representation with the id "video/5" and an associated bitrate of
|
|
1300
|
+
* 2362822 bits per seconds (in the Period with the id "gen-dash-period-0").
|
|
1301
|
+
*
|
|
1302
|
+
* Then from 9.00 seconds to 45.08 seconds, we have segments from another
|
|
1303
|
+
* Representation from the same Period (with the id "video/6" and a bitrate
|
|
1304
|
+
* of 2470094 bits per seconds).
|
|
1305
|
+
*
|
|
1306
|
+
* At last we have a long time between 45.08 and 282.08 with no segment followed
|
|
1307
|
+
* by a segment from that same Representation between 282.08 seconds and 318.08
|
|
1308
|
+
* seconds.
|
|
1309
|
+
* @param {Array.<Object>} inventory
|
|
1310
|
+
* @returns {string}
|
|
1311
|
+
*/
|
|
1312
|
+
function prettyPrintInventory(inventory: IBufferedChunk[]): string {
|
|
1313
|
+
const roundingError = 1 / 60;
|
|
1314
|
+
const encounteredReps: Partial<
|
|
1315
|
+
Record<
|
|
1316
|
+
string /* Period `id` */,
|
|
1317
|
+
Partial<Record<string /* Representation `id` */, string /* associated letter */>>
|
|
1318
|
+
>
|
|
1319
|
+
> = {};
|
|
1320
|
+
const letters: Array<{
|
|
1321
|
+
letter: string;
|
|
1322
|
+
periodId: string;
|
|
1323
|
+
representationId: string | number;
|
|
1324
|
+
bitrate?: number;
|
|
1325
|
+
}> = [];
|
|
1326
|
+
let lastChunk: IBufferedChunk | null = null;
|
|
1327
|
+
let lastLetter: string | null = null;
|
|
1328
|
+
|
|
1329
|
+
function generateNewLetter(infos: IChunkContext): string {
|
|
1330
|
+
const currentLetter = String.fromCharCode(letters.length + 65);
|
|
1331
|
+
letters.push({
|
|
1332
|
+
letter: currentLetter,
|
|
1333
|
+
periodId: infos.period.id,
|
|
1334
|
+
representationId: infos.representation.id,
|
|
1335
|
+
bitrate: infos.representation.bitrate,
|
|
1336
|
+
});
|
|
1337
|
+
return currentLetter;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
let str = "";
|
|
1341
|
+
for (let i = 0; i < inventory.length; i++) {
|
|
1342
|
+
const chunk = inventory[i];
|
|
1343
|
+
if (chunk.bufferedStart !== undefined && chunk.bufferedEnd !== undefined) {
|
|
1344
|
+
const periodId = chunk.infos.period.id;
|
|
1345
|
+
const representationId = chunk.infos.representation.id;
|
|
1346
|
+
const encounteredPeriod = encounteredReps[periodId];
|
|
1347
|
+
|
|
1348
|
+
let currentLetter: string;
|
|
1349
|
+
if (encounteredPeriod === undefined) {
|
|
1350
|
+
currentLetter = generateNewLetter(chunk.infos);
|
|
1351
|
+
encounteredReps[periodId] = { [representationId]: currentLetter };
|
|
1352
|
+
} else if (encounteredPeriod[representationId] === undefined) {
|
|
1353
|
+
currentLetter = generateNewLetter(chunk.infos);
|
|
1354
|
+
encounteredPeriod[representationId] = currentLetter;
|
|
1355
|
+
} else {
|
|
1356
|
+
currentLetter = encounteredPeriod[representationId] as string;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
if (lastChunk === null) {
|
|
1360
|
+
str += `${chunk.bufferedStart.toFixed(2)}|${currentLetter}|`;
|
|
1361
|
+
} else if (lastLetter === currentLetter) {
|
|
1362
|
+
if ((lastChunk.bufferedEnd as number) + roundingError < chunk.bufferedStart) {
|
|
1363
|
+
str +=
|
|
1364
|
+
`${(lastChunk.bufferedEnd as number).toFixed(2)} ~ ` +
|
|
1365
|
+
`${chunk.bufferedStart.toFixed(2)}|${currentLetter}|`;
|
|
1366
|
+
}
|
|
1367
|
+
} else {
|
|
1368
|
+
str +=
|
|
1369
|
+
`${(lastChunk.bufferedEnd as number).toFixed(2)} ~ ` +
|
|
1370
|
+
`${chunk.bufferedStart.toFixed(2)}|${currentLetter}|`;
|
|
1371
|
+
}
|
|
1372
|
+
lastChunk = chunk;
|
|
1373
|
+
lastLetter = currentLetter;
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
if (lastChunk !== null) {
|
|
1377
|
+
str += String(lastChunk.end.toFixed(2));
|
|
1378
|
+
}
|
|
1379
|
+
letters.forEach((letterInfo) => {
|
|
1380
|
+
str +=
|
|
1381
|
+
`\n[${letterInfo.letter}] ` +
|
|
1382
|
+
`P: ${letterInfo.periodId} || R: ${letterInfo.representationId}` +
|
|
1383
|
+
`(${letterInfo.bitrate ?? "unknown bitrate"})`;
|
|
1384
|
+
});
|
|
1385
|
+
return str;
|
|
1386
|
+
}
|