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
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2015 CANAL+ Group
|
|
4
3
|
*
|
|
@@ -14,20 +13,33 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
var __extends = (this && this.__extends) || (function () {
|
|
17
|
+
var extendStatics = function (d, b) {
|
|
18
|
+
extendStatics = Object.setPrototypeOf ||
|
|
19
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
21
|
+
return extendStatics(d, b);
|
|
22
|
+
};
|
|
23
|
+
return function (d, b) {
|
|
24
|
+
if (typeof b !== "function" && b !== null)
|
|
25
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26
|
+
extendStatics(d, b);
|
|
27
|
+
function __() { this.constructor = d; }
|
|
28
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29
|
+
};
|
|
30
|
+
})();
|
|
31
|
+
import isSeekingApproximate from "../../../compat/is_seeking_approximate";
|
|
32
|
+
import config from "../../../config";
|
|
33
|
+
import { MediaError } from "../../../errors";
|
|
34
|
+
import log from "../../../log";
|
|
35
|
+
import EventEmitter from "../../../utils/event_emitter";
|
|
36
|
+
import { getNextRangeGap } from "../../../utils/ranges";
|
|
37
|
+
import TaskCanceller from "../../../utils/task_canceller";
|
|
26
38
|
/**
|
|
27
39
|
* Work-around rounding errors with floating points by setting an acceptable,
|
|
28
40
|
* very short, deviation when checking equalities.
|
|
29
41
|
*/
|
|
30
|
-
|
|
42
|
+
var EPSILON = 1 / 60;
|
|
31
43
|
/**
|
|
32
44
|
* Monitor playback, trying to avoid stalling situation.
|
|
33
45
|
* If stopping the player to build buffer is needed, temporarily set the
|
|
@@ -36,24 +48,27 @@ const EPSILON = 1 / 60;
|
|
|
36
48
|
* Emit "stalled" then "unstalled" respectively when an unavoidable stall is
|
|
37
49
|
* encountered and exited.
|
|
38
50
|
*/
|
|
39
|
-
|
|
51
|
+
var RebufferingController = /** @class */ (function (_super) {
|
|
52
|
+
__extends(RebufferingController, _super);
|
|
40
53
|
/**
|
|
41
54
|
* @param {object} playbackObserver - emit the current playback conditions.
|
|
42
55
|
* @param {Object} manifest - The Manifest of the currently-played content.
|
|
43
56
|
* @param {Object} speed - The last speed set by the user
|
|
44
57
|
*/
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
58
|
+
function RebufferingController(playbackObserver, manifest, segmentBuffersStore, speed) {
|
|
59
|
+
var _this = _super.call(this) || this;
|
|
60
|
+
_this._playbackObserver = playbackObserver;
|
|
61
|
+
_this._manifest = manifest;
|
|
62
|
+
_this._segmentBuffersStore = segmentBuffersStore;
|
|
63
|
+
_this._speed = speed;
|
|
64
|
+
_this._discontinuitiesStore = [];
|
|
65
|
+
_this._isStarted = false;
|
|
66
|
+
_this._canceller = new TaskCanceller();
|
|
67
|
+
_this._currentFreezeTimestamp = null;
|
|
68
|
+
return _this;
|
|
55
69
|
}
|
|
56
|
-
start() {
|
|
70
|
+
RebufferingController.prototype.start = function () {
|
|
71
|
+
var _this = this;
|
|
57
72
|
if (this._isStarted) {
|
|
58
73
|
return;
|
|
59
74
|
}
|
|
@@ -72,7 +87,7 @@ class RebufferingController extends event_emitter_1.default {
|
|
|
72
87
|
* seek after that). When browsers seek back to a position behind a
|
|
73
88
|
* discontinuity, they are usually able to skip them without our help.
|
|
74
89
|
*/
|
|
75
|
-
|
|
90
|
+
var lastSeekingPosition;
|
|
76
91
|
/**
|
|
77
92
|
* In some conditions (see `lastSeekingPosition`), we might want to not
|
|
78
93
|
* automatically seek over discontinuities because the browser might do it
|
|
@@ -82,39 +97,39 @@ class RebufferingController extends event_emitter_1.default {
|
|
|
82
97
|
* This variable allows to store the timestamp at which a discontinuity began
|
|
83
98
|
* to be ignored.
|
|
84
99
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
this._canceller.signal.register(()
|
|
100
|
+
var ignoredStallTimeStamp = null;
|
|
101
|
+
var playbackRateUpdater = new PlaybackRateUpdater(this._playbackObserver, this._speed);
|
|
102
|
+
this._canceller.signal.register(function () {
|
|
88
103
|
playbackRateUpdater.dispose();
|
|
89
104
|
});
|
|
90
|
-
|
|
91
|
-
this._playbackObserver.listen((observation)
|
|
105
|
+
var prevFreezingState = null;
|
|
106
|
+
this._playbackObserver.listen(function (observation) {
|
|
92
107
|
var _a;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
108
|
+
var discontinuitiesStore = _this._discontinuitiesStore;
|
|
109
|
+
var buffered = observation.buffered, position = observation.position, readyState = observation.readyState, rebuffering = observation.rebuffering, freezing = observation.freezing;
|
|
110
|
+
var _b = config.getCurrent(), BUFFER_DISCONTINUITY_THRESHOLD = _b.BUFFER_DISCONTINUITY_THRESHOLD, FORCE_DISCONTINUITY_SEEK_DELAY = _b.FORCE_DISCONTINUITY_SEEK_DELAY, FREEZING_STALLED_DELAY = _b.FREEZING_STALLED_DELAY, UNFREEZING_SEEK_DELAY = _b.UNFREEZING_SEEK_DELAY, UNFREEZING_DELTA_POSITION = _b.UNFREEZING_DELTA_POSITION;
|
|
96
111
|
if (!observation.seeking &&
|
|
97
|
-
|
|
112
|
+
isSeekingApproximate &&
|
|
98
113
|
ignoredStallTimeStamp === null &&
|
|
99
114
|
lastSeekingPosition !== null && observation.position < lastSeekingPosition) {
|
|
100
|
-
|
|
101
|
-
|
|
115
|
+
log.debug("Init: the device appeared to have seeked back by itself.");
|
|
116
|
+
var now = performance.now();
|
|
102
117
|
ignoredStallTimeStamp = now;
|
|
103
118
|
}
|
|
104
119
|
lastSeekingPosition = observation.seeking ?
|
|
105
120
|
Math.max((_a = observation.pendingInternalSeek) !== null && _a !== void 0 ? _a : 0, observation.position) :
|
|
106
121
|
null;
|
|
107
|
-
if (
|
|
122
|
+
if (_this._checkDecipherabilityFreeze(observation)) {
|
|
108
123
|
return;
|
|
109
124
|
}
|
|
110
125
|
if (freezing !== null) {
|
|
111
|
-
|
|
112
|
-
|
|
126
|
+
var now = performance.now();
|
|
127
|
+
var referenceTimestamp = prevFreezingState === null ?
|
|
113
128
|
freezing.timestamp :
|
|
114
129
|
prevFreezingState.attemptTimestamp;
|
|
115
130
|
if (now - referenceTimestamp > UNFREEZING_SEEK_DELAY) {
|
|
116
|
-
|
|
117
|
-
|
|
131
|
+
log.warn("Init: trying to seek to un-freeze player");
|
|
132
|
+
_this._playbackObserver.setCurrentTime(_this._playbackObserver.getCurrentTime() + UNFREEZING_DELTA_POSITION);
|
|
118
133
|
prevFreezingState = { attemptTimestamp: now };
|
|
119
134
|
}
|
|
120
135
|
if (now - freezing.timestamp > FREEZING_STALLED_DELAY) {
|
|
@@ -124,7 +139,7 @@ class RebufferingController extends event_emitter_1.default {
|
|
|
124
139
|
else {
|
|
125
140
|
playbackRateUpdater.startRebuffering();
|
|
126
141
|
}
|
|
127
|
-
|
|
142
|
+
_this.trigger("stalled", "freezing");
|
|
128
143
|
return;
|
|
129
144
|
}
|
|
130
145
|
}
|
|
@@ -136,7 +151,7 @@ class RebufferingController extends event_emitter_1.default {
|
|
|
136
151
|
if (readyState === 1) {
|
|
137
152
|
// With a readyState set to 1, we should still not be able to play:
|
|
138
153
|
// Return that we're stalled
|
|
139
|
-
|
|
154
|
+
var reason = void 0;
|
|
140
155
|
if (observation.seeking) {
|
|
141
156
|
reason = observation.pendingInternalSeek !== null ? "internal-seek" :
|
|
142
157
|
"seeking";
|
|
@@ -144,56 +159,56 @@ class RebufferingController extends event_emitter_1.default {
|
|
|
144
159
|
else {
|
|
145
160
|
reason = "not-ready";
|
|
146
161
|
}
|
|
147
|
-
|
|
162
|
+
_this.trigger("stalled", reason);
|
|
148
163
|
return;
|
|
149
164
|
}
|
|
150
|
-
|
|
165
|
+
_this.trigger("unstalled", null);
|
|
151
166
|
return;
|
|
152
167
|
}
|
|
153
168
|
// We want to separate a stall situation when a seek is due to a seek done
|
|
154
169
|
// internally by the player to when its due to a regular user seek.
|
|
155
|
-
|
|
170
|
+
var stalledReason = rebuffering.reason === "seeking" &&
|
|
156
171
|
observation.pendingInternalSeek !== null ?
|
|
157
172
|
"internal-seek" :
|
|
158
173
|
rebuffering.reason;
|
|
159
174
|
if (ignoredStallTimeStamp !== null) {
|
|
160
|
-
|
|
175
|
+
var now = performance.now();
|
|
161
176
|
if (now - ignoredStallTimeStamp < FORCE_DISCONTINUITY_SEEK_DELAY) {
|
|
162
177
|
playbackRateUpdater.stopRebuffering();
|
|
163
|
-
|
|
164
|
-
|
|
178
|
+
log.debug("Init: letting the device get out of a stall by itself");
|
|
179
|
+
_this.trigger("stalled", stalledReason);
|
|
165
180
|
return;
|
|
166
181
|
}
|
|
167
182
|
else {
|
|
168
|
-
|
|
183
|
+
log.warn("Init: ignored stall for too long, considering it", now - ignoredStallTimeStamp);
|
|
169
184
|
}
|
|
170
185
|
}
|
|
171
186
|
ignoredStallTimeStamp = null;
|
|
172
187
|
playbackRateUpdater.startRebuffering();
|
|
173
|
-
if (
|
|
174
|
-
|
|
188
|
+
if (_this._manifest === null) {
|
|
189
|
+
_this.trigger("stalled", stalledReason);
|
|
175
190
|
return;
|
|
176
191
|
}
|
|
177
192
|
/** Position at which data is awaited. */
|
|
178
|
-
|
|
193
|
+
var stalledPosition = rebuffering.position;
|
|
179
194
|
if (stalledPosition !== null &&
|
|
180
195
|
stalledPosition !== undefined &&
|
|
181
|
-
|
|
182
|
-
|
|
196
|
+
_this._speed.getValue() > 0) {
|
|
197
|
+
var skippableDiscontinuity = findSeekableDiscontinuity(discontinuitiesStore, _this._manifest, stalledPosition);
|
|
183
198
|
if (skippableDiscontinuity !== null) {
|
|
184
|
-
|
|
185
|
-
if (realSeekTime <=
|
|
186
|
-
|
|
199
|
+
var realSeekTime = skippableDiscontinuity + 0.001;
|
|
200
|
+
if (realSeekTime <= _this._playbackObserver.getCurrentTime()) {
|
|
201
|
+
log.info("Init: position to seek already reached, no seeking", _this._playbackObserver.getCurrentTime(), realSeekTime);
|
|
187
202
|
}
|
|
188
203
|
else {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
204
|
+
log.warn("SA: skippable discontinuity found in the stream", position, realSeekTime);
|
|
205
|
+
_this._playbackObserver.setCurrentTime(realSeekTime);
|
|
206
|
+
_this.trigger("warning", generateDiscontinuityError(stalledPosition, realSeekTime));
|
|
192
207
|
return;
|
|
193
208
|
}
|
|
194
209
|
}
|
|
195
210
|
}
|
|
196
|
-
|
|
211
|
+
var freezePosition = stalledPosition !== null && stalledPosition !== void 0 ? stalledPosition : position;
|
|
197
212
|
// Is it a very short discontinuity in buffer ? -> Seek at the beginning of the
|
|
198
213
|
// next range
|
|
199
214
|
//
|
|
@@ -201,49 +216,49 @@ class RebufferingController extends event_emitter_1.default {
|
|
|
201
216
|
// calculate a stalled state. This is useful for some
|
|
202
217
|
// implementation that might drop an injected segment, or in
|
|
203
218
|
// case of small discontinuity in the content.
|
|
204
|
-
|
|
205
|
-
if (
|
|
219
|
+
var nextBufferRangeGap = getNextRangeGap(buffered, freezePosition);
|
|
220
|
+
if (_this._speed.getValue() > 0 &&
|
|
206
221
|
nextBufferRangeGap < BUFFER_DISCONTINUITY_THRESHOLD) {
|
|
207
|
-
|
|
208
|
-
if (
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
222
|
+
var seekTo = (freezePosition + nextBufferRangeGap + EPSILON);
|
|
223
|
+
if (_this._playbackObserver.getCurrentTime() < seekTo) {
|
|
224
|
+
log.warn("Init: discontinuity encountered inferior to the threshold", freezePosition, seekTo, BUFFER_DISCONTINUITY_THRESHOLD);
|
|
225
|
+
_this._playbackObserver.setCurrentTime(seekTo);
|
|
226
|
+
_this.trigger("warning", generateDiscontinuityError(freezePosition, seekTo));
|
|
212
227
|
return;
|
|
213
228
|
}
|
|
214
229
|
}
|
|
215
230
|
// Are we in a discontinuity between periods ? -> Seek at the beginning of the
|
|
216
231
|
// next period
|
|
217
|
-
for (
|
|
218
|
-
|
|
232
|
+
for (var i = _this._manifest.periods.length - 2; i >= 0; i--) {
|
|
233
|
+
var period = _this._manifest.periods[i];
|
|
219
234
|
if (period.end !== undefined && period.end <= freezePosition) {
|
|
220
|
-
if (
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
235
|
+
if (_this._manifest.periods[i + 1].start > freezePosition &&
|
|
236
|
+
_this._manifest.periods[i + 1].start >
|
|
237
|
+
_this._playbackObserver.getCurrentTime()) {
|
|
238
|
+
var nextPeriod = _this._manifest.periods[i + 1];
|
|
239
|
+
_this._playbackObserver.setCurrentTime(nextPeriod.start);
|
|
240
|
+
_this.trigger("warning", generateDiscontinuityError(freezePosition, nextPeriod.start));
|
|
226
241
|
return;
|
|
227
242
|
}
|
|
228
243
|
break;
|
|
229
244
|
}
|
|
230
245
|
}
|
|
231
|
-
|
|
246
|
+
_this.trigger("stalled", stalledReason);
|
|
232
247
|
}, { includeLastObservation: true, clearSignal: this._canceller.signal });
|
|
233
|
-
}
|
|
248
|
+
};
|
|
234
249
|
/**
|
|
235
250
|
* Update information on an upcoming discontinuity for a given buffer type and
|
|
236
251
|
* Period.
|
|
237
252
|
* Each new update for the same Period and type overwrites the previous one.
|
|
238
253
|
* @param {Object} evt
|
|
239
254
|
*/
|
|
240
|
-
updateDiscontinuityInfo(evt) {
|
|
255
|
+
RebufferingController.prototype.updateDiscontinuityInfo = function (evt) {
|
|
241
256
|
if (!this._isStarted) {
|
|
242
257
|
this.start();
|
|
243
258
|
}
|
|
244
|
-
|
|
259
|
+
var lastObservation = this._playbackObserver.getReference().getValue();
|
|
245
260
|
updateDiscontinuitiesStore(this._discontinuitiesStore, evt, lastObservation);
|
|
246
|
-
}
|
|
261
|
+
};
|
|
247
262
|
/**
|
|
248
263
|
* Function to call when a Stream is currently locked, i.e. we cannot load
|
|
249
264
|
* segments for the corresponding Period and buffer type until it is seeked
|
|
@@ -252,35 +267,35 @@ class RebufferingController extends event_emitter_1.default {
|
|
|
252
267
|
* currently load.
|
|
253
268
|
* @param {Object} period - Period for which no segment will currently load.
|
|
254
269
|
*/
|
|
255
|
-
onLockedStream(bufferType, period) {
|
|
270
|
+
RebufferingController.prototype.onLockedStream = function (bufferType, period) {
|
|
256
271
|
var _a;
|
|
257
272
|
if (!this._isStarted) {
|
|
258
273
|
this.start();
|
|
259
274
|
}
|
|
260
|
-
|
|
275
|
+
var observation = this._playbackObserver.getReference().getValue();
|
|
261
276
|
if (!observation.rebuffering ||
|
|
262
277
|
observation.paused ||
|
|
263
278
|
this._speed.getValue() <= 0 || (bufferType !== "audio" &&
|
|
264
279
|
bufferType !== "video")) {
|
|
265
280
|
return;
|
|
266
281
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
282
|
+
var currPos = observation.position;
|
|
283
|
+
var rebufferingPos = (_a = observation.rebuffering.position) !== null && _a !== void 0 ? _a : currPos;
|
|
284
|
+
var lockedPeriodStart = period.start;
|
|
270
285
|
if (currPos < lockedPeriodStart &&
|
|
271
286
|
Math.abs(rebufferingPos - lockedPeriodStart) < 1) {
|
|
272
|
-
|
|
287
|
+
log.warn("Init: rebuffering because of a future locked stream.\n" +
|
|
273
288
|
"Trying to unlock by seeking to the next Period");
|
|
274
289
|
this._playbackObserver.setCurrentTime(lockedPeriodStart + 0.001);
|
|
275
290
|
}
|
|
276
|
-
}
|
|
291
|
+
};
|
|
277
292
|
/**
|
|
278
293
|
* Stops the `RebufferingController` from montoring stalling situations,
|
|
279
294
|
* forever.
|
|
280
295
|
*/
|
|
281
|
-
destroy() {
|
|
296
|
+
RebufferingController.prototype.destroy = function () {
|
|
282
297
|
this._canceller.cancel();
|
|
283
|
-
}
|
|
298
|
+
};
|
|
284
299
|
/**
|
|
285
300
|
* Support of contents with DRM on all the platforms out there is a pain in
|
|
286
301
|
* the *ss considering all the DRM-related bugs there are.
|
|
@@ -301,10 +316,9 @@ class RebufferingController extends event_emitter_1.default {
|
|
|
301
316
|
* decipherability freeze, in which case this method already performed the
|
|
302
317
|
* right handling steps.
|
|
303
318
|
*/
|
|
304
|
-
_checkDecipherabilityFreeze(observation) {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
const bufferGap = observation.bufferGap !== undefined &&
|
|
319
|
+
RebufferingController.prototype._checkDecipherabilityFreeze = function (observation) {
|
|
320
|
+
var readyState = observation.readyState, rebuffering = observation.rebuffering, freezing = observation.freezing;
|
|
321
|
+
var bufferGap = observation.bufferGap !== undefined &&
|
|
308
322
|
isFinite(observation.bufferGap) ? observation.bufferGap :
|
|
309
323
|
0;
|
|
310
324
|
if (this._segmentBuffersStore === null ||
|
|
@@ -314,24 +328,26 @@ class RebufferingController extends event_emitter_1.default {
|
|
|
314
328
|
this._currentFreezeTimestamp = null;
|
|
315
329
|
return false;
|
|
316
330
|
}
|
|
317
|
-
|
|
331
|
+
var now = performance.now();
|
|
318
332
|
if (this._currentFreezeTimestamp === null) {
|
|
319
333
|
this._currentFreezeTimestamp = now;
|
|
320
334
|
}
|
|
321
|
-
|
|
322
|
-
|
|
335
|
+
var rebufferingForTooLong = rebuffering !== null && now - rebuffering.timestamp > 4000;
|
|
336
|
+
var frozenForTooLong = freezing !== null && now - freezing.timestamp > 4000;
|
|
323
337
|
if ((rebufferingForTooLong || frozenForTooLong) &&
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
for (
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
338
|
+
this._currentFreezeTimestamp > 4000) {
|
|
339
|
+
var statusAudio = this._segmentBuffersStore.getStatus("audio");
|
|
340
|
+
var statusVideo = this._segmentBuffersStore.getStatus("video");
|
|
341
|
+
var hasOnlyDecipherableSegments = true;
|
|
342
|
+
var isClear = true;
|
|
343
|
+
for (var _i = 0, _a = [statusAudio, statusVideo]; _i < _a.length; _i++) {
|
|
344
|
+
var status_1 = _a[_i];
|
|
345
|
+
if (status_1.type === "initialized") {
|
|
346
|
+
for (var _b = 0, _c = status_1.value.getInventory(); _b < _c.length; _b++) {
|
|
347
|
+
var segment = _c[_b];
|
|
348
|
+
var representation = segment.infos.representation;
|
|
333
349
|
if (representation.decipherable === false) {
|
|
334
|
-
|
|
350
|
+
log.warn("Init: we have undecipherable segments left in the buffer, reloading");
|
|
335
351
|
this._currentFreezeTimestamp = null;
|
|
336
352
|
this.trigger("needsReload", null);
|
|
337
353
|
return true;
|
|
@@ -346,7 +362,7 @@ class RebufferingController extends event_emitter_1.default {
|
|
|
346
362
|
}
|
|
347
363
|
}
|
|
348
364
|
if (!isClear && hasOnlyDecipherableSegments) {
|
|
349
|
-
|
|
365
|
+
log.warn("Init: we are frozen despite only having decipherable " +
|
|
350
366
|
"segments left in the buffer, reloading");
|
|
351
367
|
this._currentFreezeTimestamp = null;
|
|
352
368
|
this.trigger("needsReload", null);
|
|
@@ -354,9 +370,10 @@ class RebufferingController extends event_emitter_1.default {
|
|
|
354
370
|
}
|
|
355
371
|
}
|
|
356
372
|
return false;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
|
|
373
|
+
};
|
|
374
|
+
return RebufferingController;
|
|
375
|
+
}(EventEmitter));
|
|
376
|
+
export default RebufferingController;
|
|
360
377
|
/**
|
|
361
378
|
* @param {Array.<Object>} discontinuitiesStore
|
|
362
379
|
* @param {Object} manifest
|
|
@@ -367,25 +384,25 @@ function findSeekableDiscontinuity(discontinuitiesStore, manifest, stalledPositi
|
|
|
367
384
|
if (discontinuitiesStore.length === 0) {
|
|
368
385
|
return null;
|
|
369
386
|
}
|
|
370
|
-
|
|
371
|
-
for (
|
|
372
|
-
|
|
387
|
+
var maxDiscontinuityEnd = null;
|
|
388
|
+
for (var i = 0; i < discontinuitiesStore.length; i++) {
|
|
389
|
+
var period = discontinuitiesStore[i].period;
|
|
373
390
|
if (period.start > stalledPosition) {
|
|
374
391
|
return maxDiscontinuityEnd;
|
|
375
392
|
}
|
|
376
|
-
|
|
393
|
+
var discontinuityEnd = void 0;
|
|
377
394
|
if (period.end === undefined || period.end > stalledPosition) {
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
395
|
+
var _a = discontinuitiesStore[i], discontinuity = _a.discontinuity, position = _a.position;
|
|
396
|
+
var start = discontinuity.start, end = discontinuity.end;
|
|
397
|
+
var discontinuityLowerLimit = start !== null && start !== void 0 ? start : position;
|
|
381
398
|
if (stalledPosition >= (discontinuityLowerLimit - EPSILON)) {
|
|
382
399
|
if (end === null) {
|
|
383
|
-
|
|
400
|
+
var nextPeriod = manifest.getPeriodAfter(period);
|
|
384
401
|
if (nextPeriod !== null) {
|
|
385
402
|
discontinuityEnd = nextPeriod.start + EPSILON;
|
|
386
403
|
}
|
|
387
404
|
else {
|
|
388
|
-
|
|
405
|
+
log.warn("Init: discontinuity at Period's end but no next Period");
|
|
389
406
|
}
|
|
390
407
|
}
|
|
391
408
|
else if (stalledPosition < (end + EPSILON)) {
|
|
@@ -393,7 +410,7 @@ function findSeekableDiscontinuity(discontinuitiesStore, manifest, stalledPositi
|
|
|
393
410
|
}
|
|
394
411
|
}
|
|
395
412
|
if (discontinuityEnd !== undefined) {
|
|
396
|
-
|
|
413
|
+
log.info("Init: discontinuity found", stalledPosition, discontinuityEnd);
|
|
397
414
|
maxDiscontinuityEnd =
|
|
398
415
|
maxDiscontinuityEnd !== null &&
|
|
399
416
|
maxDiscontinuityEnd > discontinuityEnd ? maxDiscontinuityEnd :
|
|
@@ -433,11 +450,11 @@ function updateDiscontinuitiesStore(discontinuitiesStore, evt, observation) {
|
|
|
433
450
|
discontinuitiesStore[0].period.end + 10 < observation.position) {
|
|
434
451
|
discontinuitiesStore.shift();
|
|
435
452
|
}
|
|
436
|
-
|
|
453
|
+
var period = evt.period, bufferType = evt.bufferType;
|
|
437
454
|
if (bufferType !== "audio" && bufferType !== "video") {
|
|
438
455
|
return;
|
|
439
456
|
}
|
|
440
|
-
for (
|
|
457
|
+
for (var i = 0; i < discontinuitiesStore.length; i++) {
|
|
441
458
|
if (discontinuitiesStore[i].period.id === period.id) {
|
|
442
459
|
if (discontinuitiesStore[i].bufferType === bufferType) {
|
|
443
460
|
if (!eventContainsDiscontinuity(evt)) {
|
|
@@ -468,7 +485,7 @@ function updateDiscontinuitiesStore(discontinuitiesStore, evt, observation) {
|
|
|
468
485
|
* @returns {Error}
|
|
469
486
|
*/
|
|
470
487
|
function generateDiscontinuityError(stalledPosition, seekTo) {
|
|
471
|
-
return new
|
|
488
|
+
return new MediaError("DISCONTINUITY_ENCOUNTERED", "A discontinuity has been encountered at position " +
|
|
472
489
|
String(stalledPosition) + ", seeked at position " +
|
|
473
490
|
String(seekTo));
|
|
474
491
|
}
|
|
@@ -482,14 +499,14 @@ function generateDiscontinuityError(stalledPosition, seekTo) {
|
|
|
482
499
|
* anymore.
|
|
483
500
|
* @class PlaybackRateUpdater
|
|
484
501
|
*/
|
|
485
|
-
|
|
502
|
+
var PlaybackRateUpdater = /** @class */ (function () {
|
|
486
503
|
/**
|
|
487
504
|
* Create a new `PlaybackRateUpdater`.
|
|
488
505
|
* @param {Object} playbackObserver
|
|
489
506
|
* @param {Object} speed
|
|
490
507
|
*/
|
|
491
|
-
|
|
492
|
-
this._speedUpdateCanceller = new
|
|
508
|
+
function PlaybackRateUpdater(playbackObserver, speed) {
|
|
509
|
+
this._speedUpdateCanceller = new TaskCanceller();
|
|
493
510
|
this._isRebuffering = false;
|
|
494
511
|
this._playbackObserver = playbackObserver;
|
|
495
512
|
this._isDisposed = false;
|
|
@@ -501,29 +518,29 @@ class PlaybackRateUpdater {
|
|
|
501
518
|
*
|
|
502
519
|
* You can call `stopRebuffering` when you want the rebuffering phase to end.
|
|
503
520
|
*/
|
|
504
|
-
startRebuffering() {
|
|
521
|
+
PlaybackRateUpdater.prototype.startRebuffering = function () {
|
|
505
522
|
if (this._isRebuffering || this._isDisposed) {
|
|
506
523
|
return;
|
|
507
524
|
}
|
|
508
525
|
this._isRebuffering = true;
|
|
509
526
|
this._speedUpdateCanceller.cancel();
|
|
510
|
-
|
|
527
|
+
log.info("Init: Pause playback to build buffer");
|
|
511
528
|
this._playbackObserver.setPlaybackRate(0);
|
|
512
|
-
}
|
|
529
|
+
};
|
|
513
530
|
/**
|
|
514
531
|
* If in a rebuffering phase (during which the playback rate is forced to
|
|
515
532
|
* `0`), exit that phase to apply the wanted playback rate instead.
|
|
516
533
|
*
|
|
517
534
|
* Do nothing if not in a rebuffering phase.
|
|
518
535
|
*/
|
|
519
|
-
stopRebuffering() {
|
|
536
|
+
PlaybackRateUpdater.prototype.stopRebuffering = function () {
|
|
520
537
|
if (!this._isRebuffering || this._isDisposed) {
|
|
521
538
|
return;
|
|
522
539
|
}
|
|
523
540
|
this._isRebuffering = false;
|
|
524
|
-
this._speedUpdateCanceller = new
|
|
541
|
+
this._speedUpdateCanceller = new TaskCanceller();
|
|
525
542
|
this._updateSpeed();
|
|
526
|
-
}
|
|
543
|
+
};
|
|
527
544
|
/**
|
|
528
545
|
* The `PlaybackRateUpdater` allocate resources to for example listen to
|
|
529
546
|
* wanted speed changes and react to it.
|
|
@@ -531,14 +548,16 @@ class PlaybackRateUpdater {
|
|
|
531
548
|
* Consequently, you should call the `dispose` method, when you don't want the
|
|
532
549
|
* `PlaybackRateUpdater` to have an effect anymore.
|
|
533
550
|
*/
|
|
534
|
-
dispose() {
|
|
551
|
+
PlaybackRateUpdater.prototype.dispose = function () {
|
|
535
552
|
this._speedUpdateCanceller.cancel();
|
|
536
553
|
this._isDisposed = true;
|
|
537
|
-
}
|
|
538
|
-
_updateSpeed() {
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
554
|
+
};
|
|
555
|
+
PlaybackRateUpdater.prototype._updateSpeed = function () {
|
|
556
|
+
var _this = this;
|
|
557
|
+
this._speed.onUpdate(function (lastSpeed) {
|
|
558
|
+
log.info("Init: Resume playback speed", lastSpeed);
|
|
559
|
+
_this._playbackObserver.setPlaybackRate(lastSpeed);
|
|
542
560
|
}, { clearSignal: this._speedUpdateCanceller.signal, emitCurrentValue: true });
|
|
543
|
-
}
|
|
544
|
-
|
|
561
|
+
};
|
|
562
|
+
return PlaybackRateUpdater;
|
|
563
|
+
}());
|
package/dist/_esm5.processed/core/init/utils/stream_events_emitter/are_same_stream_events.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2015 CANAL+ Group
|
|
4
3
|
*
|
|
@@ -14,7 +13,6 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
16
|
/**
|
|
19
17
|
* Compare 2 events.
|
|
20
18
|
* As the payload of two events may be the same, but the JS objects may not
|
|
@@ -34,4 +32,4 @@ function areSameStreamEvents(evt1, evt2) {
|
|
|
34
32
|
evt1.start === evt2.start &&
|
|
35
33
|
evt1.end === evt2.end;
|
|
36
34
|
}
|
|
37
|
-
|
|
35
|
+
export default areSameStreamEvents;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2015 CANAL+ Group
|
|
4
3
|
*
|
|
@@ -14,6 +13,5 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
exports.default = stream_events_emitter_1.default;
|
|
16
|
+
import streamEventsEmitter from "./stream_events_emitter";
|
|
17
|
+
export default streamEventsEmitter;
|