rx-player 4.0.0-dev.2023102700 → 4.0.0-dev.2023110700
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +1 -1
- package/.github/workflows/checks.yml +2 -2
- package/.github/workflows/perfs.yml +1 -1
- package/CHANGELOG.md +8 -4
- package/FILES.md +1 -2
- package/VERSION +1 -1
- package/dist/_esm5.processed/compat/add_class_name.js +3 -6
- package/dist/_esm5.processed/compat/add_text_track.d.ts +3 -1
- package/dist/_esm5.processed/compat/add_text_track.js +14 -14
- package/dist/_esm5.processed/compat/browser_compatibility_types.d.ts +8 -0
- package/dist/_esm5.processed/compat/browser_compatibility_types.js +11 -16
- package/dist/_esm5.processed/compat/browser_detection.js +33 -49
- package/dist/_esm5.processed/compat/browser_version.js +8 -11
- package/dist/_esm5.processed/compat/can_patch_isobmff.js +3 -6
- package/dist/_esm5.processed/compat/can_rely_on_video_visibility_and_size.js +6 -9
- package/dist/_esm5.processed/compat/can_reuse_media_keys.js +3 -6
- package/dist/_esm5.processed/compat/change_source_buffer_type.js +3 -6
- package/dist/_esm5.processed/compat/clear_element_src.js +9 -12
- package/dist/_esm5.processed/compat/eme/close_session.js +106 -45
- package/dist/_esm5.processed/compat/eme/constants.js +3 -6
- package/dist/_esm5.processed/compat/eme/custom_key_system_access.js +22 -18
- package/dist/_esm5.processed/compat/eme/custom_media_keys/ie11_media_keys.js +102 -78
- package/dist/_esm5.processed/compat/eme/custom_media_keys/index.js +6 -16
- package/dist/_esm5.processed/compat/eme/custom_media_keys/moz_media_keys_constructor.js +24 -25
- package/dist/_esm5.processed/compat/eme/custom_media_keys/ms_media_keys_constructor.js +14 -14
- package/dist/_esm5.processed/compat/eme/custom_media_keys/old_webkit_media_keys.js +88 -70
- package/dist/_esm5.processed/compat/eme/custom_media_keys/types.js +1 -2
- package/dist/_esm5.processed/compat/eme/custom_media_keys/webkit_media_keys.js +117 -91
- package/dist/_esm5.processed/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +16 -14
- package/dist/_esm5.processed/compat/eme/eme-api-implementation.js +82 -82
- package/dist/_esm5.processed/compat/eme/generate_key_request.js +31 -36
- package/dist/_esm5.processed/compat/eme/get_init_data.js +25 -28
- package/dist/_esm5.processed/compat/eme/get_uuid_kid_from_keystatus_kid.js +5 -8
- package/dist/_esm5.processed/compat/eme/get_webkit_fairplay_initdata.js +14 -17
- package/dist/_esm5.processed/compat/eme/index.js +7 -13
- package/dist/_esm5.processed/compat/eme/load_session.js +69 -26
- package/dist/_esm5.processed/compat/enable_audio_track.js +4 -7
- package/dist/_esm5.processed/compat/event_listeners.d.ts +16 -23
- package/dist/_esm5.processed/compat/event_listeners.js +149 -179
- package/dist/_esm5.processed/compat/fullscreen.d.ts +32 -0
- package/dist/_esm5.processed/compat/fullscreen.js +78 -0
- package/dist/_esm5.processed/compat/get_start_date.js +4 -7
- package/dist/_esm5.processed/compat/has_issues_with_high_media_source_duration.js +3 -6
- package/dist/_esm5.processed/compat/index.d.ts +3 -1
- package/dist/_esm5.processed/compat/index.js +26 -47
- package/dist/_esm5.processed/compat/is_codec_supported.js +5 -8
- package/dist/_esm5.processed/compat/is_debug_mode_enabled.js +1 -4
- package/dist/_esm5.processed/compat/is_node.d.ts +0 -1
- package/dist/_esm5.processed/compat/is_node.js +2 -6
- package/dist/_esm5.processed/compat/is_offline.d.ts +39 -0
- package/dist/_esm5.processed/compat/is_offline.js +43 -0
- package/dist/_esm5.processed/compat/is_seeking_approximate.js +3 -5
- package/dist/_esm5.processed/compat/is_vtt_cue.js +2 -6
- package/dist/_esm5.processed/compat/make_vtt_cue.js +6 -10
- package/dist/_esm5.processed/compat/on_height_width_change.js +27 -25
- package/dist/_esm5.processed/compat/patch_webkit_source_buffer.js +16 -19
- package/dist/_esm5.processed/compat/remove_cue.js +9 -12
- package/dist/_esm5.processed/compat/should_favour_custom_safari_EME.js +4 -7
- package/dist/_esm5.processed/compat/should_reload_media_source_on_decipherability_update.js +1 -4
- package/dist/_esm5.processed/compat/should_renew_media_key_system_access.js +3 -6
- package/dist/_esm5.processed/compat/should_unset_media_keys.js +3 -6
- package/dist/_esm5.processed/compat/should_validate_metadata.js +3 -6
- package/dist/_esm5.processed/compat/should_wait_for_data_before_loaded.js +3 -6
- package/dist/_esm5.processed/compat/should_wait_for_have_enough_data.js +3 -6
- package/dist/_esm5.processed/config.d.ts +22 -10
- package/dist/_esm5.processed/config.js +14 -15
- package/dist/_esm5.processed/core/adaptive/adaptive_representation_selector.d.ts +60 -3
- package/dist/_esm5.processed/core/adaptive/adaptive_representation_selector.js +140 -130
- package/dist/_esm5.processed/core/adaptive/buffer_based_chooser.d.ts +2 -2
- package/dist/_esm5.processed/core/adaptive/buffer_based_chooser.js +41 -43
- package/dist/_esm5.processed/core/adaptive/guess_based_chooser.js +43 -37
- package/dist/_esm5.processed/core/adaptive/index.js +2 -4
- package/dist/_esm5.processed/core/adaptive/network_analyzer.js +73 -75
- package/dist/_esm5.processed/core/adaptive/utils/bandwidth_estimator.js +23 -24
- package/dist/_esm5.processed/core/adaptive/utils/ewma.js +12 -13
- package/dist/_esm5.processed/core/adaptive/utils/filter_by_bitrate.js +6 -9
- package/dist/_esm5.processed/core/adaptive/utils/filter_by_width.d.ts +25 -0
- package/dist/_esm5.processed/core/adaptive/utils/filter_by_width.js +42 -0
- package/dist/_esm5.processed/core/adaptive/utils/get_buffer_levels.js +7 -10
- package/dist/_esm5.processed/core/adaptive/utils/last_estimate_storage.js +7 -8
- package/dist/_esm5.processed/core/adaptive/utils/pending_requests_store.d.ts +3 -13
- package/dist/_esm5.processed/core/adaptive/utils/pending_requests_store.js +23 -26
- package/dist/_esm5.processed/core/adaptive/utils/representation_score_calculator.js +23 -25
- package/dist/_esm5.processed/core/adaptive/utils/select_optimal_representation.d.ts +8 -2
- package/dist/_esm5.processed/core/adaptive/utils/select_optimal_representation.js +13 -7
- package/dist/_esm5.processed/core/api/debug/buffer_graph.js +40 -41
- package/dist/_esm5.processed/core/api/debug/buffer_size_graph.js +29 -31
- package/dist/_esm5.processed/core/api/debug/constants.js +1 -4
- package/dist/_esm5.processed/core/api/debug/index.js +2 -4
- package/dist/_esm5.processed/core/api/debug/modules/general_info.js +94 -67
- package/dist/_esm5.processed/core/api/debug/modules/segment_buffer_content.js +46 -49
- package/dist/_esm5.processed/core/api/debug/modules/segment_buffer_size.js +12 -15
- package/dist/_esm5.processed/core/api/debug/render.js +13 -16
- package/dist/_esm5.processed/core/api/debug/utils.js +13 -18
- package/dist/_esm5.processed/core/api/index.js +4 -7
- package/dist/_esm5.processed/core/api/option_utils.d.ts +36 -13
- package/dist/_esm5.processed/core/api/option_utils.js +283 -111
- package/dist/_esm5.processed/core/api/playback_observer.d.ts +2 -8
- package/dist/_esm5.processed/core/api/playback_observer.js +123 -135
- package/dist/_esm5.processed/core/api/public_api.d.ts +276 -115
- package/dist/_esm5.processed/core/api/public_api.js +1313 -973
- package/dist/_esm5.processed/core/api/tracks_management/media_element_track_choice_manager.d.ts +257 -0
- package/dist/_esm5.processed/core/api/tracks_management/media_element_track_choice_manager.js +805 -0
- package/dist/_esm5.processed/core/api/tracks_management/track_choice_manager.d.ts +258 -0
- package/dist/_esm5.processed/core/api/tracks_management/track_choice_manager.js +989 -0
- package/dist/_esm5.processed/core/api/utils.d.ts +0 -1
- package/dist/_esm5.processed/core/api/utils.js +32 -51
- package/dist/_esm5.processed/core/decrypt/__tests__/__global__/utils.js +185 -155
- package/dist/_esm5.processed/core/decrypt/attach_media_keys.js +81 -42
- package/dist/_esm5.processed/core/decrypt/clear_on_stop.js +12 -15
- package/dist/_esm5.processed/core/decrypt/content_decryptor.js +511 -393
- package/dist/_esm5.processed/core/decrypt/create_or_load_session.js +90 -44
- package/dist/_esm5.processed/core/decrypt/create_session.js +149 -90
- package/dist/_esm5.processed/core/decrypt/dispose_decryption_resources.js +67 -24
- package/dist/_esm5.processed/core/decrypt/find_key_system.js +193 -144
- package/dist/_esm5.processed/core/decrypt/get_key_system_configuration.d.ts +8 -0
- package/dist/_esm5.processed/core/decrypt/get_key_system_configuration.js +15 -6
- package/dist/_esm5.processed/core/decrypt/get_media_keys.js +110 -61
- package/dist/_esm5.processed/core/decrypt/index.d.ts +2 -2
- package/dist/_esm5.processed/core/decrypt/index.js +7 -26
- package/dist/_esm5.processed/core/decrypt/init_media_keys.js +59 -17
- package/dist/_esm5.processed/core/decrypt/session_events_listener.js +222 -89
- package/dist/_esm5.processed/core/decrypt/set_server_certificate.js +103 -50
- package/dist/_esm5.processed/core/decrypt/types.js +2 -5
- package/dist/_esm5.processed/core/decrypt/utils/are_init_values_compatible.js +19 -22
- package/dist/_esm5.processed/core/decrypt/utils/check_key_statuses.d.ts +1 -1
- package/dist/_esm5.processed/core/decrypt/utils/check_key_statuses.js +65 -79
- package/dist/_esm5.processed/core/decrypt/utils/clean_old_loaded_sessions.js +61 -17
- package/dist/_esm5.processed/core/decrypt/utils/clean_old_stored_persistent_info.js +5 -8
- package/dist/_esm5.processed/core/decrypt/utils/get_drm_system_id.js +5 -8
- package/dist/_esm5.processed/core/decrypt/utils/init_data_values_container.js +23 -23
- package/dist/_esm5.processed/core/decrypt/utils/is_session_usable.js +12 -15
- package/dist/_esm5.processed/core/decrypt/utils/key_id_comparison.js +21 -14
- package/dist/_esm5.processed/core/decrypt/utils/key_session_record.js +27 -26
- package/dist/_esm5.processed/core/decrypt/utils/loaded_sessions_store.js +310 -206
- package/dist/_esm5.processed/core/decrypt/utils/media_keys_infos_store.js +6 -8
- package/dist/_esm5.processed/core/decrypt/utils/persistent_sessions_store.d.ts +4 -4
- package/dist/_esm5.processed/core/decrypt/utils/persistent_sessions_store.js +103 -106
- package/dist/_esm5.processed/core/decrypt/utils/serializable_bytes.js +12 -13
- package/dist/_esm5.processed/core/decrypt/utils/server_certificate_store.js +16 -18
- package/dist/_esm5.processed/core/fetchers/cdn_prioritizer.js +56 -37
- package/dist/_esm5.processed/core/fetchers/index.js +3 -7
- package/dist/_esm5.processed/core/fetchers/manifest/index.js +2 -4
- package/dist/_esm5.processed/core/fetchers/manifest/manifest_fetcher.d.ts +3 -1
- package/dist/_esm5.processed/core/fetchers/manifest/manifest_fetcher.js +332 -234
- package/dist/_esm5.processed/core/fetchers/segment/index.js +2 -4
- package/dist/_esm5.processed/core/fetchers/segment/prioritized_segment_fetcher.js +9 -12
- package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher.d.ts +9 -3
- package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher.js +227 -219
- package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher_creator.d.ts +3 -1
- package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher_creator.js +19 -20
- package/dist/_esm5.processed/core/fetchers/segment/task_prioritizer.js +74 -73
- package/dist/_esm5.processed/core/fetchers/utils/error_selector.js +5 -8
- package/dist/_esm5.processed/core/fetchers/utils/schedule_request.d.ts +6 -1
- package/dist/_esm5.processed/core/fetchers/utils/schedule_request.js +297 -210
- package/dist/_esm5.processed/core/init/directfile_content_initializer.js +99 -73
- package/dist/_esm5.processed/core/init/index.js +1 -5
- package/dist/_esm5.processed/core/init/media_source_content_initializer.d.ts +8 -1
- package/dist/_esm5.processed/core/init/media_source_content_initializer.js +324 -256
- package/dist/_esm5.processed/core/init/types.d.ts +30 -6
- package/dist/_esm5.processed/core/init/types.js +24 -7
- package/dist/_esm5.processed/core/init/utils/content_time_boundaries_observer.js +135 -109
- package/dist/_esm5.processed/core/init/utils/create_media_source.js +30 -35
- package/dist/_esm5.processed/core/init/utils/create_stream_playback_observer.js +10 -12
- package/dist/_esm5.processed/core/init/utils/end_of_stream.js +26 -30
- package/dist/_esm5.processed/core/init/utils/get_initial_time.js +37 -41
- package/dist/_esm5.processed/core/init/utils/get_loaded_reference.js +10 -13
- package/dist/_esm5.processed/core/init/utils/initial_seek_and_play.js +26 -29
- package/dist/_esm5.processed/core/init/utils/initialize_content_decryption.js +27 -30
- package/dist/_esm5.processed/core/init/utils/media_source_duration_updater.js +60 -58
- package/dist/_esm5.processed/core/init/utils/rebuffering_controller.d.ts +3 -3
- package/dist/_esm5.processed/core/init/utils/rebuffering_controller.js +160 -141
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/are_same_stream_events.js +1 -3
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/index.js +2 -4
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +30 -28
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/stream_events_emitter.js +90 -71
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/types.js +1 -2
- package/dist/_esm5.processed/core/init/utils/throw_on_media_error.js +13 -16
- package/dist/_esm5.processed/core/segment_buffers/garbage_collector.js +126 -75
- package/dist/_esm5.processed/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.js +147 -130
- package/dist/_esm5.processed/core/segment_buffers/implementations/audio_video/index.js +2 -4
- package/dist/_esm5.processed/core/segment_buffers/implementations/image/image_segment_buffer.d.ts +75 -0
- package/dist/_esm5.processed/core/segment_buffers/implementations/image/image_segment_buffer.js +133 -0
- package/dist/_esm5.processed/core/segment_buffers/implementations/image/index.d.ts +17 -0
- package/dist/_esm5.processed/core/segment_buffers/implementations/image/index.js +17 -0
- package/dist/_esm5.processed/core/segment_buffers/implementations/index.js +3 -20
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/html_text_segment_buffer.js +125 -106
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/index.js +2 -4
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/parsers.js +8 -11
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/text_track_cues_store.js +47 -48
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/types.js +1 -2
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/update_proportional_elements.js +15 -18
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/utils.js +15 -22
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/index.js +2 -4
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/native_text_segment_buffer.d.ts +2 -1
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/native_text_segment_buffer.js +83 -65
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/parsers.js +8 -11
- package/dist/_esm5.processed/core/segment_buffers/implementations/types.d.ts +2 -2
- package/dist/_esm5.processed/core/segment_buffers/implementations/types.js +17 -19
- package/dist/_esm5.processed/core/segment_buffers/implementations/utils/manual_time_ranges.js +22 -23
- package/dist/_esm5.processed/core/segment_buffers/index.d.ts +2 -2
- package/dist/_esm5.processed/core/segment_buffers/index.js +5 -13
- package/dist/_esm5.processed/core/segment_buffers/inventory/buffered_history.d.ts +2 -2
- package/dist/_esm5.processed/core/segment_buffers/inventory/buffered_history.js +22 -25
- package/dist/_esm5.processed/core/segment_buffers/inventory/index.d.ts +0 -1
- package/dist/_esm5.processed/core/segment_buffers/inventory/index.js +2 -8
- package/dist/_esm5.processed/core/segment_buffers/inventory/segment_inventory.js +150 -152
- package/dist/_esm5.processed/core/segment_buffers/inventory/types.js +1 -2
- package/dist/_esm5.processed/core/segment_buffers/segment_buffers_store.d.ts +1 -0
- package/dist/_esm5.processed/core/segment_buffers/segment_buffers_store.js +104 -83
- package/dist/_esm5.processed/core/stream/adaptation/adaptation_stream.d.ts +16 -1
- package/dist/_esm5.processed/core/stream/adaptation/adaptation_stream.js +144 -204
- package/dist/_esm5.processed/core/stream/adaptation/index.js +3 -19
- package/dist/_esm5.processed/core/stream/adaptation/types.d.ts +15 -37
- package/dist/_esm5.processed/core/stream/adaptation/types.js +1 -2
- package/dist/_esm5.processed/core/stream/adaptation/utils/create_representation_estimator.d.ts +47 -0
- package/dist/_esm5.processed/core/stream/adaptation/utils/create_representation_estimator.js +70 -0
- package/dist/_esm5.processed/core/stream/index.d.ts +3 -2
- package/dist/_esm5.processed/core/stream/index.js +2 -4
- package/dist/_esm5.processed/core/stream/orchestrator/get_time_ranges_for_content.js +16 -14
- package/dist/_esm5.processed/core/stream/orchestrator/index.js +2 -4
- package/dist/_esm5.processed/core/stream/orchestrator/stream_orchestrator.d.ts +0 -2
- package/dist/_esm5.processed/core/stream/orchestrator/stream_orchestrator.js +214 -223
- package/dist/_esm5.processed/core/stream/period/index.js +3 -19
- package/dist/_esm5.processed/core/stream/period/period_stream.js +201 -179
- package/dist/_esm5.processed/core/stream/period/types.d.ts +15 -6
- package/dist/_esm5.processed/core/stream/period/types.js +1 -2
- package/dist/_esm5.processed/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +4 -2
- package/dist/_esm5.processed/core/stream/period/utils/get_adaptation_switch_strategy.js +73 -38
- package/dist/_esm5.processed/core/stream/representation/index.js +3 -19
- package/dist/_esm5.processed/core/stream/representation/representation_stream.d.ts +1 -1
- package/dist/_esm5.processed/core/stream/representation/representation_stream.js +86 -104
- package/dist/_esm5.processed/core/stream/representation/types.d.ts +5 -14
- package/dist/_esm5.processed/core/stream/representation/types.js +1 -2
- package/dist/_esm5.processed/core/stream/representation/utils/append_segment_to_buffer.js +84 -33
- package/dist/_esm5.processed/core/stream/representation/utils/check_for_discontinuity.js +29 -32
- package/dist/_esm5.processed/core/stream/representation/utils/downloading_queue.js +145 -126
- package/dist/_esm5.processed/core/stream/representation/utils/force_garbage_collection.js +88 -32
- package/dist/_esm5.processed/core/stream/representation/utils/get_buffer_status.js +48 -61
- package/dist/_esm5.processed/core/stream/representation/utils/get_needed_segments.js +69 -71
- package/dist/_esm5.processed/core/stream/representation/utils/get_segment_priority.js +5 -8
- package/dist/_esm5.processed/core/stream/representation/utils/push_init_segment.d.ts +2 -2
- package/dist/_esm5.processed/core/stream/representation/utils/push_init_segment.js +63 -22
- package/dist/_esm5.processed/core/stream/representation/utils/push_media_segment.d.ts +1 -1
- package/dist/_esm5.processed/core/stream/representation/utils/push_media_segment.js +86 -49
- package/dist/_esm5.processed/default_config.d.ts +103 -41
- package/dist/_esm5.processed/default_config.js +120 -46
- package/dist/_esm5.processed/errors/assertion_error.js +26 -10
- package/dist/_esm5.processed/errors/custom_loader_error.d.ts +3 -1
- package/dist/_esm5.processed/errors/custom_loader_error.js +30 -12
- package/dist/_esm5.processed/errors/encrypted_media_error.js +32 -16
- package/dist/_esm5.processed/errors/error_codes.js +4 -9
- package/dist/_esm5.processed/errors/error_message.d.ts +2 -1
- package/dist/_esm5.processed/errors/error_message.js +3 -5
- package/dist/_esm5.processed/errors/format_error.js +7 -9
- package/dist/_esm5.processed/errors/index.js +11 -25
- package/dist/_esm5.processed/errors/is_known_error.js +11 -14
- package/dist/_esm5.processed/errors/media_error.d.ts +2 -2
- package/dist/_esm5.processed/errors/media_error.js +47 -34
- package/dist/_esm5.processed/errors/network_error.d.ts +1 -0
- package/dist/_esm5.processed/errors/network_error.js +38 -21
- package/dist/_esm5.processed/errors/other_error.js +31 -15
- package/dist/_esm5.processed/errors/request_error.d.ts +3 -2
- package/dist/_esm5.processed/errors/request_error.js +37 -18
- package/dist/_esm5.processed/experimental/features/dash_wasm.js +11 -14
- package/dist/_esm5.processed/experimental/features/debug_element.js +4 -7
- package/dist/_esm5.processed/experimental/features/index.js +4 -11
- package/dist/_esm5.processed/experimental/features/local.js +6 -9
- package/dist/_esm5.processed/experimental/features/metaplaylist.js +6 -9
- package/dist/_esm5.processed/experimental/index.js +2 -5
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/features/dash.js +3 -6
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/features/metaplaylist.js +3 -6
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/index.js +3 -7
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +16 -22
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +19 -22
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +3 -6
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/types.js +1 -2
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +188 -127
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.js +27 -11
- package/dist/_esm5.processed/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +119 -76
- package/dist/_esm5.processed/experimental/tools/createMetaplaylist/index.js +15 -24
- package/dist/_esm5.processed/experimental/tools/index.js +5 -11
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/api/index.js +43 -38
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.js +34 -31
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/capabilities.js +18 -21
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/index.js +2 -4
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/log.js +3 -5
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.js +17 -20
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.js +18 -21
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +10 -13
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.js +13 -16
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/index.js +14 -16
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.js +11 -14
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.js +11 -14
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.js +15 -19
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +7 -11
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/types.js +2 -5
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/utils.js +22 -25
- package/dist/_esm5.processed/experimental/tools/parseBIFThumbnails.js +4 -7
- package/dist/_esm5.processed/features/add_features.js +8 -11
- package/dist/_esm5.processed/features/features_object.js +4 -4
- package/dist/_esm5.processed/features/index.js +4 -7
- package/dist/_esm5.processed/features/list/bif_parser.d.ts +23 -0
- package/dist/_esm5.processed/features/list/bif_parser.js +27 -0
- package/dist/_esm5.processed/features/list/dash.js +8 -11
- package/dist/_esm5.processed/features/list/directfile.js +8 -9
- package/dist/_esm5.processed/features/list/eme.js +4 -7
- package/dist/_esm5.processed/features/list/html_sami_parser.js +6 -9
- package/dist/_esm5.processed/features/list/html_srt_parser.js +6 -9
- package/dist/_esm5.processed/features/list/html_text_buffer.js +4 -7
- package/dist/_esm5.processed/features/list/html_ttml_parser.js +6 -9
- package/dist/_esm5.processed/features/list/html_vtt_parser.js +6 -9
- package/dist/_esm5.processed/features/list/image_buffer.d.ts +23 -0
- package/dist/_esm5.processed/features/list/image_buffer.js +25 -0
- package/dist/_esm5.processed/features/list/index.d.ts +2 -0
- package/dist/_esm5.processed/features/list/index.js +16 -31
- package/dist/_esm5.processed/features/list/native_sami_parser.js +6 -9
- package/dist/_esm5.processed/features/list/native_srt_parser.js +6 -9
- package/dist/_esm5.processed/features/list/native_text_buffer.js +4 -7
- package/dist/_esm5.processed/features/list/native_ttml_parser.js +6 -9
- package/dist/_esm5.processed/features/list/native_vtt_parser.js +6 -9
- package/dist/_esm5.processed/features/list/smooth.js +6 -9
- package/dist/_esm5.processed/features/types.d.ts +27 -3
- package/dist/_esm5.processed/features/types.js +1 -2
- package/dist/_esm5.processed/log.js +3 -5
- package/dist/_esm5.processed/manifest/adaptation.d.ts +11 -9
- package/dist/_esm5.processed/manifest/adaptation.js +69 -77
- package/dist/_esm5.processed/manifest/index.d.ts +4 -3
- package/dist/_esm5.processed/manifest/index.js +13 -32
- package/dist/_esm5.processed/manifest/manifest.d.ts +60 -8
- package/dist/_esm5.processed/manifest/manifest.js +241 -119
- package/dist/_esm5.processed/manifest/period.d.ts +11 -5
- package/dist/_esm5.processed/manifest/period.js +46 -39
- package/dist/_esm5.processed/manifest/representation.d.ts +5 -10
- package/dist/_esm5.processed/manifest/representation.js +59 -84
- package/dist/_esm5.processed/manifest/representation_index/index.d.ts +2 -2
- package/dist/_esm5.processed/manifest/representation_index/index.js +2 -5
- package/dist/_esm5.processed/manifest/representation_index/static.d.ts +0 -2
- package/dist/_esm5.processed/manifest/representation_index/static.js +36 -43
- package/dist/_esm5.processed/manifest/representation_index/types.d.ts +21 -42
- package/dist/_esm5.processed/manifest/representation_index/types.js +1 -2
- package/dist/_esm5.processed/manifest/types.d.ts +2 -0
- package/dist/_esm5.processed/manifest/types.js +2 -5
- package/dist/_esm5.processed/manifest/update_period_in_place.js +48 -38
- package/dist/_esm5.processed/manifest/update_periods.js +69 -59
- package/dist/_esm5.processed/manifest/utils.js +9 -14
- package/dist/_esm5.processed/minimal.js +7 -9
- package/dist/_esm5.processed/parsers/containers/isobmff/constants.js +1 -4
- package/dist/_esm5.processed/parsers/containers/isobmff/create_box.js +10 -14
- package/dist/_esm5.processed/parsers/containers/isobmff/drm/index.js +1 -5
- package/dist/_esm5.processed/parsers/containers/isobmff/drm/playready.js +11 -15
- package/dist/_esm5.processed/parsers/containers/isobmff/get_box.js +40 -48
- package/dist/_esm5.processed/parsers/containers/isobmff/index.js +6 -27
- package/dist/_esm5.processed/parsers/containers/isobmff/read.js +14 -20
- package/dist/_esm5.processed/parsers/containers/isobmff/take_pssh_out.js +20 -25
- package/dist/_esm5.processed/parsers/containers/isobmff/utils.js +112 -130
- package/dist/_esm5.processed/parsers/containers/matroska/index.js +1 -6
- package/dist/_esm5.processed/parsers/containers/matroska/utils.js +63 -67
- package/dist/_esm5.processed/parsers/images/bif.js +29 -40
- package/dist/_esm5.processed/parsers/manifest/dash/common/attach_trickmode_track.js +12 -10
- package/dist/_esm5.processed/parsers/manifest/dash/common/flatten_overlapping_periods.js +7 -10
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_clock_offset.d.ts +3 -3
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_clock_offset.js +7 -11
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_hdr_information.js +6 -10
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_http_utc-timing_url.js +6 -7
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_minimum_and_maximum_positions.js +6 -10
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_periods_time_infos.js +9 -14
- package/dist/_esm5.processed/parsers/manifest/dash/common/index.js +4 -10
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/base.d.ts +31 -17
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/base.js +80 -93
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/get_init_segment.js +4 -9
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/get_segments_from_timeline.js +25 -32
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/index.js +5 -11
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/list.d.ts +0 -2
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/list.js +64 -81
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/template.d.ts +6 -2
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/template.js +122 -132
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +12 -15
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +32 -35
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.js +9 -14
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +22 -30
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/index.js +2 -4
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/parse_s_element.js +11 -14
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +3 -7
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +122 -131
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/tokens.js +10 -16
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/utils.js +3 -7
- package/dist/_esm5.processed/parsers/manifest/dash/common/infer_adaptation_type.d.ts +2 -2
- package/dist/_esm5.processed/parsers/manifest/dash/common/infer_adaptation_type.js +24 -20
- package/dist/_esm5.processed/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts +4 -8
- package/dist/_esm5.processed/parsers/manifest/dash/common/manifest_bounds_calculator.js +19 -22
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_adaptation_sets.js +115 -113
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_availability_start_time.js +1 -4
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_mpd.d.ts +5 -6
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_mpd.js +84 -86
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_periods.d.ts +0 -4
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_periods.js +84 -101
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representation_index.d.ts +4 -2
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representation_index.js +37 -39
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representations.js +69 -61
- package/dist/_esm5.processed/parsers/manifest/dash/common/resolve_base_urls.js +9 -12
- package/dist/_esm5.processed/parsers/manifest/dash/index.js +1 -8
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/index.js +2 -4
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +64 -72
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/BaseURL.js +4 -7
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.js +4 -7
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.js +19 -22
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/EventStream.js +19 -22
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Initialization.js +8 -11
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/MPD.js +34 -38
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Period.js +30 -34
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Representation.js +40 -46
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.js +21 -24
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentList.js +12 -15
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.js +18 -21
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.js +3 -6
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.js +9 -12
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts +1 -10
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/utils.js +63 -75
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/parse_from_document.js +27 -33
- package/dist/_esm5.processed/parsers/manifest/dash/node_parser_types.d.ts +4 -4
- package/dist/_esm5.processed/parsers/manifest/dash/node_parser_types.js +1 -2
- package/dist/_esm5.processed/parsers/manifest/dash/parsers_types.d.ts +4 -4
- package/dist/_esm5.processed/parsers/manifest/dash/parsers_types.js +1 -2
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/index.js +2 -4
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +237 -192
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +68 -70
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.js +4 -8
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.js +7 -11
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +13 -17
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.js +24 -29
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +33 -38
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +32 -37
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +40 -44
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.js +5 -9
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.js +12 -16
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.js +7 -11
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.js +16 -20
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.js +7 -11
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/XLink.js +7 -11
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/index.js +1 -5
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/root.js +6 -10
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/parsers_stack.js +20 -22
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/types.js +1 -2
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/utils.js +2 -6
- package/dist/_esm5.processed/parsers/manifest/index.js +1 -17
- package/dist/_esm5.processed/parsers/manifest/local/index.js +2 -4
- package/dist/_esm5.processed/parsers/manifest/local/parse_local_manifest.js +26 -30
- package/dist/_esm5.processed/parsers/manifest/local/representation_index.d.ts +0 -2
- package/dist/_esm5.processed/parsers/manifest/local/representation_index.js +78 -71
- package/dist/_esm5.processed/parsers/manifest/local/types.js +1 -2
- package/dist/_esm5.processed/parsers/manifest/metaplaylist/index.js +2 -4
- package/dist/_esm5.processed/parsers/manifest/metaplaylist/metaplaylist_parser.js +75 -79
- package/dist/_esm5.processed/parsers/manifest/metaplaylist/representation_index.d.ts +3 -12
- package/dist/_esm5.processed/parsers/manifest/metaplaylist/representation_index.js +50 -59
- package/dist/_esm5.processed/parsers/manifest/smooth/create_parser.d.ts +1 -0
- package/dist/_esm5.processed/parsers/manifest/smooth/create_parser.js +184 -204
- package/dist/_esm5.processed/parsers/manifest/smooth/get_codecs.js +8 -13
- package/dist/_esm5.processed/parsers/manifest/smooth/index.js +4 -7
- package/dist/_esm5.processed/parsers/manifest/smooth/parse_C_nodes.js +14 -17
- package/dist/_esm5.processed/parsers/manifest/smooth/parse_protection_node.js +15 -17
- package/dist/_esm5.processed/parsers/manifest/smooth/representation_index.d.ts +86 -24
- package/dist/_esm5.processed/parsers/manifest/smooth/representation_index.js +195 -128
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/add_segment_infos.d.ts +6 -3
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/add_segment_infos.js +10 -13
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/parseBoolean.js +1 -4
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/reduceChildren.js +3 -6
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/tokens.js +1 -5
- package/dist/_esm5.processed/parsers/manifest/types.d.ts +7 -7
- package/dist/_esm5.processed/parsers/manifest/types.js +1 -2
- package/dist/_esm5.processed/parsers/manifest/utils/check_manifest_ids.js +24 -27
- package/dist/_esm5.processed/parsers/manifest/utils/clear_timeline_from_position.js +7 -10
- package/dist/_esm5.processed/parsers/manifest/utils/get_first_time_from_adaptation.js +5 -8
- package/dist/_esm5.processed/parsers/manifest/utils/get_last_time_from_adaptation.js +5 -8
- package/dist/_esm5.processed/parsers/manifest/utils/get_maximum_positions.js +12 -15
- package/dist/_esm5.processed/parsers/manifest/utils/get_minimum_position.js +12 -15
- package/dist/_esm5.processed/parsers/manifest/utils/index_helpers.js +22 -31
- package/dist/_esm5.processed/parsers/manifest/utils/is_segment_still_available.js +6 -9
- package/dist/_esm5.processed/parsers/manifest/utils/update_segment_timeline.js +45 -38
- package/dist/_esm5.processed/parsers/texttracks/index.js +1 -2
- package/dist/_esm5.processed/parsers/texttracks/sami/html.js +43 -45
- package/dist/_esm5.processed/parsers/texttracks/sami/native.js +39 -41
- package/dist/_esm5.processed/parsers/texttracks/srt/find_end_of_cue_block.js +4 -7
- package/dist/_esm5.processed/parsers/texttracks/srt/get_cue_blocks.js +8 -11
- package/dist/_esm5.processed/parsers/texttracks/srt/html.js +29 -32
- package/dist/_esm5.processed/parsers/texttracks/srt/native.js +13 -16
- package/dist/_esm5.processed/parsers/texttracks/srt/parse_cue.js +18 -21
- package/dist/_esm5.processed/parsers/texttracks/srt/parse_timestamp.js +7 -10
- package/dist/_esm5.processed/parsers/texttracks/ttml/get_parameters.js +30 -37
- package/dist/_esm5.processed/parsers/texttracks/ttml/get_styling.js +48 -48
- package/dist/_esm5.processed/parsers/texttracks/ttml/get_time_delimiters.js +11 -14
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.js +2 -7
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_extent.js +20 -16
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_font_size.js +12 -15
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_line_height.js +8 -11
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_origin.js +21 -16
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_padding.js +22 -25
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/create_element.js +124 -117
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/generate_css_test_outline.js +8 -11
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/index.js +2 -4
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/parse_cue.js +8 -12
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/parse_ttml_to_div.js +11 -14
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/ttml_color_to_css_color.js +7 -10
- package/dist/_esm5.processed/parsers/texttracks/ttml/native/index.js +2 -4
- package/dist/_esm5.processed/parsers/texttracks/ttml/native/parse_cue.js +35 -38
- package/dist/_esm5.processed/parsers/texttracks/ttml/native/parse_ttml_to_vtt.js +8 -11
- package/dist/_esm5.processed/parsers/texttracks/ttml/parse_ttml.js +58 -58
- package/dist/_esm5.processed/parsers/texttracks/ttml/regexps.js +13 -27
- package/dist/_esm5.processed/parsers/texttracks/ttml/resolve_styles_inheritance.js +18 -18
- package/dist/_esm5.processed/parsers/texttracks/ttml/time_parsing.js +26 -28
- package/dist/_esm5.processed/parsers/texttracks/ttml/xml_utils.js +25 -37
- package/dist/_esm5.processed/parsers/texttracks/types.js +1 -2
- package/dist/_esm5.processed/parsers/texttracks/webvtt/get_cue_blocks.js +9 -12
- package/dist/_esm5.processed/parsers/texttracks/webvtt/get_style_blocks.js +11 -14
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/convert_payload_to_html.js +8 -11
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_default_style_elements.js +5 -8
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_style_attribute.js +60 -60
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_styled_element.js +27 -30
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/index.js +2 -4
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/parse_style_block.js +26 -23
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/parse_webvtt_to_div.js +17 -20
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/to_html.js +18 -23
- package/dist/_esm5.processed/parsers/texttracks/webvtt/native/index.js +2 -4
- package/dist/_esm5.processed/parsers/texttracks/webvtt/native/parse_vtt_to_cues.js +16 -19
- package/dist/_esm5.processed/parsers/texttracks/webvtt/native/set_settings_on_cue.js +17 -20
- package/dist/_esm5.processed/parsers/texttracks/webvtt/native/to_native_cue.js +5 -8
- package/dist/_esm5.processed/parsers/texttracks/webvtt/parse_cue_block.js +18 -26
- package/dist/_esm5.processed/parsers/texttracks/webvtt/parse_timestamp.js +7 -10
- package/dist/_esm5.processed/parsers/texttracks/webvtt/utils.js +7 -15
- package/dist/_esm5.processed/public_types.d.ts +352 -442
- package/dist/_esm5.processed/public_types.js +1 -2
- package/dist/_esm5.processed/tools/TextTrackRenderer/index.js +6 -13
- package/dist/_esm5.processed/tools/TextTrackRenderer/text_track_renderer.d.ts +4 -5
- package/dist/_esm5.processed/tools/TextTrackRenderer/text_track_renderer.js +26 -29
- package/dist/_esm5.processed/tools/index.js +4 -6
- package/dist/_esm5.processed/tools/string_utils.js +1 -10
- package/dist/_esm5.processed/transports/dash/add_segment_integrity_checks_to_loader.js +24 -16
- package/dist/_esm5.processed/transports/dash/construct_segment_url.js +3 -6
- package/dist/_esm5.processed/transports/dash/extract_complete_chunks.js +14 -17
- package/dist/_esm5.processed/transports/dash/get_events_out_of_emsgs.js +16 -19
- package/dist/_esm5.processed/transports/dash/image_pipelines.d.ts +38 -0
- package/dist/_esm5.processed/transports/dash/image_pipelines.js +129 -0
- package/dist/_esm5.processed/transports/dash/index.js +2 -4
- package/dist/_esm5.processed/transports/dash/init_segment_loader.js +27 -47
- package/dist/_esm5.processed/transports/dash/low_latency_segment_loader.js +16 -23
- package/dist/_esm5.processed/transports/dash/manifest_parser.js +60 -68
- package/dist/_esm5.processed/transports/dash/pipelines.js +21 -21
- package/dist/_esm5.processed/transports/dash/segment_loader.d.ts +2 -2
- package/dist/_esm5.processed/transports/dash/segment_loader.js +49 -65
- package/dist/_esm5.processed/transports/dash/segment_parser.js +49 -64
- package/dist/_esm5.processed/transports/dash/text_loader.js +32 -38
- package/dist/_esm5.processed/transports/dash/text_parser.js +53 -58
- package/dist/_esm5.processed/transports/index.js +1 -17
- package/dist/_esm5.processed/transports/local/index.js +2 -4
- package/dist/_esm5.processed/transports/local/pipelines.js +32 -27
- package/dist/_esm5.processed/transports/local/segment_loader.js +24 -27
- package/dist/_esm5.processed/transports/local/segment_parser.d.ts +1 -1
- package/dist/_esm5.processed/transports/local/segment_parser.js +26 -38
- package/dist/_esm5.processed/transports/local/text_parser.d.ts +2 -2
- package/dist/_esm5.processed/transports/local/text_parser.js +41 -55
- package/dist/_esm5.processed/transports/metaplaylist/index.js +2 -4
- package/dist/_esm5.processed/transports/metaplaylist/manifest_loader.js +7 -11
- package/dist/_esm5.processed/transports/metaplaylist/pipelines.js +123 -101
- package/dist/_esm5.processed/transports/smooth/extract_timings_infos.js +20 -26
- package/dist/_esm5.processed/transports/smooth/index.js +2 -4
- package/dist/_esm5.processed/transports/smooth/isobmff/create_audio_init_segment.js +19 -22
- package/dist/_esm5.processed/transports/smooth/isobmff/create_boxes.js +67 -92
- package/dist/_esm5.processed/transports/smooth/isobmff/create_init_segment.js +26 -29
- package/dist/_esm5.processed/transports/smooth/isobmff/create_traf_box.js +6 -9
- package/dist/_esm5.processed/transports/smooth/isobmff/create_video_init_segment.js +20 -23
- package/dist/_esm5.processed/transports/smooth/isobmff/get_aaces_header.js +7 -10
- package/dist/_esm5.processed/transports/smooth/isobmff/index.js +6 -13
- package/dist/_esm5.processed/transports/smooth/isobmff/parse_tfrf.js +16 -19
- package/dist/_esm5.processed/transports/smooth/isobmff/parse_tfxd.js +6 -9
- package/dist/_esm5.processed/transports/smooth/isobmff/patch_segment.js +38 -41
- package/dist/_esm5.processed/transports/smooth/pipelines.js +262 -116
- package/dist/_esm5.processed/transports/smooth/segment_loader.d.ts +3 -3
- package/dist/_esm5.processed/transports/smooth/segment_loader.js +150 -152
- package/dist/_esm5.processed/transports/smooth/utils.d.ts +26 -1
- package/dist/_esm5.processed/transports/smooth/utils.js +57 -7
- package/dist/_esm5.processed/transports/types.d.ts +96 -110
- package/dist/_esm5.processed/transports/types.js +1 -2
- package/dist/_esm5.processed/transports/utils/byte_range.js +4 -6
- package/dist/_esm5.processed/transports/utils/call_custom_manifest_loader.js +18 -24
- package/dist/_esm5.processed/transports/utils/check_isobmff_integrity.js +11 -14
- package/dist/_esm5.processed/transports/utils/find_complete_box.js +8 -11
- package/dist/_esm5.processed/transports/utils/generate_manifest_loader.js +14 -22
- package/dist/_esm5.processed/transports/utils/get_isobmff_timing_infos.js +10 -13
- package/dist/_esm5.processed/transports/utils/infer_segment_container.d.ts +3 -3
- package/dist/_esm5.processed/transports/utils/infer_segment_container.js +7 -8
- package/dist/_esm5.processed/transports/utils/parse_text_track.d.ts +12 -8
- package/dist/_esm5.processed/transports/utils/parse_text_track.js +34 -46
- package/dist/_esm5.processed/utils/are_arrays_of_numbers_equal.js +2 -5
- package/dist/_esm5.processed/utils/are_codecs_compatible.js +9 -11
- package/dist/_esm5.processed/utils/array_find.js +4 -7
- package/dist/_esm5.processed/utils/array_find_index.js +3 -6
- package/dist/_esm5.processed/utils/array_includes.js +11 -12
- package/dist/_esm5.processed/utils/assert.js +9 -13
- package/dist/_esm5.processed/utils/assert_unreachable.js +3 -6
- package/dist/_esm5.processed/utils/base64.js +18 -23
- package/dist/_esm5.processed/utils/byte_parsing.js +17 -30
- package/dist/_esm5.processed/utils/cancellable_sleep.js +5 -8
- package/dist/_esm5.processed/utils/create_cancellable_promise.js +4 -7
- package/dist/_esm5.processed/utils/deep_merge.js +21 -10
- package/dist/_esm5.processed/utils/event_emitter.js +24 -24
- package/dist/_esm5.processed/utils/flat_map.js +4 -7
- package/dist/_esm5.processed/utils/get_fuzzed_delay.js +3 -6
- package/dist/_esm5.processed/utils/hash_buffer.js +4 -7
- package/dist/_esm5.processed/utils/id_generator.js +3 -6
- package/dist/_esm5.processed/utils/initialization_segment_cache.js +12 -11
- package/dist/_esm5.processed/utils/is_non_empty_string.js +1 -4
- package/dist/_esm5.processed/utils/is_null_or_undefined.js +1 -4
- package/dist/_esm5.processed/utils/languages/ISO_639-1_to_ISO_639-3.js +2 -4
- package/dist/_esm5.processed/utils/languages/ISO_639-2_to_ISO_639-3.js +2 -4
- package/dist/_esm5.processed/utils/languages/index.js +3 -7
- package/dist/_esm5.processed/utils/languages/normalize.js +20 -26
- package/dist/_esm5.processed/utils/list_to_map.d.ts +22 -0
- package/dist/_esm5.processed/utils/list_to_map.js +28 -0
- package/dist/_esm5.processed/utils/logger.js +23 -24
- package/dist/_esm5.processed/utils/noop.js +1 -4
- package/dist/_esm5.processed/utils/object_assign.js +10 -8
- package/dist/_esm5.processed/utils/object_values.js +3 -6
- package/dist/_esm5.processed/utils/ranges.d.ts +8 -50
- package/dist/_esm5.processed/utils/ranges.js +64 -163
- package/dist/_esm5.processed/utils/reference.js +52 -48
- package/dist/_esm5.processed/utils/request/fetch.d.ts +4 -4
- package/dist/_esm5.processed/utils/request/fetch.js +107 -79
- package/dist/_esm5.processed/utils/request/index.js +4 -9
- package/dist/_esm5.processed/utils/request/xhr.js +36 -49
- package/dist/_esm5.processed/utils/resolve_url.js +18 -18
- package/dist/_esm5.processed/utils/retry_promise_with_backoff.js +81 -34
- package/dist/_esm5.processed/utils/simple_set.d.ts +51 -0
- package/dist/_esm5.processed/utils/simple_set.js +57 -0
- package/dist/_esm5.processed/utils/sleep.js +2 -5
- package/dist/_esm5.processed/utils/slice_uint8array.js +1 -3
- package/dist/_esm5.processed/utils/sorted_list.js +40 -37
- package/dist/_esm5.processed/utils/starts_with.js +2 -5
- package/dist/_esm5.processed/utils/string_parsing.js +72 -84
- package/dist/_esm5.processed/utils/task_canceller.js +71 -51
- package/dist/_esm5.processed/utils/uniq.d.ts +36 -0
- package/dist/_esm5.processed/utils/uniq.js +43 -0
- package/dist/_esm5.processed/utils/warn_once.js +4 -7
- package/dist/_esm5.processed/utils/weak_map_memory.js +11 -12
- package/dist/_esm5.processed/utils/wrapInPromise.js +2 -5
- package/dist/commonjs/compat/add_class_name.d.ts +22 -0
- package/dist/commonjs/compat/add_class_name.js +42 -0
- package/dist/commonjs/compat/add_text_track.d.ts +31 -0
- package/dist/commonjs/compat/add_text_track.js +50 -0
- package/dist/commonjs/compat/browser_compatibility_types.d.ts +164 -0
- package/dist/commonjs/compat/browser_compatibility_types.js +37 -0
- package/dist/commonjs/compat/browser_detection.d.ts +42 -0
- package/dist/commonjs/compat/browser_detection.js +119 -0
- package/dist/commonjs/compat/browser_version.d.ts +24 -0
- package/dist/commonjs/compat/browser_version.js +44 -0
- package/dist/commonjs/compat/can_patch_isobmff.d.ts +25 -0
- package/dist/commonjs/compat/can_patch_isobmff.js +31 -0
- package/dist/commonjs/compat/can_rely_on_video_visibility_and_size.d.ts +37 -0
- package/dist/commonjs/compat/can_rely_on_video_visibility_and_size.js +52 -0
- package/dist/commonjs/compat/can_reuse_media_keys.d.ts +13 -0
- package/dist/commonjs/compat/can_reuse_media_keys.js +19 -0
- package/dist/commonjs/compat/change_source_buffer_type.d.ts +48 -0
- package/dist/commonjs/compat/change_source_buffer_type.js +40 -0
- package/dist/commonjs/compat/clear_element_src.d.ts +20 -0
- package/dist/commonjs/compat/clear_element_src.js +56 -0
- package/dist/commonjs/compat/eme/close_session.d.ts +30 -0
- package/dist/commonjs/compat/eme/close_session.js +165 -0
- package/dist/commonjs/compat/eme/constants.d.ts +16 -0
- package/dist/commonjs/compat/eme/constants.js +22 -0
- package/dist/commonjs/compat/eme/custom_key_system_access.d.ts +54 -0
- package/dist/commonjs/compat/eme/custom_key_system_access.js +49 -0
- package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.d.ts +31 -0
- package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.js +174 -0
- package/dist/commonjs/compat/eme/custom_media_keys/index.d.ts +7 -0
- package/dist/commonjs/compat/eme/custom_media_keys/index.js +16 -0
- package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +27 -0
- package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.js +64 -0
- package/dist/commonjs/compat/eme/custom_media_keys/ms_media_keys_constructor.d.ts +43 -0
- package/dist/commonjs/compat/eme/custom_media_keys/ms_media_keys_constructor.js +30 -0
- package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +41 -0
- package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.js +197 -0
- package/dist/commonjs/compat/eme/custom_media_keys/types.d.ts +43 -0
- package/dist/commonjs/compat/eme/custom_media_keys/types.js +17 -0
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.d.ts +37 -0
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.js +263 -0
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts +22 -0
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +30 -0
- package/dist/commonjs/compat/eme/eme-api-implementation.d.ts +78 -0
- package/dist/commonjs/compat/eme/eme-api-implementation.js +226 -0
- package/dist/commonjs/compat/eme/generate_key_request.d.ts +54 -0
- package/dist/commonjs/compat/eme/generate_key_request.js +152 -0
- package/dist/commonjs/compat/eme/get_init_data.d.ts +57 -0
- package/dist/commonjs/compat/eme/get_init_data.js +115 -0
- package/dist/commonjs/compat/eme/get_uuid_kid_from_keystatus_kid.d.ts +23 -0
- package/dist/commonjs/compat/eme/get_uuid_kid_from_keystatus_kid.js +34 -0
- package/dist/commonjs/compat/eme/get_webkit_fairplay_initdata.d.ts +25 -0
- package/dist/commonjs/compat/eme/get_webkit_fairplay_initdata.js +60 -0
- package/dist/commonjs/compat/eme/index.d.ts +24 -0
- package/dist/commonjs/compat/eme/index.js +28 -0
- package/dist/commonjs/compat/eme/load_session.d.ts +30 -0
- package/dist/commonjs/compat/eme/load_session.js +102 -0
- package/dist/commonjs/compat/enable_audio_track.d.ts +11 -0
- package/dist/commonjs/compat/enable_audio_track.js +29 -0
- package/dist/commonjs/compat/event_listeners.d.ts +173 -0
- package/dist/commonjs/compat/event_listeners.js +448 -0
- package/dist/commonjs/compat/get_start_date.d.ts +30 -0
- package/dist/commonjs/compat/get_start_date.js +47 -0
- package/dist/{_esm5.processed → commonjs}/compat/global_scope.js +3 -3
- package/dist/commonjs/compat/has_issues_with_high_media_source_duration.d.ts +21 -0
- package/dist/commonjs/compat/has_issues_with_high_media_source_duration.js +29 -0
- package/dist/commonjs/compat/index.d.ts +37 -0
- package/dist/commonjs/compat/index.js +66 -0
- package/dist/commonjs/compat/is_codec_supported.d.ts +25 -0
- package/dist/commonjs/compat/is_codec_supported.js +39 -0
- package/dist/commonjs/compat/is_debug_mode_enabled.d.ts +7 -0
- package/dist/commonjs/compat/is_debug_mode_enabled.js +12 -0
- package/dist/commonjs/compat/is_node.d.ts +18 -0
- package/dist/commonjs/compat/is_node.js +21 -0
- package/dist/commonjs/compat/is_seeking_approximate.d.ts +28 -0
- package/dist/commonjs/compat/is_seeking_approximate.js +31 -0
- package/dist/commonjs/compat/is_vtt_cue.d.ts +22 -0
- package/dist/commonjs/compat/is_vtt_cue.js +29 -0
- package/dist/commonjs/compat/make_vtt_cue.d.ts +26 -0
- package/dist/commonjs/compat/make_vtt_cue.js +47 -0
- package/dist/commonjs/compat/on_height_width_change.d.ts +33 -0
- package/dist/commonjs/compat/on_height_width_change.js +75 -0
- package/dist/commonjs/compat/patch_webkit_source_buffer.d.ts +16 -0
- package/dist/commonjs/compat/patch_webkit_source_buffer.js +78 -0
- package/dist/commonjs/compat/remove_cue.d.ts +21 -0
- package/dist/commonjs/compat/remove_cue.js +66 -0
- package/dist/commonjs/compat/should_favour_custom_safari_EME.d.ts +23 -0
- package/dist/commonjs/compat/should_favour_custom_safari_EME.js +30 -0
- package/dist/commonjs/compat/should_reload_media_source_on_decipherability_update.d.ts +26 -0
- package/dist/commonjs/compat/should_reload_media_source_on_decipherability_update.js +32 -0
- package/dist/commonjs/compat/should_renew_media_key_system_access.d.ts +21 -0
- package/dist/commonjs/compat/should_renew_media_key_system_access.js +27 -0
- package/dist/commonjs/compat/should_unset_media_keys.d.ts +22 -0
- package/dist/commonjs/compat/should_unset_media_keys.js +28 -0
- package/dist/commonjs/compat/should_validate_metadata.d.ts +22 -0
- package/dist/commonjs/compat/should_validate_metadata.js +28 -0
- package/dist/commonjs/compat/should_wait_for_data_before_loaded.d.ts +24 -0
- package/dist/commonjs/compat/should_wait_for_data_before_loaded.js +33 -0
- package/dist/commonjs/compat/should_wait_for_have_enough_data.d.ts +13 -0
- package/dist/commonjs/compat/should_wait_for_have_enough_data.js +19 -0
- package/dist/commonjs/config.d.ts +179 -0
- package/dist/commonjs/config.js +34 -0
- package/dist/commonjs/core/adaptive/adaptive_representation_selector.d.ts +306 -0
- package/dist/commonjs/core/adaptive/adaptive_representation_selector.js +380 -0
- package/dist/commonjs/core/adaptive/buffer_based_chooser.d.ts +89 -0
- package/dist/commonjs/core/adaptive/buffer_based_chooser.js +195 -0
- package/dist/commonjs/core/adaptive/guess_based_chooser.d.ts +95 -0
- package/dist/commonjs/core/adaptive/guess_based_chooser.js +266 -0
- package/dist/commonjs/core/adaptive/index.d.ts +18 -0
- package/dist/commonjs/core/adaptive/index.js +19 -0
- package/dist/commonjs/core/adaptive/network_analyzer.d.ts +73 -0
- package/dist/commonjs/core/adaptive/network_analyzer.js +342 -0
- package/dist/commonjs/core/adaptive/utils/bandwidth_estimator.d.ts +47 -0
- package/dist/commonjs/core/adaptive/utils/bandwidth_estimator.js +72 -0
- package/dist/commonjs/core/adaptive/utils/ewma.d.ts +39 -0
- package/dist/commonjs/core/adaptive/utils/ewma.js +54 -0
- package/dist/commonjs/core/adaptive/utils/filter_by_bitrate.d.ts +25 -0
- package/dist/commonjs/core/adaptive/utils/filter_by_bitrate.js +40 -0
- package/dist/commonjs/core/adaptive/utils/filter_by_resolution.js +53 -0
- package/dist/commonjs/core/adaptive/utils/get_buffer_levels.d.ts +24 -0
- package/dist/commonjs/core/adaptive/utils/get_buffer_levels.js +50 -0
- package/dist/commonjs/core/adaptive/utils/last_estimate_storage.d.ts +61 -0
- package/dist/commonjs/core/adaptive/utils/last_estimate_storage.js +39 -0
- package/dist/commonjs/core/adaptive/utils/pending_requests_store.d.ts +110 -0
- package/dist/commonjs/core/adaptive/utils/pending_requests_store.js +78 -0
- package/dist/commonjs/core/adaptive/utils/representation_score_calculator.d.ts +104 -0
- package/dist/commonjs/core/adaptive/utils/representation_score_calculator.js +116 -0
- package/dist/commonjs/core/adaptive/utils/select_optimal_representation.d.ts +27 -0
- package/dist/commonjs/core/adaptive/utils/select_optimal_representation.js +39 -0
- package/dist/commonjs/core/api/debug/buffer_graph.d.ts +28 -0
- package/dist/commonjs/core/api/debug/buffer_graph.js +177 -0
- package/dist/commonjs/core/api/debug/buffer_size_graph.d.ts +10 -0
- package/dist/commonjs/core/api/debug/buffer_size_graph.js +132 -0
- package/dist/commonjs/core/api/debug/constants.d.ts +2 -0
- package/dist/commonjs/core/api/debug/constants.js +5 -0
- package/dist/commonjs/core/api/debug/index.d.ts +2 -0
- package/dist/commonjs/core/api/debug/index.js +4 -0
- package/dist/commonjs/core/api/debug/modules/general_info.d.ts +3 -0
- package/dist/commonjs/core/api/debug/modules/general_info.js +213 -0
- package/dist/commonjs/core/api/debug/modules/segment_buffer_content.d.ts +4 -0
- package/dist/commonjs/core/api/debug/modules/segment_buffer_content.js +124 -0
- package/dist/commonjs/core/api/debug/modules/segment_buffer_size.d.ts +3 -0
- package/dist/commonjs/core/api/debug/modules/segment_buffer_size.js +38 -0
- package/dist/commonjs/core/api/debug/render.d.ts +3 -0
- package/dist/commonjs/core/api/debug/render.js +35 -0
- package/dist/commonjs/core/api/debug/utils.d.ts +39 -0
- package/dist/commonjs/core/api/debug/utils.js +86 -0
- package/dist/commonjs/core/api/index.d.ts +20 -0
- package/dist/commonjs/core/api/index.js +22 -0
- package/dist/commonjs/core/api/option_utils.d.ts +119 -0
- package/dist/commonjs/core/api/option_utils.js +303 -0
- package/dist/commonjs/core/api/playback_observer.d.ts +370 -0
- package/dist/commonjs/core/api/playback_observer.js +585 -0
- package/dist/commonjs/core/api/public_api.d.ts +718 -0
- package/dist/commonjs/core/api/public_api.js +2226 -0
- package/dist/{_esm5.processed → commonjs}/core/api/track_management/index.js +1 -1
- package/dist/commonjs/core/api/track_management/media_element_tracks_store.js +688 -0
- package/dist/commonjs/core/api/track_management/track_dispatcher.js +178 -0
- package/dist/commonjs/core/api/track_management/tracks_store.js +998 -0
- package/dist/commonjs/core/api/utils.d.ts +66 -0
- package/dist/commonjs/core/api/utils.js +175 -0
- package/dist/commonjs/core/decrypt/__tests__/__global__/utils.d.ts +178 -0
- package/dist/commonjs/core/decrypt/__tests__/__global__/utils.js +413 -0
- package/dist/commonjs/core/decrypt/attach_media_keys.d.ts +52 -0
- package/dist/commonjs/core/decrypt/attach_media_keys.js +120 -0
- package/dist/commonjs/core/decrypt/clear_on_stop.d.ts +22 -0
- package/dist/commonjs/core/decrypt/clear_on_stop.js +43 -0
- package/dist/commonjs/core/decrypt/content_decryptor.d.ts +184 -0
- package/dist/commonjs/core/decrypt/content_decryptor.js +1146 -0
- package/dist/commonjs/core/decrypt/create_or_load_session.d.ts +63 -0
- package/dist/commonjs/core/decrypt/create_or_load_session.js +127 -0
- package/dist/commonjs/core/decrypt/create_session.d.ts +53 -0
- package/dist/commonjs/core/decrypt/create_session.js +215 -0
- package/dist/commonjs/core/decrypt/dispose_decryption_resources.d.ts +21 -0
- package/dist/commonjs/core/decrypt/dispose_decryption_resources.js +91 -0
- package/dist/commonjs/core/decrypt/find_key_system.d.ts +48 -0
- package/dist/commonjs/core/decrypt/find_key_system.js +369 -0
- package/dist/commonjs/core/decrypt/get_key_system_configuration.d.ts +22 -0
- package/dist/commonjs/core/decrypt/get_key_system_configuration.js +35 -0
- package/dist/commonjs/core/decrypt/get_media_keys.d.ts +44 -0
- package/dist/commonjs/core/decrypt/get_media_keys.js +160 -0
- package/dist/commonjs/core/decrypt/index.d.ts +26 -0
- package/dist/commonjs/core/decrypt/index.js +45 -0
- package/dist/commonjs/core/decrypt/init_media_keys.d.ts +26 -0
- package/dist/commonjs/core/decrypt/init_media_keys.js +85 -0
- package/dist/commonjs/core/decrypt/session_events_listener.d.ts +75 -0
- package/dist/commonjs/core/decrypt/session_events_listener.js +330 -0
- package/dist/commonjs/core/decrypt/set_server_certificate.d.ts +51 -0
- package/dist/commonjs/core/decrypt/set_server_certificate.js +146 -0
- package/dist/commonjs/core/decrypt/types.d.ts +368 -0
- package/dist/commonjs/core/decrypt/types.js +58 -0
- package/dist/commonjs/core/decrypt/utils/are_init_values_compatible.d.ts +34 -0
- package/dist/commonjs/core/decrypt/utils/are_init_values_compatible.js +116 -0
- package/dist/commonjs/core/decrypt/utils/check_key_statuses.d.ts +52 -0
- package/dist/commonjs/core/decrypt/utils/check_key_statuses.js +211 -0
- package/dist/commonjs/core/decrypt/utils/clean_old_loaded_sessions.d.ts +26 -0
- package/dist/commonjs/core/decrypt/utils/clean_old_loaded_sessions.js +89 -0
- package/dist/commonjs/core/decrypt/utils/clean_old_stored_persistent_info.d.ts +32 -0
- package/dist/commonjs/core/decrypt/utils/clean_old_stored_persistent_info.js +43 -0
- package/dist/commonjs/core/decrypt/utils/get_drm_system_id.d.ts +20 -0
- package/dist/commonjs/core/decrypt/utils/get_drm_system_id.js +40 -0
- package/dist/commonjs/core/decrypt/utils/init_data_values_container.d.ts +69 -0
- package/dist/commonjs/core/decrypt/utils/init_data_values_container.js +126 -0
- package/dist/commonjs/core/decrypt/utils/is_session_usable.d.ts +24 -0
- package/dist/commonjs/core/decrypt/utils/is_session_usable.js +52 -0
- package/dist/commonjs/core/decrypt/utils/key_id_comparison.d.ts +31 -0
- package/dist/commonjs/core/decrypt/utils/key_id_comparison.js +96 -0
- package/dist/commonjs/core/decrypt/utils/key_session_record.d.ts +104 -0
- package/dist/commonjs/core/decrypt/utils/key_session_record.js +190 -0
- package/dist/commonjs/core/decrypt/utils/loaded_sessions_store.d.ts +215 -0
- package/dist/commonjs/core/decrypt/utils/loaded_sessions_store.js +515 -0
- package/dist/commonjs/core/decrypt/utils/media_keys_infos_store.d.ts +56 -0
- package/dist/commonjs/core/decrypt/utils/media_keys_infos_store.js +46 -0
- package/dist/commonjs/core/decrypt/utils/persistent_sessions_store.d.ts +94 -0
- package/dist/commonjs/core/decrypt/utils/persistent_sessions_store.js +346 -0
- package/dist/commonjs/core/decrypt/utils/serializable_bytes.d.ts +44 -0
- package/dist/commonjs/core/decrypt/utils/serializable_bytes.js +50 -0
- package/dist/commonjs/core/decrypt/utils/server_certificate_store.d.ts +64 -0
- package/dist/commonjs/core/decrypt/utils/server_certificate_store.js +114 -0
- package/dist/commonjs/core/fetchers/cdn_prioritizer.d.ts +107 -0
- package/dist/commonjs/core/fetchers/cdn_prioritizer.js +216 -0
- package/dist/commonjs/core/fetchers/index.d.ts +18 -0
- package/dist/commonjs/core/fetchers/index.js +22 -0
- package/dist/commonjs/core/fetchers/manifest/index.d.ts +18 -0
- package/dist/commonjs/core/fetchers/manifest/index.js +19 -0
- package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.d.ts +221 -0
- package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.js +629 -0
- package/dist/commonjs/core/fetchers/segment/index.d.ts +19 -0
- package/dist/commonjs/core/fetchers/segment/index.js +19 -0
- package/dist/commonjs/core/fetchers/segment/prioritized_segment_fetcher.d.ts +38 -0
- package/dist/commonjs/core/fetchers/segment/prioritized_segment_fetcher.js +70 -0
- package/dist/commonjs/core/fetchers/segment/segment_fetcher.d.ts +148 -0
- package/dist/commonjs/core/fetchers/segment/segment_fetcher.js +321 -0
- package/dist/commonjs/core/fetchers/segment/segment_fetcher_creator.d.ts +77 -0
- package/dist/commonjs/core/fetchers/segment/segment_fetcher_creator.js +60 -0
- package/dist/commonjs/core/fetchers/segment/task_prioritizer.d.ts +145 -0
- package/dist/commonjs/core/fetchers/segment/task_prioritizer.js +350 -0
- package/dist/commonjs/core/fetchers/utils/error_selector.d.ts +23 -0
- package/dist/commonjs/core/fetchers/utils/error_selector.js +34 -0
- package/dist/commonjs/core/fetchers/utils/schedule_request.d.ts +98 -0
- package/dist/commonjs/core/fetchers/utils/schedule_request.js +393 -0
- package/dist/commonjs/core/init/directfile_content_initializer.d.ts +97 -0
- package/dist/commonjs/core/init/directfile_content_initializer.js +241 -0
- package/dist/commonjs/core/init/index.d.ts +16 -0
- package/dist/commonjs/core/init/index.js +20 -0
- package/dist/commonjs/core/init/media_source_content_initializer.d.ts +174 -0
- package/dist/commonjs/core/init/media_source_content_initializer.js +655 -0
- package/dist/commonjs/core/init/types.d.ts +217 -0
- package/dist/commonjs/core/init/types.js +54 -0
- package/dist/commonjs/core/init/utils/content_time_boundaries_observer.d.ts +191 -0
- package/dist/commonjs/core/init/utils/content_time_boundaries_observer.js +520 -0
- package/dist/commonjs/core/init/utils/create_media_source.d.ts +37 -0
- package/dist/commonjs/core/init/utils/create_media_source.js +117 -0
- package/dist/commonjs/core/init/utils/create_stream_playback_observer.d.ts +45 -0
- package/dist/commonjs/core/init/utils/create_stream_playback_observer.js +89 -0
- package/dist/commonjs/core/init/utils/end_of_stream.d.ts +33 -0
- package/dist/commonjs/core/init/utils/end_of_stream.js +115 -0
- package/dist/commonjs/core/init/utils/get_initial_time.d.ts +62 -0
- package/dist/commonjs/core/init/utils/get_initial_time.js +113 -0
- package/dist/commonjs/core/init/utils/get_loaded_reference.d.ts +28 -0
- package/dist/commonjs/core/init/utils/get_loaded_reference.js +59 -0
- package/dist/commonjs/core/init/utils/initial_seek_and_play.d.ts +63 -0
- package/dist/commonjs/core/init/utils/initial_seek_and_play.js +131 -0
- package/dist/commonjs/core/init/utils/initialize_content_decryption.d.ts +80 -0
- package/dist/commonjs/core/init/utils/initialize_content_decryption.js +107 -0
- package/dist/commonjs/core/init/utils/media_source_duration_updater.d.ts +58 -0
- package/dist/commonjs/core/init/utils/media_source_duration_updater.js +270 -0
- package/dist/commonjs/core/init/utils/rebuffering_controller.d.ts +147 -0
- package/dist/commonjs/core/init/utils/rebuffering_controller.js +597 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/are_same_stream_events.d.ts +39 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/are_same_stream_events.js +37 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/index.d.ts +18 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/index.js +19 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +25 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +68 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/stream_events_emitter.d.ts +52 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/stream_events_emitter.js +232 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/types.d.ts +41 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/types.js +17 -0
- package/dist/commonjs/core/init/utils/throw_on_media_error.d.ts +23 -0
- package/dist/commonjs/core/init/utils/throw_on_media_error.js +61 -0
- package/dist/commonjs/core/segment_buffers/garbage_collector.d.ts +41 -0
- package/dist/commonjs/core/segment_buffers/garbage_collector.js +212 -0
- package/dist/commonjs/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.d.ts +182 -0
- package/dist/commonjs/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.js +457 -0
- package/dist/commonjs/core/segment_buffers/implementations/audio_video/index.d.ts +17 -0
- package/dist/commonjs/core/segment_buffers/implementations/audio_video/index.js +19 -0
- package/dist/commonjs/core/segment_buffers/implementations/index.d.ts +18 -0
- package/dist/commonjs/core/segment_buffers/implementations/index.js +35 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/html_text_segment_buffer.d.ts +141 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/html_text_segment_buffer.js +407 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/index.d.ts +21 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/index.js +23 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/parsers.d.ts +30 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/parsers.js +40 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/text_track_cues_store.d.ts +79 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/text_track_cues_store.js +342 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/types.d.ts +25 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/types.js +17 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/update_proportional_elements.d.ts +30 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/update_proportional_elements.js +80 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/utils.d.ts +44 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/utils.js +114 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/native/index.d.ts +17 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/native/index.js +19 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/native/native_text_segment_buffer.d.ts +83 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/native/native_text_segment_buffer.js +273 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/native/parsers.d.ts +26 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/native/parsers.js +40 -0
- package/dist/commonjs/core/segment_buffers/implementations/types.d.ts +320 -0
- package/dist/commonjs/core/segment_buffers/implementations/types.js +124 -0
- package/dist/commonjs/core/segment_buffers/implementations/utils/manual_time_ranges.d.ts +29 -0
- package/dist/commonjs/core/segment_buffers/implementations/utils/manual_time_ranges.js +67 -0
- package/dist/commonjs/core/segment_buffers/index.d.ts +21 -0
- package/dist/commonjs/core/segment_buffers/index.js +28 -0
- package/dist/commonjs/core/segment_buffers/inventory/buffered_history.d.ts +89 -0
- package/dist/commonjs/core/segment_buffers/inventory/buffered_history.js +114 -0
- package/dist/commonjs/core/segment_buffers/inventory/index.d.ts +21 -0
- package/dist/commonjs/core/segment_buffers/inventory/index.js +23 -0
- package/dist/commonjs/core/segment_buffers/inventory/segment_inventory.d.ts +207 -0
- package/dist/commonjs/core/segment_buffers/inventory/segment_inventory.js +866 -0
- package/dist/commonjs/core/segment_buffers/inventory/types.d.ts +27 -0
- package/dist/commonjs/core/segment_buffers/inventory/types.js +17 -0
- package/dist/{_esm5.processed → commonjs}/core/segment_buffers/inventory/utils.js +2 -2
- package/dist/commonjs/core/segment_buffers/segment_buffers_store.d.ts +180 -0
- package/dist/commonjs/core/segment_buffers/segment_buffers_store.js +302 -0
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.d.ts +33 -0
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.js +455 -0
- package/dist/commonjs/core/stream/adaptation/get_representations_switch_strategy.js +136 -0
- package/dist/commonjs/core/stream/adaptation/index.d.ts +18 -0
- package/dist/commonjs/core/stream/adaptation/index.js +34 -0
- package/dist/commonjs/core/stream/adaptation/types.d.ts +200 -0
- package/dist/commonjs/core/stream/adaptation/types.js +2 -0
- package/dist/commonjs/core/stream/index.d.ts +20 -0
- package/dist/commonjs/core/stream/index.js +19 -0
- package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.d.ts +30 -0
- package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.js +63 -0
- package/dist/commonjs/core/stream/orchestrator/index.d.ts +18 -0
- package/dist/commonjs/core/stream/orchestrator/index.js +19 -0
- package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.d.ts +174 -0
- package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.js +602 -0
- package/dist/commonjs/core/stream/period/index.d.ts +18 -0
- package/dist/commonjs/core/stream/period/index.js +34 -0
- package/dist/commonjs/core/stream/period/period_stream.d.ts +49 -0
- package/dist/commonjs/core/stream/period/period_stream.js +454 -0
- package/dist/commonjs/core/stream/period/types.d.ts +101 -0
- package/dist/commonjs/core/stream/period/types.js +2 -0
- package/dist/commonjs/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +68 -0
- package/dist/commonjs/core/stream/period/utils/get_adaptation_switch_strategy.js +165 -0
- package/dist/commonjs/core/stream/representation/index.d.ts +18 -0
- package/dist/commonjs/core/stream/representation/index.js +34 -0
- package/dist/commonjs/core/stream/representation/representation_stream.d.ts +53 -0
- package/dist/commonjs/core/stream/representation/representation_stream.js +399 -0
- package/dist/commonjs/core/stream/representation/types.d.ts +276 -0
- package/dist/commonjs/core/stream/representation/types.js +2 -0
- package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.d.ts +32 -0
- package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.js +117 -0
- package/dist/commonjs/core/stream/representation/utils/check_for_discontinuity.d.ts +53 -0
- package/dist/commonjs/core/stream/representation/utils/check_for_discontinuity.js +238 -0
- package/dist/commonjs/core/stream/representation/utils/downloading_queue.d.ts +231 -0
- package/dist/commonjs/core/stream/representation/utils/downloading_queue.js +390 -0
- package/dist/commonjs/core/stream/representation/utils/force_garbage_collection.d.ts +29 -0
- package/dist/commonjs/core/stream/representation/utils/force_garbage_collection.js +179 -0
- package/dist/commonjs/core/stream/representation/utils/get_buffer_status.d.ts +72 -0
- package/dist/commonjs/core/stream/representation/utils/get_buffer_status.js +231 -0
- package/dist/commonjs/core/stream/representation/utils/get_needed_segments.d.ts +92 -0
- package/dist/commonjs/core/stream/representation/utils/get_needed_segments.js +429 -0
- package/dist/commonjs/core/stream/representation/utils/get_segment_priority.d.ts +28 -0
- package/dist/commonjs/core/stream/representation/utils/get_segment_priority.js +41 -0
- package/dist/commonjs/core/stream/representation/utils/push_init_segment.d.ts +39 -0
- package/dist/commonjs/core/stream/representation/utils/push_init_segment.js +88 -0
- package/dist/commonjs/core/stream/representation/utils/push_media_segment.d.ts +40 -0
- package/dist/commonjs/core/stream/representation/utils/push_media_segment.js +111 -0
- package/dist/commonjs/default_config.d.ts +1081 -0
- package/dist/commonjs/default_config.js +1104 -0
- package/dist/commonjs/errors/assertion_error.d.ts +31 -0
- package/dist/commonjs/errors/assertion_error.js +56 -0
- package/dist/commonjs/errors/custom_loader_error.d.ts +36 -0
- package/dist/commonjs/errors/custom_loader_error.js +61 -0
- package/dist/commonjs/errors/encrypted_media_error.d.ts +39 -0
- package/dist/commonjs/errors/encrypted_media_error.js +59 -0
- package/dist/commonjs/errors/error_codes.d.ts +31 -0
- package/dist/commonjs/errors/error_codes.js +75 -0
- package/dist/commonjs/errors/error_message.d.ts +22 -0
- package/dist/commonjs/errors/error_message.js +27 -0
- package/dist/commonjs/errors/format_error.d.ts +20 -0
- package/dist/commonjs/errors/format_error.js +34 -0
- package/dist/commonjs/errors/index.d.ts +26 -0
- package/dist/commonjs/errors/index.js +40 -0
- package/dist/commonjs/errors/is_known_error.d.ts +22 -0
- package/dist/commonjs/errors/is_known_error.js +35 -0
- package/dist/commonjs/errors/media_error.d.ts +56 -0
- package/dist/commonjs/errors/media_error.js +76 -0
- package/dist/commonjs/errors/network_error.d.ts +44 -0
- package/dist/commonjs/errors/network_error.js +72 -0
- package/dist/commonjs/errors/other_error.d.ts +32 -0
- package/dist/commonjs/errors/other_error.js +58 -0
- package/dist/commonjs/errors/request_error.d.ts +38 -0
- package/dist/commonjs/errors/request_error.js +76 -0
- package/dist/commonjs/experimental/features/dash_wasm.d.ts +23 -0
- package/dist/commonjs/experimental/features/dash_wasm.js +37 -0
- package/dist/commonjs/experimental/features/debug_element.d.ts +8 -0
- package/dist/commonjs/experimental/features/debug_element.js +13 -0
- package/dist/commonjs/experimental/features/index.d.ts +19 -0
- package/dist/commonjs/experimental/features/index.js +26 -0
- package/dist/commonjs/experimental/features/local.d.ts +19 -0
- package/dist/commonjs/experimental/features/local.js +27 -0
- package/dist/commonjs/experimental/features/metaplaylist.d.ts +19 -0
- package/dist/commonjs/experimental/features/metaplaylist.js +27 -0
- package/dist/commonjs/experimental/index.d.ts +2 -0
- package/dist/commonjs/experimental/index.js +5 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/dash.d.ts +17 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/dash.js +23 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts +17 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/metaplaylist.js +23 -0
- package/{scripts/build/templates → dist/commonjs}/experimental/tools/VideoThumbnailLoader/index.d.ts +2 -2
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/index.js +22 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +26 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +64 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +25 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +66 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +30 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +44 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/types.d.ts +25 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/types.js +17 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts +54 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +379 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.d.ts +25 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.js +50 -0
- package/dist/commonjs/experimental/tools/createMetaplaylist/get_duration_from_manifest.d.ts +23 -0
- package/dist/commonjs/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +171 -0
- package/dist/commonjs/experimental/tools/createMetaplaylist/index.d.ts +30 -0
- package/dist/commonjs/experimental/tools/createMetaplaylist/index.js +52 -0
- package/dist/commonjs/experimental/tools/index.d.ts +20 -0
- package/dist/commonjs/experimental/tools/index.js +26 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/index.d.ts +60 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/index.js +160 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.d.ts +45 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.js +141 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/capabilities.d.ts +24 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/capabilities.js +145 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/index.d.ts +17 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/index.js +19 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/log.d.ts +18 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/log.js +20 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.d.ts +25 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.js +53 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts +22 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.js +72 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts +26 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +82 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.d.ts +29 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.js +101 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/index.d.ts +21 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/index.js +32 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts +21 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.js +60 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.d.ts +21 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.js +92 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.d.ts +26 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.js +87 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts +21 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +49 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/types.d.ts +69 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/types.js +24 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/utils.d.ts +31 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/utils.js +104 -0
- package/dist/commonjs/experimental/tools/parseBIFThumbnails/index.d.ts +29 -0
- package/dist/commonjs/experimental/tools/parseBIFThumbnails/index.js +32 -0
- package/dist/commonjs/features/add_features.d.ts +20 -0
- package/dist/commonjs/features/add_features.js +38 -0
- package/dist/commonjs/features/features_object.d.ts +22 -0
- package/dist/commonjs/features/features_object.js +33 -0
- package/dist/commonjs/features/index.d.ts +34 -0
- package/dist/commonjs/features/index.js +36 -0
- package/dist/commonjs/features/list/dash.d.ts +23 -0
- package/dist/commonjs/features/list/dash.js +35 -0
- package/dist/commonjs/features/list/directfile.d.ts +24 -0
- package/dist/commonjs/features/list/directfile.js +31 -0
- package/dist/commonjs/features/list/eme.d.ts +23 -0
- package/dist/commonjs/features/list/eme.js +28 -0
- package/dist/commonjs/features/list/html_sami_parser.d.ts +23 -0
- package/dist/commonjs/features/list/html_sami_parser.js +30 -0
- package/dist/commonjs/features/list/html_srt_parser.d.ts +23 -0
- package/dist/commonjs/features/list/html_srt_parser.js +30 -0
- package/dist/commonjs/features/list/html_text_buffer.d.ts +23 -0
- package/dist/commonjs/features/list/html_text_buffer.js +28 -0
- package/dist/commonjs/features/list/html_ttml_parser.d.ts +23 -0
- package/dist/commonjs/features/list/html_ttml_parser.js +30 -0
- package/dist/commonjs/features/list/html_vtt_parser.d.ts +23 -0
- package/dist/commonjs/features/list/html_vtt_parser.js +30 -0
- package/dist/commonjs/features/list/index.d.ts +29 -0
- package/dist/commonjs/features/list/index.js +46 -0
- package/dist/commonjs/features/list/native_sami_parser.d.ts +23 -0
- package/dist/commonjs/features/list/native_sami_parser.js +31 -0
- package/dist/commonjs/features/list/native_srt_parser.d.ts +23 -0
- package/dist/commonjs/features/list/native_srt_parser.js +31 -0
- package/dist/commonjs/features/list/native_text_buffer.d.ts +23 -0
- package/dist/commonjs/features/list/native_text_buffer.js +29 -0
- package/dist/commonjs/features/list/native_ttml_parser.d.ts +23 -0
- package/dist/commonjs/features/list/native_ttml_parser.js +31 -0
- package/dist/commonjs/features/list/native_vtt_parser.d.ts +23 -0
- package/dist/commonjs/features/list/native_vtt_parser.js +31 -0
- package/dist/commonjs/features/list/smooth.d.ts +23 -0
- package/dist/commonjs/features/list/smooth.js +31 -0
- package/dist/commonjs/features/types.d.ts +130 -0
- package/dist/commonjs/features/types.js +17 -0
- package/dist/{_esm5.processed → commonjs}/index.js +4 -4
- package/dist/commonjs/log.d.ts +18 -0
- package/dist/commonjs/log.js +21 -0
- package/dist/commonjs/manifest/adaptation.d.ts +113 -0
- package/dist/commonjs/manifest/adaptation.js +222 -0
- package/dist/commonjs/manifest/index.d.ts +24 -0
- package/dist/commonjs/manifest/index.js +47 -0
- package/dist/commonjs/manifest/manifest.d.ts +265 -0
- package/dist/commonjs/manifest/manifest.js +453 -0
- package/dist/commonjs/manifest/period.d.ts +68 -0
- package/dist/commonjs/manifest/period.js +140 -0
- package/dist/commonjs/manifest/representation.d.ts +251 -0
- package/dist/commonjs/manifest/representation.js +283 -0
- package/dist/commonjs/manifest/representation_index/index.d.ts +18 -0
- package/dist/commonjs/manifest/representation_index/index.js +20 -0
- package/dist/commonjs/manifest/representation_index/static.d.ts +101 -0
- package/dist/commonjs/manifest/representation_index/static.js +143 -0
- package/dist/commonjs/manifest/representation_index/types.d.ts +420 -0
- package/dist/commonjs/manifest/representation_index/types.js +17 -0
- package/dist/commonjs/manifest/types.d.ts +29 -0
- package/dist/commonjs/manifest/types.js +33 -0
- package/dist/commonjs/manifest/update_period_in_place.d.ts +49 -0
- package/dist/commonjs/manifest/update_period_in_place.js +168 -0
- package/dist/commonjs/manifest/update_periods.d.ts +47 -0
- package/dist/commonjs/manifest/update_periods.js +189 -0
- package/dist/commonjs/manifest/utils.d.ts +39 -0
- package/dist/commonjs/manifest/utils.js +47 -0
- package/dist/commonjs/minimal.d.ts +17 -0
- package/dist/commonjs/minimal.js +33 -0
- package/dist/commonjs/parsers/containers/isobmff/constants.d.ts +23 -0
- package/dist/commonjs/parsers/containers/isobmff/constants.js +26 -0
- package/dist/commonjs/parsers/containers/isobmff/create_box.d.ts +30 -0
- package/dist/commonjs/parsers/containers/isobmff/create_box.js +93 -0
- package/dist/commonjs/parsers/containers/isobmff/drm/index.d.ts +16 -0
- package/dist/commonjs/parsers/containers/isobmff/drm/index.js +20 -0
- package/dist/commonjs/parsers/containers/isobmff/drm/playready.d.ts +21 -0
- package/dist/commonjs/parsers/containers/isobmff/drm/playready.js +40 -0
- package/dist/commonjs/parsers/containers/isobmff/get_box.d.ts +107 -0
- package/dist/commonjs/parsers/containers/isobmff/get_box.js +258 -0
- package/dist/commonjs/parsers/containers/isobmff/index.d.ts +21 -0
- package/dist/commonjs/parsers/containers/isobmff/index.js +42 -0
- package/dist/commonjs/parsers/containers/isobmff/read.d.ts +57 -0
- package/dist/commonjs/parsers/containers/isobmff/read.js +95 -0
- package/dist/commonjs/parsers/containers/isobmff/take_pssh_out.d.ts +41 -0
- package/dist/commonjs/parsers/containers/isobmff/take_pssh_out.js +88 -0
- package/dist/commonjs/parsers/containers/isobmff/utils.d.ts +123 -0
- package/dist/commonjs/parsers/containers/isobmff/utils.js +491 -0
- package/dist/commonjs/parsers/containers/matroska/index.d.ts +16 -0
- package/dist/commonjs/parsers/containers/matroska/index.js +21 -0
- package/dist/commonjs/parsers/containers/matroska/utils.d.ts +34 -0
- package/dist/commonjs/parsers/containers/matroska/utils.js +257 -0
- package/dist/commonjs/parsers/images/bif.d.ts +39 -0
- package/dist/commonjs/parsers/images/bif.js +90 -0
- package/dist/commonjs/parsers/manifest/dash/common/attach_trickmode_track.d.ts +28 -0
- package/dist/commonjs/parsers/manifest/dash/common/attach_trickmode_track.js +98 -0
- package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts +43 -0
- package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.js +77 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_clock_offset.d.ts +29 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_clock_offset.js +41 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_hdr_information.d.ts +50 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_hdr_information.js +78 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_http_utc-timing_url.js +31 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts +25 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_minimum_and_maximum_positions.js +33 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_periods_time_infos.d.ts +43 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_periods_time_infos.js +67 -0
- package/dist/commonjs/parsers/manifest/dash/common/index.d.ts +20 -0
- package/dist/commonjs/parsers/manifest/dash/common/index.js +25 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/base.d.ts +246 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/base.js +256 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_init_segment.d.ts +32 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_init_segment.js +43 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts +36 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_segments_from_timeline.js +97 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/index.d.ts +20 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/index.js +26 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/list.d.ts +193 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/list.js +216 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/template.d.ts +254 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/template.js +427 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +26 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +50 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +17 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +86 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts +37 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.js +59 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +41 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +130 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/index.d.ts +17 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/index.js +19 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts +34 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/parse_s_element.js +60 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +338 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +467 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/tokens.d.ts +40 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/tokens.js +115 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/utils.d.ts +25 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/utils.js +32 -0
- package/dist/commonjs/parsers/manifest/dash/common/infer_adaptation_type.d.ts +42 -0
- package/dist/commonjs/parsers/manifest/dash/common/infer_adaptation_type.js +112 -0
- package/dist/commonjs/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts +92 -0
- package/dist/commonjs/parsers/manifest/dash/common/manifest_bounds_calculator.js +115 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.d.ts +49 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.js +430 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_availability_start_time.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_availability_start_time.js +32 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_mpd.d.ts +98 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_mpd.js +287 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.d.ts +67 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.js +329 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_representation_index.d.ts +73 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_representation_index.js +115 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_representations.d.ts +46 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_representations.js +305 -0
- package/dist/commonjs/parsers/manifest/dash/common/resolve_base_urls.d.ts +26 -0
- package/dist/commonjs/parsers/manifest/dash/common/resolve_base_urls.js +47 -0
- package/dist/commonjs/parsers/manifest/dash/index.d.ts +16 -0
- package/dist/commonjs/parsers/manifest/dash/index.js +23 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/index.d.ts +17 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/index.js +19 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +328 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/BaseURL.js +33 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.js +44 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.js +94 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/EventStream.js +113 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Initialization.js +42 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/MPD.js +164 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Period.js +132 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Representation.js +206 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.js +108 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentList.js +59 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.js +92 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.js +33 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.js +52 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts +187 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/utils.js +354 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/parse_from_document.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/parse_from_document.js +131 -0
- package/dist/commonjs/parsers/manifest/dash/node_parser_types.d.ts +393 -0
- package/dist/commonjs/parsers/manifest/dash/node_parser_types.js +17 -0
- package/dist/commonjs/parsers/manifest/dash/parsers_types.d.ts +83 -0
- package/dist/commonjs/parsers/manifest/dash/parsers_types.js +17 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/index.d.ts +18 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/index.js +19 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +111 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +396 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts +31 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +275 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.js +34 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.js +45 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +53 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts +32 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.js +117 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts +27 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +150 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts +32 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +135 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts +31 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +172 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.js +39 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts +18 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.js +97 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts +25 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.js +49 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts +18 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.js +112 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts +25 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.js +58 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts +28 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/XLink.js +51 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts +16 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/index.js +20 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts +27 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/root.js +49 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts +38 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/parsers_stack.js +59 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/types.d.ts +144 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/types.js +17 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/utils.d.ts +29 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/utils.js +40 -0
- package/dist/commonjs/parsers/manifest/index.d.ts +16 -0
- package/dist/commonjs/parsers/manifest/index.js +32 -0
- package/dist/commonjs/parsers/manifest/local/index.d.ts +18 -0
- package/dist/commonjs/parsers/manifest/local/index.js +19 -0
- package/dist/commonjs/parsers/manifest/local/parse_local_manifest.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/local/parse_local_manifest.js +129 -0
- package/dist/commonjs/parsers/manifest/local/representation_index.d.ts +83 -0
- package/dist/commonjs/parsers/manifest/local/representation_index.js +258 -0
- package/dist/commonjs/parsers/manifest/local/types.d.ts +285 -0
- package/dist/commonjs/parsers/manifest/local/types.js +17 -0
- package/dist/commonjs/parsers/manifest/metaplaylist/index.d.ts +18 -0
- package/dist/commonjs/parsers/manifest/metaplaylist/index.js +19 -0
- package/dist/commonjs/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts +64 -0
- package/dist/commonjs/parsers/manifest/metaplaylist/metaplaylist_parser.js +283 -0
- package/dist/commonjs/parsers/manifest/metaplaylist/representation_index.d.ts +154 -0
- package/dist/commonjs/parsers/manifest/metaplaylist/representation_index.js +227 -0
- package/dist/commonjs/parsers/manifest/smooth/create_parser.d.ts +33 -0
- package/dist/commonjs/parsers/manifest/smooth/create_parser.js +521 -0
- package/dist/commonjs/parsers/manifest/smooth/get_codecs.d.ts +26 -0
- package/dist/commonjs/parsers/manifest/smooth/get_codecs.js +55 -0
- package/dist/commonjs/parsers/manifest/smooth/index.d.ts +19 -0
- package/dist/commonjs/parsers/manifest/smooth/index.js +22 -0
- package/dist/commonjs/parsers/manifest/smooth/parse_C_nodes.d.ts +26 -0
- package/dist/commonjs/parsers/manifest/smooth/parse_C_nodes.js +63 -0
- package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.d.ts +29 -0
- package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.js +61 -0
- package/dist/commonjs/parsers/manifest/smooth/representation_index.d.ts +226 -0
- package/dist/commonjs/parsers/manifest/smooth/representation_index.js +385 -0
- package/dist/commonjs/parsers/manifest/smooth/shared_smooth_segment_timeline.js +162 -0
- package/dist/commonjs/parsers/manifest/smooth/utils/add_segment_infos.d.ts +38 -0
- package/dist/commonjs/parsers/manifest/smooth/utils/add_segment_infos.js +63 -0
- package/dist/commonjs/parsers/manifest/smooth/utils/parseBoolean.d.ts +20 -0
- package/dist/{_esm5.processed/utils/take_first_set.js → commonjs/parsers/manifest/smooth/utils/parseBoolean.js} +14 -12
- package/dist/commonjs/parsers/manifest/smooth/utils/reduceChildren.d.ts +23 -0
- package/dist/{_esm5.processed/utils/take_first_set.d.ts → commonjs/parsers/manifest/smooth/utils/reduceChildren.js} +16 -7
- package/dist/commonjs/parsers/manifest/smooth/utils/tokens.d.ts +28 -0
- package/dist/commonjs/parsers/manifest/smooth/utils/tokens.js +39 -0
- package/dist/commonjs/parsers/manifest/types.d.ts +378 -0
- package/dist/commonjs/parsers/manifest/types.js +17 -0
- package/dist/commonjs/parsers/manifest/utils/check_manifest_ids.d.ts +25 -0
- package/dist/commonjs/parsers/manifest/utils/check_manifest_ids.js +79 -0
- package/dist/commonjs/parsers/manifest/utils/clear_timeline_from_position.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/utils/clear_timeline_from_position.js +72 -0
- package/dist/commonjs/parsers/manifest/utils/get_first_time_from_adaptation.d.ts +27 -0
- package/dist/commonjs/parsers/manifest/utils/get_first_time_from_adaptation.js +46 -0
- package/dist/commonjs/parsers/manifest/utils/get_last_time_from_adaptation.d.ts +29 -0
- package/dist/commonjs/parsers/manifest/utils/get_last_time_from_adaptation.js +48 -0
- package/dist/commonjs/parsers/manifest/utils/get_maximum_positions.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/utils/get_maximum_positions.js +75 -0
- package/dist/commonjs/parsers/manifest/utils/get_minimum_position.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/utils/get_minimum_position.js +71 -0
- package/dist/commonjs/parsers/manifest/utils/index_helpers.d.ts +88 -0
- package/dist/commonjs/parsers/manifest/utils/index_helpers.js +156 -0
- package/dist/commonjs/parsers/manifest/utils/is_segment_still_available.d.ts +29 -0
- package/dist/commonjs/parsers/manifest/utils/is_segment_still_available.js +54 -0
- package/dist/commonjs/parsers/manifest/utils/update_segment_timeline.d.ts +33 -0
- package/dist/commonjs/parsers/manifest/utils/update_segment_timeline.js +157 -0
- package/dist/commonjs/parsers/texttracks/index.d.ts +16 -0
- package/dist/commonjs/parsers/texttracks/index.js +17 -0
- package/dist/commonjs/parsers/texttracks/sami/html.d.ts +29 -0
- package/dist/commonjs/parsers/texttracks/sami/html.js +207 -0
- package/dist/commonjs/parsers/texttracks/sami/native.d.ts +34 -0
- package/dist/commonjs/parsers/texttracks/sami/native.js +178 -0
- package/dist/commonjs/parsers/texttracks/srt/find_end_of_cue_block.d.ts +29 -0
- package/dist/commonjs/parsers/texttracks/srt/find_end_of_cue_block.js +42 -0
- package/dist/commonjs/parsers/texttracks/srt/get_cue_blocks.d.ts +22 -0
- package/dist/commonjs/parsers/texttracks/srt/get_cue_blocks.js +50 -0
- package/dist/commonjs/parsers/texttracks/srt/html.d.ts +26 -0
- package/dist/commonjs/parsers/texttracks/srt/html.js +156 -0
- package/dist/commonjs/parsers/texttracks/srt/native.d.ts +28 -0
- package/dist/commonjs/parsers/texttracks/srt/native.js +60 -0
- package/dist/commonjs/parsers/texttracks/srt/parse_cue.d.ts +30 -0
- package/dist/commonjs/parsers/texttracks/srt/parse_cue.js +79 -0
- package/dist/commonjs/parsers/texttracks/srt/parse_timestamp.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/srt/parse_timestamp.js +36 -0
- package/dist/commonjs/parsers/texttracks/ttml/get_parameters.d.ts +32 -0
- package/dist/commonjs/parsers/texttracks/ttml/get_parameters.js +87 -0
- package/dist/commonjs/parsers/texttracks/ttml/get_styling.d.ts +41 -0
- package/dist/commonjs/parsers/texttracks/ttml/get_styling.js +137 -0
- package/dist/commonjs/parsers/texttracks/ttml/get_time_delimiters.d.ts +26 -0
- package/dist/commonjs/parsers/texttracks/ttml/get_time_delimiters.js +44 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.d.ts +48 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.js +66 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_extent.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_extent.js +64 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_font_size.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_font_size.js +62 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_line_height.d.ts +20 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_line_height.js +47 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_origin.d.ts +20 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_origin.js +63 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_padding.d.ts +20 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_padding.js +142 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/create_element.d.ts +32 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/create_element.js +470 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/generate_css_test_outline.d.ts +26 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/generate_css_test_outline.js +44 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/index.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/index.js +23 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_cue.d.ts +26 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_cue.js +41 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts +34 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_ttml_to_div.js +53 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/ttml_color_to_css_color.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/ttml_color_to_css_color.js +60 -0
- package/dist/commonjs/parsers/texttracks/ttml/native/index.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/ttml/native/index.js +23 -0
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_cue.d.ts +30 -0
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_cue.js +205 -0
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_ttml_to_vtt.js +36 -0
- package/dist/commonjs/parsers/texttracks/ttml/parse_ttml.d.ts +43 -0
- package/dist/commonjs/parsers/texttracks/ttml/parse_ttml.js +175 -0
- package/dist/commonjs/parsers/texttracks/ttml/regexps.d.ts +28 -0
- package/dist/commonjs/parsers/texttracks/ttml/regexps.js +49 -0
- package/dist/commonjs/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts +49 -0
- package/dist/commonjs/parsers/texttracks/ttml/resolve_styles_inheritance.js +86 -0
- package/dist/commonjs/parsers/texttracks/ttml/time_parsing.d.ts +30 -0
- package/dist/commonjs/parsers/texttracks/ttml/time_parsing.js +126 -0
- package/dist/commonjs/parsers/texttracks/ttml/xml_utils.d.ts +70 -0
- package/dist/commonjs/parsers/texttracks/ttml/xml_utils.js +186 -0
- package/dist/commonjs/parsers/texttracks/types.d.ts +23 -0
- package/dist/commonjs/parsers/texttracks/types.js +17 -0
- package/dist/commonjs/parsers/texttracks/webvtt/get_cue_blocks.d.ts +24 -0
- package/dist/commonjs/parsers/texttracks/webvtt/get_cue_blocks.js +47 -0
- package/dist/commonjs/parsers/texttracks/webvtt/get_style_blocks.d.ts +24 -0
- package/dist/commonjs/parsers/texttracks/webvtt/get_style_blocks.js +54 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts +22 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/convert_payload_to_html.js +38 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_default_style_elements.d.ts +2 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_default_style_elements.js +25 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_style_attribute.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_style_attribute.js +178 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_styled_element.d.ts +25 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_styled_element.js +86 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/index.d.ts +22 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/index.js +23 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_style_block.d.ts +27 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_style_block.js +75 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_to_div.d.ts +31 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_to_div.js +58 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/to_html.d.ts +43 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/to_html.js +73 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/index.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/index.js +23 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_vtt_to_cues.d.ts +28 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_vtt_to_cues.js +61 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts +23 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/set_settings_on_cue.js +83 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/to_native_cue.d.ts +25 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/to_native_cue.js +28 -0
- package/dist/commonjs/parsers/texttracks/webvtt/parse_cue_block.d.ts +33 -0
- package/dist/commonjs/parsers/texttracks/webvtt/parse_cue_block.js +99 -0
- package/dist/commonjs/parsers/texttracks/webvtt/parse_timestamp.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/webvtt/parse_timestamp.js +37 -0
- package/dist/commonjs/parsers/texttracks/webvtt/utils.d.ts +56 -0
- package/dist/commonjs/parsers/texttracks/webvtt/utils.js +121 -0
- package/dist/commonjs/public_types.d.ts +825 -0
- package/dist/commonjs/public_types.js +17 -0
- package/dist/commonjs/tools/TextTrackRenderer/index.d.ts +22 -0
- package/dist/commonjs/tools/TextTrackRenderer/index.js +29 -0
- package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.d.ts +70 -0
- package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.js +81 -0
- package/dist/commonjs/tools/index.d.ts +18 -0
- package/dist/commonjs/tools/index.js +21 -0
- package/dist/commonjs/tools/string_utils/index.d.ts +16 -0
- package/dist/commonjs/tools/string_utils/index.js +25 -0
- package/dist/commonjs/transports/dash/add_segment_integrity_checks_to_loader.d.ts +24 -0
- package/dist/commonjs/transports/dash/add_segment_integrity_checks_to_loader.js +96 -0
- package/dist/commonjs/transports/dash/construct_segment_url.d.ts +18 -0
- package/{src/typings/globals.d.ts → dist/commonjs/transports/dash/construct_segment_url.js} +8 -20
- package/dist/commonjs/transports/dash/extract_complete_chunks.d.ts +24 -0
- package/dist/commonjs/transports/dash/extract_complete_chunks.js +62 -0
- package/dist/commonjs/transports/dash/get_events_out_of_emsgs.d.ts +28 -0
- package/dist/commonjs/transports/dash/get_events_out_of_emsgs.js +95 -0
- package/dist/commonjs/transports/dash/index.d.ts +21 -0
- package/dist/commonjs/transports/dash/index.js +23 -0
- package/dist/commonjs/transports/dash/init_segment_loader.d.ts +28 -0
- package/dist/commonjs/transports/dash/init_segment_loader.js +87 -0
- package/dist/commonjs/transports/dash/low_latency_segment_loader.d.ts +30 -0
- package/dist/commonjs/transports/dash/low_latency_segment_loader.js +67 -0
- package/dist/commonjs/transports/dash/manifest_parser.d.ts +18 -0
- package/dist/commonjs/transports/dash/manifest_parser.js +280 -0
- package/dist/commonjs/transports/dash/pipelines.d.ts +23 -0
- package/dist/commonjs/transports/dash/pipelines.js +58 -0
- package/dist/commonjs/transports/dash/segment_loader.d.ts +38 -0
- package/dist/commonjs/transports/dash/segment_loader.js +173 -0
- package/dist/commonjs/transports/dash/segment_parser.d.ts +23 -0
- package/dist/commonjs/transports/dash/segment_parser.js +127 -0
- package/dist/commonjs/transports/dash/text_loader.d.ts +25 -0
- package/dist/commonjs/transports/dash/text_loader.js +85 -0
- package/dist/commonjs/transports/dash/text_parser.d.ts +25 -0
- package/dist/commonjs/transports/dash/text_parser.js +167 -0
- package/dist/commonjs/transports/index.d.ts +16 -0
- package/dist/commonjs/transports/index.js +32 -0
- package/dist/commonjs/transports/local/index.d.ts +17 -0
- package/dist/commonjs/transports/local/index.js +19 -0
- package/dist/commonjs/transports/local/pipelines.d.ts +22 -0
- package/dist/commonjs/transports/local/pipelines.js +68 -0
- package/dist/commonjs/transports/local/segment_loader.d.ts +28 -0
- package/dist/commonjs/transports/local/segment_loader.js +147 -0
- package/dist/commonjs/transports/local/segment_parser.d.ts +20 -0
- package/dist/commonjs/transports/local/segment_parser.js +72 -0
- package/dist/commonjs/transports/local/text_parser.d.ts +27 -0
- package/dist/commonjs/transports/local/text_parser.js +134 -0
- package/dist/commonjs/transports/metaplaylist/index.d.ts +21 -0
- package/dist/commonjs/transports/metaplaylist/index.js +23 -0
- package/dist/commonjs/transports/metaplaylist/manifest_loader.d.ts +26 -0
- package/dist/commonjs/transports/metaplaylist/manifest_loader.js +44 -0
- package/dist/commonjs/transports/metaplaylist/pipelines.d.ts +17 -0
- package/dist/commonjs/transports/metaplaylist/pipelines.js +240 -0
- package/dist/commonjs/transports/smooth/extract_timings_infos.d.ts +62 -0
- package/dist/commonjs/transports/smooth/extract_timings_infos.js +81 -0
- package/dist/commonjs/transports/smooth/index.d.ts +21 -0
- package/dist/commonjs/transports/smooth/index.js +23 -0
- package/dist/commonjs/transports/smooth/isobmff/create_audio_init_segment.d.ts +29 -0
- package/dist/commonjs/transports/smooth/isobmff/create_audio_init_segment.js +55 -0
- package/dist/commonjs/transports/smooth/isobmff/create_boxes.d.ts +171 -0
- package/dist/commonjs/transports/smooth/isobmff/create_boxes.js +378 -0
- package/dist/commonjs/transports/smooth/isobmff/create_init_segment.d.ts +33 -0
- package/dist/commonjs/transports/smooth/isobmff/create_init_segment.js +68 -0
- package/dist/commonjs/transports/smooth/isobmff/create_traf_box.d.ts +16 -0
- package/dist/commonjs/transports/smooth/isobmff/create_traf_box.js +27 -0
- package/dist/commonjs/transports/smooth/isobmff/create_video_init_segment.d.ts +29 -0
- package/dist/commonjs/transports/smooth/isobmff/create_video_init_segment.js +76 -0
- package/dist/commonjs/transports/smooth/isobmff/get_aaces_header.d.ts +27 -0
- package/dist/commonjs/transports/smooth/isobmff/get_aaces_header.js +58 -0
- package/dist/commonjs/transports/smooth/isobmff/index.d.ts +21 -0
- package/dist/commonjs/transports/smooth/isobmff/index.js +28 -0
- package/dist/commonjs/transports/smooth/isobmff/parse_tfrf.d.ts +24 -0
- package/dist/commonjs/transports/smooth/isobmff/parse_tfrf.js +50 -0
- package/dist/commonjs/transports/smooth/isobmff/parse_tfxd.d.ts +24 -0
- package/dist/commonjs/transports/smooth/isobmff/parse_tfxd.js +34 -0
- package/dist/commonjs/transports/smooth/isobmff/patch_segment.d.ts +23 -0
- package/dist/commonjs/transports/smooth/isobmff/patch_segment.js +130 -0
- package/dist/commonjs/transports/smooth/pipelines.d.ts +17 -0
- package/dist/commonjs/transports/smooth/pipelines.js +287 -0
- package/dist/commonjs/transports/smooth/segment_loader.d.ts +27 -0
- package/dist/commonjs/transports/smooth/segment_loader.js +206 -0
- package/dist/commonjs/transports/smooth/utils.d.ts +26 -0
- package/dist/commonjs/transports/smooth/utils.js +36 -0
- package/dist/commonjs/transports/types.d.ts +701 -0
- package/dist/commonjs/transports/types.js +17 -0
- package/dist/commonjs/transports/utils/byte_range.d.ts +21 -0
- package/dist/commonjs/transports/utils/byte_range.js +44 -0
- package/dist/commonjs/transports/utils/call_custom_manifest_loader.d.ts +19 -0
- package/dist/commonjs/transports/utils/call_custom_manifest_loader.js +95 -0
- package/dist/commonjs/transports/utils/check_isobmff_integrity.d.ts +23 -0
- package/dist/commonjs/transports/utils/check_isobmff_integrity.js +49 -0
- package/dist/commonjs/transports/utils/find_complete_box.d.ts +25 -0
- package/dist/commonjs/transports/utils/find_complete_box.js +56 -0
- package/dist/commonjs/transports/utils/generate_manifest_loader.d.ts +26 -0
- package/dist/commonjs/transports/utils/generate_manifest_loader.js +62 -0
- package/dist/commonjs/transports/utils/get_isobmff_timing_infos.d.ts +29 -0
- package/dist/commonjs/transports/utils/get_isobmff_timing_infos.js +69 -0
- package/dist/commonjs/transports/utils/infer_segment_container.d.ts +29 -0
- package/dist/commonjs/transports/utils/infer_segment_container.js +47 -0
- package/dist/commonjs/transports/utils/parse_text_track.d.ts +56 -0
- package/dist/commonjs/transports/utils/parse_text_track.js +142 -0
- package/dist/commonjs/utils/are_arrays_of_numbers_equal.d.ts +22 -0
- package/dist/commonjs/utils/are_arrays_of_numbers_equal.js +38 -0
- package/dist/commonjs/utils/are_codecs_compatible.d.ts +25 -0
- package/dist/commonjs/utils/are_codecs_compatible.js +62 -0
- package/dist/commonjs/utils/array_find.d.ts +23 -0
- package/dist/commonjs/utils/array_find.js +38 -0
- package/dist/commonjs/utils/array_find_index.d.ts +23 -0
- package/dist/commonjs/utils/array_find_index.js +37 -0
- package/dist/commonjs/utils/array_includes.d.ts +53 -0
- package/dist/commonjs/utils/array_includes.js +86 -0
- package/dist/commonjs/utils/assert.d.ts +34 -0
- package/dist/commonjs/utils/assert.js +57 -0
- package/dist/commonjs/utils/assert_unreachable.d.ts +40 -0
- package/dist/commonjs/utils/assert_unreachable.js +46 -0
- package/dist/commonjs/utils/base64.d.ts +14 -0
- package/dist/commonjs/utils/base64.js +152 -0
- package/dist/commonjs/utils/byte_parsing.d.ts +123 -0
- package/dist/commonjs/utils/byte_parsing.js +248 -0
- package/dist/commonjs/utils/cancellable_sleep.d.ts +30 -0
- package/dist/commonjs/utils/cancellable_sleep.js +38 -0
- package/dist/commonjs/utils/create_cancellable_promise.d.ts +26 -0
- package/dist/commonjs/utils/create_cancellable_promise.js +55 -0
- package/dist/commonjs/utils/deep_merge.d.ts +9 -0
- package/dist/commonjs/utils/deep_merge.js +73 -0
- package/dist/commonjs/utils/event_emitter.d.ts +62 -0
- package/dist/commonjs/utils/event_emitter.js +105 -0
- package/dist/commonjs/utils/flat_map.d.ts +22 -0
- package/dist/commonjs/utils/flat_map.js +65 -0
- package/dist/commonjs/utils/get_fuzzed_delay.d.ts +21 -0
- package/dist/commonjs/utils/get_fuzzed_delay.js +28 -0
- package/dist/commonjs/utils/hash_buffer.d.ts +32 -0
- package/dist/commonjs/utils/hash_buffer.js +44 -0
- package/dist/commonjs/utils/id_generator.d.ts +21 -0
- package/dist/commonjs/utils/id_generator.js +36 -0
- package/dist/commonjs/utils/initialization_segment_cache.d.ts +42 -0
- package/dist/commonjs/utils/initialization_segment_cache.js +53 -0
- package/dist/commonjs/utils/is_non_empty_string.d.ts +20 -0
- package/dist/commonjs/utils/is_non_empty_string.js +25 -0
- package/dist/commonjs/utils/is_null_or_undefined.d.ts +24 -0
- package/dist/commonjs/utils/is_null_or_undefined.js +29 -0
- package/dist/commonjs/utils/languages/ISO_639-1_to_ISO_639-3.d.ts +22 -0
- package/dist/commonjs/utils/languages/ISO_639-1_to_ISO_639-3.js +207 -0
- package/dist/commonjs/utils/languages/ISO_639-2_to_ISO_639-3.d.ts +22 -0
- package/dist/commonjs/utils/languages/ISO_639-2_to_ISO_639-3.js +43 -0
- package/dist/commonjs/utils/languages/index.d.ts +18 -0
- package/dist/commonjs/utils/languages/index.js +22 -0
- package/dist/commonjs/utils/languages/normalize.d.ts +68 -0
- package/dist/commonjs/utils/languages/normalize.js +121 -0
- package/dist/commonjs/utils/logger.d.ts +46 -0
- package/dist/commonjs/utils/logger.js +81 -0
- package/dist/commonjs/utils/noop.d.ts +23 -0
- package/dist/commonjs/utils/noop.js +28 -0
- package/dist/commonjs/utils/object_assign.d.ts +22 -0
- package/dist/commonjs/utils/object_assign.js +46 -0
- package/dist/commonjs/utils/object_values.d.ts +30 -0
- package/dist/commonjs/utils/object_values.js +29 -0
- package/dist/commonjs/utils/ranges.d.ts +212 -0
- package/dist/commonjs/utils/ranges.js +527 -0
- package/dist/commonjs/utils/reference.d.ts +214 -0
- package/dist/commonjs/utils/reference.js +339 -0
- package/dist/commonjs/utils/request/fetch.d.ts +76 -0
- package/dist/commonjs/utils/request/fetch.js +188 -0
- package/dist/commonjs/utils/request/index.d.ts +19 -0
- package/dist/commonjs/utils/request/index.js +24 -0
- package/dist/commonjs/utils/request/xhr.d.ts +95 -0
- package/dist/commonjs/utils/request/xhr.js +156 -0
- package/dist/commonjs/utils/resolve_url.d.ts +35 -0
- package/dist/commonjs/utils/resolve_url.js +121 -0
- package/dist/commonjs/utils/retry_promise_with_backoff.d.ts +46 -0
- package/dist/commonjs/utils/retry_promise_with_backoff.js +122 -0
- package/dist/commonjs/utils/sleep.d.ts +10 -0
- package/dist/commonjs/utils/sleep.js +17 -0
- package/dist/commonjs/utils/slice_uint8array.d.ts +27 -0
- package/dist/commonjs/utils/slice_uint8array.js +44 -0
- package/dist/commonjs/utils/sorted_list.d.ts +127 -0
- package/dist/commonjs/utils/sorted_list.js +185 -0
- package/dist/commonjs/utils/starts_with.d.ts +26 -0
- package/dist/commonjs/utils/starts_with.js +39 -0
- package/dist/commonjs/utils/string_parsing.d.ts +88 -0
- package/dist/commonjs/utils/string_parsing.js +385 -0
- package/dist/commonjs/utils/task_canceller.d.ts +263 -0
- package/dist/commonjs/utils/task_canceller.js +344 -0
- package/dist/commonjs/utils/warn_once.d.ts +23 -0
- package/dist/commonjs/utils/warn_once.js +34 -0
- package/dist/commonjs/utils/weak_map_memory.d.ts +70 -0
- package/dist/commonjs/utils/weak_map_memory.js +88 -0
- package/dist/commonjs/utils/wrapInPromise.d.ts +7 -0
- package/dist/commonjs/utils/wrapInPromise.js +25 -0
- package/dist/es2017/compat/add_class_name.d.ts +22 -0
- package/dist/es2017/compat/add_class_name.js +39 -0
- package/dist/es2017/compat/add_text_track.d.ts +31 -0
- package/dist/es2017/compat/add_text_track.js +47 -0
- package/dist/es2017/compat/browser_compatibility_types.d.ts +164 -0
- package/dist/es2017/compat/browser_compatibility_types.js +33 -0
- package/dist/es2017/compat/browser_detection.d.ts +42 -0
- package/dist/es2017/compat/browser_detection.js +104 -0
- package/dist/es2017/compat/browser_version.d.ts +24 -0
- package/dist/es2017/compat/browser_version.js +41 -0
- package/dist/es2017/compat/can_patch_isobmff.d.ts +25 -0
- package/dist/es2017/compat/can_patch_isobmff.js +28 -0
- package/dist/es2017/compat/can_rely_on_video_visibility_and_size.d.ts +37 -0
- package/dist/es2017/compat/can_rely_on_video_visibility_and_size.js +49 -0
- package/dist/es2017/compat/can_reuse_media_keys.d.ts +13 -0
- package/dist/es2017/compat/can_reuse_media_keys.js +16 -0
- package/dist/es2017/compat/change_source_buffer_type.d.ts +48 -0
- package/dist/es2017/compat/change_source_buffer_type.js +37 -0
- package/dist/es2017/compat/clear_element_src.d.ts +20 -0
- package/dist/es2017/compat/clear_element_src.js +53 -0
- package/dist/es2017/compat/eme/close_session.d.ts +30 -0
- package/dist/es2017/compat/eme/close_session.js +98 -0
- package/dist/es2017/compat/eme/constants.d.ts +16 -0
- package/dist/es2017/compat/eme/constants.js +19 -0
- package/dist/es2017/compat/eme/custom_key_system_access.d.ts +54 -0
- package/dist/es2017/compat/eme/custom_key_system_access.js +40 -0
- package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.d.ts +31 -0
- package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.js +142 -0
- package/dist/es2017/compat/eme/custom_media_keys/index.d.ts +7 -0
- package/dist/es2017/compat/eme/custom_media_keys/index.js +6 -0
- package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +27 -0
- package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.js +61 -0
- package/dist/es2017/compat/eme/custom_media_keys/ms_media_keys_constructor.d.ts +43 -0
- package/dist/es2017/compat/eme/custom_media_keys/ms_media_keys_constructor.js +28 -0
- package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +41 -0
- package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.js +169 -0
- package/dist/es2017/compat/eme/custom_media_keys/types.d.ts +43 -0
- package/dist/es2017/compat/eme/custom_media_keys/types.js +16 -0
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.d.ts +37 -0
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.js +231 -0
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts +22 -0
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +30 -0
- package/dist/es2017/compat/eme/eme-api-implementation.d.ts +78 -0
- package/dist/es2017/compat/eme/eme-api-implementation.js +196 -0
- package/dist/es2017/compat/eme/generate_key_request.d.ts +54 -0
- package/dist/es2017/compat/eme/generate_key_request.js +147 -0
- package/dist/es2017/compat/eme/get_init_data.d.ts +57 -0
- package/dist/es2017/compat/eme/get_init_data.js +112 -0
- package/dist/es2017/compat/eme/get_uuid_kid_from_keystatus_kid.d.ts +23 -0
- package/dist/es2017/compat/eme/get_uuid_kid_from_keystatus_kid.js +31 -0
- package/dist/es2017/compat/eme/get_webkit_fairplay_initdata.d.ts +25 -0
- package/dist/es2017/compat/eme/get_webkit_fairplay_initdata.js +57 -0
- package/dist/es2017/compat/eme/index.d.ts +24 -0
- package/dist/es2017/compat/eme/index.js +22 -0
- package/dist/es2017/compat/eme/load_session.d.ts +30 -0
- package/dist/es2017/compat/eme/load_session.js +53 -0
- package/dist/es2017/compat/enable_audio_track.d.ts +11 -0
- package/dist/es2017/compat/enable_audio_track.js +26 -0
- package/dist/es2017/compat/event_listeners.d.ts +173 -0
- package/dist/es2017/compat/event_listeners.js +428 -0
- package/dist/es2017/compat/get_start_date.d.ts +30 -0
- package/dist/es2017/compat/get_start_date.js +44 -0
- package/dist/es2017/compat/global_scope.d.ts +9 -0
- package/dist/es2017/compat/global_scope.js +13 -0
- package/dist/es2017/compat/has_issues_with_high_media_source_duration.d.ts +21 -0
- package/dist/es2017/compat/has_issues_with_high_media_source_duration.js +26 -0
- package/dist/es2017/compat/index.d.ts +37 -0
- package/dist/es2017/compat/index.js +43 -0
- package/dist/es2017/compat/is_codec_supported.d.ts +25 -0
- package/dist/es2017/compat/is_codec_supported.js +36 -0
- package/dist/es2017/compat/is_debug_mode_enabled.d.ts +7 -0
- package/dist/es2017/compat/is_debug_mode_enabled.js +9 -0
- package/dist/es2017/compat/is_node.d.ts +18 -0
- package/dist/es2017/compat/is_node.js +19 -0
- package/dist/es2017/compat/is_seeking_approximate.d.ts +28 -0
- package/dist/es2017/compat/is_seeking_approximate.js +29 -0
- package/dist/es2017/compat/is_vtt_cue.d.ts +22 -0
- package/dist/es2017/compat/is_vtt_cue.js +26 -0
- package/dist/es2017/compat/is_worker.d.ts +5 -0
- package/dist/es2017/compat/is_worker.js +5 -0
- package/dist/es2017/compat/make_vtt_cue.d.ts +26 -0
- package/dist/es2017/compat/make_vtt_cue.js +44 -0
- package/dist/es2017/compat/on_height_width_change.d.ts +33 -0
- package/dist/es2017/compat/on_height_width_change.js +72 -0
- package/dist/es2017/compat/patch_webkit_source_buffer.d.ts +16 -0
- package/dist/es2017/compat/patch_webkit_source_buffer.js +74 -0
- package/dist/es2017/compat/remove_cue.d.ts +21 -0
- package/dist/es2017/compat/remove_cue.js +63 -0
- package/dist/es2017/compat/should_favour_custom_safari_EME.d.ts +23 -0
- package/dist/es2017/compat/should_favour_custom_safari_EME.js +27 -0
- package/dist/es2017/compat/should_reload_media_source_on_decipherability_update.d.ts +26 -0
- package/dist/es2017/compat/should_reload_media_source_on_decipherability_update.js +29 -0
- package/dist/es2017/compat/should_renew_media_key_system_access.d.ts +21 -0
- package/dist/es2017/compat/should_renew_media_key_system_access.js +24 -0
- package/dist/es2017/compat/should_unset_media_keys.d.ts +22 -0
- package/dist/es2017/compat/should_unset_media_keys.js +25 -0
- package/dist/es2017/compat/should_validate_metadata.d.ts +22 -0
- package/{scripts/build/constants.d.ts → dist/es2017/compat/should_validate_metadata.js} +9 -15
- package/dist/es2017/compat/should_wait_for_data_before_loaded.d.ts +24 -0
- package/dist/es2017/compat/should_wait_for_data_before_loaded.js +30 -0
- package/dist/es2017/compat/should_wait_for_have_enough_data.d.ts +13 -0
- package/dist/es2017/compat/should_wait_for_have_enough_data.js +16 -0
- package/dist/es2017/config.d.ts +179 -0
- package/dist/es2017/config.js +31 -0
- package/dist/es2017/core/adaptive/adaptive_representation_selector.d.ts +306 -0
- package/dist/es2017/core/adaptive/adaptive_representation_selector.js +386 -0
- package/dist/es2017/core/adaptive/buffer_based_chooser.d.ts +89 -0
- package/dist/es2017/core/adaptive/buffer_based_chooser.js +191 -0
- package/dist/es2017/core/adaptive/guess_based_chooser.d.ts +95 -0
- package/dist/es2017/core/adaptive/guess_based_chooser.js +233 -0
- package/dist/es2017/core/adaptive/index.d.ts +18 -0
- package/dist/es2017/core/adaptive/index.js +17 -0
- package/dist/es2017/core/adaptive/network_analyzer.d.ts +73 -0
- package/dist/es2017/core/adaptive/network_analyzer.js +333 -0
- package/dist/es2017/core/adaptive/utils/bandwidth_estimator.d.ts +47 -0
- package/dist/es2017/core/adaptive/utils/bandwidth_estimator.js +68 -0
- package/dist/es2017/core/adaptive/utils/ewma.d.ts +39 -0
- package/dist/es2017/core/adaptive/utils/ewma.js +50 -0
- package/dist/es2017/core/adaptive/utils/filter_by_bitrate.d.ts +25 -0
- package/dist/es2017/core/adaptive/utils/filter_by_bitrate.js +37 -0
- package/dist/es2017/core/adaptive/utils/filter_by_resolution.d.ts +31 -0
- package/dist/{_esm5.processed → es2017}/core/adaptive/utils/filter_by_resolution.js +4 -9
- package/dist/es2017/core/adaptive/utils/get_buffer_levels.d.ts +24 -0
- package/dist/es2017/core/adaptive/utils/get_buffer_levels.js +47 -0
- package/dist/es2017/core/adaptive/utils/last_estimate_storage.d.ts +61 -0
- package/dist/es2017/core/adaptive/utils/last_estimate_storage.js +35 -0
- package/dist/es2017/core/adaptive/utils/pending_requests_store.d.ts +110 -0
- package/dist/es2017/core/adaptive/utils/pending_requests_store.js +76 -0
- package/dist/es2017/core/adaptive/utils/representation_score_calculator.d.ts +104 -0
- package/dist/es2017/core/adaptive/utils/representation_score_calculator.js +113 -0
- package/dist/es2017/core/adaptive/utils/select_optimal_representation.d.ts +27 -0
- package/dist/es2017/core/adaptive/utils/select_optimal_representation.js +36 -0
- package/dist/es2017/core/api/debug/buffer_graph.d.ts +28 -0
- package/dist/es2017/core/api/debug/buffer_graph.js +173 -0
- package/dist/es2017/core/api/debug/buffer_size_graph.d.ts +10 -0
- package/dist/es2017/core/api/debug/buffer_size_graph.js +103 -0
- package/dist/es2017/core/api/debug/constants.d.ts +2 -0
- package/dist/es2017/core/api/debug/constants.js +2 -0
- package/dist/es2017/core/api/debug/index.d.ts +2 -0
- package/dist/es2017/core/api/debug/index.js +2 -0
- package/dist/es2017/core/api/debug/modules/general_info.d.ts +3 -0
- package/dist/es2017/core/api/debug/modules/general_info.js +169 -0
- package/dist/es2017/core/api/debug/modules/segment_buffer_content.d.ts +4 -0
- package/dist/es2017/core/api/debug/modules/segment_buffer_content.js +121 -0
- package/dist/es2017/core/api/debug/modules/segment_buffer_size.d.ts +3 -0
- package/dist/es2017/core/api/debug/modules/segment_buffer_size.js +35 -0
- package/dist/es2017/core/api/debug/render.d.ts +3 -0
- package/dist/es2017/core/api/debug/render.js +32 -0
- package/dist/es2017/core/api/debug/utils.d.ts +39 -0
- package/dist/es2017/core/api/debug/utils.js +54 -0
- package/dist/es2017/core/api/index.d.ts +20 -0
- package/dist/es2017/core/api/index.js +19 -0
- package/dist/es2017/core/api/option_utils.d.ts +119 -0
- package/dist/es2017/core/api/option_utils.js +299 -0
- package/dist/es2017/core/api/playback_observer.d.ts +370 -0
- package/dist/es2017/core/api/playback_observer.js +591 -0
- package/dist/es2017/core/api/public_api.d.ts +718 -0
- package/dist/es2017/core/api/public_api.js +2101 -0
- package/dist/es2017/core/api/track_management/index.d.ts +18 -0
- package/dist/es2017/core/api/track_management/index.js +18 -0
- package/dist/es2017/core/api/track_management/media_element_tracks_store.d.ts +197 -0
- package/dist/{_esm5.processed → es2017}/core/api/track_management/media_element_tracks_store.js +11 -14
- package/dist/es2017/core/api/track_management/track_dispatcher.d.ts +96 -0
- package/dist/{_esm5.processed → es2017}/core/api/track_management/track_dispatcher.js +8 -11
- package/dist/es2017/core/api/track_management/tracks_store.d.ts +429 -0
- package/dist/{_esm5.processed → es2017}/core/api/track_management/tracks_store.js +50 -53
- package/dist/es2017/core/api/utils.d.ts +66 -0
- package/dist/es2017/core/api/utils.js +167 -0
- package/dist/es2017/core/decrypt/__tests__/__global__/utils.d.ts +178 -0
- package/dist/es2017/core/decrypt/__tests__/__global__/utils.js +363 -0
- package/dist/es2017/core/decrypt/attach_media_keys.d.ts +52 -0
- package/dist/es2017/core/decrypt/attach_media_keys.js +71 -0
- package/dist/es2017/core/decrypt/clear_on_stop.d.ts +22 -0
- package/dist/es2017/core/decrypt/clear_on_stop.js +40 -0
- package/dist/es2017/core/decrypt/content_decryptor.d.ts +184 -0
- package/dist/es2017/core/decrypt/content_decryptor.js +846 -0
- package/dist/es2017/core/decrypt/create_or_load_session.d.ts +63 -0
- package/dist/es2017/core/decrypt/create_or_load_session.js +75 -0
- package/dist/es2017/core/decrypt/create_session.d.ts +53 -0
- package/dist/es2017/core/decrypt/create_session.js +150 -0
- package/dist/es2017/core/decrypt/dispose_decryption_resources.d.ts +21 -0
- package/dist/es2017/core/decrypt/dispose_decryption_resources.js +42 -0
- package/dist/es2017/core/decrypt/find_key_system.d.ts +48 -0
- package/dist/es2017/core/decrypt/find_key_system.js +281 -0
- package/dist/es2017/core/decrypt/get_key_system_configuration.d.ts +22 -0
- package/dist/es2017/core/decrypt/get_key_system_configuration.js +32 -0
- package/dist/es2017/core/decrypt/get_media_keys.d.ts +44 -0
- package/dist/es2017/core/decrypt/get_media_keys.js +104 -0
- package/dist/es2017/core/decrypt/index.d.ts +26 -0
- package/dist/es2017/core/decrypt/index.js +26 -0
- package/dist/es2017/core/decrypt/init_media_keys.d.ts +26 -0
- package/dist/es2017/core/decrypt/init_media_keys.js +37 -0
- package/dist/es2017/core/decrypt/session_events_listener.d.ts +75 -0
- package/dist/es2017/core/decrypt/session_events_listener.js +249 -0
- package/dist/es2017/core/decrypt/set_server_certificate.d.ts +51 -0
- package/dist/es2017/core/decrypt/set_server_certificate.js +83 -0
- package/dist/es2017/core/decrypt/types.d.ts +368 -0
- package/dist/es2017/core/decrypt/types.js +55 -0
- package/dist/es2017/core/decrypt/utils/are_init_values_compatible.d.ts +34 -0
- package/dist/es2017/core/decrypt/utils/are_init_values_compatible.js +113 -0
- package/dist/es2017/core/decrypt/utils/check_key_statuses.d.ts +52 -0
- package/dist/es2017/core/decrypt/utils/check_key_statuses.js +165 -0
- package/dist/es2017/core/decrypt/utils/clean_old_loaded_sessions.d.ts +26 -0
- package/dist/es2017/core/decrypt/utils/clean_old_loaded_sessions.js +39 -0
- package/dist/es2017/core/decrypt/utils/clean_old_stored_persistent_info.d.ts +32 -0
- package/dist/es2017/core/decrypt/utils/clean_old_stored_persistent_info.js +40 -0
- package/dist/es2017/core/decrypt/utils/get_drm_system_id.d.ts +20 -0
- package/dist/es2017/core/decrypt/utils/get_drm_system_id.js +37 -0
- package/dist/es2017/core/decrypt/utils/init_data_values_container.d.ts +69 -0
- package/dist/es2017/core/decrypt/utils/init_data_values_container.js +96 -0
- package/dist/es2017/core/decrypt/utils/is_session_usable.d.ts +24 -0
- package/dist/es2017/core/decrypt/utils/is_session_usable.js +49 -0
- package/dist/es2017/core/decrypt/utils/key_id_comparison.d.ts +31 -0
- package/dist/es2017/core/decrypt/utils/key_id_comparison.js +48 -0
- package/dist/es2017/core/decrypt/utils/key_session_record.d.ts +104 -0
- package/dist/es2017/core/decrypt/utils/key_session_record.js +153 -0
- package/dist/es2017/core/decrypt/utils/loaded_sessions_store.d.ts +215 -0
- package/dist/es2017/core/decrypt/utils/loaded_sessions_store.js +365 -0
- package/dist/es2017/core/decrypt/utils/media_keys_infos_store.d.ts +56 -0
- package/dist/es2017/core/decrypt/utils/media_keys_infos_store.js +44 -0
- package/dist/es2017/core/decrypt/utils/persistent_sessions_store.d.ts +94 -0
- package/dist/es2017/core/decrypt/utils/persistent_sessions_store.js +321 -0
- package/dist/es2017/core/decrypt/utils/serializable_bytes.d.ts +44 -0
- package/dist/es2017/core/decrypt/utils/serializable_bytes.js +46 -0
- package/dist/es2017/core/decrypt/utils/server_certificate_store.d.ts +64 -0
- package/dist/es2017/core/decrypt/utils/server_certificate_store.js +112 -0
- package/dist/es2017/core/fetchers/cdn_prioritizer.d.ts +107 -0
- package/dist/es2017/core/fetchers/cdn_prioritizer.js +155 -0
- package/dist/es2017/core/fetchers/index.d.ts +18 -0
- package/dist/es2017/core/fetchers/index.js +18 -0
- package/dist/es2017/core/fetchers/manifest/index.d.ts +18 -0
- package/dist/es2017/core/fetchers/manifest/index.js +17 -0
- package/dist/es2017/core/fetchers/manifest/manifest_fetcher.d.ts +221 -0
- package/dist/es2017/core/fetchers/manifest/manifest_fetcher.js +523 -0
- package/dist/es2017/core/fetchers/segment/index.d.ts +19 -0
- package/dist/es2017/core/fetchers/segment/index.js +17 -0
- package/dist/es2017/core/fetchers/segment/prioritized_segment_fetcher.d.ts +38 -0
- package/dist/es2017/core/fetchers/segment/prioritized_segment_fetcher.js +67 -0
- package/dist/es2017/core/fetchers/segment/segment_fetcher.d.ts +148 -0
- package/dist/es2017/core/fetchers/segment/segment_fetcher.js +295 -0
- package/dist/es2017/core/fetchers/segment/segment_fetcher_creator.d.ts +77 -0
- package/dist/es2017/core/fetchers/segment/segment_fetcher_creator.js +56 -0
- package/dist/es2017/core/fetchers/segment/task_prioritizer.d.ts +145 -0
- package/dist/es2017/core/fetchers/segment/task_prioritizer.js +319 -0
- package/dist/es2017/core/fetchers/utils/error_selector.d.ts +23 -0
- package/dist/es2017/core/fetchers/utils/error_selector.js +31 -0
- package/dist/es2017/core/fetchers/utils/schedule_request.d.ts +98 -0
- package/dist/es2017/core/fetchers/utils/schedule_request.js +332 -0
- package/dist/es2017/core/init/directfile_content_initializer.d.ts +97 -0
- package/dist/es2017/core/init/directfile_content_initializer.js +210 -0
- package/dist/es2017/core/init/index.d.ts +16 -0
- package/dist/es2017/core/init/index.js +16 -0
- package/dist/es2017/core/init/media_source_content_initializer.d.ts +174 -0
- package/dist/es2017/core/init/media_source_content_initializer.js +565 -0
- package/dist/es2017/core/init/types.d.ts +217 -0
- package/dist/es2017/core/init/types.js +30 -0
- package/dist/es2017/core/init/utils/content_time_boundaries_observer.d.ts +191 -0
- package/dist/es2017/core/init/utils/content_time_boundaries_observer.js +468 -0
- package/dist/es2017/core/init/utils/create_media_source.d.ts +37 -0
- package/dist/es2017/core/init/utils/create_media_source.js +112 -0
- package/dist/es2017/core/init/utils/create_stream_playback_observer.d.ts +45 -0
- package/dist/es2017/core/init/utils/create_stream_playback_observer.js +85 -0
- package/dist/es2017/core/init/utils/end_of_stream.d.ts +33 -0
- package/dist/es2017/core/init/utils/end_of_stream.js +88 -0
- package/dist/es2017/core/init/utils/get_initial_time.d.ts +62 -0
- package/dist/es2017/core/init/utils/get_initial_time.js +110 -0
- package/dist/es2017/core/init/utils/get_loaded_reference.d.ts +28 -0
- package/dist/es2017/core/init/utils/get_loaded_reference.js +56 -0
- package/dist/es2017/core/init/utils/initial_seek_and_play.d.ts +63 -0
- package/dist/es2017/core/init/utils/initial_seek_and_play.js +128 -0
- package/dist/es2017/core/init/utils/initialize_content_decryption.d.ts +80 -0
- package/dist/es2017/core/init/utils/initialize_content_decryption.js +104 -0
- package/dist/es2017/core/init/utils/media_source_duration_updater.d.ts +58 -0
- package/dist/es2017/core/init/utils/media_source_duration_updater.js +263 -0
- package/dist/es2017/core/init/utils/rebuffering_controller.d.ts +147 -0
- package/dist/es2017/core/init/utils/rebuffering_controller.js +541 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/are_same_stream_events.d.ts +39 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/are_same_stream_events.js +35 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/index.d.ts +18 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/index.js +17 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +25 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +62 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/stream_events_emitter.d.ts +52 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/stream_events_emitter.js +178 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/types.d.ts +41 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/types.js +16 -0
- package/dist/es2017/core/init/utils/throw_on_media_error.d.ts +23 -0
- package/dist/es2017/core/init/utils/throw_on_media_error.js +58 -0
- package/dist/es2017/core/segment_buffers/garbage_collector.d.ts +41 -0
- package/dist/es2017/core/segment_buffers/garbage_collector.js +129 -0
- package/dist/es2017/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.d.ts +182 -0
- package/dist/es2017/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.js +435 -0
- package/dist/es2017/core/segment_buffers/implementations/audio_video/index.d.ts +17 -0
- package/dist/es2017/core/segment_buffers/implementations/audio_video/index.js +17 -0
- package/dist/es2017/core/segment_buffers/implementations/index.d.ts +18 -0
- package/dist/es2017/core/segment_buffers/implementations/index.js +18 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/html_text_segment_buffer.d.ts +141 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/html_text_segment_buffer.js +383 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/index.d.ts +21 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/index.js +21 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/parsers.d.ts +30 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/parsers.js +37 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/text_track_cues_store.d.ts +79 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/text_track_cues_store.js +322 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/types.d.ts +25 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/types.js +16 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/update_proportional_elements.d.ts +30 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/update_proportional_elements.js +77 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/utils.d.ts +44 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/utils.js +107 -0
- package/dist/es2017/core/segment_buffers/implementations/text/native/index.d.ts +17 -0
- package/dist/es2017/core/segment_buffers/implementations/text/native/index.js +17 -0
- package/dist/es2017/core/segment_buffers/implementations/text/native/native_text_segment_buffer.d.ts +83 -0
- package/dist/es2017/core/segment_buffers/implementations/text/native/native_text_segment_buffer.js +251 -0
- package/dist/es2017/core/segment_buffers/implementations/text/native/parsers.d.ts +26 -0
- package/dist/es2017/core/segment_buffers/implementations/text/native/parsers.js +37 -0
- package/dist/es2017/core/segment_buffers/implementations/types.d.ts +320 -0
- package/dist/es2017/core/segment_buffers/implementations/types.js +119 -0
- package/dist/es2017/core/segment_buffers/implementations/utils/manual_time_ranges.d.ts +29 -0
- package/dist/es2017/core/segment_buffers/implementations/utils/manual_time_ranges.js +63 -0
- package/dist/es2017/core/segment_buffers/index.d.ts +21 -0
- package/dist/es2017/core/segment_buffers/index.js +21 -0
- package/dist/es2017/core/segment_buffers/inventory/buffered_history.d.ts +89 -0
- package/dist/es2017/core/segment_buffers/inventory/buffered_history.js +90 -0
- package/dist/es2017/core/segment_buffers/inventory/index.d.ts +21 -0
- package/dist/es2017/core/segment_buffers/inventory/index.js +18 -0
- package/dist/es2017/core/segment_buffers/inventory/segment_inventory.d.ts +207 -0
- package/dist/es2017/core/segment_buffers/inventory/segment_inventory.js +822 -0
- package/dist/es2017/core/segment_buffers/inventory/types.d.ts +27 -0
- package/dist/es2017/core/segment_buffers/inventory/types.js +16 -0
- package/dist/es2017/core/segment_buffers/inventory/utils.d.ts +33 -0
- package/dist/es2017/core/segment_buffers/inventory/utils.js +49 -0
- package/dist/es2017/core/segment_buffers/segment_buffers_store.d.ts +180 -0
- package/dist/es2017/core/segment_buffers/segment_buffers_store.js +290 -0
- package/dist/es2017/core/stream/adaptation/adaptation_stream.d.ts +33 -0
- package/dist/es2017/core/stream/adaptation/adaptation_stream.js +349 -0
- package/dist/es2017/core/stream/adaptation/get_representations_switch_strategy.d.ts +39 -0
- package/dist/{_esm5.processed → es2017}/core/stream/adaptation/get_representations_switch_strategy.js +13 -16
- package/dist/es2017/core/stream/adaptation/index.d.ts +18 -0
- package/dist/es2017/core/stream/adaptation/index.js +18 -0
- package/dist/es2017/core/stream/adaptation/types.d.ts +200 -0
- package/dist/es2017/core/stream/adaptation/types.js +1 -0
- package/dist/es2017/core/stream/index.d.ts +20 -0
- package/dist/es2017/core/stream/index.js +17 -0
- package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.d.ts +30 -0
- package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.js +55 -0
- package/dist/es2017/core/stream/orchestrator/index.d.ts +18 -0
- package/dist/es2017/core/stream/orchestrator/index.js +17 -0
- package/dist/es2017/core/stream/orchestrator/stream_orchestrator.d.ts +174 -0
- package/dist/es2017/core/stream/orchestrator/stream_orchestrator.js +487 -0
- package/dist/es2017/core/stream/period/index.d.ts +18 -0
- package/dist/es2017/core/stream/period/index.js +18 -0
- package/dist/es2017/core/stream/period/period_stream.d.ts +49 -0
- package/dist/es2017/core/stream/period/period_stream.js +359 -0
- package/dist/es2017/core/stream/period/types.d.ts +101 -0
- package/dist/es2017/core/stream/period/types.js +1 -0
- package/dist/es2017/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +68 -0
- package/dist/es2017/core/stream/period/utils/get_adaptation_switch_strategy.js +160 -0
- package/dist/es2017/core/stream/representation/index.d.ts +18 -0
- package/dist/es2017/core/stream/representation/index.js +18 -0
- package/dist/es2017/core/stream/representation/representation_stream.d.ts +53 -0
- package/dist/es2017/core/stream/representation/representation_stream.js +384 -0
- package/dist/es2017/core/stream/representation/types.d.ts +276 -0
- package/dist/es2017/core/stream/representation/types.js +1 -0
- package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.d.ts +32 -0
- package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.js +60 -0
- package/dist/es2017/core/stream/representation/utils/check_for_discontinuity.d.ts +53 -0
- package/dist/es2017/core/stream/representation/utils/check_for_discontinuity.js +235 -0
- package/dist/es2017/core/stream/representation/utils/downloading_queue.d.ts +231 -0
- package/dist/es2017/core/stream/representation/utils/downloading_queue.js +366 -0
- package/dist/es2017/core/stream/representation/utils/force_garbage_collection.d.ts +29 -0
- package/dist/es2017/core/stream/representation/utils/force_garbage_collection.js +91 -0
- package/dist/es2017/core/stream/representation/utils/get_buffer_status.d.ts +72 -0
- package/dist/es2017/core/stream/representation/utils/get_buffer_status.js +213 -0
- package/dist/es2017/core/stream/representation/utils/get_needed_segments.d.ts +92 -0
- package/dist/es2017/core/stream/representation/utils/get_needed_segments.js +425 -0
- package/dist/es2017/core/stream/representation/utils/get_segment_priority.d.ts +28 -0
- package/dist/es2017/core/stream/representation/utils/get_segment_priority.js +38 -0
- package/dist/es2017/core/stream/representation/utils/push_init_segment.d.ts +39 -0
- package/dist/es2017/core/stream/representation/utils/push_init_segment.js +41 -0
- package/dist/es2017/core/stream/representation/utils/push_media_segment.d.ts +40 -0
- package/dist/es2017/core/stream/representation/utils/push_media_segment.js +68 -0
- package/dist/es2017/default_config.d.ts +1081 -0
- package/dist/es2017/default_config.js +1102 -0
- package/dist/es2017/errors/assertion_error.d.ts +31 -0
- package/dist/es2017/errors/assertion_error.js +35 -0
- package/dist/es2017/errors/custom_loader_error.d.ts +36 -0
- package/dist/es2017/errors/custom_loader_error.js +40 -0
- package/dist/es2017/errors/encrypted_media_error.d.ts +39 -0
- package/dist/es2017/errors/encrypted_media_error.js +38 -0
- package/dist/es2017/errors/error_codes.d.ts +31 -0
- package/dist/es2017/errors/error_codes.js +70 -0
- package/dist/es2017/errors/error_message.d.ts +22 -0
- package/dist/es2017/errors/error_message.js +24 -0
- package/dist/es2017/errors/format_error.d.ts +20 -0
- package/dist/es2017/errors/format_error.js +30 -0
- package/dist/es2017/errors/index.d.ts +26 -0
- package/dist/es2017/errors/index.js +26 -0
- package/dist/es2017/errors/is_known_error.d.ts +22 -0
- package/dist/es2017/errors/is_known_error.js +32 -0
- package/dist/es2017/errors/media_error.d.ts +56 -0
- package/dist/es2017/errors/media_error.js +55 -0
- package/dist/es2017/errors/network_error.d.ts +44 -0
- package/dist/es2017/errors/network_error.js +51 -0
- package/dist/es2017/errors/other_error.d.ts +32 -0
- package/dist/es2017/errors/other_error.js +37 -0
- package/dist/es2017/errors/request_error.d.ts +38 -0
- package/dist/es2017/errors/request_error.js +55 -0
- package/dist/es2017/experimental/features/dash_wasm.d.ts +23 -0
- package/dist/es2017/experimental/features/dash_wasm.js +34 -0
- package/dist/es2017/experimental/features/debug_element.d.ts +8 -0
- package/dist/es2017/experimental/features/debug_element.js +10 -0
- package/dist/es2017/experimental/features/index.d.ts +19 -0
- package/dist/es2017/experimental/features/index.js +19 -0
- package/dist/es2017/experimental/features/local.d.ts +19 -0
- package/dist/es2017/experimental/features/local.js +24 -0
- package/dist/es2017/experimental/features/metaplaylist.d.ts +19 -0
- package/dist/es2017/experimental/features/metaplaylist.js +24 -0
- package/dist/es2017/experimental/index.d.ts +2 -0
- package/dist/es2017/experimental/index.js +2 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/dash.d.ts +17 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/dash.js +20 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts +17 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/metaplaylist.js +20 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/index.d.ts +18 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/index.js +18 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +26 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +64 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +25 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +63 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +30 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +41 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/types.d.ts +25 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/types.js +16 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts +54 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +276 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.d.ts +25 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.js +29 -0
- package/dist/es2017/experimental/tools/createMetaplaylist/get_duration_from_manifest.d.ts +23 -0
- package/dist/es2017/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +124 -0
- package/dist/es2017/experimental/tools/createMetaplaylist/index.d.ts +30 -0
- package/dist/es2017/experimental/tools/createMetaplaylist/index.js +57 -0
- package/dist/es2017/experimental/tools/index.d.ts +20 -0
- package/dist/es2017/experimental/tools/index.js +20 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/index.d.ts +60 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/index.js +151 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.d.ts +45 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.js +97 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/capabilities.d.ts +24 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/capabilities.js +142 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/index.d.ts +17 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/index.js +17 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/log.d.ts +18 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/log.js +18 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.d.ts +25 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.js +50 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts +22 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.js +69 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts +26 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +79 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.d.ts +29 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.js +63 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/index.d.ts +21 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/index.js +30 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts +21 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.js +57 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.d.ts +21 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.js +89 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.d.ts +26 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.js +84 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts +21 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +46 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/types.d.ts +69 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/types.js +21 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/utils.d.ts +31 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/utils.js +81 -0
- package/dist/es2017/experimental/tools/parseBIFThumbnails/index.d.ts +29 -0
- package/dist/es2017/experimental/tools/parseBIFThumbnails/index.js +29 -0
- package/dist/es2017/features/add_features.d.ts +20 -0
- package/dist/es2017/features/add_features.js +35 -0
- package/dist/es2017/features/features_object.d.ts +22 -0
- package/dist/es2017/features/features_object.js +31 -0
- package/dist/es2017/features/index.d.ts +34 -0
- package/dist/es2017/features/index.js +33 -0
- package/dist/es2017/features/list/dash.d.ts +23 -0
- package/dist/es2017/features/list/dash.js +32 -0
- package/dist/es2017/features/list/directfile.d.ts +24 -0
- package/dist/es2017/features/list/directfile.js +29 -0
- package/dist/es2017/features/list/eme.d.ts +23 -0
- package/dist/es2017/features/list/eme.js +25 -0
- package/dist/es2017/features/list/html_sami_parser.d.ts +23 -0
- package/dist/es2017/features/list/html_sami_parser.js +27 -0
- package/dist/es2017/features/list/html_srt_parser.d.ts +23 -0
- package/dist/es2017/features/list/html_srt_parser.js +27 -0
- package/dist/es2017/features/list/html_text_buffer.d.ts +23 -0
- package/dist/es2017/features/list/html_text_buffer.js +25 -0
- package/dist/es2017/features/list/html_ttml_parser.d.ts +23 -0
- package/dist/es2017/features/list/html_ttml_parser.js +27 -0
- package/dist/es2017/features/list/html_vtt_parser.d.ts +23 -0
- package/dist/es2017/features/list/html_vtt_parser.js +27 -0
- package/dist/es2017/features/list/index.d.ts +29 -0
- package/dist/es2017/features/list/index.js +29 -0
- package/dist/es2017/features/list/native_sami_parser.d.ts +23 -0
- package/dist/es2017/features/list/native_sami_parser.js +28 -0
- package/dist/es2017/features/list/native_srt_parser.d.ts +23 -0
- package/dist/es2017/features/list/native_srt_parser.js +28 -0
- package/dist/es2017/features/list/native_text_buffer.d.ts +23 -0
- package/dist/es2017/features/list/native_text_buffer.js +26 -0
- package/dist/es2017/features/list/native_ttml_parser.d.ts +23 -0
- package/dist/es2017/features/list/native_ttml_parser.js +28 -0
- package/dist/es2017/features/list/native_vtt_parser.d.ts +23 -0
- package/dist/es2017/features/list/native_vtt_parser.js +28 -0
- package/dist/es2017/features/list/smooth.d.ts +23 -0
- package/dist/es2017/features/list/smooth.js +28 -0
- package/dist/es2017/features/types.d.ts +130 -0
- package/dist/es2017/features/types.js +16 -0
- package/dist/es2017/index.d.ts +17 -0
- package/dist/es2017/index.js +44 -0
- package/dist/es2017/log.d.ts +18 -0
- package/dist/es2017/log.js +19 -0
- package/dist/es2017/manifest/adaptation.d.ts +113 -0
- package/dist/es2017/manifest/adaptation.js +212 -0
- package/dist/es2017/manifest/index.d.ts +24 -0
- package/dist/es2017/manifest/index.js +28 -0
- package/dist/es2017/manifest/manifest.d.ts +265 -0
- package/dist/es2017/manifest/manifest.js +362 -0
- package/dist/es2017/manifest/period.d.ts +68 -0
- package/dist/es2017/manifest/period.js +131 -0
- package/dist/es2017/manifest/representation.d.ts +251 -0
- package/dist/es2017/manifest/representation.js +275 -0
- package/dist/es2017/manifest/representation_index/index.d.ts +18 -0
- package/dist/es2017/manifest/representation_index/index.js +17 -0
- package/dist/es2017/manifest/representation_index/static.d.ts +101 -0
- package/dist/es2017/manifest/representation_index/static.js +139 -0
- package/dist/es2017/manifest/representation_index/types.d.ts +420 -0
- package/dist/es2017/manifest/representation_index/types.js +16 -0
- package/dist/es2017/manifest/types.d.ts +29 -0
- package/dist/es2017/manifest/types.js +30 -0
- package/dist/es2017/manifest/update_period_in_place.d.ts +49 -0
- package/dist/es2017/manifest/update_period_in_place.js +106 -0
- package/dist/es2017/manifest/update_periods.d.ts +47 -0
- package/dist/es2017/manifest/update_periods.js +153 -0
- package/dist/es2017/manifest/utils.d.ts +39 -0
- package/dist/es2017/manifest/utils.js +42 -0
- package/dist/es2017/minimal.d.ts +17 -0
- package/dist/es2017/minimal.js +31 -0
- package/dist/es2017/parsers/containers/isobmff/constants.d.ts +23 -0
- package/dist/es2017/parsers/containers/isobmff/constants.js +23 -0
- package/dist/es2017/parsers/containers/isobmff/create_box.d.ts +30 -0
- package/dist/es2017/parsers/containers/isobmff/create_box.js +64 -0
- package/dist/es2017/parsers/containers/isobmff/drm/index.d.ts +16 -0
- package/dist/es2017/parsers/containers/isobmff/drm/index.js +16 -0
- package/dist/es2017/parsers/containers/isobmff/drm/playready.d.ts +21 -0
- package/dist/es2017/parsers/containers/isobmff/drm/playready.js +36 -0
- package/dist/es2017/parsers/containers/isobmff/get_box.d.ts +107 -0
- package/dist/es2017/parsers/containers/isobmff/get_box.js +227 -0
- package/dist/es2017/parsers/containers/isobmff/index.d.ts +21 -0
- package/dist/es2017/parsers/containers/isobmff/index.js +21 -0
- package/dist/es2017/parsers/containers/isobmff/read.d.ts +57 -0
- package/dist/es2017/parsers/containers/isobmff/read.js +87 -0
- package/dist/es2017/parsers/containers/isobmff/take_pssh_out.d.ts +41 -0
- package/dist/es2017/parsers/containers/isobmff/take_pssh_out.js +83 -0
- package/dist/es2017/parsers/containers/isobmff/utils.d.ts +123 -0
- package/dist/es2017/parsers/containers/isobmff/utils.js +441 -0
- package/dist/es2017/parsers/containers/matroska/index.d.ts +16 -0
- package/dist/es2017/parsers/containers/matroska/index.js +16 -0
- package/dist/es2017/parsers/containers/matroska/utils.d.ts +34 -0
- package/dist/es2017/parsers/containers/matroska/utils.js +235 -0
- package/dist/es2017/parsers/images/bif.d.ts +39 -0
- package/dist/es2017/parsers/images/bif.js +97 -0
- package/dist/es2017/parsers/manifest/dash/common/attach_trickmode_track.d.ts +28 -0
- package/dist/es2017/parsers/manifest/dash/common/attach_trickmode_track.js +44 -0
- package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts +43 -0
- package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.js +74 -0
- package/dist/es2017/parsers/manifest/dash/common/get_clock_offset.d.ts +29 -0
- package/dist/es2017/parsers/manifest/dash/common/get_clock_offset.js +38 -0
- package/dist/es2017/parsers/manifest/dash/common/get_hdr_information.d.ts +50 -0
- package/dist/es2017/parsers/manifest/dash/common/get_hdr_information.js +58 -0
- package/dist/es2017/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/common/get_http_utc-timing_url.js +26 -0
- package/dist/es2017/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts +25 -0
- package/dist/es2017/parsers/manifest/dash/common/get_minimum_and_maximum_positions.js +31 -0
- package/dist/es2017/parsers/manifest/dash/common/get_periods_time_infos.d.ts +43 -0
- package/dist/es2017/parsers/manifest/dash/common/get_periods_time_infos.js +66 -0
- package/dist/es2017/parsers/manifest/dash/common/index.d.ts +20 -0
- package/dist/es2017/parsers/manifest/dash/common/index.js +19 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/base.d.ts +246 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/base.js +257 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_init_segment.d.ts +32 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_init_segment.js +42 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts +36 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_segments_from_timeline.js +98 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/index.d.ts +20 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/index.js +20 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/list.d.ts +193 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/list.js +206 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/template.d.ts +254 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/template.js +429 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +26 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +47 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +17 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +83 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts +37 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.js +58 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +41 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +132 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/index.d.ts +17 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/index.js +17 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts +34 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/parse_s_element.js +57 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +338 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +464 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/tokens.d.ts +40 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/tokens.js +109 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/utils.d.ts +25 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/utils.js +28 -0
- package/dist/es2017/parsers/manifest/dash/common/infer_adaptation_type.d.ts +42 -0
- package/dist/es2017/parsers/manifest/dash/common/infer_adaptation_type.js +107 -0
- package/dist/es2017/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts +92 -0
- package/dist/es2017/parsers/manifest/dash/common/manifest_bounds_calculator.js +111 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.d.ts +49 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.js +368 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_availability_start_time.d.ts +22 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_availability_start_time.js +29 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_mpd.d.ts +98 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_mpd.js +246 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.d.ts +67 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.js +273 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_representation_index.d.ts +73 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_representation_index.js +95 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_representations.d.ts +46 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_representations.js +245 -0
- package/dist/es2017/parsers/manifest/dash/common/resolve_base_urls.d.ts +26 -0
- package/dist/es2017/parsers/manifest/dash/common/resolve_base_urls.js +44 -0
- package/dist/es2017/parsers/manifest/dash/index.d.ts +16 -0
- package/dist/es2017/parsers/manifest/dash/index.js +16 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/index.d.ts +17 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/index.js +17 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +308 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/BaseURL.js +30 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts +22 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.js +41 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.js +75 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/EventStream.js +94 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Initialization.js +39 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/MPD.js +144 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Period.js +112 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Representation.js +186 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts +22 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.js +89 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentList.js +40 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.js +73 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.js +30 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.js +49 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts +187 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/utils.js +306 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/parse_from_document.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/parse_from_document.js +106 -0
- package/dist/es2017/parsers/manifest/dash/node_parser_types.d.ts +393 -0
- package/dist/es2017/parsers/manifest/dash/node_parser_types.js +16 -0
- package/dist/es2017/parsers/manifest/dash/parsers_types.d.ts +83 -0
- package/dist/es2017/parsers/manifest/dash/parsers_types.js +16 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/index.d.ts +18 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/index.js +17 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +111 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +329 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts +31 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +270 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.js +30 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.js +41 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +49 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts +32 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.js +112 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts +27 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +145 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts +32 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +130 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts +31 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +167 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.js +35 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts +18 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.js +93 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts +25 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.js +45 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts +18 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.js +108 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts +25 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.js +54 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts +28 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/XLink.js +47 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts +16 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/index.js +16 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts +27 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/root.js +45 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts +38 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/parsers_stack.js +56 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/types.d.ts +144 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/types.js +16 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/utils.d.ts +29 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/utils.js +36 -0
- package/dist/es2017/parsers/manifest/index.d.ts +16 -0
- package/dist/es2017/parsers/manifest/index.js +16 -0
- package/dist/es2017/parsers/manifest/local/index.d.ts +18 -0
- package/dist/es2017/parsers/manifest/local/index.js +17 -0
- package/dist/es2017/parsers/manifest/local/parse_local_manifest.d.ts +22 -0
- package/dist/es2017/parsers/manifest/local/parse_local_manifest.js +126 -0
- package/dist/es2017/parsers/manifest/local/representation_index.d.ts +83 -0
- package/dist/es2017/parsers/manifest/local/representation_index.js +224 -0
- package/dist/es2017/parsers/manifest/local/types.d.ts +285 -0
- package/dist/es2017/parsers/manifest/local/types.js +16 -0
- package/dist/es2017/parsers/manifest/metaplaylist/index.d.ts +18 -0
- package/dist/es2017/parsers/manifest/metaplaylist/index.js +17 -0
- package/dist/es2017/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts +64 -0
- package/dist/es2017/parsers/manifest/metaplaylist/metaplaylist_parser.js +255 -0
- package/dist/es2017/parsers/manifest/metaplaylist/representation_index.d.ts +154 -0
- package/dist/es2017/parsers/manifest/metaplaylist/representation_index.js +222 -0
- package/dist/es2017/parsers/manifest/smooth/create_parser.d.ts +33 -0
- package/dist/es2017/parsers/manifest/smooth/create_parser.js +516 -0
- package/dist/es2017/parsers/manifest/smooth/get_codecs.d.ts +26 -0
- package/dist/es2017/parsers/manifest/smooth/get_codecs.js +50 -0
- package/dist/es2017/parsers/manifest/smooth/index.d.ts +19 -0
- package/dist/es2017/parsers/manifest/smooth/index.js +19 -0
- package/dist/es2017/parsers/manifest/smooth/parse_C_nodes.d.ts +26 -0
- package/dist/es2017/parsers/manifest/smooth/parse_C_nodes.js +60 -0
- package/dist/es2017/parsers/manifest/smooth/parse_protection_node.d.ts +29 -0
- package/dist/es2017/parsers/manifest/smooth/parse_protection_node.js +57 -0
- package/dist/es2017/parsers/manifest/smooth/representation_index.d.ts +226 -0
- package/dist/es2017/parsers/manifest/smooth/representation_index.js +384 -0
- package/dist/es2017/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts +119 -0
- package/dist/{_esm5.processed → es2017}/parsers/manifest/smooth/shared_smooth_segment_timeline.js +18 -21
- package/dist/es2017/parsers/manifest/smooth/utils/add_segment_infos.d.ts +38 -0
- package/dist/es2017/parsers/manifest/smooth/utils/add_segment_infos.js +60 -0
- package/dist/es2017/parsers/manifest/smooth/utils/parseBoolean.d.ts +20 -0
- package/dist/es2017/parsers/manifest/smooth/utils/parseBoolean.js +30 -0
- package/dist/es2017/parsers/manifest/smooth/utils/reduceChildren.d.ts +23 -0
- package/dist/es2017/parsers/manifest/smooth/utils/reduceChildren.js +31 -0
- package/dist/es2017/parsers/manifest/smooth/utils/tokens.d.ts +28 -0
- package/dist/es2017/parsers/manifest/smooth/utils/tokens.js +35 -0
- package/dist/es2017/parsers/manifest/types.d.ts +378 -0
- package/dist/es2017/parsers/manifest/types.js +16 -0
- package/dist/es2017/parsers/manifest/utils/check_manifest_ids.d.ts +25 -0
- package/dist/es2017/parsers/manifest/utils/check_manifest_ids.js +76 -0
- package/dist/es2017/parsers/manifest/utils/clear_timeline_from_position.d.ts +24 -0
- package/dist/es2017/parsers/manifest/utils/clear_timeline_from_position.js +69 -0
- package/dist/es2017/parsers/manifest/utils/get_first_time_from_adaptation.d.ts +27 -0
- package/dist/es2017/parsers/manifest/utils/get_first_time_from_adaptation.js +43 -0
- package/dist/es2017/parsers/manifest/utils/get_last_time_from_adaptation.d.ts +29 -0
- package/dist/es2017/parsers/manifest/utils/get_last_time_from_adaptation.js +45 -0
- package/dist/es2017/parsers/manifest/utils/get_maximum_positions.d.ts +24 -0
- package/dist/es2017/parsers/manifest/utils/get_maximum_positions.js +72 -0
- package/dist/es2017/parsers/manifest/utils/get_minimum_position.d.ts +21 -0
- package/dist/es2017/parsers/manifest/utils/get_minimum_position.js +68 -0
- package/dist/es2017/parsers/manifest/utils/index_helpers.d.ts +88 -0
- package/dist/es2017/parsers/manifest/utils/index_helpers.js +147 -0
- package/dist/es2017/parsers/manifest/utils/is_segment_still_available.d.ts +29 -0
- package/dist/es2017/parsers/manifest/utils/is_segment_still_available.js +51 -0
- package/dist/es2017/parsers/manifest/utils/update_segment_timeline.d.ts +33 -0
- package/dist/es2017/parsers/manifest/utils/update_segment_timeline.js +128 -0
- package/dist/es2017/parsers/texttracks/index.d.ts +16 -0
- package/dist/es2017/parsers/texttracks/index.js +16 -0
- package/dist/es2017/parsers/texttracks/sami/html.d.ts +29 -0
- package/dist/es2017/parsers/texttracks/sami/html.js +189 -0
- package/dist/es2017/parsers/texttracks/sami/native.d.ts +34 -0
- package/dist/es2017/parsers/texttracks/sami/native.js +160 -0
- package/dist/es2017/parsers/texttracks/srt/find_end_of_cue_block.d.ts +29 -0
- package/dist/es2017/parsers/texttracks/srt/find_end_of_cue_block.js +39 -0
- package/dist/es2017/parsers/texttracks/srt/get_cue_blocks.d.ts +22 -0
- package/dist/es2017/parsers/texttracks/srt/get_cue_blocks.js +47 -0
- package/dist/es2017/parsers/texttracks/srt/html.d.ts +26 -0
- package/dist/es2017/parsers/texttracks/srt/html.js +153 -0
- package/dist/es2017/parsers/texttracks/srt/native.d.ts +28 -0
- package/dist/es2017/parsers/texttracks/srt/native.js +57 -0
- package/dist/es2017/parsers/texttracks/srt/parse_cue.d.ts +30 -0
- package/dist/es2017/parsers/texttracks/srt/parse_cue.js +60 -0
- package/dist/es2017/parsers/texttracks/srt/parse_timestamp.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/srt/parse_timestamp.js +33 -0
- package/dist/es2017/parsers/texttracks/ttml/get_parameters.d.ts +32 -0
- package/dist/es2017/parsers/texttracks/ttml/get_parameters.js +88 -0
- package/dist/es2017/parsers/texttracks/ttml/get_styling.d.ts +41 -0
- package/dist/es2017/parsers/texttracks/ttml/get_styling.js +127 -0
- package/dist/es2017/parsers/texttracks/ttml/get_time_delimiters.d.ts +26 -0
- package/dist/es2017/parsers/texttracks/ttml/get_time_delimiters.js +41 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.d.ts +48 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.js +61 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_extent.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_extent.js +61 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_font_size.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_font_size.js +59 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_line_height.d.ts +20 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_line_height.js +44 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_origin.d.ts +20 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_origin.js +60 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_padding.d.ts +20 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_padding.js +139 -0
- package/dist/es2017/parsers/texttracks/ttml/html/create_element.d.ts +32 -0
- package/dist/es2017/parsers/texttracks/ttml/html/create_element.js +441 -0
- package/dist/es2017/parsers/texttracks/ttml/html/generate_css_test_outline.d.ts +26 -0
- package/dist/es2017/parsers/texttracks/ttml/html/generate_css_test_outline.js +41 -0
- package/dist/es2017/parsers/texttracks/ttml/html/index.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/ttml/html/index.js +21 -0
- package/dist/es2017/parsers/texttracks/ttml/html/parse_cue.d.ts +26 -0
- package/dist/es2017/parsers/texttracks/ttml/html/parse_cue.js +39 -0
- package/dist/es2017/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts +34 -0
- package/dist/es2017/parsers/texttracks/ttml/html/parse_ttml_to_div.js +50 -0
- package/dist/es2017/parsers/texttracks/ttml/html/ttml_color_to_css_color.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/ttml/html/ttml_color_to_css_color.js +57 -0
- package/dist/es2017/parsers/texttracks/ttml/native/index.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/ttml/native/index.js +21 -0
- package/dist/es2017/parsers/texttracks/ttml/native/parse_cue.d.ts +30 -0
- package/dist/es2017/parsers/texttracks/ttml/native/parse_cue.js +202 -0
- package/dist/es2017/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/ttml/native/parse_ttml_to_vtt.js +33 -0
- package/dist/es2017/parsers/texttracks/ttml/parse_ttml.d.ts +43 -0
- package/dist/es2017/parsers/texttracks/ttml/parse_ttml.js +153 -0
- package/dist/es2017/parsers/texttracks/ttml/regexps.d.ts +28 -0
- package/dist/es2017/parsers/texttracks/ttml/regexps.js +35 -0
- package/dist/es2017/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts +49 -0
- package/dist/es2017/parsers/texttracks/ttml/resolve_styles_inheritance.js +80 -0
- package/dist/es2017/parsers/texttracks/ttml/time_parsing.d.ts +30 -0
- package/dist/es2017/parsers/texttracks/ttml/time_parsing.js +124 -0
- package/dist/es2017/parsers/texttracks/ttml/xml_utils.d.ts +70 -0
- package/dist/es2017/parsers/texttracks/ttml/xml_utils.js +149 -0
- package/dist/es2017/parsers/texttracks/types.d.ts +23 -0
- package/dist/es2017/parsers/texttracks/types.js +16 -0
- package/dist/es2017/parsers/texttracks/webvtt/get_cue_blocks.d.ts +24 -0
- package/dist/es2017/parsers/texttracks/webvtt/get_cue_blocks.js +44 -0
- package/dist/es2017/parsers/texttracks/webvtt/get_style_blocks.d.ts +24 -0
- package/dist/es2017/parsers/texttracks/webvtt/get_style_blocks.js +51 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts +22 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/convert_payload_to_html.js +35 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/create_default_style_elements.d.ts +2 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/create_default_style_elements.js +22 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/create_style_attribute.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/create_style_attribute.js +172 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/create_styled_element.d.ts +25 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/create_styled_element.js +83 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/index.d.ts +22 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/index.js +21 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_style_block.d.ts +27 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_style_block.js +66 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_to_div.d.ts +31 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_to_div.js +55 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/to_html.d.ts +43 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/to_html.js +72 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/index.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/index.js +21 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_vtt_to_cues.d.ts +28 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_vtt_to_cues.js +58 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts +23 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/set_settings_on_cue.js +80 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/to_native_cue.d.ts +25 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/to_native_cue.js +25 -0
- package/dist/es2017/parsers/texttracks/webvtt/parse_cue_block.d.ts +33 -0
- package/dist/es2017/parsers/texttracks/webvtt/parse_cue_block.js +101 -0
- package/dist/es2017/parsers/texttracks/webvtt/parse_timestamp.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/webvtt/parse_timestamp.js +34 -0
- package/dist/es2017/parsers/texttracks/webvtt/utils.d.ts +56 -0
- package/dist/es2017/parsers/texttracks/webvtt/utils.js +113 -0
- package/dist/es2017/public_types.d.ts +825 -0
- package/dist/es2017/public_types.js +16 -0
- package/dist/es2017/tools/TextTrackRenderer/index.d.ts +22 -0
- package/dist/es2017/tools/TextTrackRenderer/index.js +22 -0
- package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.d.ts +70 -0
- package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.js +78 -0
- package/dist/es2017/tools/index.d.ts +18 -0
- package/dist/es2017/tools/index.js +18 -0
- package/dist/es2017/tools/string_utils/index.d.ts +16 -0
- package/dist/es2017/tools/string_utils/index.js +16 -0
- package/dist/es2017/transports/dash/add_segment_integrity_checks_to_loader.d.ts +24 -0
- package/dist/es2017/transports/dash/add_segment_integrity_checks_to_loader.js +82 -0
- package/dist/es2017/transports/dash/construct_segment_url.d.ts +18 -0
- package/dist/es2017/transports/dash/construct_segment_url.js +21 -0
- package/dist/es2017/transports/dash/extract_complete_chunks.d.ts +24 -0
- package/dist/es2017/transports/dash/extract_complete_chunks.js +59 -0
- package/dist/es2017/transports/dash/get_events_out_of_emsgs.d.ts +28 -0
- package/dist/es2017/transports/dash/get_events_out_of_emsgs.js +92 -0
- package/dist/es2017/transports/dash/index.d.ts +21 -0
- package/dist/es2017/transports/dash/index.js +21 -0
- package/dist/es2017/transports/dash/init_segment_loader.d.ts +28 -0
- package/dist/es2017/transports/dash/init_segment_loader.js +85 -0
- package/dist/es2017/transports/dash/low_latency_segment_loader.d.ts +30 -0
- package/dist/es2017/transports/dash/low_latency_segment_loader.js +68 -0
- package/dist/es2017/transports/dash/manifest_parser.d.ts +18 -0
- package/dist/es2017/transports/dash/manifest_parser.js +282 -0
- package/dist/es2017/transports/dash/pipelines.d.ts +23 -0
- package/dist/es2017/transports/dash/pipelines.js +55 -0
- package/dist/es2017/transports/dash/segment_loader.d.ts +38 -0
- package/dist/es2017/transports/dash/segment_loader.js +173 -0
- package/dist/es2017/transports/dash/segment_parser.d.ts +23 -0
- package/dist/es2017/transports/dash/segment_parser.js +140 -0
- package/dist/es2017/transports/dash/text_loader.d.ts +25 -0
- package/dist/es2017/transports/dash/text_loader.js +85 -0
- package/dist/es2017/transports/dash/text_parser.d.ts +25 -0
- package/dist/es2017/transports/dash/text_parser.js +171 -0
- package/dist/es2017/transports/index.d.ts +16 -0
- package/dist/es2017/transports/index.js +16 -0
- package/dist/es2017/transports/local/index.d.ts +17 -0
- package/dist/es2017/transports/local/index.js +17 -0
- package/dist/es2017/transports/local/pipelines.d.ts +22 -0
- package/dist/es2017/transports/local/pipelines.js +65 -0
- package/dist/es2017/transports/local/segment_loader.d.ts +28 -0
- package/dist/es2017/transports/local/segment_loader.js +144 -0
- package/dist/es2017/transports/local/segment_parser.d.ts +20 -0
- package/dist/es2017/transports/local/segment_parser.js +77 -0
- package/dist/es2017/transports/local/text_parser.d.ts +27 -0
- package/dist/es2017/transports/local/text_parser.js +143 -0
- package/dist/es2017/transports/metaplaylist/index.d.ts +21 -0
- package/dist/es2017/transports/metaplaylist/index.js +21 -0
- package/dist/es2017/transports/metaplaylist/manifest_loader.d.ts +26 -0
- package/dist/es2017/transports/metaplaylist/manifest_loader.js +42 -0
- package/dist/es2017/transports/metaplaylist/pipelines.d.ts +17 -0
- package/dist/es2017/transports/metaplaylist/pipelines.js +229 -0
- package/dist/es2017/transports/smooth/extract_timings_infos.d.ts +62 -0
- package/dist/es2017/transports/smooth/extract_timings_infos.js +81 -0
- package/dist/es2017/transports/smooth/index.d.ts +21 -0
- package/dist/es2017/transports/smooth/index.js +21 -0
- package/dist/es2017/transports/smooth/is_mp4_embedded_track.d.ts +22 -0
- package/dist/es2017/transports/smooth/is_mp4_embedded_track.js +24 -0
- package/dist/es2017/transports/smooth/isobmff/create_audio_init_segment.d.ts +29 -0
- package/dist/es2017/transports/smooth/isobmff/create_audio_init_segment.js +52 -0
- package/dist/es2017/transports/smooth/isobmff/create_boxes.d.ts +171 -0
- package/dist/es2017/transports/smooth/isobmff/create_boxes.js +328 -0
- package/dist/es2017/transports/smooth/isobmff/create_init_segment.d.ts +33 -0
- package/dist/es2017/transports/smooth/isobmff/create_init_segment.js +65 -0
- package/dist/es2017/transports/smooth/isobmff/create_traf_box.d.ts +16 -0
- package/dist/es2017/transports/smooth/isobmff/create_traf_box.js +24 -0
- package/dist/es2017/transports/smooth/isobmff/create_video_init_segment.d.ts +29 -0
- package/dist/es2017/transports/smooth/isobmff/create_video_init_segment.js +57 -0
- package/dist/es2017/transports/smooth/isobmff/get_aaces_header.d.ts +27 -0
- package/dist/es2017/transports/smooth/isobmff/get_aaces_header.js +55 -0
- package/dist/es2017/transports/smooth/isobmff/index.d.ts +21 -0
- package/dist/es2017/transports/smooth/isobmff/index.js +21 -0
- package/dist/es2017/transports/smooth/isobmff/parse_tfrf.d.ts +24 -0
- package/dist/es2017/transports/smooth/isobmff/parse_tfrf.js +47 -0
- package/dist/es2017/transports/smooth/isobmff/parse_tfxd.d.ts +24 -0
- package/dist/es2017/transports/smooth/isobmff/parse_tfxd.js +31 -0
- package/dist/es2017/transports/smooth/isobmff/patch_segment.d.ts +23 -0
- package/dist/es2017/transports/smooth/isobmff/patch_segment.js +127 -0
- package/dist/es2017/transports/smooth/pipelines.d.ts +17 -0
- package/dist/es2017/transports/smooth/pipelines.js +291 -0
- package/dist/es2017/transports/smooth/segment_loader.d.ts +27 -0
- package/dist/es2017/transports/smooth/segment_loader.js +198 -0
- package/dist/es2017/transports/smooth/utils.d.ts +26 -0
- package/dist/es2017/transports/smooth/utils.js +32 -0
- package/dist/es2017/transports/types.d.ts +701 -0
- package/dist/es2017/transports/types.js +16 -0
- package/dist/es2017/transports/utils/byte_range.d.ts +21 -0
- package/dist/es2017/transports/utils/byte_range.js +24 -0
- package/dist/es2017/transports/utils/call_custom_manifest_loader.d.ts +19 -0
- package/dist/es2017/transports/utils/call_custom_manifest_loader.js +94 -0
- package/dist/es2017/transports/utils/check_isobmff_integrity.d.ts +23 -0
- package/dist/es2017/transports/utils/check_isobmff_integrity.js +46 -0
- package/dist/es2017/transports/utils/find_complete_box.d.ts +25 -0
- package/dist/es2017/transports/utils/find_complete_box.js +53 -0
- package/dist/es2017/transports/utils/generate_manifest_loader.d.ts +26 -0
- package/dist/es2017/transports/utils/generate_manifest_loader.js +64 -0
- package/dist/es2017/transports/utils/get_isobmff_timing_infos.d.ts +29 -0
- package/dist/es2017/transports/utils/get_isobmff_timing_infos.js +66 -0
- package/dist/es2017/transports/utils/infer_segment_container.d.ts +29 -0
- package/dist/es2017/transports/utils/infer_segment_container.js +44 -0
- package/dist/es2017/transports/utils/parse_text_track.d.ts +56 -0
- package/dist/es2017/transports/utils/parse_text_track.js +140 -0
- package/dist/es2017/utils/are_arrays_of_numbers_equal.d.ts +22 -0
- package/dist/es2017/utils/are_arrays_of_numbers_equal.js +35 -0
- package/dist/es2017/utils/are_codecs_compatible.d.ts +25 -0
- package/dist/es2017/utils/are_codecs_compatible.js +44 -0
- package/dist/es2017/utils/array_find.d.ts +23 -0
- package/dist/es2017/utils/array_find.js +35 -0
- package/dist/es2017/utils/array_find_index.d.ts +23 -0
- package/dist/es2017/utils/array_find_index.js +34 -0
- package/dist/es2017/utils/array_includes.d.ts +53 -0
- package/dist/es2017/utils/array_includes.js +81 -0
- package/dist/es2017/utils/assert.d.ts +34 -0
- package/dist/es2017/utils/assert.js +51 -0
- package/dist/es2017/utils/assert_unreachable.d.ts +40 -0
- package/dist/es2017/utils/assert_unreachable.js +43 -0
- package/dist/es2017/utils/base64.d.ts +14 -0
- package/dist/es2017/utils/base64.js +147 -0
- package/dist/es2017/utils/byte_parsing.d.ts +123 -0
- package/dist/es2017/utils/byte_parsing.js +227 -0
- package/dist/es2017/utils/cancellable_sleep.d.ts +30 -0
- package/dist/es2017/utils/cancellable_sleep.js +35 -0
- package/dist/es2017/utils/create_cancellable_promise.d.ts +26 -0
- package/dist/es2017/utils/create_cancellable_promise.js +52 -0
- package/dist/es2017/utils/deep_merge.d.ts +9 -0
- package/dist/es2017/utils/deep_merge.js +40 -0
- package/dist/es2017/utils/event_emitter.d.ts +62 -0
- package/dist/es2017/utils/event_emitter.js +100 -0
- package/dist/es2017/utils/flat_map.d.ts +22 -0
- package/dist/es2017/utils/flat_map.js +37 -0
- package/dist/es2017/utils/get_fuzzed_delay.d.ts +21 -0
- package/dist/es2017/utils/get_fuzzed_delay.js +25 -0
- package/dist/es2017/utils/hash_buffer.d.ts +32 -0
- package/dist/es2017/utils/hash_buffer.js +41 -0
- package/dist/es2017/utils/id_generator.d.ts +21 -0
- package/dist/es2017/utils/id_generator.js +33 -0
- package/dist/es2017/utils/initialization_segment_cache.d.ts +42 -0
- package/dist/es2017/utils/initialization_segment_cache.js +48 -0
- package/dist/es2017/utils/is_non_empty_string.d.ts +20 -0
- package/dist/es2017/utils/is_non_empty_string.js +22 -0
- package/dist/es2017/utils/is_null_or_undefined.d.ts +24 -0
- package/dist/es2017/utils/is_null_or_undefined.js +26 -0
- package/dist/es2017/utils/languages/ISO_639-1_to_ISO_639-3.d.ts +22 -0
- package/dist/es2017/utils/languages/ISO_639-1_to_ISO_639-3.js +205 -0
- package/dist/es2017/utils/languages/ISO_639-2_to_ISO_639-3.d.ts +22 -0
- package/dist/es2017/utils/languages/ISO_639-2_to_ISO_639-3.js +41 -0
- package/dist/es2017/utils/languages/index.d.ts +18 -0
- package/dist/es2017/utils/languages/index.js +18 -0
- package/dist/es2017/utils/languages/normalize.d.ts +68 -0
- package/dist/es2017/utils/languages/normalize.js +119 -0
- package/dist/es2017/utils/logger.d.ts +46 -0
- package/dist/es2017/utils/logger.js +77 -0
- package/dist/es2017/utils/monotonic_timestamp.d.ts +9 -0
- package/dist/es2017/utils/monotonic_timestamp.js +12 -0
- package/dist/es2017/utils/noop.d.ts +23 -0
- package/dist/es2017/utils/noop.js +25 -0
- package/dist/es2017/utils/object_assign.d.ts +22 -0
- package/dist/es2017/utils/object_assign.js +40 -0
- package/dist/es2017/utils/object_values.d.ts +30 -0
- package/dist/es2017/utils/object_values.js +26 -0
- package/dist/es2017/utils/ranges.d.ts +212 -0
- package/dist/es2017/utils/ranges.js +502 -0
- package/dist/es2017/utils/reference.d.ts +214 -0
- package/dist/es2017/utils/reference.js +287 -0
- package/dist/es2017/utils/request/fetch.d.ts +76 -0
- package/dist/es2017/utils/request/fetch.js +148 -0
- package/dist/es2017/utils/request/index.d.ts +19 -0
- package/dist/es2017/utils/request/index.js +19 -0
- package/dist/es2017/utils/request/xhr.d.ts +95 -0
- package/dist/es2017/utils/request/xhr.js +162 -0
- package/dist/es2017/utils/resolve_url.d.ts +35 -0
- package/dist/es2017/utils/resolve_url.js +113 -0
- package/dist/es2017/utils/retry_promise_with_backoff.d.ts +46 -0
- package/dist/es2017/utils/retry_promise_with_backoff.js +69 -0
- package/dist/es2017/utils/sleep.d.ts +10 -0
- package/dist/es2017/utils/sleep.js +14 -0
- package/dist/es2017/utils/slice_uint8array.d.ts +27 -0
- package/dist/es2017/utils/slice_uint8array.js +42 -0
- package/dist/es2017/utils/sorted_list.d.ts +127 -0
- package/dist/es2017/utils/sorted_list.js +177 -0
- package/dist/es2017/utils/starts_with.d.ts +26 -0
- package/dist/es2017/utils/starts_with.js +36 -0
- package/dist/es2017/utils/string_parsing.d.ts +88 -0
- package/dist/es2017/utils/string_parsing.js +372 -0
- package/dist/es2017/utils/task_canceller.d.ts +263 -0
- package/dist/es2017/utils/task_canceller.js +299 -0
- package/dist/es2017/utils/warn_once.d.ts +23 -0
- package/dist/es2017/utils/warn_once.js +31 -0
- package/dist/es2017/utils/weak_map_memory.d.ts +70 -0
- package/dist/es2017/utils/weak_map_memory.js +84 -0
- package/dist/es2017/utils/wrapInPromise.d.ts +7 -0
- package/dist/es2017/utils/wrapInPromise.js +22 -0
- package/dist/rx-player.d.ts +1 -1
- package/dist/rx-player.js +40 -73
- package/dist/rx-player.min.d.ts +1 -1
- package/dist/rx-player.min.js +1 -1
- package/experimental/features/index.d.ts +1 -1
- package/experimental/features/index.js +1 -1
- package/experimental/index.d.ts +1 -1
- package/experimental/index.js +1 -1
- package/{scripts/build/templates/experimental/tools/VideoThumbnailLoader/index.js → experimental/tools/VideoThumbnailLoader.d.ts} +2 -2
- package/experimental/tools/{VideoThumbnailLoader/index.d.ts → VideoThumbnailLoader.js} +2 -2
- package/experimental/tools/createMetaplaylist.d.ts +18 -0
- package/experimental/tools/createMetaplaylist.js +18 -0
- package/experimental/tools/index.d.ts +1 -1
- package/experimental/tools/index.js +1 -1
- package/experimental/tools/mediaCapabilitiesProber.d.ts +18 -0
- package/experimental/tools/mediaCapabilitiesProber.js +18 -0
- package/experimental/tools/parseBIFThumbnails.d.ts +18 -0
- package/experimental/tools/parseBIFThumbnails.js +18 -0
- package/features/index.d.ts +1 -1
- package/features/index.js +1 -1
- package/jest.config.js +2 -21
- package/logger/index.d.ts +1 -1
- package/logger/index.js +1 -1
- package/minimal/index.d.ts +1 -1
- package/minimal/index.js +1 -1
- package/package.json +120 -34
- package/scripts/build/{generate_build.js → generate_build.mjs} +30 -26
- package/{experimental/tools/VideoThumbnailLoader/index.js → scripts/build/templates/experimental/tools/VideoThumbnailLoader.d.ts} +2 -2
- package/scripts/build/templates/experimental/tools/VideoThumbnailLoader.js +18 -0
- package/scripts/build/templates/experimental/tools/createMetaplaylist.d.ts +18 -0
- package/scripts/build/templates/experimental/tools/createMetaplaylist.js +18 -0
- package/scripts/build/templates/experimental/tools/mediaCapabilitiesProber.d.ts +18 -0
- package/scripts/build/templates/experimental/tools/mediaCapabilitiesProber.js +18 -0
- package/scripts/build/templates/experimental/tools/parseBIFThumbnails.d.ts +18 -0
- package/scripts/build/templates/experimental/tools/parseBIFThumbnails.js +18 -0
- package/scripts/build/templates/tools/string-utils.d.ts +2 -2
- package/scripts/build/templates/tools/string-utils.js +2 -2
- package/scripts/{fast_demo_build.js → build_demo.mjs} +18 -17
- package/scripts/{generate_demo_list.js → generate_demo_list.mjs} +15 -10
- package/scripts/{generate_documentation_list.js → generate_documentation_list.mjs} +16 -11
- package/scripts/generate_standalone_demo.mjs +109 -0
- package/scripts/{launch_static_server.js → launch_static_server.mjs} +8 -8
- package/scripts/{list-npm-scripts.js → list-npm-scripts.mjs} +7 -7
- package/scripts/{run_standalone_demo.js → run_standalone_demo.mjs} +12 -7
- package/scripts/start_demo_web_server.mjs +59 -0
- package/scripts/update-version +1 -1
- package/scripts/update_gh-pages_demo +4 -4
- package/scripts/update_gh-pages_doc +4 -4
- package/scripts/utils/{display_webpack_errors.js → display_webpack_errors.mjs} +1 -1
- package/scripts/utils/{get_human_readable_hours.js → get_human_readable_hours.mjs} +1 -3
- package/scripts/utils/project_root_directory.mjs +4 -0
- package/scripts/{wasm-strip.js → wasm-strip.mjs} +11 -6
- package/sonar-project.properties +1 -1
- package/src/compat/README.md +18 -12
- package/src/core/adaptive/adaptive_representation_selector.ts +5 -3
- package/src/core/adaptive/utils/filter_by_resolution.ts +1 -3
- package/src/core/api/public_api.ts +2 -2
- package/src/core/segment_buffers/inventory/segment_inventory.ts +7 -14
- package/src/experimental/README.md +4 -0
- package/src/experimental/tools/{parseBIFThumbnails.ts → parseBIFThumbnails/index.ts} +1 -1
- package/src/globals.dev.d.ts +15 -0
- package/src/globals.prod.d.ts +15 -0
- package/src/parsers/manifest/smooth/create_parser.ts +1 -2
- package/src/tools/README.md +4 -0
- package/src/tools/{string_utils.ts → string_utils/index.ts} +1 -1
- package/src/transports/dash/segment_parser.ts +1 -2
- package/src/transports/dash/text_parser.ts +1 -2
- package/src/transports/local/segment_parser.ts +1 -2
- package/src/transports/local/text_parser.ts +2 -3
- package/tools/TextTrackRenderer.d.ts +2 -2
- package/tools/TextTrackRenderer.js +2 -2
- package/tools/index.d.ts +1 -1
- package/tools/index.js +1 -1
- package/tools/string-utils.d.ts +2 -2
- package/tools/string-utils.js +2 -2
- package/tsconfig.commonjs.json +9 -0
- package/tsconfig.eslint.json +7 -0
- package/tsconfig.jest.json +15 -0
- package/tsconfig.json +10 -6
- package/types/index.d.ts +1 -1
- package/webpack.config.mjs +97 -0
- package/scripts/generate_full_demo.js +0 -201
- package/scripts/generate_standalone_demo.js +0 -82
- package/scripts/start_demo_web_server.js +0 -44
- package/src/utils/__tests__/take_first_set.test.ts +0 -38
- package/src/utils/take_first_set.ts +0 -53
- package/tsconfig.modules.json +0 -34
- /package/dist/{_esm5.processed → commonjs}/compat/global_scope.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/compat/is_worker.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/compat/is_worker.js +0 -0
- /package/dist/{_esm5.processed → commonjs}/core/adaptive/utils/filter_by_resolution.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/core/api/track_management/index.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/core/api/track_management/media_element_tracks_store.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/core/api/track_management/track_dispatcher.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/core/api/track_management/tracks_store.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/core/segment_buffers/inventory/utils.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/core/stream/adaptation/get_representations_switch_strategy.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/index.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/transports/smooth/is_mp4_embedded_track.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/transports/smooth/is_mp4_embedded_track.js +0 -0
- /package/dist/{_esm5.processed → commonjs}/utils/monotonic_timestamp.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/utils/monotonic_timestamp.js +0 -0
|
@@ -0,0 +1,822 @@
|
|
|
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
|
+
import config from "../../../config";
|
|
17
|
+
import log from "../../../log";
|
|
18
|
+
import { areSameContent, } from "../../../manifest";
|
|
19
|
+
import BufferedHistory from "./buffered_history";
|
|
20
|
+
/**
|
|
21
|
+
* Keep track of every chunk downloaded and currently in the linked media
|
|
22
|
+
* buffer.
|
|
23
|
+
*
|
|
24
|
+
* The main point of this class is to know which chunks are already pushed to
|
|
25
|
+
* the corresponding media buffer, at which bitrate, and which have been garbage-collected
|
|
26
|
+
* since by the browser (and thus may need to be re-loaded).
|
|
27
|
+
* @class SegmentInventory
|
|
28
|
+
*/
|
|
29
|
+
export default class SegmentInventory {
|
|
30
|
+
constructor() {
|
|
31
|
+
const { BUFFERED_HISTORY_RETENTION_TIME, BUFFERED_HISTORY_MAXIMUM_ENTRIES } = config.getCurrent();
|
|
32
|
+
this._inventory = [];
|
|
33
|
+
this._bufferedHistory = new BufferedHistory(BUFFERED_HISTORY_RETENTION_TIME, BUFFERED_HISTORY_MAXIMUM_ENTRIES);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Reset the whole inventory.
|
|
37
|
+
*/
|
|
38
|
+
reset() {
|
|
39
|
+
this._inventory.length = 0;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Infer each segment's `bufferedStart` and `bufferedEnd` properties from the
|
|
43
|
+
* TimeRanges given.
|
|
44
|
+
*
|
|
45
|
+
* The TimeRanges object given should come from the media buffer linked to
|
|
46
|
+
* that SegmentInventory.
|
|
47
|
+
*
|
|
48
|
+
* /!\ A SegmentInventory should not be associated to multiple media buffers
|
|
49
|
+
* at a time, so each `synchronizeBuffered` call should be given a TimeRanges
|
|
50
|
+
* coming from the same buffer.
|
|
51
|
+
* @param {TimeRanges} buffered
|
|
52
|
+
*/
|
|
53
|
+
synchronizeBuffered(buffered) {
|
|
54
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
55
|
+
const inventory = this._inventory;
|
|
56
|
+
let inventoryIndex = 0; // Current index considered.
|
|
57
|
+
let thisSegment = inventory[0]; // Current segmentInfos considered
|
|
58
|
+
const { MINIMUM_SEGMENT_SIZE } = config.getCurrent();
|
|
59
|
+
/** Type of buffer considered, used for logs */
|
|
60
|
+
const bufferType = thisSegment === null || thisSegment === void 0 ? void 0 : thisSegment.infos.adaptation.type;
|
|
61
|
+
const rangesLength = buffered.length;
|
|
62
|
+
for (let i = 0; i < rangesLength; i++) {
|
|
63
|
+
if (thisSegment === undefined) { // we arrived at the end of our inventory
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
// take the i'nth contiguous buffered TimeRange
|
|
67
|
+
const rangeStart = buffered.start(i);
|
|
68
|
+
const rangeEnd = buffered.end(i);
|
|
69
|
+
if (rangeEnd - rangeStart < MINIMUM_SEGMENT_SIZE) {
|
|
70
|
+
log.warn("SI: skipped TimeRange when synchronizing because it was too small", bufferType, rangeStart, rangeEnd);
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
const indexBefore = inventoryIndex; // keep track of that number
|
|
74
|
+
// Find the first segment either within this TimeRange or completely past
|
|
75
|
+
// it:
|
|
76
|
+
// skip until first segment with at least `MINIMUM_SEGMENT_SIZE` past the
|
|
77
|
+
// start of that range.
|
|
78
|
+
while (thisSegment !== undefined &&
|
|
79
|
+
(((_a = thisSegment.bufferedEnd) !== null && _a !== void 0 ? _a : thisSegment.end)
|
|
80
|
+
- rangeStart) < MINIMUM_SEGMENT_SIZE) {
|
|
81
|
+
thisSegment = inventory[++inventoryIndex];
|
|
82
|
+
}
|
|
83
|
+
// Contains infos about the last garbage-collected segment before
|
|
84
|
+
// `thisSegment`.
|
|
85
|
+
let lastDeletedSegmentInfos = null;
|
|
86
|
+
// remove garbage-collected segments
|
|
87
|
+
// (Those not in that TimeRange nor in the previous one)
|
|
88
|
+
const numberOfSegmentToDelete = inventoryIndex - indexBefore;
|
|
89
|
+
if (numberOfSegmentToDelete > 0) {
|
|
90
|
+
const lastDeletedSegment = // last garbage-collected segment
|
|
91
|
+
inventory[indexBefore + numberOfSegmentToDelete - 1];
|
|
92
|
+
lastDeletedSegmentInfos = {
|
|
93
|
+
end: (_b = lastDeletedSegment.bufferedEnd) !== null && _b !== void 0 ? _b : lastDeletedSegment.end,
|
|
94
|
+
precizeEnd: lastDeletedSegment.precizeEnd,
|
|
95
|
+
};
|
|
96
|
+
log.debug(`SI: ${numberOfSegmentToDelete} segments GCed.`, bufferType);
|
|
97
|
+
const removed = inventory.splice(indexBefore, numberOfSegmentToDelete);
|
|
98
|
+
for (const seg of removed) {
|
|
99
|
+
if (seg.bufferedStart === undefined && seg.bufferedEnd === undefined) {
|
|
100
|
+
this._bufferedHistory.addBufferedSegment(seg.infos, null);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
inventoryIndex = indexBefore;
|
|
104
|
+
}
|
|
105
|
+
if (thisSegment === undefined) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
// If the current segment is actually completely outside that range (it
|
|
109
|
+
// is contained in one of the next one), skip that part.
|
|
110
|
+
if (rangeEnd - ((_c = thisSegment.bufferedStart) !== null && _c !== void 0 ? _c : thisSegment.start)
|
|
111
|
+
>= MINIMUM_SEGMENT_SIZE) {
|
|
112
|
+
guessBufferedStartFromRangeStart(thisSegment, rangeStart, lastDeletedSegmentInfos, bufferType);
|
|
113
|
+
if (inventoryIndex === inventory.length - 1) {
|
|
114
|
+
// This is the last segment in the inventory.
|
|
115
|
+
// We can directly update the end as the end of the current range.
|
|
116
|
+
guessBufferedEndFromRangeEnd(thisSegment, rangeEnd, bufferType);
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
thisSegment = inventory[++inventoryIndex];
|
|
120
|
+
// Make contiguous until first segment outside that range
|
|
121
|
+
let thisSegmentStart = (_d = thisSegment.bufferedStart) !== null && _d !== void 0 ? _d : thisSegment.start;
|
|
122
|
+
let thisSegmentEnd = (_e = thisSegment.bufferedEnd) !== null && _e !== void 0 ? _e : thisSegment.end;
|
|
123
|
+
const nextRangeStart = i < rangesLength - 1 ? buffered.start(i + 1) :
|
|
124
|
+
undefined;
|
|
125
|
+
while (thisSegment !== undefined &&
|
|
126
|
+
(rangeEnd - thisSegmentStart) >= MINIMUM_SEGMENT_SIZE &&
|
|
127
|
+
(nextRangeStart === undefined ||
|
|
128
|
+
rangeEnd - thisSegmentStart >= thisSegmentEnd - nextRangeStart)) {
|
|
129
|
+
const prevSegment = inventory[inventoryIndex - 1];
|
|
130
|
+
// those segments are contiguous, we have no way to infer their real
|
|
131
|
+
// end
|
|
132
|
+
if (prevSegment.bufferedEnd === undefined) {
|
|
133
|
+
prevSegment.bufferedEnd = thisSegment.precizeStart ? thisSegment.start :
|
|
134
|
+
prevSegment.end;
|
|
135
|
+
log.debug("SI: calculating buffered end of contiguous segment", bufferType, prevSegment.bufferedEnd, prevSegment.end);
|
|
136
|
+
}
|
|
137
|
+
thisSegment.bufferedStart = prevSegment.bufferedEnd;
|
|
138
|
+
thisSegment = inventory[++inventoryIndex];
|
|
139
|
+
if (thisSegment !== undefined) {
|
|
140
|
+
thisSegmentStart = (_f = thisSegment.bufferedStart) !== null && _f !== void 0 ? _f : thisSegment.start;
|
|
141
|
+
thisSegmentEnd = (_g = thisSegment.bufferedEnd) !== null && _g !== void 0 ? _g : thisSegment.end;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
// update the bufferedEnd of the last segment in that range
|
|
146
|
+
const lastSegmentInRange = inventory[inventoryIndex - 1];
|
|
147
|
+
if (lastSegmentInRange !== undefined) {
|
|
148
|
+
guessBufferedEndFromRangeEnd(lastSegmentInRange, rangeEnd, bufferType);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
// if we still have segments left, they are not affiliated to any range.
|
|
152
|
+
// They might have been garbage collected, delete them from here.
|
|
153
|
+
if (thisSegment != null) {
|
|
154
|
+
log.debug("SI: last segments have been GCed", bufferType, inventoryIndex, inventory.length);
|
|
155
|
+
const removed = inventory.splice(inventoryIndex, inventory.length - inventoryIndex);
|
|
156
|
+
for (const seg of removed) {
|
|
157
|
+
if (seg.bufferedStart === undefined && seg.bufferedEnd === undefined) {
|
|
158
|
+
this._bufferedHistory.addBufferedSegment(seg.infos, null);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
if (bufferType !== undefined && log.hasLevel("DEBUG")) {
|
|
163
|
+
log.debug(`SI: current ${bufferType} inventory timeline:\n` +
|
|
164
|
+
prettyPrintInventory(this._inventory));
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Add a new chunk in the inventory.
|
|
169
|
+
*
|
|
170
|
+
* Chunks are decodable sub-parts of a whole segment. Once all chunks in a
|
|
171
|
+
* segment have been inserted, you should call the `completeSegment` method.
|
|
172
|
+
* @param {Object} chunkInformation
|
|
173
|
+
*/
|
|
174
|
+
insertChunk({ period, adaptation, representation, segment, chunkSize, start, end }) {
|
|
175
|
+
if (segment.isInit) {
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
const bufferType = adaptation.type;
|
|
179
|
+
if (start >= end) {
|
|
180
|
+
log.warn("SI: Invalid chunked inserted: starts before it ends", bufferType, start, end);
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
const inventory = this._inventory;
|
|
184
|
+
const newSegment = { partiallyPushed: true,
|
|
185
|
+
chunkSize,
|
|
186
|
+
splitted: false,
|
|
187
|
+
start,
|
|
188
|
+
end,
|
|
189
|
+
precizeStart: false,
|
|
190
|
+
precizeEnd: false,
|
|
191
|
+
bufferedStart: undefined,
|
|
192
|
+
bufferedEnd: undefined,
|
|
193
|
+
infos: { segment, period, adaptation, representation } };
|
|
194
|
+
// begin by the end as in most use cases this will be faster
|
|
195
|
+
for (let i = inventory.length - 1; i >= 0; i--) {
|
|
196
|
+
const segmentI = inventory[i];
|
|
197
|
+
if ((segmentI.start) <= start) {
|
|
198
|
+
if ((segmentI.end) <= start) {
|
|
199
|
+
// our segment is after, push it after this one
|
|
200
|
+
//
|
|
201
|
+
// Case 1:
|
|
202
|
+
// prevSegment : |------|
|
|
203
|
+
// newSegment : |======|
|
|
204
|
+
// ===> : |------|======|
|
|
205
|
+
//
|
|
206
|
+
// Case 2:
|
|
207
|
+
// prevSegment : |------|
|
|
208
|
+
// newSegment : |======|
|
|
209
|
+
// ===> : |------| |======|
|
|
210
|
+
log.debug("SI: Pushing segment strictly after previous one.", bufferType, start, segmentI.end);
|
|
211
|
+
this._inventory.splice(i + 1, 0, newSegment);
|
|
212
|
+
i += 2; // Go to segment immediately after newSegment
|
|
213
|
+
while (i < inventory.length && inventory[i].start < newSegment.end) {
|
|
214
|
+
if (inventory[i].end > newSegment.end) {
|
|
215
|
+
// The next segment ends after newSegment.
|
|
216
|
+
// Mutate the next segment.
|
|
217
|
+
//
|
|
218
|
+
// Case 1:
|
|
219
|
+
// prevSegment : |------|
|
|
220
|
+
// newSegment : |======|
|
|
221
|
+
// nextSegment : |----|
|
|
222
|
+
// ===> : |------|======|-|
|
|
223
|
+
log.debug("SI: Segment pushed updates the start of the next one", bufferType, newSegment.end, inventory[i].start);
|
|
224
|
+
inventory[i].start = newSegment.end;
|
|
225
|
+
inventory[i].bufferedStart = undefined;
|
|
226
|
+
inventory[i].precizeStart = inventory[i].precizeStart &&
|
|
227
|
+
newSegment.precizeEnd;
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
// The next segment was completely contained in newSegment.
|
|
231
|
+
// Remove it.
|
|
232
|
+
//
|
|
233
|
+
// Case 1:
|
|
234
|
+
// prevSegment : |------|
|
|
235
|
+
// newSegment : |======|
|
|
236
|
+
// nextSegment : |---|
|
|
237
|
+
// ===> : |------|======|
|
|
238
|
+
//
|
|
239
|
+
// Case 2:
|
|
240
|
+
// prevSegment : |------|
|
|
241
|
+
// newSegment : |======|
|
|
242
|
+
// nextSegment : |----|
|
|
243
|
+
// ===> : |------|======|
|
|
244
|
+
log.debug("SI: Segment pushed removes the next one", bufferType, start, end, inventory[i].start, inventory[i].end);
|
|
245
|
+
inventory.splice(i, 1);
|
|
246
|
+
}
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
else {
|
|
250
|
+
if (segmentI.start === start) {
|
|
251
|
+
if (segmentI.end <= end) {
|
|
252
|
+
// In those cases, replace
|
|
253
|
+
//
|
|
254
|
+
// Case 1:
|
|
255
|
+
// prevSegment : |-------|
|
|
256
|
+
// newSegment : |=======|
|
|
257
|
+
// ===> : |=======|
|
|
258
|
+
//
|
|
259
|
+
// Case 2:
|
|
260
|
+
// prevSegment : |-------|
|
|
261
|
+
// newSegment : |==========|
|
|
262
|
+
// ===> : |==========|
|
|
263
|
+
log.debug("SI: Segment pushed replace another one", bufferType, start, end, segmentI.end);
|
|
264
|
+
this._inventory.splice(i, 1, newSegment);
|
|
265
|
+
i += 1; // Go to segment immediately after newSegment
|
|
266
|
+
while (i < inventory.length && inventory[i].start < newSegment.end) {
|
|
267
|
+
if (inventory[i].end > newSegment.end) {
|
|
268
|
+
// The next segment ends after newSegment.
|
|
269
|
+
// Mutate the next segment.
|
|
270
|
+
//
|
|
271
|
+
// Case 1:
|
|
272
|
+
// newSegment : |======|
|
|
273
|
+
// nextSegment : |----|
|
|
274
|
+
// ===> : |======|--|
|
|
275
|
+
log.debug("SI: Segment pushed updates the start of the next one", bufferType, newSegment.end, inventory[i].start);
|
|
276
|
+
inventory[i].start = newSegment.end;
|
|
277
|
+
inventory[i].bufferedStart = undefined;
|
|
278
|
+
inventory[i].precizeStart = inventory[i].precizeStart &&
|
|
279
|
+
newSegment.precizeEnd;
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
// The next segment was completely contained in newSegment.
|
|
283
|
+
// Remove it.
|
|
284
|
+
//
|
|
285
|
+
// Case 1:
|
|
286
|
+
// newSegment : |======|
|
|
287
|
+
// nextSegment : |---|
|
|
288
|
+
// ===> : |======|
|
|
289
|
+
//
|
|
290
|
+
// Case 2:
|
|
291
|
+
// newSegment : |======|
|
|
292
|
+
// nextSegment : |----|
|
|
293
|
+
// ===> : |======|
|
|
294
|
+
log.debug("SI: Segment pushed removes the next one", bufferType, start, end, inventory[i].start, inventory[i].end);
|
|
295
|
+
inventory.splice(i, 1);
|
|
296
|
+
}
|
|
297
|
+
return;
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
// The previous segment starts at the same time and finishes
|
|
301
|
+
// after the new segment.
|
|
302
|
+
// Update the start of the previous segment and put the new
|
|
303
|
+
// segment before.
|
|
304
|
+
//
|
|
305
|
+
// Case 1:
|
|
306
|
+
// prevSegment : |------------|
|
|
307
|
+
// newSegment : |==========|
|
|
308
|
+
// ===> : |==========|-|
|
|
309
|
+
log.debug("SI: Segment pushed ends before another with the same start", bufferType, start, end, segmentI.end);
|
|
310
|
+
inventory.splice(i, 0, newSegment);
|
|
311
|
+
segmentI.start = newSegment.end;
|
|
312
|
+
segmentI.bufferedStart = undefined;
|
|
313
|
+
segmentI.precizeStart = segmentI.precizeStart &&
|
|
314
|
+
newSegment.precizeEnd;
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
else {
|
|
319
|
+
if (segmentI.end <= newSegment.end) {
|
|
320
|
+
// our segment has a "complex" relation with this one,
|
|
321
|
+
// update the old one end and add this one after it.
|
|
322
|
+
//
|
|
323
|
+
// Case 1:
|
|
324
|
+
// prevSegment : |-------|
|
|
325
|
+
// newSegment : |======|
|
|
326
|
+
// ===> : |--|======|
|
|
327
|
+
//
|
|
328
|
+
// Case 2:
|
|
329
|
+
// prevSegment : |-------|
|
|
330
|
+
// newSegment : |====|
|
|
331
|
+
// ===> : |--|====|
|
|
332
|
+
log.debug("SI: Segment pushed updates end of previous one", bufferType, start, end, segmentI.start, segmentI.end);
|
|
333
|
+
this._inventory.splice(i + 1, 0, newSegment);
|
|
334
|
+
segmentI.end = newSegment.start;
|
|
335
|
+
segmentI.bufferedEnd = undefined;
|
|
336
|
+
segmentI.precizeEnd = segmentI.precizeEnd &&
|
|
337
|
+
newSegment.precizeStart;
|
|
338
|
+
i += 2; // Go to segment immediately after newSegment
|
|
339
|
+
while (i < inventory.length && inventory[i].start < newSegment.end) {
|
|
340
|
+
if (inventory[i].end > newSegment.end) {
|
|
341
|
+
// The next segment ends after newSegment.
|
|
342
|
+
// Mutate the next segment.
|
|
343
|
+
//
|
|
344
|
+
// Case 1:
|
|
345
|
+
// newSegment : |======|
|
|
346
|
+
// nextSegment : |----|
|
|
347
|
+
// ===> : |======|--|
|
|
348
|
+
log.debug("SI: Segment pushed updates the start of the next one", bufferType, newSegment.end, inventory[i].start);
|
|
349
|
+
inventory[i].start = newSegment.end;
|
|
350
|
+
inventory[i].bufferedStart = undefined;
|
|
351
|
+
inventory[i].precizeStart = inventory[i].precizeStart &&
|
|
352
|
+
newSegment.precizeEnd;
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
// The next segment was completely contained in newSegment.
|
|
356
|
+
// Remove it.
|
|
357
|
+
//
|
|
358
|
+
// Case 1:
|
|
359
|
+
// newSegment : |======|
|
|
360
|
+
// nextSegment : |---|
|
|
361
|
+
// ===> : |======|
|
|
362
|
+
//
|
|
363
|
+
// Case 2:
|
|
364
|
+
// newSegment : |======|
|
|
365
|
+
// nextSegment : |----|
|
|
366
|
+
// ===> : |======|
|
|
367
|
+
log.debug("SI: Segment pushed removes the next one", bufferType, start, end, inventory[i].start, inventory[i].end);
|
|
368
|
+
inventory.splice(i, 1);
|
|
369
|
+
}
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
372
|
+
else {
|
|
373
|
+
// The previous segment completely recovers the new segment.
|
|
374
|
+
// Split the previous segment into two segments, before and after
|
|
375
|
+
// the new segment.
|
|
376
|
+
//
|
|
377
|
+
// Case 1:
|
|
378
|
+
// prevSegment : |---------|
|
|
379
|
+
// newSegment : |====|
|
|
380
|
+
// ===> : |--|====|-|
|
|
381
|
+
log.warn("SI: Segment pushed is contained in a previous one", bufferType, start, end, segmentI.start, segmentI.end);
|
|
382
|
+
const nextSegment = { partiallyPushed: segmentI.partiallyPushed,
|
|
383
|
+
/**
|
|
384
|
+
* Note: this sadly means we're doing as if
|
|
385
|
+
* that chunk is present two times.
|
|
386
|
+
* Thankfully, this scenario should be
|
|
387
|
+
* fairly rare.
|
|
388
|
+
*/
|
|
389
|
+
chunkSize: segmentI.chunkSize,
|
|
390
|
+
splitted: true,
|
|
391
|
+
start: newSegment.end,
|
|
392
|
+
end: segmentI.end,
|
|
393
|
+
precizeStart: segmentI.precizeStart &&
|
|
394
|
+
segmentI.precizeEnd &&
|
|
395
|
+
newSegment.precizeEnd,
|
|
396
|
+
precizeEnd: segmentI.precizeEnd,
|
|
397
|
+
bufferedStart: undefined,
|
|
398
|
+
bufferedEnd: segmentI.end,
|
|
399
|
+
infos: segmentI.infos };
|
|
400
|
+
segmentI.end = newSegment.start;
|
|
401
|
+
segmentI.splitted = true;
|
|
402
|
+
segmentI.bufferedEnd = undefined;
|
|
403
|
+
segmentI.precizeEnd = segmentI.precizeEnd &&
|
|
404
|
+
newSegment.precizeStart;
|
|
405
|
+
inventory.splice(i + 1, 0, newSegment);
|
|
406
|
+
inventory.splice(i + 2, 0, nextSegment);
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
// if we got here, we are at the first segment
|
|
414
|
+
// check bounds of the previous first segment
|
|
415
|
+
const firstSegment = this._inventory[0];
|
|
416
|
+
if (firstSegment === undefined) { // we do not have any segment yet
|
|
417
|
+
log.debug("SI: first segment pushed", bufferType, start, end);
|
|
418
|
+
this._inventory.push(newSegment);
|
|
419
|
+
return;
|
|
420
|
+
}
|
|
421
|
+
if (firstSegment.start >= end) {
|
|
422
|
+
// our segment is before, put it before
|
|
423
|
+
//
|
|
424
|
+
// Case 1:
|
|
425
|
+
// firstSegment : |----|
|
|
426
|
+
// newSegment : |====|
|
|
427
|
+
// ===> : |====|----|
|
|
428
|
+
//
|
|
429
|
+
// Case 2:
|
|
430
|
+
// firstSegment : |----|
|
|
431
|
+
// newSegment : |====|
|
|
432
|
+
// ===> : |====| |----|
|
|
433
|
+
log.debug("SI: Segment pushed comes before all previous ones", bufferType, start, end, firstSegment.start);
|
|
434
|
+
this._inventory.splice(0, 0, newSegment);
|
|
435
|
+
}
|
|
436
|
+
else if (firstSegment.end <= end) {
|
|
437
|
+
// Our segment is bigger, replace the first
|
|
438
|
+
//
|
|
439
|
+
// Case 1:
|
|
440
|
+
// firstSegment : |---|
|
|
441
|
+
// newSegment : |=======|
|
|
442
|
+
// ===> : |=======|
|
|
443
|
+
//
|
|
444
|
+
// Case 2:
|
|
445
|
+
// firstSegment : |-----|
|
|
446
|
+
// newSegment : |=======|
|
|
447
|
+
// ===> : |=======|
|
|
448
|
+
log.debug("SI: Segment pushed starts before and completely " +
|
|
449
|
+
"recovers the previous first one", bufferType, start, end, firstSegment.start, firstSegment.end);
|
|
450
|
+
this._inventory.splice(0, 1, newSegment);
|
|
451
|
+
while (inventory.length > 1 && inventory[1].start < newSegment.end) {
|
|
452
|
+
if (inventory[1].end > newSegment.end) {
|
|
453
|
+
// The next segment ends after newSegment.
|
|
454
|
+
// Mutate the next segment.
|
|
455
|
+
//
|
|
456
|
+
// Case 1:
|
|
457
|
+
// newSegment : |======|
|
|
458
|
+
// nextSegment : |----|
|
|
459
|
+
// ===> : |======|--|
|
|
460
|
+
log.debug("SI: Segment pushed updates the start of the next one", bufferType, newSegment.end, inventory[1].start);
|
|
461
|
+
inventory[1].start = newSegment.end;
|
|
462
|
+
inventory[1].bufferedStart = undefined;
|
|
463
|
+
inventory[1].precizeStart = newSegment.precizeEnd;
|
|
464
|
+
return;
|
|
465
|
+
}
|
|
466
|
+
// The next segment was completely contained in newSegment.
|
|
467
|
+
// Remove it.
|
|
468
|
+
//
|
|
469
|
+
// Case 1:
|
|
470
|
+
// newSegment : |======|
|
|
471
|
+
// nextSegment : |---|
|
|
472
|
+
// ===> : |======|
|
|
473
|
+
//
|
|
474
|
+
// Case 2:
|
|
475
|
+
// newSegment : |======|
|
|
476
|
+
// nextSegment : |----|
|
|
477
|
+
// ===> : |======|
|
|
478
|
+
log.debug("SI: Segment pushed removes the next one", bufferType, start, end, inventory[1].start, inventory[1].end);
|
|
479
|
+
inventory.splice(1, 1);
|
|
480
|
+
}
|
|
481
|
+
return;
|
|
482
|
+
}
|
|
483
|
+
else {
|
|
484
|
+
// our segment has a "complex" relation with the first one,
|
|
485
|
+
// update the old one start and add this one before it.
|
|
486
|
+
//
|
|
487
|
+
// Case 1:
|
|
488
|
+
// firstSegment : |------|
|
|
489
|
+
// newSegment : |======|
|
|
490
|
+
// ===> : |======|--|
|
|
491
|
+
log.debug("SI: Segment pushed start of the next one", bufferType, start, end, firstSegment.start, firstSegment.end);
|
|
492
|
+
firstSegment.start = end;
|
|
493
|
+
firstSegment.bufferedStart = undefined;
|
|
494
|
+
firstSegment.precizeStart = newSegment.precizeEnd;
|
|
495
|
+
this._inventory.splice(0, 0, newSegment);
|
|
496
|
+
return;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* Indicate that inserted chunks can now be considered as a complete segment.
|
|
501
|
+
* Take in argument the same content than what was given to `insertChunk` for
|
|
502
|
+
* the corresponding chunks.
|
|
503
|
+
* @param {Object} content
|
|
504
|
+
*/
|
|
505
|
+
completeSegment(content, newBuffered) {
|
|
506
|
+
if (content.segment.isInit) {
|
|
507
|
+
return;
|
|
508
|
+
}
|
|
509
|
+
const inventory = this._inventory;
|
|
510
|
+
const resSegments = [];
|
|
511
|
+
for (let i = 0; i < inventory.length; i++) {
|
|
512
|
+
if (areSameContent(inventory[i].infos, content)) {
|
|
513
|
+
let splitted = false;
|
|
514
|
+
if (resSegments.length > 0) {
|
|
515
|
+
splitted = true;
|
|
516
|
+
if (resSegments.length === 1) {
|
|
517
|
+
log.warn("SI: Completed Segment is splitted.", content.segment.id, content.segment.time, content.segment.end);
|
|
518
|
+
resSegments[0].splitted = true;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
const firstI = i;
|
|
522
|
+
let segmentSize = inventory[i].chunkSize;
|
|
523
|
+
i += 1;
|
|
524
|
+
while (i < inventory.length &&
|
|
525
|
+
areSameContent(inventory[i].infos, content)) {
|
|
526
|
+
const chunkSize = inventory[i].chunkSize;
|
|
527
|
+
if (segmentSize !== undefined && chunkSize !== undefined) {
|
|
528
|
+
segmentSize += chunkSize;
|
|
529
|
+
}
|
|
530
|
+
i++;
|
|
531
|
+
}
|
|
532
|
+
const lastI = i - 1;
|
|
533
|
+
const length = lastI - firstI;
|
|
534
|
+
const lastEnd = inventory[lastI].end;
|
|
535
|
+
const lastBufferedEnd = inventory[lastI].bufferedEnd;
|
|
536
|
+
if (length > 0) {
|
|
537
|
+
this._inventory.splice(firstI + 1, length);
|
|
538
|
+
i -= length;
|
|
539
|
+
}
|
|
540
|
+
this._inventory[firstI].partiallyPushed = false;
|
|
541
|
+
this._inventory[firstI].chunkSize = segmentSize;
|
|
542
|
+
this._inventory[firstI].end = lastEnd;
|
|
543
|
+
this._inventory[firstI].bufferedEnd = lastBufferedEnd;
|
|
544
|
+
this._inventory[firstI].splitted = splitted;
|
|
545
|
+
resSegments.push(this._inventory[firstI]);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
if (resSegments.length === 0) {
|
|
549
|
+
log.warn("SI: Completed Segment not found", content.segment.id, content.segment.time);
|
|
550
|
+
}
|
|
551
|
+
else {
|
|
552
|
+
this.synchronizeBuffered(newBuffered);
|
|
553
|
+
for (const seg of resSegments) {
|
|
554
|
+
if (seg.bufferedStart !== undefined && seg.bufferedEnd !== undefined) {
|
|
555
|
+
this._bufferedHistory.addBufferedSegment(seg.infos, { start: seg.bufferedStart,
|
|
556
|
+
end: seg.bufferedEnd });
|
|
557
|
+
}
|
|
558
|
+
else {
|
|
559
|
+
log.debug("SI: buffered range not known after sync. Skipping history.", seg.start, seg.end);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Returns the whole inventory.
|
|
566
|
+
*
|
|
567
|
+
* To get a list synchronized with what a media buffer actually has buffered
|
|
568
|
+
* you might want to call `synchronizeBuffered` before calling this method.
|
|
569
|
+
* @returns {Array.<Object>}
|
|
570
|
+
*/
|
|
571
|
+
getInventory() {
|
|
572
|
+
return this._inventory;
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* Returns a recent history of registered operations performed and event
|
|
576
|
+
* received linked to the segment given in argument.
|
|
577
|
+
*
|
|
578
|
+
* Not all operations and events are registered in the returned history.
|
|
579
|
+
* Please check the return type for more information on what is available.
|
|
580
|
+
*
|
|
581
|
+
* Note that history is short-lived for memory usage and performance reasons.
|
|
582
|
+
* You may not receive any information on operations that happened too long
|
|
583
|
+
* ago.
|
|
584
|
+
* @param {Object} context
|
|
585
|
+
* @returns {Array.<Object>}
|
|
586
|
+
*/
|
|
587
|
+
getHistoryFor(context) {
|
|
588
|
+
return this._bufferedHistory.getHistoryFor(context);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* Returns `true` if the buffered start of the given chunk looks coherent enough
|
|
593
|
+
* relatively to what is announced in the Manifest.
|
|
594
|
+
* @param {Object} thisSegment
|
|
595
|
+
* @returns {Boolean}
|
|
596
|
+
*/
|
|
597
|
+
function bufferedStartLooksCoherent(thisSegment) {
|
|
598
|
+
if (thisSegment.bufferedStart === undefined ||
|
|
599
|
+
thisSegment.partiallyPushed) {
|
|
600
|
+
return false;
|
|
601
|
+
}
|
|
602
|
+
const { start, end } = thisSegment;
|
|
603
|
+
const duration = end - start;
|
|
604
|
+
const { MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE, MAX_MANIFEST_BUFFERED_DURATION_DIFFERENCE } = config.getCurrent();
|
|
605
|
+
return Math.abs(start - thisSegment.bufferedStart) <=
|
|
606
|
+
MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE &&
|
|
607
|
+
(thisSegment.bufferedEnd === undefined ||
|
|
608
|
+
thisSegment.bufferedEnd > thisSegment.bufferedStart &&
|
|
609
|
+
Math.abs(thisSegment.bufferedEnd - thisSegment.bufferedStart -
|
|
610
|
+
duration) <= Math.min(MAX_MANIFEST_BUFFERED_DURATION_DIFFERENCE, duration / 3));
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* Returns `true` if the buffered end of the given chunk looks coherent enough
|
|
614
|
+
* relatively to what is announced in the Manifest.
|
|
615
|
+
* @param {Object} thisSegment
|
|
616
|
+
* @returns {Boolean}
|
|
617
|
+
*/
|
|
618
|
+
function bufferedEndLooksCoherent(thisSegment) {
|
|
619
|
+
if (thisSegment.bufferedEnd === undefined ||
|
|
620
|
+
thisSegment.partiallyPushed) {
|
|
621
|
+
return false;
|
|
622
|
+
}
|
|
623
|
+
const { start, end } = thisSegment;
|
|
624
|
+
const duration = end - start;
|
|
625
|
+
const { MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE, MAX_MANIFEST_BUFFERED_DURATION_DIFFERENCE } = config.getCurrent();
|
|
626
|
+
return Math.abs(end - thisSegment.bufferedEnd) <=
|
|
627
|
+
MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE &&
|
|
628
|
+
thisSegment.bufferedStart != null &&
|
|
629
|
+
thisSegment.bufferedEnd > thisSegment.bufferedStart &&
|
|
630
|
+
Math.abs(thisSegment.bufferedEnd - thisSegment.bufferedStart -
|
|
631
|
+
duration) <= Math.min(MAX_MANIFEST_BUFFERED_DURATION_DIFFERENCE, duration / 3);
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* Evaluate the given buffered Chunk's buffered start from its range's start,
|
|
635
|
+
* considering that this chunk is the first one in it.
|
|
636
|
+
* @param {Object} firstSegmentInRange
|
|
637
|
+
* @param {number} rangeStart
|
|
638
|
+
* @param {Object} lastDeletedSegmentInfos
|
|
639
|
+
*/
|
|
640
|
+
function guessBufferedStartFromRangeStart(firstSegmentInRange, rangeStart, lastDeletedSegmentInfos, bufferType) {
|
|
641
|
+
const { MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE } = config.getCurrent();
|
|
642
|
+
if (firstSegmentInRange.bufferedStart !== undefined) {
|
|
643
|
+
if (firstSegmentInRange.bufferedStart < rangeStart) {
|
|
644
|
+
log.debug("SI: Segment partially GCed at the start", bufferType, firstSegmentInRange.bufferedStart, rangeStart);
|
|
645
|
+
firstSegmentInRange.bufferedStart = rangeStart;
|
|
646
|
+
}
|
|
647
|
+
if (!firstSegmentInRange.precizeStart &&
|
|
648
|
+
bufferedStartLooksCoherent(firstSegmentInRange)) {
|
|
649
|
+
firstSegmentInRange.start = firstSegmentInRange.bufferedStart;
|
|
650
|
+
firstSegmentInRange.precizeStart = true;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
else if (firstSegmentInRange.precizeStart) {
|
|
654
|
+
log.debug("SI: buffered start is precize start", bufferType, firstSegmentInRange.start);
|
|
655
|
+
firstSegmentInRange.bufferedStart = firstSegmentInRange.start;
|
|
656
|
+
}
|
|
657
|
+
else if (lastDeletedSegmentInfos !== null &&
|
|
658
|
+
lastDeletedSegmentInfos.end > rangeStart &&
|
|
659
|
+
(lastDeletedSegmentInfos.precizeEnd ||
|
|
660
|
+
firstSegmentInRange.start - lastDeletedSegmentInfos.end <=
|
|
661
|
+
MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE)) {
|
|
662
|
+
log.debug("SI: buffered start is end of previous segment", bufferType, rangeStart, firstSegmentInRange.start, lastDeletedSegmentInfos.end);
|
|
663
|
+
firstSegmentInRange.bufferedStart = lastDeletedSegmentInfos.end;
|
|
664
|
+
if (bufferedStartLooksCoherent(firstSegmentInRange)) {
|
|
665
|
+
firstSegmentInRange.start = lastDeletedSegmentInfos.end;
|
|
666
|
+
firstSegmentInRange.precizeStart = true;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
else if (firstSegmentInRange.start - rangeStart <=
|
|
670
|
+
MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE) {
|
|
671
|
+
log.debug("SI: found true buffered start", bufferType, rangeStart, firstSegmentInRange.start);
|
|
672
|
+
firstSegmentInRange.bufferedStart = rangeStart;
|
|
673
|
+
if (bufferedStartLooksCoherent(firstSegmentInRange)) {
|
|
674
|
+
firstSegmentInRange.start = rangeStart;
|
|
675
|
+
firstSegmentInRange.precizeStart = true;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
else if (rangeStart < firstSegmentInRange.start) {
|
|
679
|
+
log.debug("SI: range start too far from expected start", bufferType, rangeStart, firstSegmentInRange.start);
|
|
680
|
+
firstSegmentInRange.bufferedStart = firstSegmentInRange.start;
|
|
681
|
+
}
|
|
682
|
+
else {
|
|
683
|
+
log.debug("SI: Segment appears immediately garbage collected at the start", bufferType, firstSegmentInRange.bufferedStart, rangeStart);
|
|
684
|
+
firstSegmentInRange.bufferedStart = rangeStart;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* Evaluate the given buffered Chunk's buffered end from its range's end,
|
|
689
|
+
* considering that this chunk is the last one in it.
|
|
690
|
+
* @param {Object} lastSegmentInRange
|
|
691
|
+
* @param {number} rangeEnd
|
|
692
|
+
* @param {string} bufferType
|
|
693
|
+
*/
|
|
694
|
+
function guessBufferedEndFromRangeEnd(lastSegmentInRange, rangeEnd, bufferType) {
|
|
695
|
+
const { MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE } = config.getCurrent();
|
|
696
|
+
if (lastSegmentInRange.bufferedEnd !== undefined) {
|
|
697
|
+
if (lastSegmentInRange.bufferedEnd > rangeEnd) {
|
|
698
|
+
log.debug("SI: Segment partially GCed at the end", bufferType, lastSegmentInRange.bufferedEnd, rangeEnd);
|
|
699
|
+
lastSegmentInRange.bufferedEnd = rangeEnd;
|
|
700
|
+
}
|
|
701
|
+
if (!lastSegmentInRange.precizeEnd &&
|
|
702
|
+
rangeEnd - lastSegmentInRange.end <= MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE &&
|
|
703
|
+
bufferedEndLooksCoherent(lastSegmentInRange)) {
|
|
704
|
+
lastSegmentInRange.precizeEnd = true;
|
|
705
|
+
lastSegmentInRange.end = rangeEnd;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
else if (lastSegmentInRange.precizeEnd) {
|
|
709
|
+
log.debug("SI: buffered end is precize end", bufferType, lastSegmentInRange.end);
|
|
710
|
+
lastSegmentInRange.bufferedEnd = lastSegmentInRange.end;
|
|
711
|
+
}
|
|
712
|
+
else if (rangeEnd - lastSegmentInRange.end <=
|
|
713
|
+
MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE) {
|
|
714
|
+
log.debug("SI: found true buffered end", bufferType, rangeEnd, lastSegmentInRange.end);
|
|
715
|
+
lastSegmentInRange.bufferedEnd = rangeEnd;
|
|
716
|
+
if (bufferedEndLooksCoherent(lastSegmentInRange)) {
|
|
717
|
+
lastSegmentInRange.end = rangeEnd;
|
|
718
|
+
lastSegmentInRange.precizeEnd = true;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
else if (rangeEnd > lastSegmentInRange.end) {
|
|
722
|
+
log.debug("SI: range end too far from expected end", bufferType, rangeEnd, lastSegmentInRange.end);
|
|
723
|
+
lastSegmentInRange.bufferedEnd = lastSegmentInRange.end;
|
|
724
|
+
}
|
|
725
|
+
else {
|
|
726
|
+
log.debug("SI: Segment appears immediately garbage collected at the end", bufferType, lastSegmentInRange.bufferedEnd, rangeEnd);
|
|
727
|
+
lastSegmentInRange.bufferedEnd = rangeEnd;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* Pretty print the inventory, to easily note which segments are where in the
|
|
732
|
+
* current buffer.
|
|
733
|
+
*
|
|
734
|
+
* This is mostly useful when logging.
|
|
735
|
+
*
|
|
736
|
+
* @example
|
|
737
|
+
* This function is called by giving it the inventory, such as:
|
|
738
|
+
* ```js
|
|
739
|
+
* prettyPrintInventory(inventory);
|
|
740
|
+
* ```
|
|
741
|
+
*
|
|
742
|
+
* Let's consider this possible return:
|
|
743
|
+
* ```
|
|
744
|
+
* 0.00|A|9.00 ~ 9.00|B|45.08 ~ 282.08|B|318.08
|
|
745
|
+
* [A] P: gen-dash-period-0 || R: video/5(2362822)
|
|
746
|
+
* [B] P: gen-dash-period-0 || R: video/6(2470094)
|
|
747
|
+
* ```
|
|
748
|
+
* We have a first part, from 0 to 9 seconds, which contains segments for
|
|
749
|
+
* the Representation with the id "video/5" and an associated bitrate of
|
|
750
|
+
* 2362822 bits per seconds (in the Period with the id "gen-dash-period-0").
|
|
751
|
+
*
|
|
752
|
+
* Then from 9.00 seconds to 45.08 seconds, we have segments from another
|
|
753
|
+
* Representation from the same Period (with the id "video/6" and a bitrate
|
|
754
|
+
* of 2470094 bits per seconds).
|
|
755
|
+
*
|
|
756
|
+
* At last we have a long time between 45.08 and 282.08 with no segment followed
|
|
757
|
+
* by a segment from that same Representation between 282.08 seconds and 318.08
|
|
758
|
+
* seconds.
|
|
759
|
+
* @param {Array.<Object>} inventory
|
|
760
|
+
* @returns {string}
|
|
761
|
+
*/
|
|
762
|
+
function prettyPrintInventory(inventory) {
|
|
763
|
+
const roundingError = 1 / 60;
|
|
764
|
+
const encounteredReps = {};
|
|
765
|
+
const letters = [];
|
|
766
|
+
let lastChunk = null;
|
|
767
|
+
let lastLetter = null;
|
|
768
|
+
function generateNewLetter(infos) {
|
|
769
|
+
const currentLetter = String.fromCharCode(letters.length + 65);
|
|
770
|
+
letters.push({ letter: currentLetter,
|
|
771
|
+
periodId: infos.period.id,
|
|
772
|
+
representationId: infos.representation.id,
|
|
773
|
+
bitrate: infos.representation.bitrate });
|
|
774
|
+
return currentLetter;
|
|
775
|
+
}
|
|
776
|
+
let str = "";
|
|
777
|
+
for (let i = 0; i < inventory.length; i++) {
|
|
778
|
+
const chunk = inventory[i];
|
|
779
|
+
if (chunk.bufferedStart !== undefined && chunk.bufferedEnd !== undefined) {
|
|
780
|
+
const periodId = chunk.infos.period.id;
|
|
781
|
+
const representationId = chunk.infos.representation.id;
|
|
782
|
+
const encounteredPeriod = encounteredReps[periodId];
|
|
783
|
+
let currentLetter;
|
|
784
|
+
if (encounteredPeriod === undefined) {
|
|
785
|
+
currentLetter = generateNewLetter(chunk.infos);
|
|
786
|
+
encounteredReps[periodId] = { [representationId]: currentLetter };
|
|
787
|
+
}
|
|
788
|
+
else if (encounteredPeriod[representationId] === undefined) {
|
|
789
|
+
currentLetter = generateNewLetter(chunk.infos);
|
|
790
|
+
encounteredPeriod[representationId] = currentLetter;
|
|
791
|
+
}
|
|
792
|
+
else {
|
|
793
|
+
currentLetter = encounteredPeriod[representationId];
|
|
794
|
+
}
|
|
795
|
+
if (lastChunk === null) {
|
|
796
|
+
str += `${chunk.bufferedStart.toFixed(2)}|${currentLetter}|`;
|
|
797
|
+
}
|
|
798
|
+
else if (lastLetter === currentLetter) {
|
|
799
|
+
if (lastChunk.bufferedEnd + roundingError < chunk.bufferedStart) {
|
|
800
|
+
str += `${lastChunk.bufferedEnd.toFixed(2)} ~ ` +
|
|
801
|
+
`${chunk.bufferedStart.toFixed(2)}|${currentLetter}|`;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
else {
|
|
805
|
+
str += `${lastChunk.bufferedEnd.toFixed(2)} ~ ` +
|
|
806
|
+
`${chunk.bufferedStart.toFixed(2)}|${currentLetter}|`;
|
|
807
|
+
}
|
|
808
|
+
lastChunk = chunk;
|
|
809
|
+
lastLetter = currentLetter;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
if (lastChunk !== null) {
|
|
813
|
+
str += String(lastChunk.end.toFixed(2));
|
|
814
|
+
}
|
|
815
|
+
letters.forEach(letterInfo => {
|
|
816
|
+
var _a;
|
|
817
|
+
str += `\n[${letterInfo.letter}] ` +
|
|
818
|
+
`P: ${letterInfo.periodId} || R: ${letterInfo.representationId}` +
|
|
819
|
+
`(${(_a = letterInfo.bitrate) !== null && _a !== void 0 ? _a : "unknown bitrate"})`;
|
|
820
|
+
});
|
|
821
|
+
return str;
|
|
822
|
+
}
|