rx-player 4.0.0-dev.2023102700 → 4.0.0-dev.2023111400
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +1 -1
- package/.github/workflows/checks.yml +2 -2
- package/.github/workflows/perfs.yml +1 -1
- package/CHANGELOG.md +16 -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 +38 -13
- package/dist/_esm5.processed/core/api/option_utils.js +289 -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 +277 -115
- package/dist/_esm5.processed/core/api/public_api.js +1324 -974
- 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 +95 -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.d.ts +2 -1
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/utils.js +33 -23
- 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 +74 -86
- 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/convert_supplemental_codecs.d.ts +17 -0
- package/dist/_esm5.processed/parsers/manifest/dash/common/convert_supplemental_codecs.js +26 -0
- package/dist/_esm5.processed/parsers/manifest/dash/common/flatten_overlapping_periods.js +12 -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 +97 -77
- 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 +67 -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 +43 -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 +6 -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 +72 -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 +44 -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.d.ts +2 -1
- 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 +8 -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 +121 -0
- package/dist/commonjs/core/api/option_utils.js +309 -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 +719 -0
- package/dist/commonjs/core/api/public_api.js +2236 -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 +390 -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 +45 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/utils.js +131 -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/{src/typings/next-tick.d.ts → dist/commonjs/experimental/tools/VideoThumbnailLoader/features/dash.d.ts} +2 -8
- 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/dist/commonjs/experimental/tools/VideoThumbnailLoader/index.d.ts +18 -0
- 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 +296 -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/convert_supplemental_codecs.d.ts +17 -0
- package/dist/commonjs/parsers/manifest/dash/common/convert_supplemental_codecs.js +30 -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 +82 -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 +317 -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 +331 -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 +209 -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 +395 -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 +279 -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 +176 -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 +145 -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 +379 -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/{src/typings/globals.d.ts → dist/commonjs/parsers/texttracks/types.d.ts} +7 -20
- 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/dist/commonjs/transports/dash/construct_segment_url.js +24 -0
- 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/queue_microtask.d.ts +2 -0
- package/dist/commonjs/utils/queue_microtask.js +7 -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 +121 -0
- package/dist/es2017/core/api/option_utils.js +305 -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 +719 -0
- package/dist/es2017/core/api/public_api.js +2111 -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 +370 -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 +45 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/utils.js +123 -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 +288 -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/convert_supplemental_codecs.d.ts +17 -0
- package/dist/es2017/parsers/manifest/dash/common/convert_supplemental_codecs.js +26 -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 +79 -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 +257 -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 +311 -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 +189 -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 +395 -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 +274 -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 +171 -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 +145 -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 +379 -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/queue_microtask.d.ts +2 -0
- package/dist/es2017/utils/queue_microtask.js +5 -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/mpd-parser.wasm +0 -0
- package/dist/rx-player.d.ts +1 -1
- package/dist/rx-player.js +217 -189
- 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.d.ts → experimental/tools/VideoThumbnailLoader.d.ts} +2 -2
- package/{scripts/build/templates/experimental/tools/VideoThumbnailLoader/index.js → experimental/tools/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 -37
- package/scripts/build/{generate_build.js → generate_build.mjs} +30 -26
- package/{experimental/tools/VideoThumbnailLoader/index.d.ts → scripts/build/templates/experimental/tools/VideoThumbnailLoader.d.ts} +2 -2
- package/{experimental/tools/VideoThumbnailLoader/index.js → scripts/build/templates/experimental/tools/VideoThumbnailLoader.js} +2 -2
- 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/compat/patch_webkit_source_buffer.ts +2 -2
- 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/option_utils.ts +8 -0
- package/src/core/api/public_api.ts +15 -3
- package/src/core/segment_buffers/implementations/text/html/__tests__/utils.test.ts +15 -0
- package/src/core/segment_buffers/implementations/text/html/text_track_cues_store.ts +57 -6
- package/src/core/segment_buffers/implementations/text/html/utils.ts +19 -2
- package/src/core/segment_buffers/inventory/segment_inventory.ts +7 -14
- package/src/core/stream/adaptation/adaptation_stream.ts +2 -2
- package/src/core/stream/orchestrator/stream_orchestrator.ts +3 -3
- package/src/core/stream/period/period_stream.ts +2 -2
- 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/manifest/representation.ts +19 -6
- package/src/parsers/manifest/dash/common/__tests__/convert_supplemental_codecs.test.ts +37 -0
- package/src/parsers/manifest/dash/common/__tests__/flatten_overlapping_period.test.ts +20 -0
- package/src/parsers/manifest/dash/common/convert_supplemental_codecs.ts +32 -0
- package/src/parsers/manifest/dash/common/flatten_overlapping_periods.ts +5 -0
- package/src/parsers/manifest/dash/common/parse_representations.ts +30 -17
- package/src/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.ts +4 -0
- package/src/parsers/manifest/dash/js-parser/node_parsers/Representation.ts +4 -0
- package/src/parsers/manifest/dash/node_parser_types.ts +2 -0
- package/src/parsers/manifest/dash/wasm-parser/rs/events.rs +2 -0
- package/src/parsers/manifest/dash/wasm-parser/rs/processor/attributes.rs +2 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.ts +4 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/Representation.ts +4 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/types.ts +2 -0
- package/src/parsers/manifest/smooth/create_parser.ts +1 -2
- package/src/parsers/manifest/types.ts +2 -0
- 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/src/utils/queue_microtask.ts +7 -0
- 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,70 +13,166 @@
|
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
function
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
16
|
+
var __assign = (this && this.__assign) || function () {
|
|
17
|
+
__assign = Object.assign || function(t) {
|
|
18
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
+
s = arguments[i];
|
|
20
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
+
t[p] = s[p];
|
|
22
|
+
}
|
|
23
|
+
return t;
|
|
24
|
+
};
|
|
25
|
+
return __assign.apply(this, arguments);
|
|
26
|
+
};
|
|
27
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
28
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
29
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
30
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
31
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
32
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
33
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
37
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
38
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
39
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
40
|
+
function step(op) {
|
|
41
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
42
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
43
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
44
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
45
|
+
switch (op[0]) {
|
|
46
|
+
case 0: case 1: t = op; break;
|
|
47
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
48
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
49
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
50
|
+
default:
|
|
51
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
52
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
53
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
54
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
55
|
+
if (t[2]) _.ops.pop();
|
|
56
|
+
_.trys.pop(); continue;
|
|
57
|
+
}
|
|
58
|
+
op = body.call(thisArg, _);
|
|
59
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
60
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
import features from "../../features";
|
|
64
|
+
import log from "../../log";
|
|
65
|
+
import Manifest from "../../manifest";
|
|
66
|
+
import { getMDAT } from "../../parsers/containers/isobmff";
|
|
67
|
+
import createSmoothManifestParser, { SmoothRepresentationIndex, } from "../../parsers/manifest/smooth";
|
|
68
|
+
import request from "../../utils/request";
|
|
69
|
+
import { strToUtf8, utf8ToStr, } from "../../utils/string_parsing";
|
|
70
|
+
import warnOnce from "../../utils/warn_once";
|
|
71
|
+
import checkISOBMFFIntegrity from "../utils/check_isobmff_integrity";
|
|
72
|
+
import generateManifestLoader from "../utils/generate_manifest_loader";
|
|
73
|
+
import extractTimingsInfos from "./extract_timings_infos";
|
|
74
|
+
import { patchSegment } from "./isobmff";
|
|
75
|
+
import generateSegmentLoader from "./segment_loader";
|
|
76
|
+
import { constructSegmentUrl, extractISML, extractToken, isMP4EmbeddedTrack, replaceToken, resolveManifest, } from "./utils";
|
|
77
|
+
var WSX_REG = /\.wsx?(\?token=\S+)?/;
|
|
78
|
+
/**
|
|
79
|
+
* @param {Object} adaptation
|
|
80
|
+
* @param {Object} dlSegment
|
|
81
|
+
* @param {Object} nextSegments
|
|
82
|
+
*/
|
|
83
|
+
function addNextSegments(adaptation, nextSegments, dlSegment) {
|
|
84
|
+
var _a;
|
|
85
|
+
log.debug("Smooth Parser: update segments information.");
|
|
86
|
+
var representations = adaptation.representations;
|
|
87
|
+
for (var i = 0; i < representations.length; i++) {
|
|
88
|
+
var representation = representations[i];
|
|
89
|
+
if (representation.index instanceof SmoothRepresentationIndex &&
|
|
90
|
+
((_a = dlSegment === null || dlSegment === void 0 ? void 0 : dlSegment.privateInfos) === null || _a === void 0 ? void 0 : _a.smoothMediaSegment) !== undefined) {
|
|
91
|
+
representation.index.addNewSegments(nextSegments, dlSegment.privateInfos.smoothMediaSegment);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
log.warn("Smooth Parser: should only encounter SmoothRepresentationIndex");
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export default function (transportOptions) {
|
|
99
|
+
var smoothManifestParser = createSmoothManifestParser(transportOptions);
|
|
100
|
+
var segmentLoader = generateSegmentLoader(transportOptions);
|
|
101
|
+
var manifestLoaderOptions = { customManifestLoader: transportOptions.manifestLoader };
|
|
102
|
+
var manifestLoader = generateManifestLoader(manifestLoaderOptions, "text");
|
|
103
|
+
var manifestPipeline = {
|
|
104
|
+
// TODO (v4.x.x) Remove that function
|
|
105
|
+
resolveManifestUrl: function (url, cancelSignal) {
|
|
106
|
+
if (url === undefined) {
|
|
107
|
+
return Promise.resolve(undefined);
|
|
108
|
+
}
|
|
109
|
+
var resolving;
|
|
110
|
+
if (WSX_REG.test(url)) {
|
|
111
|
+
warnOnce("Giving WSX URL to loadVideo is deprecated." +
|
|
112
|
+
" You should only give Manifest URLs.");
|
|
113
|
+
resolving = request({ url: replaceToken(url, ""),
|
|
114
|
+
responseType: "document", cancelSignal: cancelSignal })
|
|
115
|
+
.then(function (value) {
|
|
116
|
+
var extractedURL = extractISML(value.responseData);
|
|
117
|
+
if (extractedURL === null || extractedURL.length === 0) {
|
|
118
|
+
throw new Error("Invalid ISML");
|
|
119
|
+
}
|
|
120
|
+
return extractedURL;
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
resolving = Promise.resolve(url);
|
|
125
|
+
}
|
|
126
|
+
var token = extractToken(url);
|
|
127
|
+
return resolving.then(function (_url) {
|
|
128
|
+
return replaceToken(resolveManifest(_url), token);
|
|
129
|
+
});
|
|
130
|
+
},
|
|
37
131
|
loadManifest: manifestLoader,
|
|
38
|
-
parseManifest(manifestData, parserOptions) {
|
|
132
|
+
parseManifest: function (manifestData, parserOptions) {
|
|
39
133
|
var _a;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
134
|
+
var url = (_a = manifestData.url) !== null && _a !== void 0 ? _a : parserOptions.originalUrl;
|
|
135
|
+
var manifestReceivedTime = manifestData.receivedTime, responseData = manifestData.responseData;
|
|
136
|
+
var documentData = typeof responseData === "string" ?
|
|
43
137
|
new DOMParser().parseFromString(responseData, "text/xml") :
|
|
44
138
|
responseData; // TODO find a way to check if Document?
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const manifest = new manifest_1.default(parserResult, {
|
|
139
|
+
var parserResult = smoothManifestParser(documentData, url, manifestReceivedTime);
|
|
140
|
+
var manifest = new Manifest(parserResult, {
|
|
48
141
|
representationFilter: transportOptions.representationFilter,
|
|
49
|
-
|
|
50
|
-
|
|
142
|
+
supplementaryImageTracks: transportOptions.supplementaryImageTracks,
|
|
143
|
+
supplementaryTextTracks: transportOptions.supplementaryTextTracks,
|
|
144
|
+
});
|
|
145
|
+
return { manifest: manifest, url: url };
|
|
51
146
|
},
|
|
52
147
|
};
|
|
53
148
|
/**
|
|
54
149
|
* Export functions allowing to load and parse audio and video smooth
|
|
55
150
|
* segments.
|
|
56
151
|
*/
|
|
57
|
-
|
|
152
|
+
var audioVideoPipeline = {
|
|
58
153
|
/**
|
|
59
154
|
* Load a Smooth audio/video segment.
|
|
60
155
|
* @param {Object|null} wantedCdn
|
|
61
|
-
* @param {Object}
|
|
156
|
+
* @param {Object} content
|
|
62
157
|
* @param {Object} loaderOptions
|
|
63
158
|
* @param {Object} cancelSignal
|
|
64
159
|
* @param {Object} callbacks
|
|
65
160
|
* @returns {Promise}
|
|
66
161
|
*/
|
|
67
|
-
loadSegment(wantedCdn,
|
|
68
|
-
|
|
69
|
-
return segmentLoader(url,
|
|
162
|
+
loadSegment: function (wantedCdn, content, loaderOptions, cancelSignal, callbacks) {
|
|
163
|
+
var url = constructSegmentUrl(wantedCdn, content.segment);
|
|
164
|
+
return segmentLoader(url, content, loaderOptions, cancelSignal, callbacks);
|
|
70
165
|
},
|
|
71
|
-
parseSegment(loadedSegment,
|
|
166
|
+
parseSegment: function (loadedSegment, content, initTimescale) {
|
|
72
167
|
var _a, _b;
|
|
73
|
-
|
|
74
|
-
|
|
168
|
+
var segment = content.segment, adaptation = content.adaptation, manifest = content.manifest;
|
|
169
|
+
var data = loadedSegment.data, isChunked = loadedSegment.isChunked;
|
|
75
170
|
if (data === null) {
|
|
76
171
|
if (segment.isInit) {
|
|
77
172
|
return { segmentType: "init",
|
|
78
173
|
initializationData: null,
|
|
79
174
|
initializationDataSize: 0,
|
|
80
|
-
|
|
175
|
+
protectionDataUpdate: false,
|
|
81
176
|
initTimescale: undefined };
|
|
82
177
|
}
|
|
83
178
|
return { segmentType: "media",
|
|
@@ -85,90 +180,83 @@ function default_1(transportOptions) {
|
|
|
85
180
|
chunkInfos: null,
|
|
86
181
|
chunkOffset: 0,
|
|
87
182
|
chunkSize: 0,
|
|
88
|
-
|
|
183
|
+
protectionDataUpdate: false,
|
|
89
184
|
appendWindow: [undefined, undefined] };
|
|
90
185
|
}
|
|
91
|
-
|
|
186
|
+
var responseBuffer = data instanceof Uint8Array ? data :
|
|
92
187
|
new Uint8Array(data);
|
|
93
188
|
if (segment.isInit) {
|
|
94
|
-
|
|
189
|
+
var timescale = (_b = (_a = segment.privateInfos) === null || _a === void 0 ? void 0 : _a.smoothInitSegment) === null || _b === void 0 ? void 0 : _b.timescale;
|
|
95
190
|
return { segmentType: "init",
|
|
96
191
|
initializationData: data,
|
|
97
192
|
initializationDataSize: data.byteLength,
|
|
98
193
|
// smooth init segments are crafted by hand.
|
|
99
194
|
// Their timescale is the one from the manifest.
|
|
100
195
|
initTimescale: timescale,
|
|
101
|
-
|
|
196
|
+
protectionDataUpdate: false };
|
|
102
197
|
}
|
|
103
|
-
|
|
104
|
-
(
|
|
198
|
+
var timingInfos = initTimescale !== undefined ?
|
|
199
|
+
extractTimingsInfos(responseBuffer, isChunked, initTimescale, segment, manifest.isLive) :
|
|
105
200
|
null;
|
|
106
201
|
if (timingInfos === null ||
|
|
107
202
|
timingInfos.chunkInfos === null ||
|
|
108
203
|
timingInfos.scaledSegmentTime === undefined) {
|
|
109
204
|
throw new Error("Smooth Segment without time information");
|
|
110
205
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
chunkInfos,
|
|
118
|
-
chunkOffset: 0,
|
|
206
|
+
var nextSegments = timingInfos.nextSegments, chunkInfos = timingInfos.chunkInfos, scaledSegmentTime = timingInfos.scaledSegmentTime;
|
|
207
|
+
var chunkData = patchSegment(responseBuffer, scaledSegmentTime);
|
|
208
|
+
if (nextSegments.length > 0) {
|
|
209
|
+
addNextSegments(adaptation, nextSegments, segment);
|
|
210
|
+
}
|
|
211
|
+
return { segmentType: "media", chunkData: chunkData, chunkInfos: chunkInfos, chunkOffset: 0,
|
|
119
212
|
chunkSize: chunkData.length,
|
|
120
|
-
|
|
121
|
-
predictedSegments,
|
|
213
|
+
protectionDataUpdate: false,
|
|
122
214
|
appendWindow: [undefined, undefined] };
|
|
123
215
|
},
|
|
124
216
|
};
|
|
125
|
-
|
|
126
|
-
loadSegment(wantedCdn,
|
|
127
|
-
|
|
128
|
-
|
|
217
|
+
var textTrackPipeline = {
|
|
218
|
+
loadSegment: function (wantedCdn, content, loaderOptions, cancelSignal, callbacks) {
|
|
219
|
+
var segment = content.segment, representation = content.representation;
|
|
220
|
+
var url = constructSegmentUrl(wantedCdn, segment);
|
|
129
221
|
if (segment.isInit || url === null) {
|
|
130
222
|
return Promise.resolve({ resultType: "segment-created",
|
|
131
223
|
resultData: null });
|
|
132
224
|
}
|
|
133
|
-
|
|
225
|
+
var isMP4 = isMP4EmbeddedTrack(representation);
|
|
134
226
|
if (!isMP4) {
|
|
135
|
-
return (
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
onProgress: callbacks.onProgress })
|
|
140
|
-
.then((data) => ({ resultType: "segment-loaded",
|
|
141
|
-
resultData: data }));
|
|
227
|
+
return request({ url: url, responseType: "text",
|
|
228
|
+
timeout: loaderOptions.timeout, cancelSignal: cancelSignal, onProgress: callbacks.onProgress })
|
|
229
|
+
.then(function (data) { return ({ resultType: "segment-loaded",
|
|
230
|
+
resultData: data }); });
|
|
142
231
|
}
|
|
143
232
|
else {
|
|
144
|
-
return (
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
cancelSignal,
|
|
148
|
-
onProgress: callbacks.onProgress })
|
|
149
|
-
.then((data) => {
|
|
233
|
+
return request({ url: url, responseType: "arraybuffer",
|
|
234
|
+
timeout: loaderOptions.timeout, cancelSignal: cancelSignal, onProgress: callbacks.onProgress })
|
|
235
|
+
.then(function (data) {
|
|
150
236
|
if (transportOptions.checkMediaSegmentIntegrity !== true) {
|
|
151
237
|
return { resultType: "segment-loaded",
|
|
152
238
|
resultData: data };
|
|
153
239
|
}
|
|
154
|
-
|
|
155
|
-
(
|
|
240
|
+
var dataU8 = new Uint8Array(data.responseData);
|
|
241
|
+
checkISOBMFFIntegrity(dataU8, content.segment.isInit);
|
|
156
242
|
return { resultType: "segment-loaded",
|
|
157
|
-
resultData:
|
|
243
|
+
resultData: __assign(__assign({}, data), { responseData: dataU8 }) };
|
|
158
244
|
});
|
|
159
245
|
}
|
|
160
246
|
},
|
|
161
|
-
parseSegment(loadedSegment,
|
|
247
|
+
parseSegment: function (loadedSegment, content, initTimescale) {
|
|
162
248
|
var _a;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
249
|
+
var manifest = content.manifest, adaptation = content.adaptation, representation = content.representation, segment = content.segment;
|
|
250
|
+
var language = adaptation.language;
|
|
251
|
+
var isMP4 = isMP4EmbeddedTrack(representation);
|
|
252
|
+
var _b = representation.mimeType, mimeType = _b === void 0 ? "" : _b, _c = representation.codec, codec = _c === void 0 ? "" : _c;
|
|
253
|
+
var data = loadedSegment.data, isChunked = loadedSegment.isChunked;
|
|
254
|
+
var chunkSize;
|
|
167
255
|
if (segment.isInit) { // text init segment has no use in HSS
|
|
168
256
|
return { segmentType: "init",
|
|
169
257
|
initializationData: null,
|
|
170
258
|
initializationDataSize: 0,
|
|
171
|
-
|
|
259
|
+
protectionDataUpdate: false,
|
|
172
260
|
initTimescale: undefined };
|
|
173
261
|
}
|
|
174
262
|
if (data === null) {
|
|
@@ -177,33 +265,33 @@ function default_1(transportOptions) {
|
|
|
177
265
|
chunkInfos: null,
|
|
178
266
|
chunkOffset: 0,
|
|
179
267
|
chunkSize: 0,
|
|
180
|
-
|
|
268
|
+
protectionDataUpdate: false,
|
|
181
269
|
appendWindow: [undefined, undefined] };
|
|
182
270
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
271
|
+
var nextSegments;
|
|
272
|
+
var chunkInfos = null;
|
|
273
|
+
var segmentStart;
|
|
274
|
+
var segmentEnd;
|
|
275
|
+
var _sdData;
|
|
276
|
+
var _sdType;
|
|
189
277
|
if (isMP4) {
|
|
190
|
-
|
|
278
|
+
var chunkBytes = void 0;
|
|
191
279
|
if (typeof data === "string") {
|
|
192
|
-
chunkBytes =
|
|
280
|
+
chunkBytes = strToUtf8(data);
|
|
193
281
|
}
|
|
194
282
|
else {
|
|
195
283
|
chunkBytes = data instanceof Uint8Array ? data :
|
|
196
284
|
new Uint8Array(data);
|
|
197
285
|
}
|
|
198
286
|
chunkSize = chunkBytes.length;
|
|
199
|
-
|
|
200
|
-
(
|
|
287
|
+
var timingInfos = initTimescale !== undefined ?
|
|
288
|
+
extractTimingsInfos(chunkBytes, isChunked, initTimescale, segment, manifest.isLive) :
|
|
201
289
|
null;
|
|
202
290
|
nextSegments = timingInfos === null || timingInfos === void 0 ? void 0 : timingInfos.nextSegments;
|
|
203
291
|
chunkInfos = (_a = timingInfos === null || timingInfos === void 0 ? void 0 : timingInfos.chunkInfos) !== null && _a !== void 0 ? _a : null;
|
|
204
292
|
if (chunkInfos === null) {
|
|
205
293
|
if (isChunked) {
|
|
206
|
-
|
|
294
|
+
log.warn("Smooth: Unavailable time data for current text track.");
|
|
207
295
|
}
|
|
208
296
|
else {
|
|
209
297
|
segmentStart = segment.time;
|
|
@@ -216,7 +304,7 @@ function default_1(transportOptions) {
|
|
|
216
304
|
chunkInfos.time + chunkInfos.duration :
|
|
217
305
|
segment.end;
|
|
218
306
|
}
|
|
219
|
-
|
|
307
|
+
var lcCodec = codec.toLowerCase();
|
|
220
308
|
if (mimeType === "application/ttml+xml+mp4" ||
|
|
221
309
|
lcCodec === "stpp" ||
|
|
222
310
|
lcCodec === "stpp.ttml.im1t") {
|
|
@@ -226,21 +314,21 @@ function default_1(transportOptions) {
|
|
|
226
314
|
_sdType = "vtt";
|
|
227
315
|
}
|
|
228
316
|
else {
|
|
229
|
-
throw new Error(
|
|
317
|
+
throw new Error("could not find a text-track parser for the type ".concat(mimeType));
|
|
230
318
|
}
|
|
231
|
-
|
|
319
|
+
var mdat = getMDAT(chunkBytes);
|
|
232
320
|
_sdData = mdat === null ? "" :
|
|
233
|
-
|
|
321
|
+
utf8ToStr(mdat);
|
|
234
322
|
}
|
|
235
323
|
else { // not MP4
|
|
236
324
|
segmentStart = segment.time;
|
|
237
325
|
segmentEnd = segment.end;
|
|
238
|
-
|
|
326
|
+
var chunkString = void 0;
|
|
239
327
|
if (typeof data !== "string") {
|
|
240
|
-
|
|
328
|
+
var bytesData = data instanceof Uint8Array ? data :
|
|
241
329
|
new Uint8Array(data);
|
|
242
330
|
chunkSize = bytesData.length;
|
|
243
|
-
chunkString =
|
|
331
|
+
chunkString = utf8ToStr(bytesData);
|
|
244
332
|
}
|
|
245
333
|
else {
|
|
246
334
|
chunkString = data;
|
|
@@ -258,37 +346,95 @@ function default_1(transportOptions) {
|
|
|
258
346
|
break;
|
|
259
347
|
}
|
|
260
348
|
if (_sdType === undefined) {
|
|
261
|
-
|
|
349
|
+
var lcCodec = codec.toLowerCase();
|
|
262
350
|
if (lcCodec === "srt") {
|
|
263
351
|
_sdType = "srt";
|
|
264
352
|
}
|
|
265
353
|
else {
|
|
266
|
-
throw new Error(
|
|
354
|
+
throw new Error("could not find a text-track parser for the type ".concat(mimeType));
|
|
267
355
|
}
|
|
268
356
|
}
|
|
269
357
|
_sdData = chunkString;
|
|
270
358
|
}
|
|
271
|
-
|
|
272
|
-
nextSegments.length > 0
|
|
273
|
-
|
|
274
|
-
|
|
359
|
+
if (chunkInfos !== null &&
|
|
360
|
+
Array.isArray(nextSegments) && nextSegments.length > 0) {
|
|
361
|
+
addNextSegments(adaptation, nextSegments, segment);
|
|
362
|
+
}
|
|
363
|
+
var chunkOffset = segmentStart !== null && segmentStart !== void 0 ? segmentStart : 0;
|
|
275
364
|
return { segmentType: "media",
|
|
276
365
|
chunkData: { type: _sdType,
|
|
277
366
|
data: _sdData,
|
|
278
367
|
start: segmentStart,
|
|
279
|
-
end: segmentEnd,
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
368
|
+
end: segmentEnd, language: language }, chunkSize: chunkSize, chunkInfos: chunkInfos, chunkOffset: chunkOffset, protectionDataUpdate: false,
|
|
369
|
+
appendWindow: [undefined, undefined] };
|
|
370
|
+
},
|
|
371
|
+
};
|
|
372
|
+
var imageTrackPipeline = {
|
|
373
|
+
loadSegment: function (wantedCdn, content, loaderOptions, cancelSignal, callbacks) {
|
|
374
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
375
|
+
var segment, url, data;
|
|
376
|
+
return __generator(this, function (_a) {
|
|
377
|
+
switch (_a.label) {
|
|
378
|
+
case 0:
|
|
379
|
+
segment = content.segment;
|
|
380
|
+
url = constructSegmentUrl(wantedCdn, segment);
|
|
381
|
+
if (segment.isInit || url === null) {
|
|
382
|
+
// image do not need an init segment. Passthrough directly to the parser
|
|
383
|
+
return [2 /*return*/, { resultType: "segment-created",
|
|
384
|
+
resultData: null }];
|
|
385
|
+
}
|
|
386
|
+
return [4 /*yield*/, request({ url: url, responseType: "arraybuffer",
|
|
387
|
+
timeout: loaderOptions.timeout,
|
|
388
|
+
onProgress: callbacks.onProgress, cancelSignal: cancelSignal })];
|
|
389
|
+
case 1:
|
|
390
|
+
data = _a.sent();
|
|
391
|
+
return [2 /*return*/, { resultType: "segment-loaded",
|
|
392
|
+
resultData: data }];
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
});
|
|
396
|
+
},
|
|
397
|
+
parseSegment: function (loadedSegment, content, _initTimescale) {
|
|
398
|
+
var data = loadedSegment.data, isChunked = loadedSegment.isChunked;
|
|
399
|
+
if (content.segment.isInit) { // image init segment has no use
|
|
400
|
+
return { segmentType: "init",
|
|
401
|
+
initializationData: null,
|
|
402
|
+
initializationDataSize: 0,
|
|
403
|
+
protectionDataUpdate: false,
|
|
404
|
+
initTimescale: undefined };
|
|
405
|
+
}
|
|
406
|
+
if (isChunked) {
|
|
407
|
+
throw new Error("Image data should not be downloaded in chunks");
|
|
408
|
+
}
|
|
409
|
+
// TODO image Parsing should be more on the buffer side, no?
|
|
410
|
+
if (data === null || features.imageParser === null) {
|
|
411
|
+
return { segmentType: "media",
|
|
412
|
+
chunkData: null,
|
|
413
|
+
chunkInfos: null,
|
|
414
|
+
chunkOffset: 0,
|
|
415
|
+
chunkSize: 0,
|
|
416
|
+
protectionDataUpdate: false,
|
|
417
|
+
appendWindow: [undefined, undefined] };
|
|
418
|
+
}
|
|
419
|
+
var bifObject = features.imageParser(new Uint8Array(data));
|
|
420
|
+
var thumbsData = bifObject.thumbs;
|
|
421
|
+
return { segmentType: "media",
|
|
422
|
+
chunkData: { data: thumbsData,
|
|
423
|
+
start: 0,
|
|
424
|
+
end: Number.MAX_VALUE,
|
|
425
|
+
timescale: 1,
|
|
426
|
+
type: "bif" },
|
|
427
|
+
chunkInfos: { time: 0,
|
|
428
|
+
duration: Number.MAX_VALUE },
|
|
429
|
+
chunkSize: undefined,
|
|
430
|
+
chunkOffset: 0,
|
|
431
|
+
protectionDataUpdate: false,
|
|
286
432
|
appendWindow: [undefined, undefined] };
|
|
287
433
|
},
|
|
288
434
|
};
|
|
289
435
|
return { manifest: manifestPipeline,
|
|
290
436
|
audio: audioVideoPipeline,
|
|
291
437
|
video: audioVideoPipeline,
|
|
292
|
-
text: textTrackPipeline
|
|
438
|
+
text: textTrackPipeline,
|
|
439
|
+
image: imageTrackPipeline };
|
|
293
440
|
}
|
|
294
|
-
exports.default = default_1;
|
|
@@ -20,8 +20,8 @@ import { ISegmentContext, ISegmentLoaderCallbacks, ISegmentLoaderOptions, ISegme
|
|
|
20
20
|
* Defines the url for the request, load the right loader (custom/default
|
|
21
21
|
* one).
|
|
22
22
|
*/
|
|
23
|
-
declare const generateSegmentLoader: ({ checkMediaSegmentIntegrity,
|
|
23
|
+
declare const generateSegmentLoader: ({ checkMediaSegmentIntegrity, customSegmentLoader, }: {
|
|
24
24
|
checkMediaSegmentIntegrity?: boolean | undefined;
|
|
25
|
-
|
|
26
|
-
}) => (url: string | null,
|
|
25
|
+
customSegmentLoader?: ICustomSegmentLoader | undefined;
|
|
26
|
+
}) => (url: string | null, content: ISegmentContext, loaderOptions: ISegmentLoaderOptions, cancelSignal: CancellationSignal, callbacks: ISegmentLoaderCallbacks<Uint8Array | ArrayBuffer | null>) => Promise<ISegmentLoaderResultSegmentLoaded<Uint8Array | ArrayBuffer | null> | ISegmentLoaderResultSegmentCreated<Uint8Array | ArrayBuffer | null>>;
|
|
27
27
|
export default generateSegmentLoader;
|