rx-player 4.0.0-dev.2023102700 → 4.0.0-dev.2023110700
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +1 -1
- package/.github/workflows/checks.yml +2 -2
- package/.github/workflows/perfs.yml +1 -1
- package/CHANGELOG.md +8 -4
- package/FILES.md +1 -2
- package/VERSION +1 -1
- package/dist/_esm5.processed/compat/add_class_name.js +3 -6
- package/dist/_esm5.processed/compat/add_text_track.d.ts +3 -1
- package/dist/_esm5.processed/compat/add_text_track.js +14 -14
- package/dist/_esm5.processed/compat/browser_compatibility_types.d.ts +8 -0
- package/dist/_esm5.processed/compat/browser_compatibility_types.js +11 -16
- package/dist/_esm5.processed/compat/browser_detection.js +33 -49
- package/dist/_esm5.processed/compat/browser_version.js +8 -11
- package/dist/_esm5.processed/compat/can_patch_isobmff.js +3 -6
- package/dist/_esm5.processed/compat/can_rely_on_video_visibility_and_size.js +6 -9
- package/dist/_esm5.processed/compat/can_reuse_media_keys.js +3 -6
- package/dist/_esm5.processed/compat/change_source_buffer_type.js +3 -6
- package/dist/_esm5.processed/compat/clear_element_src.js +9 -12
- package/dist/_esm5.processed/compat/eme/close_session.js +106 -45
- package/dist/_esm5.processed/compat/eme/constants.js +3 -6
- package/dist/_esm5.processed/compat/eme/custom_key_system_access.js +22 -18
- package/dist/_esm5.processed/compat/eme/custom_media_keys/ie11_media_keys.js +102 -78
- package/dist/_esm5.processed/compat/eme/custom_media_keys/index.js +6 -16
- package/dist/_esm5.processed/compat/eme/custom_media_keys/moz_media_keys_constructor.js +24 -25
- package/dist/_esm5.processed/compat/eme/custom_media_keys/ms_media_keys_constructor.js +14 -14
- package/dist/_esm5.processed/compat/eme/custom_media_keys/old_webkit_media_keys.js +88 -70
- package/dist/_esm5.processed/compat/eme/custom_media_keys/types.js +1 -2
- package/dist/_esm5.processed/compat/eme/custom_media_keys/webkit_media_keys.js +117 -91
- package/dist/_esm5.processed/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +16 -14
- package/dist/_esm5.processed/compat/eme/eme-api-implementation.js +82 -82
- package/dist/_esm5.processed/compat/eme/generate_key_request.js +31 -36
- package/dist/_esm5.processed/compat/eme/get_init_data.js +25 -28
- package/dist/_esm5.processed/compat/eme/get_uuid_kid_from_keystatus_kid.js +5 -8
- package/dist/_esm5.processed/compat/eme/get_webkit_fairplay_initdata.js +14 -17
- package/dist/_esm5.processed/compat/eme/index.js +7 -13
- package/dist/_esm5.processed/compat/eme/load_session.js +69 -26
- package/dist/_esm5.processed/compat/enable_audio_track.js +4 -7
- package/dist/_esm5.processed/compat/event_listeners.d.ts +16 -23
- package/dist/_esm5.processed/compat/event_listeners.js +149 -179
- package/dist/_esm5.processed/compat/fullscreen.d.ts +32 -0
- package/dist/_esm5.processed/compat/fullscreen.js +78 -0
- package/dist/_esm5.processed/compat/get_start_date.js +4 -7
- package/dist/_esm5.processed/compat/has_issues_with_high_media_source_duration.js +3 -6
- package/dist/_esm5.processed/compat/index.d.ts +3 -1
- package/dist/_esm5.processed/compat/index.js +26 -47
- package/dist/_esm5.processed/compat/is_codec_supported.js +5 -8
- package/dist/_esm5.processed/compat/is_debug_mode_enabled.js +1 -4
- package/dist/_esm5.processed/compat/is_node.d.ts +0 -1
- package/dist/_esm5.processed/compat/is_node.js +2 -6
- package/dist/_esm5.processed/compat/is_offline.d.ts +39 -0
- package/dist/_esm5.processed/compat/is_offline.js +43 -0
- package/dist/_esm5.processed/compat/is_seeking_approximate.js +3 -5
- package/dist/_esm5.processed/compat/is_vtt_cue.js +2 -6
- package/dist/_esm5.processed/compat/make_vtt_cue.js +6 -10
- package/dist/_esm5.processed/compat/on_height_width_change.js +27 -25
- package/dist/_esm5.processed/compat/patch_webkit_source_buffer.js +16 -19
- package/dist/_esm5.processed/compat/remove_cue.js +9 -12
- package/dist/_esm5.processed/compat/should_favour_custom_safari_EME.js +4 -7
- package/dist/_esm5.processed/compat/should_reload_media_source_on_decipherability_update.js +1 -4
- package/dist/_esm5.processed/compat/should_renew_media_key_system_access.js +3 -6
- package/dist/_esm5.processed/compat/should_unset_media_keys.js +3 -6
- package/dist/_esm5.processed/compat/should_validate_metadata.js +3 -6
- package/dist/_esm5.processed/compat/should_wait_for_data_before_loaded.js +3 -6
- package/dist/_esm5.processed/compat/should_wait_for_have_enough_data.js +3 -6
- package/dist/_esm5.processed/config.d.ts +22 -10
- package/dist/_esm5.processed/config.js +14 -15
- package/dist/_esm5.processed/core/adaptive/adaptive_representation_selector.d.ts +60 -3
- package/dist/_esm5.processed/core/adaptive/adaptive_representation_selector.js +140 -130
- package/dist/_esm5.processed/core/adaptive/buffer_based_chooser.d.ts +2 -2
- package/dist/_esm5.processed/core/adaptive/buffer_based_chooser.js +41 -43
- package/dist/_esm5.processed/core/adaptive/guess_based_chooser.js +43 -37
- package/dist/_esm5.processed/core/adaptive/index.js +2 -4
- package/dist/_esm5.processed/core/adaptive/network_analyzer.js +73 -75
- package/dist/_esm5.processed/core/adaptive/utils/bandwidth_estimator.js +23 -24
- package/dist/_esm5.processed/core/adaptive/utils/ewma.js +12 -13
- package/dist/_esm5.processed/core/adaptive/utils/filter_by_bitrate.js +6 -9
- package/dist/_esm5.processed/core/adaptive/utils/filter_by_width.d.ts +25 -0
- package/dist/_esm5.processed/core/adaptive/utils/filter_by_width.js +42 -0
- package/dist/_esm5.processed/core/adaptive/utils/get_buffer_levels.js +7 -10
- package/dist/_esm5.processed/core/adaptive/utils/last_estimate_storage.js +7 -8
- package/dist/_esm5.processed/core/adaptive/utils/pending_requests_store.d.ts +3 -13
- package/dist/_esm5.processed/core/adaptive/utils/pending_requests_store.js +23 -26
- package/dist/_esm5.processed/core/adaptive/utils/representation_score_calculator.js +23 -25
- package/dist/_esm5.processed/core/adaptive/utils/select_optimal_representation.d.ts +8 -2
- package/dist/_esm5.processed/core/adaptive/utils/select_optimal_representation.js +13 -7
- package/dist/_esm5.processed/core/api/debug/buffer_graph.js +40 -41
- package/dist/_esm5.processed/core/api/debug/buffer_size_graph.js +29 -31
- package/dist/_esm5.processed/core/api/debug/constants.js +1 -4
- package/dist/_esm5.processed/core/api/debug/index.js +2 -4
- package/dist/_esm5.processed/core/api/debug/modules/general_info.js +94 -67
- package/dist/_esm5.processed/core/api/debug/modules/segment_buffer_content.js +46 -49
- package/dist/_esm5.processed/core/api/debug/modules/segment_buffer_size.js +12 -15
- package/dist/_esm5.processed/core/api/debug/render.js +13 -16
- package/dist/_esm5.processed/core/api/debug/utils.js +13 -18
- package/dist/_esm5.processed/core/api/index.js +4 -7
- package/dist/_esm5.processed/core/api/option_utils.d.ts +36 -13
- package/dist/_esm5.processed/core/api/option_utils.js +283 -111
- package/dist/_esm5.processed/core/api/playback_observer.d.ts +2 -8
- package/dist/_esm5.processed/core/api/playback_observer.js +123 -135
- package/dist/_esm5.processed/core/api/public_api.d.ts +276 -115
- package/dist/_esm5.processed/core/api/public_api.js +1313 -973
- package/dist/_esm5.processed/core/api/tracks_management/media_element_track_choice_manager.d.ts +257 -0
- package/dist/_esm5.processed/core/api/tracks_management/media_element_track_choice_manager.js +805 -0
- package/dist/_esm5.processed/core/api/tracks_management/track_choice_manager.d.ts +258 -0
- package/dist/_esm5.processed/core/api/tracks_management/track_choice_manager.js +989 -0
- package/dist/_esm5.processed/core/api/utils.d.ts +0 -1
- package/dist/_esm5.processed/core/api/utils.js +32 -51
- package/dist/_esm5.processed/core/decrypt/__tests__/__global__/utils.js +185 -155
- package/dist/_esm5.processed/core/decrypt/attach_media_keys.js +81 -42
- package/dist/_esm5.processed/core/decrypt/clear_on_stop.js +12 -15
- package/dist/_esm5.processed/core/decrypt/content_decryptor.js +511 -393
- package/dist/_esm5.processed/core/decrypt/create_or_load_session.js +90 -44
- package/dist/_esm5.processed/core/decrypt/create_session.js +149 -90
- package/dist/_esm5.processed/core/decrypt/dispose_decryption_resources.js +67 -24
- package/dist/_esm5.processed/core/decrypt/find_key_system.js +193 -144
- package/dist/_esm5.processed/core/decrypt/get_key_system_configuration.d.ts +8 -0
- package/dist/_esm5.processed/core/decrypt/get_key_system_configuration.js +15 -6
- package/dist/_esm5.processed/core/decrypt/get_media_keys.js +110 -61
- package/dist/_esm5.processed/core/decrypt/index.d.ts +2 -2
- package/dist/_esm5.processed/core/decrypt/index.js +7 -26
- package/dist/_esm5.processed/core/decrypt/init_media_keys.js +59 -17
- package/dist/_esm5.processed/core/decrypt/session_events_listener.js +222 -89
- package/dist/_esm5.processed/core/decrypt/set_server_certificate.js +103 -50
- package/dist/_esm5.processed/core/decrypt/types.js +2 -5
- package/dist/_esm5.processed/core/decrypt/utils/are_init_values_compatible.js +19 -22
- package/dist/_esm5.processed/core/decrypt/utils/check_key_statuses.d.ts +1 -1
- package/dist/_esm5.processed/core/decrypt/utils/check_key_statuses.js +65 -79
- package/dist/_esm5.processed/core/decrypt/utils/clean_old_loaded_sessions.js +61 -17
- package/dist/_esm5.processed/core/decrypt/utils/clean_old_stored_persistent_info.js +5 -8
- package/dist/_esm5.processed/core/decrypt/utils/get_drm_system_id.js +5 -8
- package/dist/_esm5.processed/core/decrypt/utils/init_data_values_container.js +23 -23
- package/dist/_esm5.processed/core/decrypt/utils/is_session_usable.js +12 -15
- package/dist/_esm5.processed/core/decrypt/utils/key_id_comparison.js +21 -14
- package/dist/_esm5.processed/core/decrypt/utils/key_session_record.js +27 -26
- package/dist/_esm5.processed/core/decrypt/utils/loaded_sessions_store.js +310 -206
- package/dist/_esm5.processed/core/decrypt/utils/media_keys_infos_store.js +6 -8
- package/dist/_esm5.processed/core/decrypt/utils/persistent_sessions_store.d.ts +4 -4
- package/dist/_esm5.processed/core/decrypt/utils/persistent_sessions_store.js +103 -106
- package/dist/_esm5.processed/core/decrypt/utils/serializable_bytes.js +12 -13
- package/dist/_esm5.processed/core/decrypt/utils/server_certificate_store.js +16 -18
- package/dist/_esm5.processed/core/fetchers/cdn_prioritizer.js +56 -37
- package/dist/_esm5.processed/core/fetchers/index.js +3 -7
- package/dist/_esm5.processed/core/fetchers/manifest/index.js +2 -4
- package/dist/_esm5.processed/core/fetchers/manifest/manifest_fetcher.d.ts +3 -1
- package/dist/_esm5.processed/core/fetchers/manifest/manifest_fetcher.js +332 -234
- package/dist/_esm5.processed/core/fetchers/segment/index.js +2 -4
- package/dist/_esm5.processed/core/fetchers/segment/prioritized_segment_fetcher.js +9 -12
- package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher.d.ts +9 -3
- package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher.js +227 -219
- package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher_creator.d.ts +3 -1
- package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher_creator.js +19 -20
- package/dist/_esm5.processed/core/fetchers/segment/task_prioritizer.js +74 -73
- package/dist/_esm5.processed/core/fetchers/utils/error_selector.js +5 -8
- package/dist/_esm5.processed/core/fetchers/utils/schedule_request.d.ts +6 -1
- package/dist/_esm5.processed/core/fetchers/utils/schedule_request.js +297 -210
- package/dist/_esm5.processed/core/init/directfile_content_initializer.js +99 -73
- package/dist/_esm5.processed/core/init/index.js +1 -5
- package/dist/_esm5.processed/core/init/media_source_content_initializer.d.ts +8 -1
- package/dist/_esm5.processed/core/init/media_source_content_initializer.js +324 -256
- package/dist/_esm5.processed/core/init/types.d.ts +30 -6
- package/dist/_esm5.processed/core/init/types.js +24 -7
- package/dist/_esm5.processed/core/init/utils/content_time_boundaries_observer.js +135 -109
- package/dist/_esm5.processed/core/init/utils/create_media_source.js +30 -35
- package/dist/_esm5.processed/core/init/utils/create_stream_playback_observer.js +10 -12
- package/dist/_esm5.processed/core/init/utils/end_of_stream.js +26 -30
- package/dist/_esm5.processed/core/init/utils/get_initial_time.js +37 -41
- package/dist/_esm5.processed/core/init/utils/get_loaded_reference.js +10 -13
- package/dist/_esm5.processed/core/init/utils/initial_seek_and_play.js +26 -29
- package/dist/_esm5.processed/core/init/utils/initialize_content_decryption.js +27 -30
- package/dist/_esm5.processed/core/init/utils/media_source_duration_updater.js +60 -58
- package/dist/_esm5.processed/core/init/utils/rebuffering_controller.d.ts +3 -3
- package/dist/_esm5.processed/core/init/utils/rebuffering_controller.js +160 -141
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/are_same_stream_events.js +1 -3
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/index.js +2 -4
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +30 -28
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/stream_events_emitter.js +90 -71
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/types.js +1 -2
- package/dist/_esm5.processed/core/init/utils/throw_on_media_error.js +13 -16
- package/dist/_esm5.processed/core/segment_buffers/garbage_collector.js +126 -75
- package/dist/_esm5.processed/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.js +147 -130
- package/dist/_esm5.processed/core/segment_buffers/implementations/audio_video/index.js +2 -4
- package/dist/_esm5.processed/core/segment_buffers/implementations/image/image_segment_buffer.d.ts +75 -0
- package/dist/_esm5.processed/core/segment_buffers/implementations/image/image_segment_buffer.js +133 -0
- package/dist/_esm5.processed/core/segment_buffers/implementations/image/index.d.ts +17 -0
- package/dist/_esm5.processed/core/segment_buffers/implementations/image/index.js +17 -0
- package/dist/_esm5.processed/core/segment_buffers/implementations/index.js +3 -20
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/html_text_segment_buffer.js +125 -106
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/index.js +2 -4
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/parsers.js +8 -11
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/text_track_cues_store.js +47 -48
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/types.js +1 -2
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/update_proportional_elements.js +15 -18
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/utils.js +15 -22
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/index.js +2 -4
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/native_text_segment_buffer.d.ts +2 -1
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/native_text_segment_buffer.js +83 -65
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/parsers.js +8 -11
- package/dist/_esm5.processed/core/segment_buffers/implementations/types.d.ts +2 -2
- package/dist/_esm5.processed/core/segment_buffers/implementations/types.js +17 -19
- package/dist/_esm5.processed/core/segment_buffers/implementations/utils/manual_time_ranges.js +22 -23
- package/dist/_esm5.processed/core/segment_buffers/index.d.ts +2 -2
- package/dist/_esm5.processed/core/segment_buffers/index.js +5 -13
- package/dist/_esm5.processed/core/segment_buffers/inventory/buffered_history.d.ts +2 -2
- package/dist/_esm5.processed/core/segment_buffers/inventory/buffered_history.js +22 -25
- package/dist/_esm5.processed/core/segment_buffers/inventory/index.d.ts +0 -1
- package/dist/_esm5.processed/core/segment_buffers/inventory/index.js +2 -8
- package/dist/_esm5.processed/core/segment_buffers/inventory/segment_inventory.js +150 -152
- package/dist/_esm5.processed/core/segment_buffers/inventory/types.js +1 -2
- package/dist/_esm5.processed/core/segment_buffers/segment_buffers_store.d.ts +1 -0
- package/dist/_esm5.processed/core/segment_buffers/segment_buffers_store.js +104 -83
- package/dist/_esm5.processed/core/stream/adaptation/adaptation_stream.d.ts +16 -1
- package/dist/_esm5.processed/core/stream/adaptation/adaptation_stream.js +144 -204
- package/dist/_esm5.processed/core/stream/adaptation/index.js +3 -19
- package/dist/_esm5.processed/core/stream/adaptation/types.d.ts +15 -37
- package/dist/_esm5.processed/core/stream/adaptation/types.js +1 -2
- package/dist/_esm5.processed/core/stream/adaptation/utils/create_representation_estimator.d.ts +47 -0
- package/dist/_esm5.processed/core/stream/adaptation/utils/create_representation_estimator.js +70 -0
- package/dist/_esm5.processed/core/stream/index.d.ts +3 -2
- package/dist/_esm5.processed/core/stream/index.js +2 -4
- package/dist/_esm5.processed/core/stream/orchestrator/get_time_ranges_for_content.js +16 -14
- package/dist/_esm5.processed/core/stream/orchestrator/index.js +2 -4
- package/dist/_esm5.processed/core/stream/orchestrator/stream_orchestrator.d.ts +0 -2
- package/dist/_esm5.processed/core/stream/orchestrator/stream_orchestrator.js +214 -223
- package/dist/_esm5.processed/core/stream/period/index.js +3 -19
- package/dist/_esm5.processed/core/stream/period/period_stream.js +201 -179
- package/dist/_esm5.processed/core/stream/period/types.d.ts +15 -6
- package/dist/_esm5.processed/core/stream/period/types.js +1 -2
- package/dist/_esm5.processed/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +4 -2
- package/dist/_esm5.processed/core/stream/period/utils/get_adaptation_switch_strategy.js +73 -38
- package/dist/_esm5.processed/core/stream/representation/index.js +3 -19
- package/dist/_esm5.processed/core/stream/representation/representation_stream.d.ts +1 -1
- package/dist/_esm5.processed/core/stream/representation/representation_stream.js +86 -104
- package/dist/_esm5.processed/core/stream/representation/types.d.ts +5 -14
- package/dist/_esm5.processed/core/stream/representation/types.js +1 -2
- package/dist/_esm5.processed/core/stream/representation/utils/append_segment_to_buffer.js +84 -33
- package/dist/_esm5.processed/core/stream/representation/utils/check_for_discontinuity.js +29 -32
- package/dist/_esm5.processed/core/stream/representation/utils/downloading_queue.js +145 -126
- package/dist/_esm5.processed/core/stream/representation/utils/force_garbage_collection.js +88 -32
- package/dist/_esm5.processed/core/stream/representation/utils/get_buffer_status.js +48 -61
- package/dist/_esm5.processed/core/stream/representation/utils/get_needed_segments.js +69 -71
- package/dist/_esm5.processed/core/stream/representation/utils/get_segment_priority.js +5 -8
- package/dist/_esm5.processed/core/stream/representation/utils/push_init_segment.d.ts +2 -2
- package/dist/_esm5.processed/core/stream/representation/utils/push_init_segment.js +63 -22
- package/dist/_esm5.processed/core/stream/representation/utils/push_media_segment.d.ts +1 -1
- package/dist/_esm5.processed/core/stream/representation/utils/push_media_segment.js +86 -49
- package/dist/_esm5.processed/default_config.d.ts +103 -41
- package/dist/_esm5.processed/default_config.js +120 -46
- package/dist/_esm5.processed/errors/assertion_error.js +26 -10
- package/dist/_esm5.processed/errors/custom_loader_error.d.ts +3 -1
- package/dist/_esm5.processed/errors/custom_loader_error.js +30 -12
- package/dist/_esm5.processed/errors/encrypted_media_error.js +32 -16
- package/dist/_esm5.processed/errors/error_codes.js +4 -9
- package/dist/_esm5.processed/errors/error_message.d.ts +2 -1
- package/dist/_esm5.processed/errors/error_message.js +3 -5
- package/dist/_esm5.processed/errors/format_error.js +7 -9
- package/dist/_esm5.processed/errors/index.js +11 -25
- package/dist/_esm5.processed/errors/is_known_error.js +11 -14
- package/dist/_esm5.processed/errors/media_error.d.ts +2 -2
- package/dist/_esm5.processed/errors/media_error.js +47 -34
- package/dist/_esm5.processed/errors/network_error.d.ts +1 -0
- package/dist/_esm5.processed/errors/network_error.js +38 -21
- package/dist/_esm5.processed/errors/other_error.js +31 -15
- package/dist/_esm5.processed/errors/request_error.d.ts +3 -2
- package/dist/_esm5.processed/errors/request_error.js +37 -18
- package/dist/_esm5.processed/experimental/features/dash_wasm.js +11 -14
- package/dist/_esm5.processed/experimental/features/debug_element.js +4 -7
- package/dist/_esm5.processed/experimental/features/index.js +4 -11
- package/dist/_esm5.processed/experimental/features/local.js +6 -9
- package/dist/_esm5.processed/experimental/features/metaplaylist.js +6 -9
- package/dist/_esm5.processed/experimental/index.js +2 -5
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/features/dash.js +3 -6
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/features/metaplaylist.js +3 -6
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/index.js +3 -7
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +16 -22
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +19 -22
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +3 -6
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/types.js +1 -2
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +188 -127
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.js +27 -11
- package/dist/_esm5.processed/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +119 -76
- package/dist/_esm5.processed/experimental/tools/createMetaplaylist/index.js +15 -24
- package/dist/_esm5.processed/experimental/tools/index.js +5 -11
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/api/index.js +43 -38
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.js +34 -31
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/capabilities.js +18 -21
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/index.js +2 -4
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/log.js +3 -5
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.js +17 -20
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.js +18 -21
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +10 -13
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.js +13 -16
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/index.js +14 -16
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.js +11 -14
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.js +11 -14
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.js +15 -19
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +7 -11
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/types.js +2 -5
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/utils.js +22 -25
- package/dist/_esm5.processed/experimental/tools/parseBIFThumbnails.js +4 -7
- package/dist/_esm5.processed/features/add_features.js +8 -11
- package/dist/_esm5.processed/features/features_object.js +4 -4
- package/dist/_esm5.processed/features/index.js +4 -7
- package/dist/_esm5.processed/features/list/bif_parser.d.ts +23 -0
- package/dist/_esm5.processed/features/list/bif_parser.js +27 -0
- package/dist/_esm5.processed/features/list/dash.js +8 -11
- package/dist/_esm5.processed/features/list/directfile.js +8 -9
- package/dist/_esm5.processed/features/list/eme.js +4 -7
- package/dist/_esm5.processed/features/list/html_sami_parser.js +6 -9
- package/dist/_esm5.processed/features/list/html_srt_parser.js +6 -9
- package/dist/_esm5.processed/features/list/html_text_buffer.js +4 -7
- package/dist/_esm5.processed/features/list/html_ttml_parser.js +6 -9
- package/dist/_esm5.processed/features/list/html_vtt_parser.js +6 -9
- package/dist/_esm5.processed/features/list/image_buffer.d.ts +23 -0
- package/dist/_esm5.processed/features/list/image_buffer.js +25 -0
- package/dist/_esm5.processed/features/list/index.d.ts +2 -0
- package/dist/_esm5.processed/features/list/index.js +16 -31
- package/dist/_esm5.processed/features/list/native_sami_parser.js +6 -9
- package/dist/_esm5.processed/features/list/native_srt_parser.js +6 -9
- package/dist/_esm5.processed/features/list/native_text_buffer.js +4 -7
- package/dist/_esm5.processed/features/list/native_ttml_parser.js +6 -9
- package/dist/_esm5.processed/features/list/native_vtt_parser.js +6 -9
- package/dist/_esm5.processed/features/list/smooth.js +6 -9
- package/dist/_esm5.processed/features/types.d.ts +27 -3
- package/dist/_esm5.processed/features/types.js +1 -2
- package/dist/_esm5.processed/log.js +3 -5
- package/dist/_esm5.processed/manifest/adaptation.d.ts +11 -9
- package/dist/_esm5.processed/manifest/adaptation.js +69 -77
- package/dist/_esm5.processed/manifest/index.d.ts +4 -3
- package/dist/_esm5.processed/manifest/index.js +13 -32
- package/dist/_esm5.processed/manifest/manifest.d.ts +60 -8
- package/dist/_esm5.processed/manifest/manifest.js +241 -119
- package/dist/_esm5.processed/manifest/period.d.ts +11 -5
- package/dist/_esm5.processed/manifest/period.js +46 -39
- package/dist/_esm5.processed/manifest/representation.d.ts +5 -10
- package/dist/_esm5.processed/manifest/representation.js +59 -84
- package/dist/_esm5.processed/manifest/representation_index/index.d.ts +2 -2
- package/dist/_esm5.processed/manifest/representation_index/index.js +2 -5
- package/dist/_esm5.processed/manifest/representation_index/static.d.ts +0 -2
- package/dist/_esm5.processed/manifest/representation_index/static.js +36 -43
- package/dist/_esm5.processed/manifest/representation_index/types.d.ts +21 -42
- package/dist/_esm5.processed/manifest/representation_index/types.js +1 -2
- package/dist/_esm5.processed/manifest/types.d.ts +2 -0
- package/dist/_esm5.processed/manifest/types.js +2 -5
- package/dist/_esm5.processed/manifest/update_period_in_place.js +48 -38
- package/dist/_esm5.processed/manifest/update_periods.js +69 -59
- package/dist/_esm5.processed/manifest/utils.js +9 -14
- package/dist/_esm5.processed/minimal.js +7 -9
- package/dist/_esm5.processed/parsers/containers/isobmff/constants.js +1 -4
- package/dist/_esm5.processed/parsers/containers/isobmff/create_box.js +10 -14
- package/dist/_esm5.processed/parsers/containers/isobmff/drm/index.js +1 -5
- package/dist/_esm5.processed/parsers/containers/isobmff/drm/playready.js +11 -15
- package/dist/_esm5.processed/parsers/containers/isobmff/get_box.js +40 -48
- package/dist/_esm5.processed/parsers/containers/isobmff/index.js +6 -27
- package/dist/_esm5.processed/parsers/containers/isobmff/read.js +14 -20
- package/dist/_esm5.processed/parsers/containers/isobmff/take_pssh_out.js +20 -25
- package/dist/_esm5.processed/parsers/containers/isobmff/utils.js +112 -130
- package/dist/_esm5.processed/parsers/containers/matroska/index.js +1 -6
- package/dist/_esm5.processed/parsers/containers/matroska/utils.js +63 -67
- package/dist/_esm5.processed/parsers/images/bif.js +29 -40
- package/dist/_esm5.processed/parsers/manifest/dash/common/attach_trickmode_track.js +12 -10
- package/dist/_esm5.processed/parsers/manifest/dash/common/flatten_overlapping_periods.js +7 -10
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_clock_offset.d.ts +3 -3
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_clock_offset.js +7 -11
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_hdr_information.js +6 -10
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_http_utc-timing_url.js +6 -7
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_minimum_and_maximum_positions.js +6 -10
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_periods_time_infos.js +9 -14
- package/dist/_esm5.processed/parsers/manifest/dash/common/index.js +4 -10
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/base.d.ts +31 -17
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/base.js +80 -93
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/get_init_segment.js +4 -9
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/get_segments_from_timeline.js +25 -32
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/index.js +5 -11
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/list.d.ts +0 -2
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/list.js +64 -81
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/template.d.ts +6 -2
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/template.js +122 -132
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +12 -15
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +32 -35
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.js +9 -14
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +22 -30
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/index.js +2 -4
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/parse_s_element.js +11 -14
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +3 -7
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +122 -131
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/tokens.js +10 -16
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/utils.js +3 -7
- package/dist/_esm5.processed/parsers/manifest/dash/common/infer_adaptation_type.d.ts +2 -2
- package/dist/_esm5.processed/parsers/manifest/dash/common/infer_adaptation_type.js +24 -20
- package/dist/_esm5.processed/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts +4 -8
- package/dist/_esm5.processed/parsers/manifest/dash/common/manifest_bounds_calculator.js +19 -22
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_adaptation_sets.js +115 -113
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_availability_start_time.js +1 -4
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_mpd.d.ts +5 -6
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_mpd.js +84 -86
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_periods.d.ts +0 -4
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_periods.js +84 -101
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representation_index.d.ts +4 -2
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representation_index.js +37 -39
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representations.js +69 -61
- package/dist/_esm5.processed/parsers/manifest/dash/common/resolve_base_urls.js +9 -12
- package/dist/_esm5.processed/parsers/manifest/dash/index.js +1 -8
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/index.js +2 -4
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +64 -72
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/BaseURL.js +4 -7
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.js +4 -7
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.js +19 -22
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/EventStream.js +19 -22
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Initialization.js +8 -11
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/MPD.js +34 -38
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Period.js +30 -34
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Representation.js +40 -46
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.js +21 -24
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentList.js +12 -15
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.js +18 -21
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.js +3 -6
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.js +9 -12
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts +1 -10
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/utils.js +63 -75
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/parse_from_document.js +27 -33
- package/dist/_esm5.processed/parsers/manifest/dash/node_parser_types.d.ts +4 -4
- package/dist/_esm5.processed/parsers/manifest/dash/node_parser_types.js +1 -2
- package/dist/_esm5.processed/parsers/manifest/dash/parsers_types.d.ts +4 -4
- package/dist/_esm5.processed/parsers/manifest/dash/parsers_types.js +1 -2
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/index.js +2 -4
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +237 -192
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +68 -70
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.js +4 -8
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.js +7 -11
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +13 -17
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.js +24 -29
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +33 -38
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +32 -37
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +40 -44
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.js +5 -9
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.js +12 -16
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.js +7 -11
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.js +16 -20
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.js +7 -11
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/XLink.js +7 -11
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/index.js +1 -5
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/root.js +6 -10
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/parsers_stack.js +20 -22
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/types.js +1 -2
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/utils.js +2 -6
- package/dist/_esm5.processed/parsers/manifest/index.js +1 -17
- package/dist/_esm5.processed/parsers/manifest/local/index.js +2 -4
- package/dist/_esm5.processed/parsers/manifest/local/parse_local_manifest.js +26 -30
- package/dist/_esm5.processed/parsers/manifest/local/representation_index.d.ts +0 -2
- package/dist/_esm5.processed/parsers/manifest/local/representation_index.js +78 -71
- package/dist/_esm5.processed/parsers/manifest/local/types.js +1 -2
- package/dist/_esm5.processed/parsers/manifest/metaplaylist/index.js +2 -4
- package/dist/_esm5.processed/parsers/manifest/metaplaylist/metaplaylist_parser.js +75 -79
- package/dist/_esm5.processed/parsers/manifest/metaplaylist/representation_index.d.ts +3 -12
- package/dist/_esm5.processed/parsers/manifest/metaplaylist/representation_index.js +50 -59
- package/dist/_esm5.processed/parsers/manifest/smooth/create_parser.d.ts +1 -0
- package/dist/_esm5.processed/parsers/manifest/smooth/create_parser.js +184 -204
- package/dist/_esm5.processed/parsers/manifest/smooth/get_codecs.js +8 -13
- package/dist/_esm5.processed/parsers/manifest/smooth/index.js +4 -7
- package/dist/_esm5.processed/parsers/manifest/smooth/parse_C_nodes.js +14 -17
- package/dist/_esm5.processed/parsers/manifest/smooth/parse_protection_node.js +15 -17
- package/dist/_esm5.processed/parsers/manifest/smooth/representation_index.d.ts +86 -24
- package/dist/_esm5.processed/parsers/manifest/smooth/representation_index.js +195 -128
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/add_segment_infos.d.ts +6 -3
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/add_segment_infos.js +10 -13
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/parseBoolean.js +1 -4
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/reduceChildren.js +3 -6
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/tokens.js +1 -5
- package/dist/_esm5.processed/parsers/manifest/types.d.ts +7 -7
- package/dist/_esm5.processed/parsers/manifest/types.js +1 -2
- package/dist/_esm5.processed/parsers/manifest/utils/check_manifest_ids.js +24 -27
- package/dist/_esm5.processed/parsers/manifest/utils/clear_timeline_from_position.js +7 -10
- package/dist/_esm5.processed/parsers/manifest/utils/get_first_time_from_adaptation.js +5 -8
- package/dist/_esm5.processed/parsers/manifest/utils/get_last_time_from_adaptation.js +5 -8
- package/dist/_esm5.processed/parsers/manifest/utils/get_maximum_positions.js +12 -15
- package/dist/_esm5.processed/parsers/manifest/utils/get_minimum_position.js +12 -15
- package/dist/_esm5.processed/parsers/manifest/utils/index_helpers.js +22 -31
- package/dist/_esm5.processed/parsers/manifest/utils/is_segment_still_available.js +6 -9
- package/dist/_esm5.processed/parsers/manifest/utils/update_segment_timeline.js +45 -38
- package/dist/_esm5.processed/parsers/texttracks/index.js +1 -2
- package/dist/_esm5.processed/parsers/texttracks/sami/html.js +43 -45
- package/dist/_esm5.processed/parsers/texttracks/sami/native.js +39 -41
- package/dist/_esm5.processed/parsers/texttracks/srt/find_end_of_cue_block.js +4 -7
- package/dist/_esm5.processed/parsers/texttracks/srt/get_cue_blocks.js +8 -11
- package/dist/_esm5.processed/parsers/texttracks/srt/html.js +29 -32
- package/dist/_esm5.processed/parsers/texttracks/srt/native.js +13 -16
- package/dist/_esm5.processed/parsers/texttracks/srt/parse_cue.js +18 -21
- package/dist/_esm5.processed/parsers/texttracks/srt/parse_timestamp.js +7 -10
- package/dist/_esm5.processed/parsers/texttracks/ttml/get_parameters.js +30 -37
- package/dist/_esm5.processed/parsers/texttracks/ttml/get_styling.js +48 -48
- package/dist/_esm5.processed/parsers/texttracks/ttml/get_time_delimiters.js +11 -14
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.js +2 -7
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_extent.js +20 -16
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_font_size.js +12 -15
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_line_height.js +8 -11
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_origin.js +21 -16
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_padding.js +22 -25
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/create_element.js +124 -117
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/generate_css_test_outline.js +8 -11
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/index.js +2 -4
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/parse_cue.js +8 -12
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/parse_ttml_to_div.js +11 -14
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/ttml_color_to_css_color.js +7 -10
- package/dist/_esm5.processed/parsers/texttracks/ttml/native/index.js +2 -4
- package/dist/_esm5.processed/parsers/texttracks/ttml/native/parse_cue.js +35 -38
- package/dist/_esm5.processed/parsers/texttracks/ttml/native/parse_ttml_to_vtt.js +8 -11
- package/dist/_esm5.processed/parsers/texttracks/ttml/parse_ttml.js +58 -58
- package/dist/_esm5.processed/parsers/texttracks/ttml/regexps.js +13 -27
- package/dist/_esm5.processed/parsers/texttracks/ttml/resolve_styles_inheritance.js +18 -18
- package/dist/_esm5.processed/parsers/texttracks/ttml/time_parsing.js +26 -28
- package/dist/_esm5.processed/parsers/texttracks/ttml/xml_utils.js +25 -37
- package/dist/_esm5.processed/parsers/texttracks/types.js +1 -2
- package/dist/_esm5.processed/parsers/texttracks/webvtt/get_cue_blocks.js +9 -12
- package/dist/_esm5.processed/parsers/texttracks/webvtt/get_style_blocks.js +11 -14
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/convert_payload_to_html.js +8 -11
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_default_style_elements.js +5 -8
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_style_attribute.js +60 -60
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_styled_element.js +27 -30
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/index.js +2 -4
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/parse_style_block.js +26 -23
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/parse_webvtt_to_div.js +17 -20
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/to_html.js +18 -23
- package/dist/_esm5.processed/parsers/texttracks/webvtt/native/index.js +2 -4
- package/dist/_esm5.processed/parsers/texttracks/webvtt/native/parse_vtt_to_cues.js +16 -19
- package/dist/_esm5.processed/parsers/texttracks/webvtt/native/set_settings_on_cue.js +17 -20
- package/dist/_esm5.processed/parsers/texttracks/webvtt/native/to_native_cue.js +5 -8
- package/dist/_esm5.processed/parsers/texttracks/webvtt/parse_cue_block.js +18 -26
- package/dist/_esm5.processed/parsers/texttracks/webvtt/parse_timestamp.js +7 -10
- package/dist/_esm5.processed/parsers/texttracks/webvtt/utils.js +7 -15
- package/dist/_esm5.processed/public_types.d.ts +352 -442
- package/dist/_esm5.processed/public_types.js +1 -2
- package/dist/_esm5.processed/tools/TextTrackRenderer/index.js +6 -13
- package/dist/_esm5.processed/tools/TextTrackRenderer/text_track_renderer.d.ts +4 -5
- package/dist/_esm5.processed/tools/TextTrackRenderer/text_track_renderer.js +26 -29
- package/dist/_esm5.processed/tools/index.js +4 -6
- package/dist/_esm5.processed/tools/string_utils.js +1 -10
- package/dist/_esm5.processed/transports/dash/add_segment_integrity_checks_to_loader.js +24 -16
- package/dist/_esm5.processed/transports/dash/construct_segment_url.js +3 -6
- package/dist/_esm5.processed/transports/dash/extract_complete_chunks.js +14 -17
- package/dist/_esm5.processed/transports/dash/get_events_out_of_emsgs.js +16 -19
- package/dist/_esm5.processed/transports/dash/image_pipelines.d.ts +38 -0
- package/dist/_esm5.processed/transports/dash/image_pipelines.js +129 -0
- package/dist/_esm5.processed/transports/dash/index.js +2 -4
- package/dist/_esm5.processed/transports/dash/init_segment_loader.js +27 -47
- package/dist/_esm5.processed/transports/dash/low_latency_segment_loader.js +16 -23
- package/dist/_esm5.processed/transports/dash/manifest_parser.js +60 -68
- package/dist/_esm5.processed/transports/dash/pipelines.js +21 -21
- package/dist/_esm5.processed/transports/dash/segment_loader.d.ts +2 -2
- package/dist/_esm5.processed/transports/dash/segment_loader.js +49 -65
- package/dist/_esm5.processed/transports/dash/segment_parser.js +49 -64
- package/dist/_esm5.processed/transports/dash/text_loader.js +32 -38
- package/dist/_esm5.processed/transports/dash/text_parser.js +53 -58
- package/dist/_esm5.processed/transports/index.js +1 -17
- package/dist/_esm5.processed/transports/local/index.js +2 -4
- package/dist/_esm5.processed/transports/local/pipelines.js +32 -27
- package/dist/_esm5.processed/transports/local/segment_loader.js +24 -27
- package/dist/_esm5.processed/transports/local/segment_parser.d.ts +1 -1
- package/dist/_esm5.processed/transports/local/segment_parser.js +26 -38
- package/dist/_esm5.processed/transports/local/text_parser.d.ts +2 -2
- package/dist/_esm5.processed/transports/local/text_parser.js +41 -55
- package/dist/_esm5.processed/transports/metaplaylist/index.js +2 -4
- package/dist/_esm5.processed/transports/metaplaylist/manifest_loader.js +7 -11
- package/dist/_esm5.processed/transports/metaplaylist/pipelines.js +123 -101
- package/dist/_esm5.processed/transports/smooth/extract_timings_infos.js +20 -26
- package/dist/_esm5.processed/transports/smooth/index.js +2 -4
- package/dist/_esm5.processed/transports/smooth/isobmff/create_audio_init_segment.js +19 -22
- package/dist/_esm5.processed/transports/smooth/isobmff/create_boxes.js +67 -92
- package/dist/_esm5.processed/transports/smooth/isobmff/create_init_segment.js +26 -29
- package/dist/_esm5.processed/transports/smooth/isobmff/create_traf_box.js +6 -9
- package/dist/_esm5.processed/transports/smooth/isobmff/create_video_init_segment.js +20 -23
- package/dist/_esm5.processed/transports/smooth/isobmff/get_aaces_header.js +7 -10
- package/dist/_esm5.processed/transports/smooth/isobmff/index.js +6 -13
- package/dist/_esm5.processed/transports/smooth/isobmff/parse_tfrf.js +16 -19
- package/dist/_esm5.processed/transports/smooth/isobmff/parse_tfxd.js +6 -9
- package/dist/_esm5.processed/transports/smooth/isobmff/patch_segment.js +38 -41
- package/dist/_esm5.processed/transports/smooth/pipelines.js +262 -116
- package/dist/_esm5.processed/transports/smooth/segment_loader.d.ts +3 -3
- package/dist/_esm5.processed/transports/smooth/segment_loader.js +150 -152
- package/dist/_esm5.processed/transports/smooth/utils.d.ts +26 -1
- package/dist/_esm5.processed/transports/smooth/utils.js +57 -7
- package/dist/_esm5.processed/transports/types.d.ts +96 -110
- package/dist/_esm5.processed/transports/types.js +1 -2
- package/dist/_esm5.processed/transports/utils/byte_range.js +4 -6
- package/dist/_esm5.processed/transports/utils/call_custom_manifest_loader.js +18 -24
- package/dist/_esm5.processed/transports/utils/check_isobmff_integrity.js +11 -14
- package/dist/_esm5.processed/transports/utils/find_complete_box.js +8 -11
- package/dist/_esm5.processed/transports/utils/generate_manifest_loader.js +14 -22
- package/dist/_esm5.processed/transports/utils/get_isobmff_timing_infos.js +10 -13
- package/dist/_esm5.processed/transports/utils/infer_segment_container.d.ts +3 -3
- package/dist/_esm5.processed/transports/utils/infer_segment_container.js +7 -8
- package/dist/_esm5.processed/transports/utils/parse_text_track.d.ts +12 -8
- package/dist/_esm5.processed/transports/utils/parse_text_track.js +34 -46
- package/dist/_esm5.processed/utils/are_arrays_of_numbers_equal.js +2 -5
- package/dist/_esm5.processed/utils/are_codecs_compatible.js +9 -11
- package/dist/_esm5.processed/utils/array_find.js +4 -7
- package/dist/_esm5.processed/utils/array_find_index.js +3 -6
- package/dist/_esm5.processed/utils/array_includes.js +11 -12
- package/dist/_esm5.processed/utils/assert.js +9 -13
- package/dist/_esm5.processed/utils/assert_unreachable.js +3 -6
- package/dist/_esm5.processed/utils/base64.js +18 -23
- package/dist/_esm5.processed/utils/byte_parsing.js +17 -30
- package/dist/_esm5.processed/utils/cancellable_sleep.js +5 -8
- package/dist/_esm5.processed/utils/create_cancellable_promise.js +4 -7
- package/dist/_esm5.processed/utils/deep_merge.js +21 -10
- package/dist/_esm5.processed/utils/event_emitter.js +24 -24
- package/dist/_esm5.processed/utils/flat_map.js +4 -7
- package/dist/_esm5.processed/utils/get_fuzzed_delay.js +3 -6
- package/dist/_esm5.processed/utils/hash_buffer.js +4 -7
- package/dist/_esm5.processed/utils/id_generator.js +3 -6
- package/dist/_esm5.processed/utils/initialization_segment_cache.js +12 -11
- package/dist/_esm5.processed/utils/is_non_empty_string.js +1 -4
- package/dist/_esm5.processed/utils/is_null_or_undefined.js +1 -4
- package/dist/_esm5.processed/utils/languages/ISO_639-1_to_ISO_639-3.js +2 -4
- package/dist/_esm5.processed/utils/languages/ISO_639-2_to_ISO_639-3.js +2 -4
- package/dist/_esm5.processed/utils/languages/index.js +3 -7
- package/dist/_esm5.processed/utils/languages/normalize.js +20 -26
- package/dist/_esm5.processed/utils/list_to_map.d.ts +22 -0
- package/dist/_esm5.processed/utils/list_to_map.js +28 -0
- package/dist/_esm5.processed/utils/logger.js +23 -24
- package/dist/_esm5.processed/utils/noop.js +1 -4
- package/dist/_esm5.processed/utils/object_assign.js +10 -8
- package/dist/_esm5.processed/utils/object_values.js +3 -6
- package/dist/_esm5.processed/utils/ranges.d.ts +8 -50
- package/dist/_esm5.processed/utils/ranges.js +64 -163
- package/dist/_esm5.processed/utils/reference.js +52 -48
- package/dist/_esm5.processed/utils/request/fetch.d.ts +4 -4
- package/dist/_esm5.processed/utils/request/fetch.js +107 -79
- package/dist/_esm5.processed/utils/request/index.js +4 -9
- package/dist/_esm5.processed/utils/request/xhr.js +36 -49
- package/dist/_esm5.processed/utils/resolve_url.js +18 -18
- package/dist/_esm5.processed/utils/retry_promise_with_backoff.js +81 -34
- package/dist/_esm5.processed/utils/simple_set.d.ts +51 -0
- package/dist/_esm5.processed/utils/simple_set.js +57 -0
- package/dist/_esm5.processed/utils/sleep.js +2 -5
- package/dist/_esm5.processed/utils/slice_uint8array.js +1 -3
- package/dist/_esm5.processed/utils/sorted_list.js +40 -37
- package/dist/_esm5.processed/utils/starts_with.js +2 -5
- package/dist/_esm5.processed/utils/string_parsing.js +72 -84
- package/dist/_esm5.processed/utils/task_canceller.js +71 -51
- package/dist/_esm5.processed/utils/uniq.d.ts +36 -0
- package/dist/_esm5.processed/utils/uniq.js +43 -0
- package/dist/_esm5.processed/utils/warn_once.js +4 -7
- package/dist/_esm5.processed/utils/weak_map_memory.js +11 -12
- package/dist/_esm5.processed/utils/wrapInPromise.js +2 -5
- package/dist/commonjs/compat/add_class_name.d.ts +22 -0
- package/dist/commonjs/compat/add_class_name.js +42 -0
- package/dist/commonjs/compat/add_text_track.d.ts +31 -0
- package/dist/commonjs/compat/add_text_track.js +50 -0
- package/dist/commonjs/compat/browser_compatibility_types.d.ts +164 -0
- package/dist/commonjs/compat/browser_compatibility_types.js +37 -0
- package/dist/commonjs/compat/browser_detection.d.ts +42 -0
- package/dist/commonjs/compat/browser_detection.js +119 -0
- package/dist/commonjs/compat/browser_version.d.ts +24 -0
- package/dist/commonjs/compat/browser_version.js +44 -0
- package/dist/commonjs/compat/can_patch_isobmff.d.ts +25 -0
- package/dist/commonjs/compat/can_patch_isobmff.js +31 -0
- package/dist/commonjs/compat/can_rely_on_video_visibility_and_size.d.ts +37 -0
- package/dist/commonjs/compat/can_rely_on_video_visibility_and_size.js +52 -0
- package/dist/commonjs/compat/can_reuse_media_keys.d.ts +13 -0
- package/dist/commonjs/compat/can_reuse_media_keys.js +19 -0
- package/dist/commonjs/compat/change_source_buffer_type.d.ts +48 -0
- package/dist/commonjs/compat/change_source_buffer_type.js +40 -0
- package/dist/commonjs/compat/clear_element_src.d.ts +20 -0
- package/dist/commonjs/compat/clear_element_src.js +56 -0
- package/dist/commonjs/compat/eme/close_session.d.ts +30 -0
- package/dist/commonjs/compat/eme/close_session.js +165 -0
- package/dist/commonjs/compat/eme/constants.d.ts +16 -0
- package/dist/commonjs/compat/eme/constants.js +22 -0
- package/dist/commonjs/compat/eme/custom_key_system_access.d.ts +54 -0
- package/dist/commonjs/compat/eme/custom_key_system_access.js +49 -0
- package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.d.ts +31 -0
- package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.js +174 -0
- package/dist/commonjs/compat/eme/custom_media_keys/index.d.ts +7 -0
- package/dist/commonjs/compat/eme/custom_media_keys/index.js +16 -0
- package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +27 -0
- package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.js +64 -0
- package/dist/commonjs/compat/eme/custom_media_keys/ms_media_keys_constructor.d.ts +43 -0
- package/dist/commonjs/compat/eme/custom_media_keys/ms_media_keys_constructor.js +30 -0
- package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +41 -0
- package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.js +197 -0
- package/dist/commonjs/compat/eme/custom_media_keys/types.d.ts +43 -0
- package/dist/commonjs/compat/eme/custom_media_keys/types.js +17 -0
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.d.ts +37 -0
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.js +263 -0
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts +22 -0
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +30 -0
- package/dist/commonjs/compat/eme/eme-api-implementation.d.ts +78 -0
- package/dist/commonjs/compat/eme/eme-api-implementation.js +226 -0
- package/dist/commonjs/compat/eme/generate_key_request.d.ts +54 -0
- package/dist/commonjs/compat/eme/generate_key_request.js +152 -0
- package/dist/commonjs/compat/eme/get_init_data.d.ts +57 -0
- package/dist/commonjs/compat/eme/get_init_data.js +115 -0
- package/dist/commonjs/compat/eme/get_uuid_kid_from_keystatus_kid.d.ts +23 -0
- package/dist/commonjs/compat/eme/get_uuid_kid_from_keystatus_kid.js +34 -0
- package/dist/commonjs/compat/eme/get_webkit_fairplay_initdata.d.ts +25 -0
- package/dist/commonjs/compat/eme/get_webkit_fairplay_initdata.js +60 -0
- package/dist/commonjs/compat/eme/index.d.ts +24 -0
- package/dist/commonjs/compat/eme/index.js +28 -0
- package/dist/commonjs/compat/eme/load_session.d.ts +30 -0
- package/dist/commonjs/compat/eme/load_session.js +102 -0
- package/dist/commonjs/compat/enable_audio_track.d.ts +11 -0
- package/dist/commonjs/compat/enable_audio_track.js +29 -0
- package/dist/commonjs/compat/event_listeners.d.ts +173 -0
- package/dist/commonjs/compat/event_listeners.js +448 -0
- package/dist/commonjs/compat/get_start_date.d.ts +30 -0
- package/dist/commonjs/compat/get_start_date.js +47 -0
- package/dist/{_esm5.processed → commonjs}/compat/global_scope.js +3 -3
- package/dist/commonjs/compat/has_issues_with_high_media_source_duration.d.ts +21 -0
- package/dist/commonjs/compat/has_issues_with_high_media_source_duration.js +29 -0
- package/dist/commonjs/compat/index.d.ts +37 -0
- package/dist/commonjs/compat/index.js +66 -0
- package/dist/commonjs/compat/is_codec_supported.d.ts +25 -0
- package/dist/commonjs/compat/is_codec_supported.js +39 -0
- package/dist/commonjs/compat/is_debug_mode_enabled.d.ts +7 -0
- package/dist/commonjs/compat/is_debug_mode_enabled.js +12 -0
- package/dist/commonjs/compat/is_node.d.ts +18 -0
- package/dist/commonjs/compat/is_node.js +21 -0
- package/dist/commonjs/compat/is_seeking_approximate.d.ts +28 -0
- package/dist/commonjs/compat/is_seeking_approximate.js +31 -0
- package/dist/commonjs/compat/is_vtt_cue.d.ts +22 -0
- package/dist/commonjs/compat/is_vtt_cue.js +29 -0
- package/dist/commonjs/compat/make_vtt_cue.d.ts +26 -0
- package/dist/commonjs/compat/make_vtt_cue.js +47 -0
- package/dist/commonjs/compat/on_height_width_change.d.ts +33 -0
- package/dist/commonjs/compat/on_height_width_change.js +75 -0
- package/dist/commonjs/compat/patch_webkit_source_buffer.d.ts +16 -0
- package/dist/commonjs/compat/patch_webkit_source_buffer.js +78 -0
- package/dist/commonjs/compat/remove_cue.d.ts +21 -0
- package/dist/commonjs/compat/remove_cue.js +66 -0
- package/dist/commonjs/compat/should_favour_custom_safari_EME.d.ts +23 -0
- package/dist/commonjs/compat/should_favour_custom_safari_EME.js +30 -0
- package/dist/commonjs/compat/should_reload_media_source_on_decipherability_update.d.ts +26 -0
- package/dist/commonjs/compat/should_reload_media_source_on_decipherability_update.js +32 -0
- package/dist/commonjs/compat/should_renew_media_key_system_access.d.ts +21 -0
- package/dist/commonjs/compat/should_renew_media_key_system_access.js +27 -0
- package/dist/commonjs/compat/should_unset_media_keys.d.ts +22 -0
- package/dist/commonjs/compat/should_unset_media_keys.js +28 -0
- package/dist/commonjs/compat/should_validate_metadata.d.ts +22 -0
- package/dist/commonjs/compat/should_validate_metadata.js +28 -0
- package/dist/commonjs/compat/should_wait_for_data_before_loaded.d.ts +24 -0
- package/dist/commonjs/compat/should_wait_for_data_before_loaded.js +33 -0
- package/dist/commonjs/compat/should_wait_for_have_enough_data.d.ts +13 -0
- package/dist/commonjs/compat/should_wait_for_have_enough_data.js +19 -0
- package/dist/commonjs/config.d.ts +179 -0
- package/dist/commonjs/config.js +34 -0
- package/dist/commonjs/core/adaptive/adaptive_representation_selector.d.ts +306 -0
- package/dist/commonjs/core/adaptive/adaptive_representation_selector.js +380 -0
- package/dist/commonjs/core/adaptive/buffer_based_chooser.d.ts +89 -0
- package/dist/commonjs/core/adaptive/buffer_based_chooser.js +195 -0
- package/dist/commonjs/core/adaptive/guess_based_chooser.d.ts +95 -0
- package/dist/commonjs/core/adaptive/guess_based_chooser.js +266 -0
- package/dist/commonjs/core/adaptive/index.d.ts +18 -0
- package/dist/commonjs/core/adaptive/index.js +19 -0
- package/dist/commonjs/core/adaptive/network_analyzer.d.ts +73 -0
- package/dist/commonjs/core/adaptive/network_analyzer.js +342 -0
- package/dist/commonjs/core/adaptive/utils/bandwidth_estimator.d.ts +47 -0
- package/dist/commonjs/core/adaptive/utils/bandwidth_estimator.js +72 -0
- package/dist/commonjs/core/adaptive/utils/ewma.d.ts +39 -0
- package/dist/commonjs/core/adaptive/utils/ewma.js +54 -0
- package/dist/commonjs/core/adaptive/utils/filter_by_bitrate.d.ts +25 -0
- package/dist/commonjs/core/adaptive/utils/filter_by_bitrate.js +40 -0
- package/dist/commonjs/core/adaptive/utils/filter_by_resolution.js +53 -0
- package/dist/commonjs/core/adaptive/utils/get_buffer_levels.d.ts +24 -0
- package/dist/commonjs/core/adaptive/utils/get_buffer_levels.js +50 -0
- package/dist/commonjs/core/adaptive/utils/last_estimate_storage.d.ts +61 -0
- package/dist/commonjs/core/adaptive/utils/last_estimate_storage.js +39 -0
- package/dist/commonjs/core/adaptive/utils/pending_requests_store.d.ts +110 -0
- package/dist/commonjs/core/adaptive/utils/pending_requests_store.js +78 -0
- package/dist/commonjs/core/adaptive/utils/representation_score_calculator.d.ts +104 -0
- package/dist/commonjs/core/adaptive/utils/representation_score_calculator.js +116 -0
- package/dist/commonjs/core/adaptive/utils/select_optimal_representation.d.ts +27 -0
- package/dist/commonjs/core/adaptive/utils/select_optimal_representation.js +39 -0
- package/dist/commonjs/core/api/debug/buffer_graph.d.ts +28 -0
- package/dist/commonjs/core/api/debug/buffer_graph.js +177 -0
- package/dist/commonjs/core/api/debug/buffer_size_graph.d.ts +10 -0
- package/dist/commonjs/core/api/debug/buffer_size_graph.js +132 -0
- package/dist/commonjs/core/api/debug/constants.d.ts +2 -0
- package/dist/commonjs/core/api/debug/constants.js +5 -0
- package/dist/commonjs/core/api/debug/index.d.ts +2 -0
- package/dist/commonjs/core/api/debug/index.js +4 -0
- package/dist/commonjs/core/api/debug/modules/general_info.d.ts +3 -0
- package/dist/commonjs/core/api/debug/modules/general_info.js +213 -0
- package/dist/commonjs/core/api/debug/modules/segment_buffer_content.d.ts +4 -0
- package/dist/commonjs/core/api/debug/modules/segment_buffer_content.js +124 -0
- package/dist/commonjs/core/api/debug/modules/segment_buffer_size.d.ts +3 -0
- package/dist/commonjs/core/api/debug/modules/segment_buffer_size.js +38 -0
- package/dist/commonjs/core/api/debug/render.d.ts +3 -0
- package/dist/commonjs/core/api/debug/render.js +35 -0
- package/dist/commonjs/core/api/debug/utils.d.ts +39 -0
- package/dist/commonjs/core/api/debug/utils.js +86 -0
- package/dist/commonjs/core/api/index.d.ts +20 -0
- package/dist/commonjs/core/api/index.js +22 -0
- package/dist/commonjs/core/api/option_utils.d.ts +119 -0
- package/dist/commonjs/core/api/option_utils.js +303 -0
- package/dist/commonjs/core/api/playback_observer.d.ts +370 -0
- package/dist/commonjs/core/api/playback_observer.js +585 -0
- package/dist/commonjs/core/api/public_api.d.ts +718 -0
- package/dist/commonjs/core/api/public_api.js +2226 -0
- package/dist/{_esm5.processed → commonjs}/core/api/track_management/index.js +1 -1
- package/dist/commonjs/core/api/track_management/media_element_tracks_store.js +688 -0
- package/dist/commonjs/core/api/track_management/track_dispatcher.js +178 -0
- package/dist/commonjs/core/api/track_management/tracks_store.js +998 -0
- package/dist/commonjs/core/api/utils.d.ts +66 -0
- package/dist/commonjs/core/api/utils.js +175 -0
- package/dist/commonjs/core/decrypt/__tests__/__global__/utils.d.ts +178 -0
- package/dist/commonjs/core/decrypt/__tests__/__global__/utils.js +413 -0
- package/dist/commonjs/core/decrypt/attach_media_keys.d.ts +52 -0
- package/dist/commonjs/core/decrypt/attach_media_keys.js +120 -0
- package/dist/commonjs/core/decrypt/clear_on_stop.d.ts +22 -0
- package/dist/commonjs/core/decrypt/clear_on_stop.js +43 -0
- package/dist/commonjs/core/decrypt/content_decryptor.d.ts +184 -0
- package/dist/commonjs/core/decrypt/content_decryptor.js +1146 -0
- package/dist/commonjs/core/decrypt/create_or_load_session.d.ts +63 -0
- package/dist/commonjs/core/decrypt/create_or_load_session.js +127 -0
- package/dist/commonjs/core/decrypt/create_session.d.ts +53 -0
- package/dist/commonjs/core/decrypt/create_session.js +215 -0
- package/dist/commonjs/core/decrypt/dispose_decryption_resources.d.ts +21 -0
- package/dist/commonjs/core/decrypt/dispose_decryption_resources.js +91 -0
- package/dist/commonjs/core/decrypt/find_key_system.d.ts +48 -0
- package/dist/commonjs/core/decrypt/find_key_system.js +369 -0
- package/dist/commonjs/core/decrypt/get_key_system_configuration.d.ts +22 -0
- package/dist/commonjs/core/decrypt/get_key_system_configuration.js +35 -0
- package/dist/commonjs/core/decrypt/get_media_keys.d.ts +44 -0
- package/dist/commonjs/core/decrypt/get_media_keys.js +160 -0
- package/dist/commonjs/core/decrypt/index.d.ts +26 -0
- package/dist/commonjs/core/decrypt/index.js +45 -0
- package/dist/commonjs/core/decrypt/init_media_keys.d.ts +26 -0
- package/dist/commonjs/core/decrypt/init_media_keys.js +85 -0
- package/dist/commonjs/core/decrypt/session_events_listener.d.ts +75 -0
- package/dist/commonjs/core/decrypt/session_events_listener.js +330 -0
- package/dist/commonjs/core/decrypt/set_server_certificate.d.ts +51 -0
- package/dist/commonjs/core/decrypt/set_server_certificate.js +146 -0
- package/dist/commonjs/core/decrypt/types.d.ts +368 -0
- package/dist/commonjs/core/decrypt/types.js +58 -0
- package/dist/commonjs/core/decrypt/utils/are_init_values_compatible.d.ts +34 -0
- package/dist/commonjs/core/decrypt/utils/are_init_values_compatible.js +116 -0
- package/dist/commonjs/core/decrypt/utils/check_key_statuses.d.ts +52 -0
- package/dist/commonjs/core/decrypt/utils/check_key_statuses.js +211 -0
- package/dist/commonjs/core/decrypt/utils/clean_old_loaded_sessions.d.ts +26 -0
- package/dist/commonjs/core/decrypt/utils/clean_old_loaded_sessions.js +89 -0
- package/dist/commonjs/core/decrypt/utils/clean_old_stored_persistent_info.d.ts +32 -0
- package/dist/commonjs/core/decrypt/utils/clean_old_stored_persistent_info.js +43 -0
- package/dist/commonjs/core/decrypt/utils/get_drm_system_id.d.ts +20 -0
- package/dist/commonjs/core/decrypt/utils/get_drm_system_id.js +40 -0
- package/dist/commonjs/core/decrypt/utils/init_data_values_container.d.ts +69 -0
- package/dist/commonjs/core/decrypt/utils/init_data_values_container.js +126 -0
- package/dist/commonjs/core/decrypt/utils/is_session_usable.d.ts +24 -0
- package/dist/commonjs/core/decrypt/utils/is_session_usable.js +52 -0
- package/dist/commonjs/core/decrypt/utils/key_id_comparison.d.ts +31 -0
- package/dist/commonjs/core/decrypt/utils/key_id_comparison.js +96 -0
- package/dist/commonjs/core/decrypt/utils/key_session_record.d.ts +104 -0
- package/dist/commonjs/core/decrypt/utils/key_session_record.js +190 -0
- package/dist/commonjs/core/decrypt/utils/loaded_sessions_store.d.ts +215 -0
- package/dist/commonjs/core/decrypt/utils/loaded_sessions_store.js +515 -0
- package/dist/commonjs/core/decrypt/utils/media_keys_infos_store.d.ts +56 -0
- package/dist/commonjs/core/decrypt/utils/media_keys_infos_store.js +46 -0
- package/dist/commonjs/core/decrypt/utils/persistent_sessions_store.d.ts +94 -0
- package/dist/commonjs/core/decrypt/utils/persistent_sessions_store.js +346 -0
- package/dist/commonjs/core/decrypt/utils/serializable_bytes.d.ts +44 -0
- package/dist/commonjs/core/decrypt/utils/serializable_bytes.js +50 -0
- package/dist/commonjs/core/decrypt/utils/server_certificate_store.d.ts +64 -0
- package/dist/commonjs/core/decrypt/utils/server_certificate_store.js +114 -0
- package/dist/commonjs/core/fetchers/cdn_prioritizer.d.ts +107 -0
- package/dist/commonjs/core/fetchers/cdn_prioritizer.js +216 -0
- package/dist/commonjs/core/fetchers/index.d.ts +18 -0
- package/dist/commonjs/core/fetchers/index.js +22 -0
- package/dist/commonjs/core/fetchers/manifest/index.d.ts +18 -0
- package/dist/commonjs/core/fetchers/manifest/index.js +19 -0
- package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.d.ts +221 -0
- package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.js +629 -0
- package/dist/commonjs/core/fetchers/segment/index.d.ts +19 -0
- package/dist/commonjs/core/fetchers/segment/index.js +19 -0
- package/dist/commonjs/core/fetchers/segment/prioritized_segment_fetcher.d.ts +38 -0
- package/dist/commonjs/core/fetchers/segment/prioritized_segment_fetcher.js +70 -0
- package/dist/commonjs/core/fetchers/segment/segment_fetcher.d.ts +148 -0
- package/dist/commonjs/core/fetchers/segment/segment_fetcher.js +321 -0
- package/dist/commonjs/core/fetchers/segment/segment_fetcher_creator.d.ts +77 -0
- package/dist/commonjs/core/fetchers/segment/segment_fetcher_creator.js +60 -0
- package/dist/commonjs/core/fetchers/segment/task_prioritizer.d.ts +145 -0
- package/dist/commonjs/core/fetchers/segment/task_prioritizer.js +350 -0
- package/dist/commonjs/core/fetchers/utils/error_selector.d.ts +23 -0
- package/dist/commonjs/core/fetchers/utils/error_selector.js +34 -0
- package/dist/commonjs/core/fetchers/utils/schedule_request.d.ts +98 -0
- package/dist/commonjs/core/fetchers/utils/schedule_request.js +393 -0
- package/dist/commonjs/core/init/directfile_content_initializer.d.ts +97 -0
- package/dist/commonjs/core/init/directfile_content_initializer.js +241 -0
- package/dist/commonjs/core/init/index.d.ts +16 -0
- package/dist/commonjs/core/init/index.js +20 -0
- package/dist/commonjs/core/init/media_source_content_initializer.d.ts +174 -0
- package/dist/commonjs/core/init/media_source_content_initializer.js +655 -0
- package/dist/commonjs/core/init/types.d.ts +217 -0
- package/dist/commonjs/core/init/types.js +54 -0
- package/dist/commonjs/core/init/utils/content_time_boundaries_observer.d.ts +191 -0
- package/dist/commonjs/core/init/utils/content_time_boundaries_observer.js +520 -0
- package/dist/commonjs/core/init/utils/create_media_source.d.ts +37 -0
- package/dist/commonjs/core/init/utils/create_media_source.js +117 -0
- package/dist/commonjs/core/init/utils/create_stream_playback_observer.d.ts +45 -0
- package/dist/commonjs/core/init/utils/create_stream_playback_observer.js +89 -0
- package/dist/commonjs/core/init/utils/end_of_stream.d.ts +33 -0
- package/dist/commonjs/core/init/utils/end_of_stream.js +115 -0
- package/dist/commonjs/core/init/utils/get_initial_time.d.ts +62 -0
- package/dist/commonjs/core/init/utils/get_initial_time.js +113 -0
- package/dist/commonjs/core/init/utils/get_loaded_reference.d.ts +28 -0
- package/dist/commonjs/core/init/utils/get_loaded_reference.js +59 -0
- package/dist/commonjs/core/init/utils/initial_seek_and_play.d.ts +63 -0
- package/dist/commonjs/core/init/utils/initial_seek_and_play.js +131 -0
- package/dist/commonjs/core/init/utils/initialize_content_decryption.d.ts +80 -0
- package/dist/commonjs/core/init/utils/initialize_content_decryption.js +107 -0
- package/dist/commonjs/core/init/utils/media_source_duration_updater.d.ts +58 -0
- package/dist/commonjs/core/init/utils/media_source_duration_updater.js +270 -0
- package/dist/commonjs/core/init/utils/rebuffering_controller.d.ts +147 -0
- package/dist/commonjs/core/init/utils/rebuffering_controller.js +597 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/are_same_stream_events.d.ts +39 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/are_same_stream_events.js +37 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/index.d.ts +18 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/index.js +19 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +25 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +68 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/stream_events_emitter.d.ts +52 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/stream_events_emitter.js +232 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/types.d.ts +41 -0
- package/dist/commonjs/core/init/utils/stream_events_emitter/types.js +17 -0
- package/dist/commonjs/core/init/utils/throw_on_media_error.d.ts +23 -0
- package/dist/commonjs/core/init/utils/throw_on_media_error.js +61 -0
- package/dist/commonjs/core/segment_buffers/garbage_collector.d.ts +41 -0
- package/dist/commonjs/core/segment_buffers/garbage_collector.js +212 -0
- package/dist/commonjs/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.d.ts +182 -0
- package/dist/commonjs/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.js +457 -0
- package/dist/commonjs/core/segment_buffers/implementations/audio_video/index.d.ts +17 -0
- package/dist/commonjs/core/segment_buffers/implementations/audio_video/index.js +19 -0
- package/dist/commonjs/core/segment_buffers/implementations/index.d.ts +18 -0
- package/dist/commonjs/core/segment_buffers/implementations/index.js +35 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/html_text_segment_buffer.d.ts +141 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/html_text_segment_buffer.js +407 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/index.d.ts +21 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/index.js +23 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/parsers.d.ts +30 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/parsers.js +40 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/text_track_cues_store.d.ts +79 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/text_track_cues_store.js +342 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/types.d.ts +25 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/types.js +17 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/update_proportional_elements.d.ts +30 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/update_proportional_elements.js +80 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/utils.d.ts +44 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/html/utils.js +114 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/native/index.d.ts +17 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/native/index.js +19 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/native/native_text_segment_buffer.d.ts +83 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/native/native_text_segment_buffer.js +273 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/native/parsers.d.ts +26 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/native/parsers.js +40 -0
- package/dist/commonjs/core/segment_buffers/implementations/types.d.ts +320 -0
- package/dist/commonjs/core/segment_buffers/implementations/types.js +124 -0
- package/dist/commonjs/core/segment_buffers/implementations/utils/manual_time_ranges.d.ts +29 -0
- package/dist/commonjs/core/segment_buffers/implementations/utils/manual_time_ranges.js +67 -0
- package/dist/commonjs/core/segment_buffers/index.d.ts +21 -0
- package/dist/commonjs/core/segment_buffers/index.js +28 -0
- package/dist/commonjs/core/segment_buffers/inventory/buffered_history.d.ts +89 -0
- package/dist/commonjs/core/segment_buffers/inventory/buffered_history.js +114 -0
- package/dist/commonjs/core/segment_buffers/inventory/index.d.ts +21 -0
- package/dist/commonjs/core/segment_buffers/inventory/index.js +23 -0
- package/dist/commonjs/core/segment_buffers/inventory/segment_inventory.d.ts +207 -0
- package/dist/commonjs/core/segment_buffers/inventory/segment_inventory.js +866 -0
- package/dist/commonjs/core/segment_buffers/inventory/types.d.ts +27 -0
- package/dist/commonjs/core/segment_buffers/inventory/types.js +17 -0
- package/dist/{_esm5.processed → commonjs}/core/segment_buffers/inventory/utils.js +2 -2
- package/dist/commonjs/core/segment_buffers/segment_buffers_store.d.ts +180 -0
- package/dist/commonjs/core/segment_buffers/segment_buffers_store.js +302 -0
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.d.ts +33 -0
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.js +455 -0
- package/dist/commonjs/core/stream/adaptation/get_representations_switch_strategy.js +136 -0
- package/dist/commonjs/core/stream/adaptation/index.d.ts +18 -0
- package/dist/commonjs/core/stream/adaptation/index.js +34 -0
- package/dist/commonjs/core/stream/adaptation/types.d.ts +200 -0
- package/dist/commonjs/core/stream/adaptation/types.js +2 -0
- package/dist/commonjs/core/stream/index.d.ts +20 -0
- package/dist/commonjs/core/stream/index.js +19 -0
- package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.d.ts +30 -0
- package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.js +63 -0
- package/dist/commonjs/core/stream/orchestrator/index.d.ts +18 -0
- package/dist/commonjs/core/stream/orchestrator/index.js +19 -0
- package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.d.ts +174 -0
- package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.js +602 -0
- package/dist/commonjs/core/stream/period/index.d.ts +18 -0
- package/dist/commonjs/core/stream/period/index.js +34 -0
- package/dist/commonjs/core/stream/period/period_stream.d.ts +49 -0
- package/dist/commonjs/core/stream/period/period_stream.js +454 -0
- package/dist/commonjs/core/stream/period/types.d.ts +101 -0
- package/dist/commonjs/core/stream/period/types.js +2 -0
- package/dist/commonjs/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +68 -0
- package/dist/commonjs/core/stream/period/utils/get_adaptation_switch_strategy.js +165 -0
- package/dist/commonjs/core/stream/representation/index.d.ts +18 -0
- package/dist/commonjs/core/stream/representation/index.js +34 -0
- package/dist/commonjs/core/stream/representation/representation_stream.d.ts +53 -0
- package/dist/commonjs/core/stream/representation/representation_stream.js +399 -0
- package/dist/commonjs/core/stream/representation/types.d.ts +276 -0
- package/dist/commonjs/core/stream/representation/types.js +2 -0
- package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.d.ts +32 -0
- package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.js +117 -0
- package/dist/commonjs/core/stream/representation/utils/check_for_discontinuity.d.ts +53 -0
- package/dist/commonjs/core/stream/representation/utils/check_for_discontinuity.js +238 -0
- package/dist/commonjs/core/stream/representation/utils/downloading_queue.d.ts +231 -0
- package/dist/commonjs/core/stream/representation/utils/downloading_queue.js +390 -0
- package/dist/commonjs/core/stream/representation/utils/force_garbage_collection.d.ts +29 -0
- package/dist/commonjs/core/stream/representation/utils/force_garbage_collection.js +179 -0
- package/dist/commonjs/core/stream/representation/utils/get_buffer_status.d.ts +72 -0
- package/dist/commonjs/core/stream/representation/utils/get_buffer_status.js +231 -0
- package/dist/commonjs/core/stream/representation/utils/get_needed_segments.d.ts +92 -0
- package/dist/commonjs/core/stream/representation/utils/get_needed_segments.js +429 -0
- package/dist/commonjs/core/stream/representation/utils/get_segment_priority.d.ts +28 -0
- package/dist/commonjs/core/stream/representation/utils/get_segment_priority.js +41 -0
- package/dist/commonjs/core/stream/representation/utils/push_init_segment.d.ts +39 -0
- package/dist/commonjs/core/stream/representation/utils/push_init_segment.js +88 -0
- package/dist/commonjs/core/stream/representation/utils/push_media_segment.d.ts +40 -0
- package/dist/commonjs/core/stream/representation/utils/push_media_segment.js +111 -0
- package/dist/commonjs/default_config.d.ts +1081 -0
- package/dist/commonjs/default_config.js +1104 -0
- package/dist/commonjs/errors/assertion_error.d.ts +31 -0
- package/dist/commonjs/errors/assertion_error.js +56 -0
- package/dist/commonjs/errors/custom_loader_error.d.ts +36 -0
- package/dist/commonjs/errors/custom_loader_error.js +61 -0
- package/dist/commonjs/errors/encrypted_media_error.d.ts +39 -0
- package/dist/commonjs/errors/encrypted_media_error.js +59 -0
- package/dist/commonjs/errors/error_codes.d.ts +31 -0
- package/dist/commonjs/errors/error_codes.js +75 -0
- package/dist/commonjs/errors/error_message.d.ts +22 -0
- package/dist/commonjs/errors/error_message.js +27 -0
- package/dist/commonjs/errors/format_error.d.ts +20 -0
- package/dist/commonjs/errors/format_error.js +34 -0
- package/dist/commonjs/errors/index.d.ts +26 -0
- package/dist/commonjs/errors/index.js +40 -0
- package/dist/commonjs/errors/is_known_error.d.ts +22 -0
- package/dist/commonjs/errors/is_known_error.js +35 -0
- package/dist/commonjs/errors/media_error.d.ts +56 -0
- package/dist/commonjs/errors/media_error.js +76 -0
- package/dist/commonjs/errors/network_error.d.ts +44 -0
- package/dist/commonjs/errors/network_error.js +72 -0
- package/dist/commonjs/errors/other_error.d.ts +32 -0
- package/dist/commonjs/errors/other_error.js +58 -0
- package/dist/commonjs/errors/request_error.d.ts +38 -0
- package/dist/commonjs/errors/request_error.js +76 -0
- package/dist/commonjs/experimental/features/dash_wasm.d.ts +23 -0
- package/dist/commonjs/experimental/features/dash_wasm.js +37 -0
- package/dist/commonjs/experimental/features/debug_element.d.ts +8 -0
- package/dist/commonjs/experimental/features/debug_element.js +13 -0
- package/dist/commonjs/experimental/features/index.d.ts +19 -0
- package/dist/commonjs/experimental/features/index.js +26 -0
- package/dist/commonjs/experimental/features/local.d.ts +19 -0
- package/dist/commonjs/experimental/features/local.js +27 -0
- package/dist/commonjs/experimental/features/metaplaylist.d.ts +19 -0
- package/dist/commonjs/experimental/features/metaplaylist.js +27 -0
- package/dist/commonjs/experimental/index.d.ts +2 -0
- package/dist/commonjs/experimental/index.js +5 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/dash.d.ts +17 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/dash.js +23 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts +17 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/metaplaylist.js +23 -0
- package/{scripts/build/templates → dist/commonjs}/experimental/tools/VideoThumbnailLoader/index.d.ts +2 -2
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/index.js +22 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +26 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +64 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +25 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +66 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +30 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +44 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/types.d.ts +25 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/types.js +17 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts +54 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +379 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.d.ts +25 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.js +50 -0
- package/dist/commonjs/experimental/tools/createMetaplaylist/get_duration_from_manifest.d.ts +23 -0
- package/dist/commonjs/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +171 -0
- package/dist/commonjs/experimental/tools/createMetaplaylist/index.d.ts +30 -0
- package/dist/commonjs/experimental/tools/createMetaplaylist/index.js +52 -0
- package/dist/commonjs/experimental/tools/index.d.ts +20 -0
- package/dist/commonjs/experimental/tools/index.js +26 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/index.d.ts +60 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/index.js +160 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.d.ts +45 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.js +141 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/capabilities.d.ts +24 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/capabilities.js +145 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/index.d.ts +17 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/index.js +19 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/log.d.ts +18 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/log.js +20 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.d.ts +25 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.js +53 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts +22 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.js +72 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts +26 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +82 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.d.ts +29 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.js +101 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/index.d.ts +21 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/index.js +32 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts +21 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.js +60 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.d.ts +21 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.js +92 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.d.ts +26 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.js +87 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts +21 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +49 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/types.d.ts +69 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/types.js +24 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/utils.d.ts +31 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/utils.js +104 -0
- package/dist/commonjs/experimental/tools/parseBIFThumbnails/index.d.ts +29 -0
- package/dist/commonjs/experimental/tools/parseBIFThumbnails/index.js +32 -0
- package/dist/commonjs/features/add_features.d.ts +20 -0
- package/dist/commonjs/features/add_features.js +38 -0
- package/dist/commonjs/features/features_object.d.ts +22 -0
- package/dist/commonjs/features/features_object.js +33 -0
- package/dist/commonjs/features/index.d.ts +34 -0
- package/dist/commonjs/features/index.js +36 -0
- package/dist/commonjs/features/list/dash.d.ts +23 -0
- package/dist/commonjs/features/list/dash.js +35 -0
- package/dist/commonjs/features/list/directfile.d.ts +24 -0
- package/dist/commonjs/features/list/directfile.js +31 -0
- package/dist/commonjs/features/list/eme.d.ts +23 -0
- package/dist/commonjs/features/list/eme.js +28 -0
- package/dist/commonjs/features/list/html_sami_parser.d.ts +23 -0
- package/dist/commonjs/features/list/html_sami_parser.js +30 -0
- package/dist/commonjs/features/list/html_srt_parser.d.ts +23 -0
- package/dist/commonjs/features/list/html_srt_parser.js +30 -0
- package/dist/commonjs/features/list/html_text_buffer.d.ts +23 -0
- package/dist/commonjs/features/list/html_text_buffer.js +28 -0
- package/dist/commonjs/features/list/html_ttml_parser.d.ts +23 -0
- package/dist/commonjs/features/list/html_ttml_parser.js +30 -0
- package/dist/commonjs/features/list/html_vtt_parser.d.ts +23 -0
- package/dist/commonjs/features/list/html_vtt_parser.js +30 -0
- package/dist/commonjs/features/list/index.d.ts +29 -0
- package/dist/commonjs/features/list/index.js +46 -0
- package/dist/commonjs/features/list/native_sami_parser.d.ts +23 -0
- package/dist/commonjs/features/list/native_sami_parser.js +31 -0
- package/dist/commonjs/features/list/native_srt_parser.d.ts +23 -0
- package/dist/commonjs/features/list/native_srt_parser.js +31 -0
- package/dist/commonjs/features/list/native_text_buffer.d.ts +23 -0
- package/dist/commonjs/features/list/native_text_buffer.js +29 -0
- package/dist/commonjs/features/list/native_ttml_parser.d.ts +23 -0
- package/dist/commonjs/features/list/native_ttml_parser.js +31 -0
- package/dist/commonjs/features/list/native_vtt_parser.d.ts +23 -0
- package/dist/commonjs/features/list/native_vtt_parser.js +31 -0
- package/dist/commonjs/features/list/smooth.d.ts +23 -0
- package/dist/commonjs/features/list/smooth.js +31 -0
- package/dist/commonjs/features/types.d.ts +130 -0
- package/dist/commonjs/features/types.js +17 -0
- package/dist/{_esm5.processed → commonjs}/index.js +4 -4
- package/dist/commonjs/log.d.ts +18 -0
- package/dist/commonjs/log.js +21 -0
- package/dist/commonjs/manifest/adaptation.d.ts +113 -0
- package/dist/commonjs/manifest/adaptation.js +222 -0
- package/dist/commonjs/manifest/index.d.ts +24 -0
- package/dist/commonjs/manifest/index.js +47 -0
- package/dist/commonjs/manifest/manifest.d.ts +265 -0
- package/dist/commonjs/manifest/manifest.js +453 -0
- package/dist/commonjs/manifest/period.d.ts +68 -0
- package/dist/commonjs/manifest/period.js +140 -0
- package/dist/commonjs/manifest/representation.d.ts +251 -0
- package/dist/commonjs/manifest/representation.js +283 -0
- package/dist/commonjs/manifest/representation_index/index.d.ts +18 -0
- package/dist/commonjs/manifest/representation_index/index.js +20 -0
- package/dist/commonjs/manifest/representation_index/static.d.ts +101 -0
- package/dist/commonjs/manifest/representation_index/static.js +143 -0
- package/dist/commonjs/manifest/representation_index/types.d.ts +420 -0
- package/dist/commonjs/manifest/representation_index/types.js +17 -0
- package/dist/commonjs/manifest/types.d.ts +29 -0
- package/dist/commonjs/manifest/types.js +33 -0
- package/dist/commonjs/manifest/update_period_in_place.d.ts +49 -0
- package/dist/commonjs/manifest/update_period_in_place.js +168 -0
- package/dist/commonjs/manifest/update_periods.d.ts +47 -0
- package/dist/commonjs/manifest/update_periods.js +189 -0
- package/dist/commonjs/manifest/utils.d.ts +39 -0
- package/dist/commonjs/manifest/utils.js +47 -0
- package/dist/commonjs/minimal.d.ts +17 -0
- package/dist/commonjs/minimal.js +33 -0
- package/dist/commonjs/parsers/containers/isobmff/constants.d.ts +23 -0
- package/dist/commonjs/parsers/containers/isobmff/constants.js +26 -0
- package/dist/commonjs/parsers/containers/isobmff/create_box.d.ts +30 -0
- package/dist/commonjs/parsers/containers/isobmff/create_box.js +93 -0
- package/dist/commonjs/parsers/containers/isobmff/drm/index.d.ts +16 -0
- package/dist/commonjs/parsers/containers/isobmff/drm/index.js +20 -0
- package/dist/commonjs/parsers/containers/isobmff/drm/playready.d.ts +21 -0
- package/dist/commonjs/parsers/containers/isobmff/drm/playready.js +40 -0
- package/dist/commonjs/parsers/containers/isobmff/get_box.d.ts +107 -0
- package/dist/commonjs/parsers/containers/isobmff/get_box.js +258 -0
- package/dist/commonjs/parsers/containers/isobmff/index.d.ts +21 -0
- package/dist/commonjs/parsers/containers/isobmff/index.js +42 -0
- package/dist/commonjs/parsers/containers/isobmff/read.d.ts +57 -0
- package/dist/commonjs/parsers/containers/isobmff/read.js +95 -0
- package/dist/commonjs/parsers/containers/isobmff/take_pssh_out.d.ts +41 -0
- package/dist/commonjs/parsers/containers/isobmff/take_pssh_out.js +88 -0
- package/dist/commonjs/parsers/containers/isobmff/utils.d.ts +123 -0
- package/dist/commonjs/parsers/containers/isobmff/utils.js +491 -0
- package/dist/commonjs/parsers/containers/matroska/index.d.ts +16 -0
- package/dist/commonjs/parsers/containers/matroska/index.js +21 -0
- package/dist/commonjs/parsers/containers/matroska/utils.d.ts +34 -0
- package/dist/commonjs/parsers/containers/matroska/utils.js +257 -0
- package/dist/commonjs/parsers/images/bif.d.ts +39 -0
- package/dist/commonjs/parsers/images/bif.js +90 -0
- package/dist/commonjs/parsers/manifest/dash/common/attach_trickmode_track.d.ts +28 -0
- package/dist/commonjs/parsers/manifest/dash/common/attach_trickmode_track.js +98 -0
- package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts +43 -0
- package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.js +77 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_clock_offset.d.ts +29 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_clock_offset.js +41 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_hdr_information.d.ts +50 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_hdr_information.js +78 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_http_utc-timing_url.js +31 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts +25 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_minimum_and_maximum_positions.js +33 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_periods_time_infos.d.ts +43 -0
- package/dist/commonjs/parsers/manifest/dash/common/get_periods_time_infos.js +67 -0
- package/dist/commonjs/parsers/manifest/dash/common/index.d.ts +20 -0
- package/dist/commonjs/parsers/manifest/dash/common/index.js +25 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/base.d.ts +246 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/base.js +256 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_init_segment.d.ts +32 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_init_segment.js +43 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts +36 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_segments_from_timeline.js +97 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/index.d.ts +20 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/index.js +26 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/list.d.ts +193 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/list.js +216 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/template.d.ts +254 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/template.js +427 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +26 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +50 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +17 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +86 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts +37 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.js +59 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +41 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +130 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/index.d.ts +17 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/index.js +19 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts +34 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/parse_s_element.js +60 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +338 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +467 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/tokens.d.ts +40 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/tokens.js +115 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/utils.d.ts +25 -0
- package/dist/commonjs/parsers/manifest/dash/common/indexes/utils.js +32 -0
- package/dist/commonjs/parsers/manifest/dash/common/infer_adaptation_type.d.ts +42 -0
- package/dist/commonjs/parsers/manifest/dash/common/infer_adaptation_type.js +112 -0
- package/dist/commonjs/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts +92 -0
- package/dist/commonjs/parsers/manifest/dash/common/manifest_bounds_calculator.js +115 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.d.ts +49 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.js +430 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_availability_start_time.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_availability_start_time.js +32 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_mpd.d.ts +98 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_mpd.js +287 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.d.ts +67 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.js +329 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_representation_index.d.ts +73 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_representation_index.js +115 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_representations.d.ts +46 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_representations.js +305 -0
- package/dist/commonjs/parsers/manifest/dash/common/resolve_base_urls.d.ts +26 -0
- package/dist/commonjs/parsers/manifest/dash/common/resolve_base_urls.js +47 -0
- package/dist/commonjs/parsers/manifest/dash/index.d.ts +16 -0
- package/dist/commonjs/parsers/manifest/dash/index.js +23 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/index.d.ts +17 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/index.js +19 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +328 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/BaseURL.js +33 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.js +44 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.js +94 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/EventStream.js +113 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Initialization.js +42 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/MPD.js +164 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Period.js +132 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Representation.js +206 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.js +108 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentList.js +59 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.js +92 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.js +33 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.js +52 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts +187 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/utils.js +354 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/parse_from_document.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/parse_from_document.js +131 -0
- package/dist/commonjs/parsers/manifest/dash/node_parser_types.d.ts +393 -0
- package/dist/commonjs/parsers/manifest/dash/node_parser_types.js +17 -0
- package/dist/commonjs/parsers/manifest/dash/parsers_types.d.ts +83 -0
- package/dist/commonjs/parsers/manifest/dash/parsers_types.js +17 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/index.d.ts +18 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/index.js +19 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +111 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +396 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts +31 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +275 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.js +34 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.js +45 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +53 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts +32 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.js +117 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts +27 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +150 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts +32 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +135 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts +31 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +172 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.js +39 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts +18 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.js +97 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts +25 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.js +49 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts +18 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.js +112 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts +25 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.js +58 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts +28 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/XLink.js +51 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts +16 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/index.js +20 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts +27 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/root.js +49 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts +38 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/parsers_stack.js +59 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/types.d.ts +144 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/types.js +17 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/utils.d.ts +29 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/utils.js +40 -0
- package/dist/commonjs/parsers/manifest/index.d.ts +16 -0
- package/dist/commonjs/parsers/manifest/index.js +32 -0
- package/dist/commonjs/parsers/manifest/local/index.d.ts +18 -0
- package/dist/commonjs/parsers/manifest/local/index.js +19 -0
- package/dist/commonjs/parsers/manifest/local/parse_local_manifest.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/local/parse_local_manifest.js +129 -0
- package/dist/commonjs/parsers/manifest/local/representation_index.d.ts +83 -0
- package/dist/commonjs/parsers/manifest/local/representation_index.js +258 -0
- package/dist/commonjs/parsers/manifest/local/types.d.ts +285 -0
- package/dist/commonjs/parsers/manifest/local/types.js +17 -0
- package/dist/commonjs/parsers/manifest/metaplaylist/index.d.ts +18 -0
- package/dist/commonjs/parsers/manifest/metaplaylist/index.js +19 -0
- package/dist/commonjs/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts +64 -0
- package/dist/commonjs/parsers/manifest/metaplaylist/metaplaylist_parser.js +283 -0
- package/dist/commonjs/parsers/manifest/metaplaylist/representation_index.d.ts +154 -0
- package/dist/commonjs/parsers/manifest/metaplaylist/representation_index.js +227 -0
- package/dist/commonjs/parsers/manifest/smooth/create_parser.d.ts +33 -0
- package/dist/commonjs/parsers/manifest/smooth/create_parser.js +521 -0
- package/dist/commonjs/parsers/manifest/smooth/get_codecs.d.ts +26 -0
- package/dist/commonjs/parsers/manifest/smooth/get_codecs.js +55 -0
- package/dist/commonjs/parsers/manifest/smooth/index.d.ts +19 -0
- package/dist/commonjs/parsers/manifest/smooth/index.js +22 -0
- package/dist/commonjs/parsers/manifest/smooth/parse_C_nodes.d.ts +26 -0
- package/dist/commonjs/parsers/manifest/smooth/parse_C_nodes.js +63 -0
- package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.d.ts +29 -0
- package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.js +61 -0
- package/dist/commonjs/parsers/manifest/smooth/representation_index.d.ts +226 -0
- package/dist/commonjs/parsers/manifest/smooth/representation_index.js +385 -0
- package/dist/commonjs/parsers/manifest/smooth/shared_smooth_segment_timeline.js +162 -0
- package/dist/commonjs/parsers/manifest/smooth/utils/add_segment_infos.d.ts +38 -0
- package/dist/commonjs/parsers/manifest/smooth/utils/add_segment_infos.js +63 -0
- package/dist/commonjs/parsers/manifest/smooth/utils/parseBoolean.d.ts +20 -0
- package/dist/{_esm5.processed/utils/take_first_set.js → commonjs/parsers/manifest/smooth/utils/parseBoolean.js} +14 -12
- package/dist/commonjs/parsers/manifest/smooth/utils/reduceChildren.d.ts +23 -0
- package/dist/{_esm5.processed/utils/take_first_set.d.ts → commonjs/parsers/manifest/smooth/utils/reduceChildren.js} +16 -7
- package/dist/commonjs/parsers/manifest/smooth/utils/tokens.d.ts +28 -0
- package/dist/commonjs/parsers/manifest/smooth/utils/tokens.js +39 -0
- package/dist/commonjs/parsers/manifest/types.d.ts +378 -0
- package/dist/commonjs/parsers/manifest/types.js +17 -0
- package/dist/commonjs/parsers/manifest/utils/check_manifest_ids.d.ts +25 -0
- package/dist/commonjs/parsers/manifest/utils/check_manifest_ids.js +79 -0
- package/dist/commonjs/parsers/manifest/utils/clear_timeline_from_position.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/utils/clear_timeline_from_position.js +72 -0
- package/dist/commonjs/parsers/manifest/utils/get_first_time_from_adaptation.d.ts +27 -0
- package/dist/commonjs/parsers/manifest/utils/get_first_time_from_adaptation.js +46 -0
- package/dist/commonjs/parsers/manifest/utils/get_last_time_from_adaptation.d.ts +29 -0
- package/dist/commonjs/parsers/manifest/utils/get_last_time_from_adaptation.js +48 -0
- package/dist/commonjs/parsers/manifest/utils/get_maximum_positions.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/utils/get_maximum_positions.js +75 -0
- package/dist/commonjs/parsers/manifest/utils/get_minimum_position.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/utils/get_minimum_position.js +71 -0
- package/dist/commonjs/parsers/manifest/utils/index_helpers.d.ts +88 -0
- package/dist/commonjs/parsers/manifest/utils/index_helpers.js +156 -0
- package/dist/commonjs/parsers/manifest/utils/is_segment_still_available.d.ts +29 -0
- package/dist/commonjs/parsers/manifest/utils/is_segment_still_available.js +54 -0
- package/dist/commonjs/parsers/manifest/utils/update_segment_timeline.d.ts +33 -0
- package/dist/commonjs/parsers/manifest/utils/update_segment_timeline.js +157 -0
- package/dist/commonjs/parsers/texttracks/index.d.ts +16 -0
- package/dist/commonjs/parsers/texttracks/index.js +17 -0
- package/dist/commonjs/parsers/texttracks/sami/html.d.ts +29 -0
- package/dist/commonjs/parsers/texttracks/sami/html.js +207 -0
- package/dist/commonjs/parsers/texttracks/sami/native.d.ts +34 -0
- package/dist/commonjs/parsers/texttracks/sami/native.js +178 -0
- package/dist/commonjs/parsers/texttracks/srt/find_end_of_cue_block.d.ts +29 -0
- package/dist/commonjs/parsers/texttracks/srt/find_end_of_cue_block.js +42 -0
- package/dist/commonjs/parsers/texttracks/srt/get_cue_blocks.d.ts +22 -0
- package/dist/commonjs/parsers/texttracks/srt/get_cue_blocks.js +50 -0
- package/dist/commonjs/parsers/texttracks/srt/html.d.ts +26 -0
- package/dist/commonjs/parsers/texttracks/srt/html.js +156 -0
- package/dist/commonjs/parsers/texttracks/srt/native.d.ts +28 -0
- package/dist/commonjs/parsers/texttracks/srt/native.js +60 -0
- package/dist/commonjs/parsers/texttracks/srt/parse_cue.d.ts +30 -0
- package/dist/commonjs/parsers/texttracks/srt/parse_cue.js +79 -0
- package/dist/commonjs/parsers/texttracks/srt/parse_timestamp.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/srt/parse_timestamp.js +36 -0
- package/dist/commonjs/parsers/texttracks/ttml/get_parameters.d.ts +32 -0
- package/dist/commonjs/parsers/texttracks/ttml/get_parameters.js +87 -0
- package/dist/commonjs/parsers/texttracks/ttml/get_styling.d.ts +41 -0
- package/dist/commonjs/parsers/texttracks/ttml/get_styling.js +137 -0
- package/dist/commonjs/parsers/texttracks/ttml/get_time_delimiters.d.ts +26 -0
- package/dist/commonjs/parsers/texttracks/ttml/get_time_delimiters.js +44 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.d.ts +48 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.js +66 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_extent.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_extent.js +64 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_font_size.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_font_size.js +62 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_line_height.d.ts +20 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_line_height.js +47 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_origin.d.ts +20 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_origin.js +63 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_padding.d.ts +20 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_padding.js +142 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/create_element.d.ts +32 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/create_element.js +470 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/generate_css_test_outline.d.ts +26 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/generate_css_test_outline.js +44 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/index.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/index.js +23 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_cue.d.ts +26 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_cue.js +41 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts +34 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_ttml_to_div.js +53 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/ttml_color_to_css_color.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/ttml/html/ttml_color_to_css_color.js +60 -0
- package/dist/commonjs/parsers/texttracks/ttml/native/index.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/ttml/native/index.js +23 -0
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_cue.d.ts +30 -0
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_cue.js +205 -0
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_ttml_to_vtt.js +36 -0
- package/dist/commonjs/parsers/texttracks/ttml/parse_ttml.d.ts +43 -0
- package/dist/commonjs/parsers/texttracks/ttml/parse_ttml.js +175 -0
- package/dist/commonjs/parsers/texttracks/ttml/regexps.d.ts +28 -0
- package/dist/commonjs/parsers/texttracks/ttml/regexps.js +49 -0
- package/dist/commonjs/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts +49 -0
- package/dist/commonjs/parsers/texttracks/ttml/resolve_styles_inheritance.js +86 -0
- package/dist/commonjs/parsers/texttracks/ttml/time_parsing.d.ts +30 -0
- package/dist/commonjs/parsers/texttracks/ttml/time_parsing.js +126 -0
- package/dist/commonjs/parsers/texttracks/ttml/xml_utils.d.ts +70 -0
- package/dist/commonjs/parsers/texttracks/ttml/xml_utils.js +186 -0
- package/dist/commonjs/parsers/texttracks/types.d.ts +23 -0
- package/dist/commonjs/parsers/texttracks/types.js +17 -0
- package/dist/commonjs/parsers/texttracks/webvtt/get_cue_blocks.d.ts +24 -0
- package/dist/commonjs/parsers/texttracks/webvtt/get_cue_blocks.js +47 -0
- package/dist/commonjs/parsers/texttracks/webvtt/get_style_blocks.d.ts +24 -0
- package/dist/commonjs/parsers/texttracks/webvtt/get_style_blocks.js +54 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts +22 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/convert_payload_to_html.js +38 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_default_style_elements.d.ts +2 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_default_style_elements.js +25 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_style_attribute.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_style_attribute.js +178 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_styled_element.d.ts +25 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_styled_element.js +86 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/index.d.ts +22 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/index.js +23 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_style_block.d.ts +27 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_style_block.js +75 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_to_div.d.ts +31 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_to_div.js +58 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/to_html.d.ts +43 -0
- package/dist/commonjs/parsers/texttracks/webvtt/html/to_html.js +73 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/index.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/index.js +23 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_vtt_to_cues.d.ts +28 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_vtt_to_cues.js +61 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts +23 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/set_settings_on_cue.js +83 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/to_native_cue.d.ts +25 -0
- package/dist/commonjs/parsers/texttracks/webvtt/native/to_native_cue.js +28 -0
- package/dist/commonjs/parsers/texttracks/webvtt/parse_cue_block.d.ts +33 -0
- package/dist/commonjs/parsers/texttracks/webvtt/parse_cue_block.js +99 -0
- package/dist/commonjs/parsers/texttracks/webvtt/parse_timestamp.d.ts +21 -0
- package/dist/commonjs/parsers/texttracks/webvtt/parse_timestamp.js +37 -0
- package/dist/commonjs/parsers/texttracks/webvtt/utils.d.ts +56 -0
- package/dist/commonjs/parsers/texttracks/webvtt/utils.js +121 -0
- package/dist/commonjs/public_types.d.ts +825 -0
- package/dist/commonjs/public_types.js +17 -0
- package/dist/commonjs/tools/TextTrackRenderer/index.d.ts +22 -0
- package/dist/commonjs/tools/TextTrackRenderer/index.js +29 -0
- package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.d.ts +70 -0
- package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.js +81 -0
- package/dist/commonjs/tools/index.d.ts +18 -0
- package/dist/commonjs/tools/index.js +21 -0
- package/dist/commonjs/tools/string_utils/index.d.ts +16 -0
- package/dist/commonjs/tools/string_utils/index.js +25 -0
- package/dist/commonjs/transports/dash/add_segment_integrity_checks_to_loader.d.ts +24 -0
- package/dist/commonjs/transports/dash/add_segment_integrity_checks_to_loader.js +96 -0
- package/dist/commonjs/transports/dash/construct_segment_url.d.ts +18 -0
- package/{src/typings/globals.d.ts → dist/commonjs/transports/dash/construct_segment_url.js} +8 -20
- package/dist/commonjs/transports/dash/extract_complete_chunks.d.ts +24 -0
- package/dist/commonjs/transports/dash/extract_complete_chunks.js +62 -0
- package/dist/commonjs/transports/dash/get_events_out_of_emsgs.d.ts +28 -0
- package/dist/commonjs/transports/dash/get_events_out_of_emsgs.js +95 -0
- package/dist/commonjs/transports/dash/index.d.ts +21 -0
- package/dist/commonjs/transports/dash/index.js +23 -0
- package/dist/commonjs/transports/dash/init_segment_loader.d.ts +28 -0
- package/dist/commonjs/transports/dash/init_segment_loader.js +87 -0
- package/dist/commonjs/transports/dash/low_latency_segment_loader.d.ts +30 -0
- package/dist/commonjs/transports/dash/low_latency_segment_loader.js +67 -0
- package/dist/commonjs/transports/dash/manifest_parser.d.ts +18 -0
- package/dist/commonjs/transports/dash/manifest_parser.js +280 -0
- package/dist/commonjs/transports/dash/pipelines.d.ts +23 -0
- package/dist/commonjs/transports/dash/pipelines.js +58 -0
- package/dist/commonjs/transports/dash/segment_loader.d.ts +38 -0
- package/dist/commonjs/transports/dash/segment_loader.js +173 -0
- package/dist/commonjs/transports/dash/segment_parser.d.ts +23 -0
- package/dist/commonjs/transports/dash/segment_parser.js +127 -0
- package/dist/commonjs/transports/dash/text_loader.d.ts +25 -0
- package/dist/commonjs/transports/dash/text_loader.js +85 -0
- package/dist/commonjs/transports/dash/text_parser.d.ts +25 -0
- package/dist/commonjs/transports/dash/text_parser.js +167 -0
- package/dist/commonjs/transports/index.d.ts +16 -0
- package/dist/commonjs/transports/index.js +32 -0
- package/dist/commonjs/transports/local/index.d.ts +17 -0
- package/dist/commonjs/transports/local/index.js +19 -0
- package/dist/commonjs/transports/local/pipelines.d.ts +22 -0
- package/dist/commonjs/transports/local/pipelines.js +68 -0
- package/dist/commonjs/transports/local/segment_loader.d.ts +28 -0
- package/dist/commonjs/transports/local/segment_loader.js +147 -0
- package/dist/commonjs/transports/local/segment_parser.d.ts +20 -0
- package/dist/commonjs/transports/local/segment_parser.js +72 -0
- package/dist/commonjs/transports/local/text_parser.d.ts +27 -0
- package/dist/commonjs/transports/local/text_parser.js +134 -0
- package/dist/commonjs/transports/metaplaylist/index.d.ts +21 -0
- package/dist/commonjs/transports/metaplaylist/index.js +23 -0
- package/dist/commonjs/transports/metaplaylist/manifest_loader.d.ts +26 -0
- package/dist/commonjs/transports/metaplaylist/manifest_loader.js +44 -0
- package/dist/commonjs/transports/metaplaylist/pipelines.d.ts +17 -0
- package/dist/commonjs/transports/metaplaylist/pipelines.js +240 -0
- package/dist/commonjs/transports/smooth/extract_timings_infos.d.ts +62 -0
- package/dist/commonjs/transports/smooth/extract_timings_infos.js +81 -0
- package/dist/commonjs/transports/smooth/index.d.ts +21 -0
- package/dist/commonjs/transports/smooth/index.js +23 -0
- package/dist/commonjs/transports/smooth/isobmff/create_audio_init_segment.d.ts +29 -0
- package/dist/commonjs/transports/smooth/isobmff/create_audio_init_segment.js +55 -0
- package/dist/commonjs/transports/smooth/isobmff/create_boxes.d.ts +171 -0
- package/dist/commonjs/transports/smooth/isobmff/create_boxes.js +378 -0
- package/dist/commonjs/transports/smooth/isobmff/create_init_segment.d.ts +33 -0
- package/dist/commonjs/transports/smooth/isobmff/create_init_segment.js +68 -0
- package/dist/commonjs/transports/smooth/isobmff/create_traf_box.d.ts +16 -0
- package/dist/commonjs/transports/smooth/isobmff/create_traf_box.js +27 -0
- package/dist/commonjs/transports/smooth/isobmff/create_video_init_segment.d.ts +29 -0
- package/dist/commonjs/transports/smooth/isobmff/create_video_init_segment.js +76 -0
- package/dist/commonjs/transports/smooth/isobmff/get_aaces_header.d.ts +27 -0
- package/dist/commonjs/transports/smooth/isobmff/get_aaces_header.js +58 -0
- package/dist/commonjs/transports/smooth/isobmff/index.d.ts +21 -0
- package/dist/commonjs/transports/smooth/isobmff/index.js +28 -0
- package/dist/commonjs/transports/smooth/isobmff/parse_tfrf.d.ts +24 -0
- package/dist/commonjs/transports/smooth/isobmff/parse_tfrf.js +50 -0
- package/dist/commonjs/transports/smooth/isobmff/parse_tfxd.d.ts +24 -0
- package/dist/commonjs/transports/smooth/isobmff/parse_tfxd.js +34 -0
- package/dist/commonjs/transports/smooth/isobmff/patch_segment.d.ts +23 -0
- package/dist/commonjs/transports/smooth/isobmff/patch_segment.js +130 -0
- package/dist/commonjs/transports/smooth/pipelines.d.ts +17 -0
- package/dist/commonjs/transports/smooth/pipelines.js +287 -0
- package/dist/commonjs/transports/smooth/segment_loader.d.ts +27 -0
- package/dist/commonjs/transports/smooth/segment_loader.js +206 -0
- package/dist/commonjs/transports/smooth/utils.d.ts +26 -0
- package/dist/commonjs/transports/smooth/utils.js +36 -0
- package/dist/commonjs/transports/types.d.ts +701 -0
- package/dist/commonjs/transports/types.js +17 -0
- package/dist/commonjs/transports/utils/byte_range.d.ts +21 -0
- package/dist/commonjs/transports/utils/byte_range.js +44 -0
- package/dist/commonjs/transports/utils/call_custom_manifest_loader.d.ts +19 -0
- package/dist/commonjs/transports/utils/call_custom_manifest_loader.js +95 -0
- package/dist/commonjs/transports/utils/check_isobmff_integrity.d.ts +23 -0
- package/dist/commonjs/transports/utils/check_isobmff_integrity.js +49 -0
- package/dist/commonjs/transports/utils/find_complete_box.d.ts +25 -0
- package/dist/commonjs/transports/utils/find_complete_box.js +56 -0
- package/dist/commonjs/transports/utils/generate_manifest_loader.d.ts +26 -0
- package/dist/commonjs/transports/utils/generate_manifest_loader.js +62 -0
- package/dist/commonjs/transports/utils/get_isobmff_timing_infos.d.ts +29 -0
- package/dist/commonjs/transports/utils/get_isobmff_timing_infos.js +69 -0
- package/dist/commonjs/transports/utils/infer_segment_container.d.ts +29 -0
- package/dist/commonjs/transports/utils/infer_segment_container.js +47 -0
- package/dist/commonjs/transports/utils/parse_text_track.d.ts +56 -0
- package/dist/commonjs/transports/utils/parse_text_track.js +142 -0
- package/dist/commonjs/utils/are_arrays_of_numbers_equal.d.ts +22 -0
- package/dist/commonjs/utils/are_arrays_of_numbers_equal.js +38 -0
- package/dist/commonjs/utils/are_codecs_compatible.d.ts +25 -0
- package/dist/commonjs/utils/are_codecs_compatible.js +62 -0
- package/dist/commonjs/utils/array_find.d.ts +23 -0
- package/dist/commonjs/utils/array_find.js +38 -0
- package/dist/commonjs/utils/array_find_index.d.ts +23 -0
- package/dist/commonjs/utils/array_find_index.js +37 -0
- package/dist/commonjs/utils/array_includes.d.ts +53 -0
- package/dist/commonjs/utils/array_includes.js +86 -0
- package/dist/commonjs/utils/assert.d.ts +34 -0
- package/dist/commonjs/utils/assert.js +57 -0
- package/dist/commonjs/utils/assert_unreachable.d.ts +40 -0
- package/dist/commonjs/utils/assert_unreachable.js +46 -0
- package/dist/commonjs/utils/base64.d.ts +14 -0
- package/dist/commonjs/utils/base64.js +152 -0
- package/dist/commonjs/utils/byte_parsing.d.ts +123 -0
- package/dist/commonjs/utils/byte_parsing.js +248 -0
- package/dist/commonjs/utils/cancellable_sleep.d.ts +30 -0
- package/dist/commonjs/utils/cancellable_sleep.js +38 -0
- package/dist/commonjs/utils/create_cancellable_promise.d.ts +26 -0
- package/dist/commonjs/utils/create_cancellable_promise.js +55 -0
- package/dist/commonjs/utils/deep_merge.d.ts +9 -0
- package/dist/commonjs/utils/deep_merge.js +73 -0
- package/dist/commonjs/utils/event_emitter.d.ts +62 -0
- package/dist/commonjs/utils/event_emitter.js +105 -0
- package/dist/commonjs/utils/flat_map.d.ts +22 -0
- package/dist/commonjs/utils/flat_map.js +65 -0
- package/dist/commonjs/utils/get_fuzzed_delay.d.ts +21 -0
- package/dist/commonjs/utils/get_fuzzed_delay.js +28 -0
- package/dist/commonjs/utils/hash_buffer.d.ts +32 -0
- package/dist/commonjs/utils/hash_buffer.js +44 -0
- package/dist/commonjs/utils/id_generator.d.ts +21 -0
- package/dist/commonjs/utils/id_generator.js +36 -0
- package/dist/commonjs/utils/initialization_segment_cache.d.ts +42 -0
- package/dist/commonjs/utils/initialization_segment_cache.js +53 -0
- package/dist/commonjs/utils/is_non_empty_string.d.ts +20 -0
- package/dist/commonjs/utils/is_non_empty_string.js +25 -0
- package/dist/commonjs/utils/is_null_or_undefined.d.ts +24 -0
- package/dist/commonjs/utils/is_null_or_undefined.js +29 -0
- package/dist/commonjs/utils/languages/ISO_639-1_to_ISO_639-3.d.ts +22 -0
- package/dist/commonjs/utils/languages/ISO_639-1_to_ISO_639-3.js +207 -0
- package/dist/commonjs/utils/languages/ISO_639-2_to_ISO_639-3.d.ts +22 -0
- package/dist/commonjs/utils/languages/ISO_639-2_to_ISO_639-3.js +43 -0
- package/dist/commonjs/utils/languages/index.d.ts +18 -0
- package/dist/commonjs/utils/languages/index.js +22 -0
- package/dist/commonjs/utils/languages/normalize.d.ts +68 -0
- package/dist/commonjs/utils/languages/normalize.js +121 -0
- package/dist/commonjs/utils/logger.d.ts +46 -0
- package/dist/commonjs/utils/logger.js +81 -0
- package/dist/commonjs/utils/noop.d.ts +23 -0
- package/dist/commonjs/utils/noop.js +28 -0
- package/dist/commonjs/utils/object_assign.d.ts +22 -0
- package/dist/commonjs/utils/object_assign.js +46 -0
- package/dist/commonjs/utils/object_values.d.ts +30 -0
- package/dist/commonjs/utils/object_values.js +29 -0
- package/dist/commonjs/utils/ranges.d.ts +212 -0
- package/dist/commonjs/utils/ranges.js +527 -0
- package/dist/commonjs/utils/reference.d.ts +214 -0
- package/dist/commonjs/utils/reference.js +339 -0
- package/dist/commonjs/utils/request/fetch.d.ts +76 -0
- package/dist/commonjs/utils/request/fetch.js +188 -0
- package/dist/commonjs/utils/request/index.d.ts +19 -0
- package/dist/commonjs/utils/request/index.js +24 -0
- package/dist/commonjs/utils/request/xhr.d.ts +95 -0
- package/dist/commonjs/utils/request/xhr.js +156 -0
- package/dist/commonjs/utils/resolve_url.d.ts +35 -0
- package/dist/commonjs/utils/resolve_url.js +121 -0
- package/dist/commonjs/utils/retry_promise_with_backoff.d.ts +46 -0
- package/dist/commonjs/utils/retry_promise_with_backoff.js +122 -0
- package/dist/commonjs/utils/sleep.d.ts +10 -0
- package/dist/commonjs/utils/sleep.js +17 -0
- package/dist/commonjs/utils/slice_uint8array.d.ts +27 -0
- package/dist/commonjs/utils/slice_uint8array.js +44 -0
- package/dist/commonjs/utils/sorted_list.d.ts +127 -0
- package/dist/commonjs/utils/sorted_list.js +185 -0
- package/dist/commonjs/utils/starts_with.d.ts +26 -0
- package/dist/commonjs/utils/starts_with.js +39 -0
- package/dist/commonjs/utils/string_parsing.d.ts +88 -0
- package/dist/commonjs/utils/string_parsing.js +385 -0
- package/dist/commonjs/utils/task_canceller.d.ts +263 -0
- package/dist/commonjs/utils/task_canceller.js +344 -0
- package/dist/commonjs/utils/warn_once.d.ts +23 -0
- package/dist/commonjs/utils/warn_once.js +34 -0
- package/dist/commonjs/utils/weak_map_memory.d.ts +70 -0
- package/dist/commonjs/utils/weak_map_memory.js +88 -0
- package/dist/commonjs/utils/wrapInPromise.d.ts +7 -0
- package/dist/commonjs/utils/wrapInPromise.js +25 -0
- package/dist/es2017/compat/add_class_name.d.ts +22 -0
- package/dist/es2017/compat/add_class_name.js +39 -0
- package/dist/es2017/compat/add_text_track.d.ts +31 -0
- package/dist/es2017/compat/add_text_track.js +47 -0
- package/dist/es2017/compat/browser_compatibility_types.d.ts +164 -0
- package/dist/es2017/compat/browser_compatibility_types.js +33 -0
- package/dist/es2017/compat/browser_detection.d.ts +42 -0
- package/dist/es2017/compat/browser_detection.js +104 -0
- package/dist/es2017/compat/browser_version.d.ts +24 -0
- package/dist/es2017/compat/browser_version.js +41 -0
- package/dist/es2017/compat/can_patch_isobmff.d.ts +25 -0
- package/dist/es2017/compat/can_patch_isobmff.js +28 -0
- package/dist/es2017/compat/can_rely_on_video_visibility_and_size.d.ts +37 -0
- package/dist/es2017/compat/can_rely_on_video_visibility_and_size.js +49 -0
- package/dist/es2017/compat/can_reuse_media_keys.d.ts +13 -0
- package/dist/es2017/compat/can_reuse_media_keys.js +16 -0
- package/dist/es2017/compat/change_source_buffer_type.d.ts +48 -0
- package/dist/es2017/compat/change_source_buffer_type.js +37 -0
- package/dist/es2017/compat/clear_element_src.d.ts +20 -0
- package/dist/es2017/compat/clear_element_src.js +53 -0
- package/dist/es2017/compat/eme/close_session.d.ts +30 -0
- package/dist/es2017/compat/eme/close_session.js +98 -0
- package/dist/es2017/compat/eme/constants.d.ts +16 -0
- package/dist/es2017/compat/eme/constants.js +19 -0
- package/dist/es2017/compat/eme/custom_key_system_access.d.ts +54 -0
- package/dist/es2017/compat/eme/custom_key_system_access.js +40 -0
- package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.d.ts +31 -0
- package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.js +142 -0
- package/dist/es2017/compat/eme/custom_media_keys/index.d.ts +7 -0
- package/dist/es2017/compat/eme/custom_media_keys/index.js +6 -0
- package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +27 -0
- package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.js +61 -0
- package/dist/es2017/compat/eme/custom_media_keys/ms_media_keys_constructor.d.ts +43 -0
- package/dist/es2017/compat/eme/custom_media_keys/ms_media_keys_constructor.js +28 -0
- package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +41 -0
- package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.js +169 -0
- package/dist/es2017/compat/eme/custom_media_keys/types.d.ts +43 -0
- package/dist/es2017/compat/eme/custom_media_keys/types.js +16 -0
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.d.ts +37 -0
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.js +231 -0
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts +22 -0
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +30 -0
- package/dist/es2017/compat/eme/eme-api-implementation.d.ts +78 -0
- package/dist/es2017/compat/eme/eme-api-implementation.js +196 -0
- package/dist/es2017/compat/eme/generate_key_request.d.ts +54 -0
- package/dist/es2017/compat/eme/generate_key_request.js +147 -0
- package/dist/es2017/compat/eme/get_init_data.d.ts +57 -0
- package/dist/es2017/compat/eme/get_init_data.js +112 -0
- package/dist/es2017/compat/eme/get_uuid_kid_from_keystatus_kid.d.ts +23 -0
- package/dist/es2017/compat/eme/get_uuid_kid_from_keystatus_kid.js +31 -0
- package/dist/es2017/compat/eme/get_webkit_fairplay_initdata.d.ts +25 -0
- package/dist/es2017/compat/eme/get_webkit_fairplay_initdata.js +57 -0
- package/dist/es2017/compat/eme/index.d.ts +24 -0
- package/dist/es2017/compat/eme/index.js +22 -0
- package/dist/es2017/compat/eme/load_session.d.ts +30 -0
- package/dist/es2017/compat/eme/load_session.js +53 -0
- package/dist/es2017/compat/enable_audio_track.d.ts +11 -0
- package/dist/es2017/compat/enable_audio_track.js +26 -0
- package/dist/es2017/compat/event_listeners.d.ts +173 -0
- package/dist/es2017/compat/event_listeners.js +428 -0
- package/dist/es2017/compat/get_start_date.d.ts +30 -0
- package/dist/es2017/compat/get_start_date.js +44 -0
- package/dist/es2017/compat/global_scope.d.ts +9 -0
- package/dist/es2017/compat/global_scope.js +13 -0
- package/dist/es2017/compat/has_issues_with_high_media_source_duration.d.ts +21 -0
- package/dist/es2017/compat/has_issues_with_high_media_source_duration.js +26 -0
- package/dist/es2017/compat/index.d.ts +37 -0
- package/dist/es2017/compat/index.js +43 -0
- package/dist/es2017/compat/is_codec_supported.d.ts +25 -0
- package/dist/es2017/compat/is_codec_supported.js +36 -0
- package/dist/es2017/compat/is_debug_mode_enabled.d.ts +7 -0
- package/dist/es2017/compat/is_debug_mode_enabled.js +9 -0
- package/dist/es2017/compat/is_node.d.ts +18 -0
- package/dist/es2017/compat/is_node.js +19 -0
- package/dist/es2017/compat/is_seeking_approximate.d.ts +28 -0
- package/dist/es2017/compat/is_seeking_approximate.js +29 -0
- package/dist/es2017/compat/is_vtt_cue.d.ts +22 -0
- package/dist/es2017/compat/is_vtt_cue.js +26 -0
- package/dist/es2017/compat/is_worker.d.ts +5 -0
- package/dist/es2017/compat/is_worker.js +5 -0
- package/dist/es2017/compat/make_vtt_cue.d.ts +26 -0
- package/dist/es2017/compat/make_vtt_cue.js +44 -0
- package/dist/es2017/compat/on_height_width_change.d.ts +33 -0
- package/dist/es2017/compat/on_height_width_change.js +72 -0
- package/dist/es2017/compat/patch_webkit_source_buffer.d.ts +16 -0
- package/dist/es2017/compat/patch_webkit_source_buffer.js +74 -0
- package/dist/es2017/compat/remove_cue.d.ts +21 -0
- package/dist/es2017/compat/remove_cue.js +63 -0
- package/dist/es2017/compat/should_favour_custom_safari_EME.d.ts +23 -0
- package/dist/es2017/compat/should_favour_custom_safari_EME.js +27 -0
- package/dist/es2017/compat/should_reload_media_source_on_decipherability_update.d.ts +26 -0
- package/dist/es2017/compat/should_reload_media_source_on_decipherability_update.js +29 -0
- package/dist/es2017/compat/should_renew_media_key_system_access.d.ts +21 -0
- package/dist/es2017/compat/should_renew_media_key_system_access.js +24 -0
- package/dist/es2017/compat/should_unset_media_keys.d.ts +22 -0
- package/dist/es2017/compat/should_unset_media_keys.js +25 -0
- package/dist/es2017/compat/should_validate_metadata.d.ts +22 -0
- package/{scripts/build/constants.d.ts → dist/es2017/compat/should_validate_metadata.js} +9 -15
- package/dist/es2017/compat/should_wait_for_data_before_loaded.d.ts +24 -0
- package/dist/es2017/compat/should_wait_for_data_before_loaded.js +30 -0
- package/dist/es2017/compat/should_wait_for_have_enough_data.d.ts +13 -0
- package/dist/es2017/compat/should_wait_for_have_enough_data.js +16 -0
- package/dist/es2017/config.d.ts +179 -0
- package/dist/es2017/config.js +31 -0
- package/dist/es2017/core/adaptive/adaptive_representation_selector.d.ts +306 -0
- package/dist/es2017/core/adaptive/adaptive_representation_selector.js +386 -0
- package/dist/es2017/core/adaptive/buffer_based_chooser.d.ts +89 -0
- package/dist/es2017/core/adaptive/buffer_based_chooser.js +191 -0
- package/dist/es2017/core/adaptive/guess_based_chooser.d.ts +95 -0
- package/dist/es2017/core/adaptive/guess_based_chooser.js +233 -0
- package/dist/es2017/core/adaptive/index.d.ts +18 -0
- package/dist/es2017/core/adaptive/index.js +17 -0
- package/dist/es2017/core/adaptive/network_analyzer.d.ts +73 -0
- package/dist/es2017/core/adaptive/network_analyzer.js +333 -0
- package/dist/es2017/core/adaptive/utils/bandwidth_estimator.d.ts +47 -0
- package/dist/es2017/core/adaptive/utils/bandwidth_estimator.js +68 -0
- package/dist/es2017/core/adaptive/utils/ewma.d.ts +39 -0
- package/dist/es2017/core/adaptive/utils/ewma.js +50 -0
- package/dist/es2017/core/adaptive/utils/filter_by_bitrate.d.ts +25 -0
- package/dist/es2017/core/adaptive/utils/filter_by_bitrate.js +37 -0
- package/dist/es2017/core/adaptive/utils/filter_by_resolution.d.ts +31 -0
- package/dist/{_esm5.processed → es2017}/core/adaptive/utils/filter_by_resolution.js +4 -9
- package/dist/es2017/core/adaptive/utils/get_buffer_levels.d.ts +24 -0
- package/dist/es2017/core/adaptive/utils/get_buffer_levels.js +47 -0
- package/dist/es2017/core/adaptive/utils/last_estimate_storage.d.ts +61 -0
- package/dist/es2017/core/adaptive/utils/last_estimate_storage.js +35 -0
- package/dist/es2017/core/adaptive/utils/pending_requests_store.d.ts +110 -0
- package/dist/es2017/core/adaptive/utils/pending_requests_store.js +76 -0
- package/dist/es2017/core/adaptive/utils/representation_score_calculator.d.ts +104 -0
- package/dist/es2017/core/adaptive/utils/representation_score_calculator.js +113 -0
- package/dist/es2017/core/adaptive/utils/select_optimal_representation.d.ts +27 -0
- package/dist/es2017/core/adaptive/utils/select_optimal_representation.js +36 -0
- package/dist/es2017/core/api/debug/buffer_graph.d.ts +28 -0
- package/dist/es2017/core/api/debug/buffer_graph.js +173 -0
- package/dist/es2017/core/api/debug/buffer_size_graph.d.ts +10 -0
- package/dist/es2017/core/api/debug/buffer_size_graph.js +103 -0
- package/dist/es2017/core/api/debug/constants.d.ts +2 -0
- package/dist/es2017/core/api/debug/constants.js +2 -0
- package/dist/es2017/core/api/debug/index.d.ts +2 -0
- package/dist/es2017/core/api/debug/index.js +2 -0
- package/dist/es2017/core/api/debug/modules/general_info.d.ts +3 -0
- package/dist/es2017/core/api/debug/modules/general_info.js +169 -0
- package/dist/es2017/core/api/debug/modules/segment_buffer_content.d.ts +4 -0
- package/dist/es2017/core/api/debug/modules/segment_buffer_content.js +121 -0
- package/dist/es2017/core/api/debug/modules/segment_buffer_size.d.ts +3 -0
- package/dist/es2017/core/api/debug/modules/segment_buffer_size.js +35 -0
- package/dist/es2017/core/api/debug/render.d.ts +3 -0
- package/dist/es2017/core/api/debug/render.js +32 -0
- package/dist/es2017/core/api/debug/utils.d.ts +39 -0
- package/dist/es2017/core/api/debug/utils.js +54 -0
- package/dist/es2017/core/api/index.d.ts +20 -0
- package/dist/es2017/core/api/index.js +19 -0
- package/dist/es2017/core/api/option_utils.d.ts +119 -0
- package/dist/es2017/core/api/option_utils.js +299 -0
- package/dist/es2017/core/api/playback_observer.d.ts +370 -0
- package/dist/es2017/core/api/playback_observer.js +591 -0
- package/dist/es2017/core/api/public_api.d.ts +718 -0
- package/dist/es2017/core/api/public_api.js +2101 -0
- package/dist/es2017/core/api/track_management/index.d.ts +18 -0
- package/dist/es2017/core/api/track_management/index.js +18 -0
- package/dist/es2017/core/api/track_management/media_element_tracks_store.d.ts +197 -0
- package/dist/{_esm5.processed → es2017}/core/api/track_management/media_element_tracks_store.js +11 -14
- package/dist/es2017/core/api/track_management/track_dispatcher.d.ts +96 -0
- package/dist/{_esm5.processed → es2017}/core/api/track_management/track_dispatcher.js +8 -11
- package/dist/es2017/core/api/track_management/tracks_store.d.ts +429 -0
- package/dist/{_esm5.processed → es2017}/core/api/track_management/tracks_store.js +50 -53
- package/dist/es2017/core/api/utils.d.ts +66 -0
- package/dist/es2017/core/api/utils.js +167 -0
- package/dist/es2017/core/decrypt/__tests__/__global__/utils.d.ts +178 -0
- package/dist/es2017/core/decrypt/__tests__/__global__/utils.js +363 -0
- package/dist/es2017/core/decrypt/attach_media_keys.d.ts +52 -0
- package/dist/es2017/core/decrypt/attach_media_keys.js +71 -0
- package/dist/es2017/core/decrypt/clear_on_stop.d.ts +22 -0
- package/dist/es2017/core/decrypt/clear_on_stop.js +40 -0
- package/dist/es2017/core/decrypt/content_decryptor.d.ts +184 -0
- package/dist/es2017/core/decrypt/content_decryptor.js +846 -0
- package/dist/es2017/core/decrypt/create_or_load_session.d.ts +63 -0
- package/dist/es2017/core/decrypt/create_or_load_session.js +75 -0
- package/dist/es2017/core/decrypt/create_session.d.ts +53 -0
- package/dist/es2017/core/decrypt/create_session.js +150 -0
- package/dist/es2017/core/decrypt/dispose_decryption_resources.d.ts +21 -0
- package/dist/es2017/core/decrypt/dispose_decryption_resources.js +42 -0
- package/dist/es2017/core/decrypt/find_key_system.d.ts +48 -0
- package/dist/es2017/core/decrypt/find_key_system.js +281 -0
- package/dist/es2017/core/decrypt/get_key_system_configuration.d.ts +22 -0
- package/dist/es2017/core/decrypt/get_key_system_configuration.js +32 -0
- package/dist/es2017/core/decrypt/get_media_keys.d.ts +44 -0
- package/dist/es2017/core/decrypt/get_media_keys.js +104 -0
- package/dist/es2017/core/decrypt/index.d.ts +26 -0
- package/dist/es2017/core/decrypt/index.js +26 -0
- package/dist/es2017/core/decrypt/init_media_keys.d.ts +26 -0
- package/dist/es2017/core/decrypt/init_media_keys.js +37 -0
- package/dist/es2017/core/decrypt/session_events_listener.d.ts +75 -0
- package/dist/es2017/core/decrypt/session_events_listener.js +249 -0
- package/dist/es2017/core/decrypt/set_server_certificate.d.ts +51 -0
- package/dist/es2017/core/decrypt/set_server_certificate.js +83 -0
- package/dist/es2017/core/decrypt/types.d.ts +368 -0
- package/dist/es2017/core/decrypt/types.js +55 -0
- package/dist/es2017/core/decrypt/utils/are_init_values_compatible.d.ts +34 -0
- package/dist/es2017/core/decrypt/utils/are_init_values_compatible.js +113 -0
- package/dist/es2017/core/decrypt/utils/check_key_statuses.d.ts +52 -0
- package/dist/es2017/core/decrypt/utils/check_key_statuses.js +165 -0
- package/dist/es2017/core/decrypt/utils/clean_old_loaded_sessions.d.ts +26 -0
- package/dist/es2017/core/decrypt/utils/clean_old_loaded_sessions.js +39 -0
- package/dist/es2017/core/decrypt/utils/clean_old_stored_persistent_info.d.ts +32 -0
- package/dist/es2017/core/decrypt/utils/clean_old_stored_persistent_info.js +40 -0
- package/dist/es2017/core/decrypt/utils/get_drm_system_id.d.ts +20 -0
- package/dist/es2017/core/decrypt/utils/get_drm_system_id.js +37 -0
- package/dist/es2017/core/decrypt/utils/init_data_values_container.d.ts +69 -0
- package/dist/es2017/core/decrypt/utils/init_data_values_container.js +96 -0
- package/dist/es2017/core/decrypt/utils/is_session_usable.d.ts +24 -0
- package/dist/es2017/core/decrypt/utils/is_session_usable.js +49 -0
- package/dist/es2017/core/decrypt/utils/key_id_comparison.d.ts +31 -0
- package/dist/es2017/core/decrypt/utils/key_id_comparison.js +48 -0
- package/dist/es2017/core/decrypt/utils/key_session_record.d.ts +104 -0
- package/dist/es2017/core/decrypt/utils/key_session_record.js +153 -0
- package/dist/es2017/core/decrypt/utils/loaded_sessions_store.d.ts +215 -0
- package/dist/es2017/core/decrypt/utils/loaded_sessions_store.js +365 -0
- package/dist/es2017/core/decrypt/utils/media_keys_infos_store.d.ts +56 -0
- package/dist/es2017/core/decrypt/utils/media_keys_infos_store.js +44 -0
- package/dist/es2017/core/decrypt/utils/persistent_sessions_store.d.ts +94 -0
- package/dist/es2017/core/decrypt/utils/persistent_sessions_store.js +321 -0
- package/dist/es2017/core/decrypt/utils/serializable_bytes.d.ts +44 -0
- package/dist/es2017/core/decrypt/utils/serializable_bytes.js +46 -0
- package/dist/es2017/core/decrypt/utils/server_certificate_store.d.ts +64 -0
- package/dist/es2017/core/decrypt/utils/server_certificate_store.js +112 -0
- package/dist/es2017/core/fetchers/cdn_prioritizer.d.ts +107 -0
- package/dist/es2017/core/fetchers/cdn_prioritizer.js +155 -0
- package/dist/es2017/core/fetchers/index.d.ts +18 -0
- package/dist/es2017/core/fetchers/index.js +18 -0
- package/dist/es2017/core/fetchers/manifest/index.d.ts +18 -0
- package/dist/es2017/core/fetchers/manifest/index.js +17 -0
- package/dist/es2017/core/fetchers/manifest/manifest_fetcher.d.ts +221 -0
- package/dist/es2017/core/fetchers/manifest/manifest_fetcher.js +523 -0
- package/dist/es2017/core/fetchers/segment/index.d.ts +19 -0
- package/dist/es2017/core/fetchers/segment/index.js +17 -0
- package/dist/es2017/core/fetchers/segment/prioritized_segment_fetcher.d.ts +38 -0
- package/dist/es2017/core/fetchers/segment/prioritized_segment_fetcher.js +67 -0
- package/dist/es2017/core/fetchers/segment/segment_fetcher.d.ts +148 -0
- package/dist/es2017/core/fetchers/segment/segment_fetcher.js +295 -0
- package/dist/es2017/core/fetchers/segment/segment_fetcher_creator.d.ts +77 -0
- package/dist/es2017/core/fetchers/segment/segment_fetcher_creator.js +56 -0
- package/dist/es2017/core/fetchers/segment/task_prioritizer.d.ts +145 -0
- package/dist/es2017/core/fetchers/segment/task_prioritizer.js +319 -0
- package/dist/es2017/core/fetchers/utils/error_selector.d.ts +23 -0
- package/dist/es2017/core/fetchers/utils/error_selector.js +31 -0
- package/dist/es2017/core/fetchers/utils/schedule_request.d.ts +98 -0
- package/dist/es2017/core/fetchers/utils/schedule_request.js +332 -0
- package/dist/es2017/core/init/directfile_content_initializer.d.ts +97 -0
- package/dist/es2017/core/init/directfile_content_initializer.js +210 -0
- package/dist/es2017/core/init/index.d.ts +16 -0
- package/dist/es2017/core/init/index.js +16 -0
- package/dist/es2017/core/init/media_source_content_initializer.d.ts +174 -0
- package/dist/es2017/core/init/media_source_content_initializer.js +565 -0
- package/dist/es2017/core/init/types.d.ts +217 -0
- package/dist/es2017/core/init/types.js +30 -0
- package/dist/es2017/core/init/utils/content_time_boundaries_observer.d.ts +191 -0
- package/dist/es2017/core/init/utils/content_time_boundaries_observer.js +468 -0
- package/dist/es2017/core/init/utils/create_media_source.d.ts +37 -0
- package/dist/es2017/core/init/utils/create_media_source.js +112 -0
- package/dist/es2017/core/init/utils/create_stream_playback_observer.d.ts +45 -0
- package/dist/es2017/core/init/utils/create_stream_playback_observer.js +85 -0
- package/dist/es2017/core/init/utils/end_of_stream.d.ts +33 -0
- package/dist/es2017/core/init/utils/end_of_stream.js +88 -0
- package/dist/es2017/core/init/utils/get_initial_time.d.ts +62 -0
- package/dist/es2017/core/init/utils/get_initial_time.js +110 -0
- package/dist/es2017/core/init/utils/get_loaded_reference.d.ts +28 -0
- package/dist/es2017/core/init/utils/get_loaded_reference.js +56 -0
- package/dist/es2017/core/init/utils/initial_seek_and_play.d.ts +63 -0
- package/dist/es2017/core/init/utils/initial_seek_and_play.js +128 -0
- package/dist/es2017/core/init/utils/initialize_content_decryption.d.ts +80 -0
- package/dist/es2017/core/init/utils/initialize_content_decryption.js +104 -0
- package/dist/es2017/core/init/utils/media_source_duration_updater.d.ts +58 -0
- package/dist/es2017/core/init/utils/media_source_duration_updater.js +263 -0
- package/dist/es2017/core/init/utils/rebuffering_controller.d.ts +147 -0
- package/dist/es2017/core/init/utils/rebuffering_controller.js +541 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/are_same_stream_events.d.ts +39 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/are_same_stream_events.js +35 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/index.d.ts +18 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/index.js +17 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +25 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +62 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/stream_events_emitter.d.ts +52 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/stream_events_emitter.js +178 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/types.d.ts +41 -0
- package/dist/es2017/core/init/utils/stream_events_emitter/types.js +16 -0
- package/dist/es2017/core/init/utils/throw_on_media_error.d.ts +23 -0
- package/dist/es2017/core/init/utils/throw_on_media_error.js +58 -0
- package/dist/es2017/core/segment_buffers/garbage_collector.d.ts +41 -0
- package/dist/es2017/core/segment_buffers/garbage_collector.js +129 -0
- package/dist/es2017/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.d.ts +182 -0
- package/dist/es2017/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.js +435 -0
- package/dist/es2017/core/segment_buffers/implementations/audio_video/index.d.ts +17 -0
- package/dist/es2017/core/segment_buffers/implementations/audio_video/index.js +17 -0
- package/dist/es2017/core/segment_buffers/implementations/index.d.ts +18 -0
- package/dist/es2017/core/segment_buffers/implementations/index.js +18 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/html_text_segment_buffer.d.ts +141 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/html_text_segment_buffer.js +383 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/index.d.ts +21 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/index.js +21 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/parsers.d.ts +30 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/parsers.js +37 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/text_track_cues_store.d.ts +79 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/text_track_cues_store.js +322 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/types.d.ts +25 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/types.js +16 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/update_proportional_elements.d.ts +30 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/update_proportional_elements.js +77 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/utils.d.ts +44 -0
- package/dist/es2017/core/segment_buffers/implementations/text/html/utils.js +107 -0
- package/dist/es2017/core/segment_buffers/implementations/text/native/index.d.ts +17 -0
- package/dist/es2017/core/segment_buffers/implementations/text/native/index.js +17 -0
- package/dist/es2017/core/segment_buffers/implementations/text/native/native_text_segment_buffer.d.ts +83 -0
- package/dist/es2017/core/segment_buffers/implementations/text/native/native_text_segment_buffer.js +251 -0
- package/dist/es2017/core/segment_buffers/implementations/text/native/parsers.d.ts +26 -0
- package/dist/es2017/core/segment_buffers/implementations/text/native/parsers.js +37 -0
- package/dist/es2017/core/segment_buffers/implementations/types.d.ts +320 -0
- package/dist/es2017/core/segment_buffers/implementations/types.js +119 -0
- package/dist/es2017/core/segment_buffers/implementations/utils/manual_time_ranges.d.ts +29 -0
- package/dist/es2017/core/segment_buffers/implementations/utils/manual_time_ranges.js +63 -0
- package/dist/es2017/core/segment_buffers/index.d.ts +21 -0
- package/dist/es2017/core/segment_buffers/index.js +21 -0
- package/dist/es2017/core/segment_buffers/inventory/buffered_history.d.ts +89 -0
- package/dist/es2017/core/segment_buffers/inventory/buffered_history.js +90 -0
- package/dist/es2017/core/segment_buffers/inventory/index.d.ts +21 -0
- package/dist/es2017/core/segment_buffers/inventory/index.js +18 -0
- package/dist/es2017/core/segment_buffers/inventory/segment_inventory.d.ts +207 -0
- package/dist/es2017/core/segment_buffers/inventory/segment_inventory.js +822 -0
- package/dist/es2017/core/segment_buffers/inventory/types.d.ts +27 -0
- package/dist/es2017/core/segment_buffers/inventory/types.js +16 -0
- package/dist/es2017/core/segment_buffers/inventory/utils.d.ts +33 -0
- package/dist/es2017/core/segment_buffers/inventory/utils.js +49 -0
- package/dist/es2017/core/segment_buffers/segment_buffers_store.d.ts +180 -0
- package/dist/es2017/core/segment_buffers/segment_buffers_store.js +290 -0
- package/dist/es2017/core/stream/adaptation/adaptation_stream.d.ts +33 -0
- package/dist/es2017/core/stream/adaptation/adaptation_stream.js +349 -0
- package/dist/es2017/core/stream/adaptation/get_representations_switch_strategy.d.ts +39 -0
- package/dist/{_esm5.processed → es2017}/core/stream/adaptation/get_representations_switch_strategy.js +13 -16
- package/dist/es2017/core/stream/adaptation/index.d.ts +18 -0
- package/dist/es2017/core/stream/adaptation/index.js +18 -0
- package/dist/es2017/core/stream/adaptation/types.d.ts +200 -0
- package/dist/es2017/core/stream/adaptation/types.js +1 -0
- package/dist/es2017/core/stream/index.d.ts +20 -0
- package/dist/es2017/core/stream/index.js +17 -0
- package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.d.ts +30 -0
- package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.js +55 -0
- package/dist/es2017/core/stream/orchestrator/index.d.ts +18 -0
- package/dist/es2017/core/stream/orchestrator/index.js +17 -0
- package/dist/es2017/core/stream/orchestrator/stream_orchestrator.d.ts +174 -0
- package/dist/es2017/core/stream/orchestrator/stream_orchestrator.js +487 -0
- package/dist/es2017/core/stream/period/index.d.ts +18 -0
- package/dist/es2017/core/stream/period/index.js +18 -0
- package/dist/es2017/core/stream/period/period_stream.d.ts +49 -0
- package/dist/es2017/core/stream/period/period_stream.js +359 -0
- package/dist/es2017/core/stream/period/types.d.ts +101 -0
- package/dist/es2017/core/stream/period/types.js +1 -0
- package/dist/es2017/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +68 -0
- package/dist/es2017/core/stream/period/utils/get_adaptation_switch_strategy.js +160 -0
- package/dist/es2017/core/stream/representation/index.d.ts +18 -0
- package/dist/es2017/core/stream/representation/index.js +18 -0
- package/dist/es2017/core/stream/representation/representation_stream.d.ts +53 -0
- package/dist/es2017/core/stream/representation/representation_stream.js +384 -0
- package/dist/es2017/core/stream/representation/types.d.ts +276 -0
- package/dist/es2017/core/stream/representation/types.js +1 -0
- package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.d.ts +32 -0
- package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.js +60 -0
- package/dist/es2017/core/stream/representation/utils/check_for_discontinuity.d.ts +53 -0
- package/dist/es2017/core/stream/representation/utils/check_for_discontinuity.js +235 -0
- package/dist/es2017/core/stream/representation/utils/downloading_queue.d.ts +231 -0
- package/dist/es2017/core/stream/representation/utils/downloading_queue.js +366 -0
- package/dist/es2017/core/stream/representation/utils/force_garbage_collection.d.ts +29 -0
- package/dist/es2017/core/stream/representation/utils/force_garbage_collection.js +91 -0
- package/dist/es2017/core/stream/representation/utils/get_buffer_status.d.ts +72 -0
- package/dist/es2017/core/stream/representation/utils/get_buffer_status.js +213 -0
- package/dist/es2017/core/stream/representation/utils/get_needed_segments.d.ts +92 -0
- package/dist/es2017/core/stream/representation/utils/get_needed_segments.js +425 -0
- package/dist/es2017/core/stream/representation/utils/get_segment_priority.d.ts +28 -0
- package/dist/es2017/core/stream/representation/utils/get_segment_priority.js +38 -0
- package/dist/es2017/core/stream/representation/utils/push_init_segment.d.ts +39 -0
- package/dist/es2017/core/stream/representation/utils/push_init_segment.js +41 -0
- package/dist/es2017/core/stream/representation/utils/push_media_segment.d.ts +40 -0
- package/dist/es2017/core/stream/representation/utils/push_media_segment.js +68 -0
- package/dist/es2017/default_config.d.ts +1081 -0
- package/dist/es2017/default_config.js +1102 -0
- package/dist/es2017/errors/assertion_error.d.ts +31 -0
- package/dist/es2017/errors/assertion_error.js +35 -0
- package/dist/es2017/errors/custom_loader_error.d.ts +36 -0
- package/dist/es2017/errors/custom_loader_error.js +40 -0
- package/dist/es2017/errors/encrypted_media_error.d.ts +39 -0
- package/dist/es2017/errors/encrypted_media_error.js +38 -0
- package/dist/es2017/errors/error_codes.d.ts +31 -0
- package/dist/es2017/errors/error_codes.js +70 -0
- package/dist/es2017/errors/error_message.d.ts +22 -0
- package/dist/es2017/errors/error_message.js +24 -0
- package/dist/es2017/errors/format_error.d.ts +20 -0
- package/dist/es2017/errors/format_error.js +30 -0
- package/dist/es2017/errors/index.d.ts +26 -0
- package/dist/es2017/errors/index.js +26 -0
- package/dist/es2017/errors/is_known_error.d.ts +22 -0
- package/dist/es2017/errors/is_known_error.js +32 -0
- package/dist/es2017/errors/media_error.d.ts +56 -0
- package/dist/es2017/errors/media_error.js +55 -0
- package/dist/es2017/errors/network_error.d.ts +44 -0
- package/dist/es2017/errors/network_error.js +51 -0
- package/dist/es2017/errors/other_error.d.ts +32 -0
- package/dist/es2017/errors/other_error.js +37 -0
- package/dist/es2017/errors/request_error.d.ts +38 -0
- package/dist/es2017/errors/request_error.js +55 -0
- package/dist/es2017/experimental/features/dash_wasm.d.ts +23 -0
- package/dist/es2017/experimental/features/dash_wasm.js +34 -0
- package/dist/es2017/experimental/features/debug_element.d.ts +8 -0
- package/dist/es2017/experimental/features/debug_element.js +10 -0
- package/dist/es2017/experimental/features/index.d.ts +19 -0
- package/dist/es2017/experimental/features/index.js +19 -0
- package/dist/es2017/experimental/features/local.d.ts +19 -0
- package/dist/es2017/experimental/features/local.js +24 -0
- package/dist/es2017/experimental/features/metaplaylist.d.ts +19 -0
- package/dist/es2017/experimental/features/metaplaylist.js +24 -0
- package/dist/es2017/experimental/index.d.ts +2 -0
- package/dist/es2017/experimental/index.js +2 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/dash.d.ts +17 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/dash.js +20 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts +17 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/metaplaylist.js +20 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/index.d.ts +18 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/index.js +18 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +26 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +64 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +25 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +63 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +30 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +41 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/types.d.ts +25 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/types.js +16 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts +54 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +276 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.d.ts +25 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.js +29 -0
- package/dist/es2017/experimental/tools/createMetaplaylist/get_duration_from_manifest.d.ts +23 -0
- package/dist/es2017/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +124 -0
- package/dist/es2017/experimental/tools/createMetaplaylist/index.d.ts +30 -0
- package/dist/es2017/experimental/tools/createMetaplaylist/index.js +57 -0
- package/dist/es2017/experimental/tools/index.d.ts +20 -0
- package/dist/es2017/experimental/tools/index.js +20 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/index.d.ts +60 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/index.js +151 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.d.ts +45 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.js +97 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/capabilities.d.ts +24 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/capabilities.js +142 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/index.d.ts +17 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/index.js +17 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/log.d.ts +18 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/log.js +18 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.d.ts +25 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.js +50 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts +22 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.js +69 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts +26 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +79 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.d.ts +29 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.js +63 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/index.d.ts +21 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/index.js +30 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts +21 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.js +57 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.d.ts +21 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.js +89 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.d.ts +26 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.js +84 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts +21 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +46 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/types.d.ts +69 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/types.js +21 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/utils.d.ts +31 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/utils.js +81 -0
- package/dist/es2017/experimental/tools/parseBIFThumbnails/index.d.ts +29 -0
- package/dist/es2017/experimental/tools/parseBIFThumbnails/index.js +29 -0
- package/dist/es2017/features/add_features.d.ts +20 -0
- package/dist/es2017/features/add_features.js +35 -0
- package/dist/es2017/features/features_object.d.ts +22 -0
- package/dist/es2017/features/features_object.js +31 -0
- package/dist/es2017/features/index.d.ts +34 -0
- package/dist/es2017/features/index.js +33 -0
- package/dist/es2017/features/list/dash.d.ts +23 -0
- package/dist/es2017/features/list/dash.js +32 -0
- package/dist/es2017/features/list/directfile.d.ts +24 -0
- package/dist/es2017/features/list/directfile.js +29 -0
- package/dist/es2017/features/list/eme.d.ts +23 -0
- package/dist/es2017/features/list/eme.js +25 -0
- package/dist/es2017/features/list/html_sami_parser.d.ts +23 -0
- package/dist/es2017/features/list/html_sami_parser.js +27 -0
- package/dist/es2017/features/list/html_srt_parser.d.ts +23 -0
- package/dist/es2017/features/list/html_srt_parser.js +27 -0
- package/dist/es2017/features/list/html_text_buffer.d.ts +23 -0
- package/dist/es2017/features/list/html_text_buffer.js +25 -0
- package/dist/es2017/features/list/html_ttml_parser.d.ts +23 -0
- package/dist/es2017/features/list/html_ttml_parser.js +27 -0
- package/dist/es2017/features/list/html_vtt_parser.d.ts +23 -0
- package/dist/es2017/features/list/html_vtt_parser.js +27 -0
- package/dist/es2017/features/list/index.d.ts +29 -0
- package/dist/es2017/features/list/index.js +29 -0
- package/dist/es2017/features/list/native_sami_parser.d.ts +23 -0
- package/dist/es2017/features/list/native_sami_parser.js +28 -0
- package/dist/es2017/features/list/native_srt_parser.d.ts +23 -0
- package/dist/es2017/features/list/native_srt_parser.js +28 -0
- package/dist/es2017/features/list/native_text_buffer.d.ts +23 -0
- package/dist/es2017/features/list/native_text_buffer.js +26 -0
- package/dist/es2017/features/list/native_ttml_parser.d.ts +23 -0
- package/dist/es2017/features/list/native_ttml_parser.js +28 -0
- package/dist/es2017/features/list/native_vtt_parser.d.ts +23 -0
- package/dist/es2017/features/list/native_vtt_parser.js +28 -0
- package/dist/es2017/features/list/smooth.d.ts +23 -0
- package/dist/es2017/features/list/smooth.js +28 -0
- package/dist/es2017/features/types.d.ts +130 -0
- package/dist/es2017/features/types.js +16 -0
- package/dist/es2017/index.d.ts +17 -0
- package/dist/es2017/index.js +44 -0
- package/dist/es2017/log.d.ts +18 -0
- package/dist/es2017/log.js +19 -0
- package/dist/es2017/manifest/adaptation.d.ts +113 -0
- package/dist/es2017/manifest/adaptation.js +212 -0
- package/dist/es2017/manifest/index.d.ts +24 -0
- package/dist/es2017/manifest/index.js +28 -0
- package/dist/es2017/manifest/manifest.d.ts +265 -0
- package/dist/es2017/manifest/manifest.js +362 -0
- package/dist/es2017/manifest/period.d.ts +68 -0
- package/dist/es2017/manifest/period.js +131 -0
- package/dist/es2017/manifest/representation.d.ts +251 -0
- package/dist/es2017/manifest/representation.js +275 -0
- package/dist/es2017/manifest/representation_index/index.d.ts +18 -0
- package/dist/es2017/manifest/representation_index/index.js +17 -0
- package/dist/es2017/manifest/representation_index/static.d.ts +101 -0
- package/dist/es2017/manifest/representation_index/static.js +139 -0
- package/dist/es2017/manifest/representation_index/types.d.ts +420 -0
- package/dist/es2017/manifest/representation_index/types.js +16 -0
- package/dist/es2017/manifest/types.d.ts +29 -0
- package/dist/es2017/manifest/types.js +30 -0
- package/dist/es2017/manifest/update_period_in_place.d.ts +49 -0
- package/dist/es2017/manifest/update_period_in_place.js +106 -0
- package/dist/es2017/manifest/update_periods.d.ts +47 -0
- package/dist/es2017/manifest/update_periods.js +153 -0
- package/dist/es2017/manifest/utils.d.ts +39 -0
- package/dist/es2017/manifest/utils.js +42 -0
- package/dist/es2017/minimal.d.ts +17 -0
- package/dist/es2017/minimal.js +31 -0
- package/dist/es2017/parsers/containers/isobmff/constants.d.ts +23 -0
- package/dist/es2017/parsers/containers/isobmff/constants.js +23 -0
- package/dist/es2017/parsers/containers/isobmff/create_box.d.ts +30 -0
- package/dist/es2017/parsers/containers/isobmff/create_box.js +64 -0
- package/dist/es2017/parsers/containers/isobmff/drm/index.d.ts +16 -0
- package/dist/es2017/parsers/containers/isobmff/drm/index.js +16 -0
- package/dist/es2017/parsers/containers/isobmff/drm/playready.d.ts +21 -0
- package/dist/es2017/parsers/containers/isobmff/drm/playready.js +36 -0
- package/dist/es2017/parsers/containers/isobmff/get_box.d.ts +107 -0
- package/dist/es2017/parsers/containers/isobmff/get_box.js +227 -0
- package/dist/es2017/parsers/containers/isobmff/index.d.ts +21 -0
- package/dist/es2017/parsers/containers/isobmff/index.js +21 -0
- package/dist/es2017/parsers/containers/isobmff/read.d.ts +57 -0
- package/dist/es2017/parsers/containers/isobmff/read.js +87 -0
- package/dist/es2017/parsers/containers/isobmff/take_pssh_out.d.ts +41 -0
- package/dist/es2017/parsers/containers/isobmff/take_pssh_out.js +83 -0
- package/dist/es2017/parsers/containers/isobmff/utils.d.ts +123 -0
- package/dist/es2017/parsers/containers/isobmff/utils.js +441 -0
- package/dist/es2017/parsers/containers/matroska/index.d.ts +16 -0
- package/dist/es2017/parsers/containers/matroska/index.js +16 -0
- package/dist/es2017/parsers/containers/matroska/utils.d.ts +34 -0
- package/dist/es2017/parsers/containers/matroska/utils.js +235 -0
- package/dist/es2017/parsers/images/bif.d.ts +39 -0
- package/dist/es2017/parsers/images/bif.js +97 -0
- package/dist/es2017/parsers/manifest/dash/common/attach_trickmode_track.d.ts +28 -0
- package/dist/es2017/parsers/manifest/dash/common/attach_trickmode_track.js +44 -0
- package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts +43 -0
- package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.js +74 -0
- package/dist/es2017/parsers/manifest/dash/common/get_clock_offset.d.ts +29 -0
- package/dist/es2017/parsers/manifest/dash/common/get_clock_offset.js +38 -0
- package/dist/es2017/parsers/manifest/dash/common/get_hdr_information.d.ts +50 -0
- package/dist/es2017/parsers/manifest/dash/common/get_hdr_information.js +58 -0
- package/dist/es2017/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/common/get_http_utc-timing_url.js +26 -0
- package/dist/es2017/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts +25 -0
- package/dist/es2017/parsers/manifest/dash/common/get_minimum_and_maximum_positions.js +31 -0
- package/dist/es2017/parsers/manifest/dash/common/get_periods_time_infos.d.ts +43 -0
- package/dist/es2017/parsers/manifest/dash/common/get_periods_time_infos.js +66 -0
- package/dist/es2017/parsers/manifest/dash/common/index.d.ts +20 -0
- package/dist/es2017/parsers/manifest/dash/common/index.js +19 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/base.d.ts +246 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/base.js +257 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_init_segment.d.ts +32 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_init_segment.js +42 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts +36 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_segments_from_timeline.js +98 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/index.d.ts +20 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/index.js +20 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/list.d.ts +193 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/list.js +206 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/template.d.ts +254 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/template.js +429 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +26 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +47 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +17 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +83 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts +37 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.js +58 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +41 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +132 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/index.d.ts +17 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/index.js +17 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts +34 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/parse_s_element.js +57 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +338 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +464 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/tokens.d.ts +40 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/tokens.js +109 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/utils.d.ts +25 -0
- package/dist/es2017/parsers/manifest/dash/common/indexes/utils.js +28 -0
- package/dist/es2017/parsers/manifest/dash/common/infer_adaptation_type.d.ts +42 -0
- package/dist/es2017/parsers/manifest/dash/common/infer_adaptation_type.js +107 -0
- package/dist/es2017/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts +92 -0
- package/dist/es2017/parsers/manifest/dash/common/manifest_bounds_calculator.js +111 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.d.ts +49 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.js +368 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_availability_start_time.d.ts +22 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_availability_start_time.js +29 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_mpd.d.ts +98 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_mpd.js +246 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.d.ts +67 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.js +273 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_representation_index.d.ts +73 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_representation_index.js +95 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_representations.d.ts +46 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_representations.js +245 -0
- package/dist/es2017/parsers/manifest/dash/common/resolve_base_urls.d.ts +26 -0
- package/dist/es2017/parsers/manifest/dash/common/resolve_base_urls.js +44 -0
- package/dist/es2017/parsers/manifest/dash/index.d.ts +16 -0
- package/dist/es2017/parsers/manifest/dash/index.js +16 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/index.d.ts +17 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/index.js +17 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +308 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/BaseURL.js +30 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts +22 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.js +41 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.js +75 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/EventStream.js +94 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Initialization.js +39 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/MPD.js +144 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Period.js +112 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Representation.js +186 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts +22 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.js +89 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentList.js +40 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.js +73 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.js +30 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.js +49 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts +187 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/utils.js +306 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/parse_from_document.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/parse_from_document.js +106 -0
- package/dist/es2017/parsers/manifest/dash/node_parser_types.d.ts +393 -0
- package/dist/es2017/parsers/manifest/dash/node_parser_types.js +16 -0
- package/dist/es2017/parsers/manifest/dash/parsers_types.d.ts +83 -0
- package/dist/es2017/parsers/manifest/dash/parsers_types.js +16 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/index.d.ts +18 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/index.js +17 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +111 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +329 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts +31 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +270 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.js +30 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.js +41 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +49 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts +32 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.js +112 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts +27 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +145 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts +32 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +130 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts +31 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +167 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.js +35 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts +18 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.js +93 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts +25 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.js +45 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts +18 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.js +108 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts +25 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.js +54 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts +28 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/XLink.js +47 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts +16 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/index.js +16 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts +27 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/root.js +45 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts +38 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/parsers_stack.js +56 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/types.d.ts +144 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/types.js +16 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/utils.d.ts +29 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/utils.js +36 -0
- package/dist/es2017/parsers/manifest/index.d.ts +16 -0
- package/dist/es2017/parsers/manifest/index.js +16 -0
- package/dist/es2017/parsers/manifest/local/index.d.ts +18 -0
- package/dist/es2017/parsers/manifest/local/index.js +17 -0
- package/dist/es2017/parsers/manifest/local/parse_local_manifest.d.ts +22 -0
- package/dist/es2017/parsers/manifest/local/parse_local_manifest.js +126 -0
- package/dist/es2017/parsers/manifest/local/representation_index.d.ts +83 -0
- package/dist/es2017/parsers/manifest/local/representation_index.js +224 -0
- package/dist/es2017/parsers/manifest/local/types.d.ts +285 -0
- package/dist/es2017/parsers/manifest/local/types.js +16 -0
- package/dist/es2017/parsers/manifest/metaplaylist/index.d.ts +18 -0
- package/dist/es2017/parsers/manifest/metaplaylist/index.js +17 -0
- package/dist/es2017/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts +64 -0
- package/dist/es2017/parsers/manifest/metaplaylist/metaplaylist_parser.js +255 -0
- package/dist/es2017/parsers/manifest/metaplaylist/representation_index.d.ts +154 -0
- package/dist/es2017/parsers/manifest/metaplaylist/representation_index.js +222 -0
- package/dist/es2017/parsers/manifest/smooth/create_parser.d.ts +33 -0
- package/dist/es2017/parsers/manifest/smooth/create_parser.js +516 -0
- package/dist/es2017/parsers/manifest/smooth/get_codecs.d.ts +26 -0
- package/dist/es2017/parsers/manifest/smooth/get_codecs.js +50 -0
- package/dist/es2017/parsers/manifest/smooth/index.d.ts +19 -0
- package/dist/es2017/parsers/manifest/smooth/index.js +19 -0
- package/dist/es2017/parsers/manifest/smooth/parse_C_nodes.d.ts +26 -0
- package/dist/es2017/parsers/manifest/smooth/parse_C_nodes.js +60 -0
- package/dist/es2017/parsers/manifest/smooth/parse_protection_node.d.ts +29 -0
- package/dist/es2017/parsers/manifest/smooth/parse_protection_node.js +57 -0
- package/dist/es2017/parsers/manifest/smooth/representation_index.d.ts +226 -0
- package/dist/es2017/parsers/manifest/smooth/representation_index.js +384 -0
- package/dist/es2017/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts +119 -0
- package/dist/{_esm5.processed → es2017}/parsers/manifest/smooth/shared_smooth_segment_timeline.js +18 -21
- package/dist/es2017/parsers/manifest/smooth/utils/add_segment_infos.d.ts +38 -0
- package/dist/es2017/parsers/manifest/smooth/utils/add_segment_infos.js +60 -0
- package/dist/es2017/parsers/manifest/smooth/utils/parseBoolean.d.ts +20 -0
- package/dist/es2017/parsers/manifest/smooth/utils/parseBoolean.js +30 -0
- package/dist/es2017/parsers/manifest/smooth/utils/reduceChildren.d.ts +23 -0
- package/dist/es2017/parsers/manifest/smooth/utils/reduceChildren.js +31 -0
- package/dist/es2017/parsers/manifest/smooth/utils/tokens.d.ts +28 -0
- package/dist/es2017/parsers/manifest/smooth/utils/tokens.js +35 -0
- package/dist/es2017/parsers/manifest/types.d.ts +378 -0
- package/dist/es2017/parsers/manifest/types.js +16 -0
- package/dist/es2017/parsers/manifest/utils/check_manifest_ids.d.ts +25 -0
- package/dist/es2017/parsers/manifest/utils/check_manifest_ids.js +76 -0
- package/dist/es2017/parsers/manifest/utils/clear_timeline_from_position.d.ts +24 -0
- package/dist/es2017/parsers/manifest/utils/clear_timeline_from_position.js +69 -0
- package/dist/es2017/parsers/manifest/utils/get_first_time_from_adaptation.d.ts +27 -0
- package/dist/es2017/parsers/manifest/utils/get_first_time_from_adaptation.js +43 -0
- package/dist/es2017/parsers/manifest/utils/get_last_time_from_adaptation.d.ts +29 -0
- package/dist/es2017/parsers/manifest/utils/get_last_time_from_adaptation.js +45 -0
- package/dist/es2017/parsers/manifest/utils/get_maximum_positions.d.ts +24 -0
- package/dist/es2017/parsers/manifest/utils/get_maximum_positions.js +72 -0
- package/dist/es2017/parsers/manifest/utils/get_minimum_position.d.ts +21 -0
- package/dist/es2017/parsers/manifest/utils/get_minimum_position.js +68 -0
- package/dist/es2017/parsers/manifest/utils/index_helpers.d.ts +88 -0
- package/dist/es2017/parsers/manifest/utils/index_helpers.js +147 -0
- package/dist/es2017/parsers/manifest/utils/is_segment_still_available.d.ts +29 -0
- package/dist/es2017/parsers/manifest/utils/is_segment_still_available.js +51 -0
- package/dist/es2017/parsers/manifest/utils/update_segment_timeline.d.ts +33 -0
- package/dist/es2017/parsers/manifest/utils/update_segment_timeline.js +128 -0
- package/dist/es2017/parsers/texttracks/index.d.ts +16 -0
- package/dist/es2017/parsers/texttracks/index.js +16 -0
- package/dist/es2017/parsers/texttracks/sami/html.d.ts +29 -0
- package/dist/es2017/parsers/texttracks/sami/html.js +189 -0
- package/dist/es2017/parsers/texttracks/sami/native.d.ts +34 -0
- package/dist/es2017/parsers/texttracks/sami/native.js +160 -0
- package/dist/es2017/parsers/texttracks/srt/find_end_of_cue_block.d.ts +29 -0
- package/dist/es2017/parsers/texttracks/srt/find_end_of_cue_block.js +39 -0
- package/dist/es2017/parsers/texttracks/srt/get_cue_blocks.d.ts +22 -0
- package/dist/es2017/parsers/texttracks/srt/get_cue_blocks.js +47 -0
- package/dist/es2017/parsers/texttracks/srt/html.d.ts +26 -0
- package/dist/es2017/parsers/texttracks/srt/html.js +153 -0
- package/dist/es2017/parsers/texttracks/srt/native.d.ts +28 -0
- package/dist/es2017/parsers/texttracks/srt/native.js +57 -0
- package/dist/es2017/parsers/texttracks/srt/parse_cue.d.ts +30 -0
- package/dist/es2017/parsers/texttracks/srt/parse_cue.js +60 -0
- package/dist/es2017/parsers/texttracks/srt/parse_timestamp.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/srt/parse_timestamp.js +33 -0
- package/dist/es2017/parsers/texttracks/ttml/get_parameters.d.ts +32 -0
- package/dist/es2017/parsers/texttracks/ttml/get_parameters.js +88 -0
- package/dist/es2017/parsers/texttracks/ttml/get_styling.d.ts +41 -0
- package/dist/es2017/parsers/texttracks/ttml/get_styling.js +127 -0
- package/dist/es2017/parsers/texttracks/ttml/get_time_delimiters.d.ts +26 -0
- package/dist/es2017/parsers/texttracks/ttml/get_time_delimiters.js +41 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.d.ts +48 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.js +61 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_extent.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_extent.js +61 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_font_size.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_font_size.js +59 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_line_height.d.ts +20 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_line_height.js +44 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_origin.d.ts +20 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_origin.js +60 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_padding.d.ts +20 -0
- package/dist/es2017/parsers/texttracks/ttml/html/apply_padding.js +139 -0
- package/dist/es2017/parsers/texttracks/ttml/html/create_element.d.ts +32 -0
- package/dist/es2017/parsers/texttracks/ttml/html/create_element.js +441 -0
- package/dist/es2017/parsers/texttracks/ttml/html/generate_css_test_outline.d.ts +26 -0
- package/dist/es2017/parsers/texttracks/ttml/html/generate_css_test_outline.js +41 -0
- package/dist/es2017/parsers/texttracks/ttml/html/index.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/ttml/html/index.js +21 -0
- package/dist/es2017/parsers/texttracks/ttml/html/parse_cue.d.ts +26 -0
- package/dist/es2017/parsers/texttracks/ttml/html/parse_cue.js +39 -0
- package/dist/es2017/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts +34 -0
- package/dist/es2017/parsers/texttracks/ttml/html/parse_ttml_to_div.js +50 -0
- package/dist/es2017/parsers/texttracks/ttml/html/ttml_color_to_css_color.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/ttml/html/ttml_color_to_css_color.js +57 -0
- package/dist/es2017/parsers/texttracks/ttml/native/index.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/ttml/native/index.js +21 -0
- package/dist/es2017/parsers/texttracks/ttml/native/parse_cue.d.ts +30 -0
- package/dist/es2017/parsers/texttracks/ttml/native/parse_cue.js +202 -0
- package/dist/es2017/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/ttml/native/parse_ttml_to_vtt.js +33 -0
- package/dist/es2017/parsers/texttracks/ttml/parse_ttml.d.ts +43 -0
- package/dist/es2017/parsers/texttracks/ttml/parse_ttml.js +153 -0
- package/dist/es2017/parsers/texttracks/ttml/regexps.d.ts +28 -0
- package/dist/es2017/parsers/texttracks/ttml/regexps.js +35 -0
- package/dist/es2017/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts +49 -0
- package/dist/es2017/parsers/texttracks/ttml/resolve_styles_inheritance.js +80 -0
- package/dist/es2017/parsers/texttracks/ttml/time_parsing.d.ts +30 -0
- package/dist/es2017/parsers/texttracks/ttml/time_parsing.js +124 -0
- package/dist/es2017/parsers/texttracks/ttml/xml_utils.d.ts +70 -0
- package/dist/es2017/parsers/texttracks/ttml/xml_utils.js +149 -0
- package/dist/es2017/parsers/texttracks/types.d.ts +23 -0
- package/dist/es2017/parsers/texttracks/types.js +16 -0
- package/dist/es2017/parsers/texttracks/webvtt/get_cue_blocks.d.ts +24 -0
- package/dist/es2017/parsers/texttracks/webvtt/get_cue_blocks.js +44 -0
- package/dist/es2017/parsers/texttracks/webvtt/get_style_blocks.d.ts +24 -0
- package/dist/es2017/parsers/texttracks/webvtt/get_style_blocks.js +51 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts +22 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/convert_payload_to_html.js +35 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/create_default_style_elements.d.ts +2 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/create_default_style_elements.js +22 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/create_style_attribute.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/create_style_attribute.js +172 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/create_styled_element.d.ts +25 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/create_styled_element.js +83 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/index.d.ts +22 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/index.js +21 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_style_block.d.ts +27 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_style_block.js +66 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_to_div.d.ts +31 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_to_div.js +55 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/to_html.d.ts +43 -0
- package/dist/es2017/parsers/texttracks/webvtt/html/to_html.js +72 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/index.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/index.js +21 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_vtt_to_cues.d.ts +28 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_vtt_to_cues.js +58 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts +23 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/set_settings_on_cue.js +80 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/to_native_cue.d.ts +25 -0
- package/dist/es2017/parsers/texttracks/webvtt/native/to_native_cue.js +25 -0
- package/dist/es2017/parsers/texttracks/webvtt/parse_cue_block.d.ts +33 -0
- package/dist/es2017/parsers/texttracks/webvtt/parse_cue_block.js +101 -0
- package/dist/es2017/parsers/texttracks/webvtt/parse_timestamp.d.ts +21 -0
- package/dist/es2017/parsers/texttracks/webvtt/parse_timestamp.js +34 -0
- package/dist/es2017/parsers/texttracks/webvtt/utils.d.ts +56 -0
- package/dist/es2017/parsers/texttracks/webvtt/utils.js +113 -0
- package/dist/es2017/public_types.d.ts +825 -0
- package/dist/es2017/public_types.js +16 -0
- package/dist/es2017/tools/TextTrackRenderer/index.d.ts +22 -0
- package/dist/es2017/tools/TextTrackRenderer/index.js +22 -0
- package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.d.ts +70 -0
- package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.js +78 -0
- package/dist/es2017/tools/index.d.ts +18 -0
- package/dist/es2017/tools/index.js +18 -0
- package/dist/es2017/tools/string_utils/index.d.ts +16 -0
- package/dist/es2017/tools/string_utils/index.js +16 -0
- package/dist/es2017/transports/dash/add_segment_integrity_checks_to_loader.d.ts +24 -0
- package/dist/es2017/transports/dash/add_segment_integrity_checks_to_loader.js +82 -0
- package/dist/es2017/transports/dash/construct_segment_url.d.ts +18 -0
- package/dist/es2017/transports/dash/construct_segment_url.js +21 -0
- package/dist/es2017/transports/dash/extract_complete_chunks.d.ts +24 -0
- package/dist/es2017/transports/dash/extract_complete_chunks.js +59 -0
- package/dist/es2017/transports/dash/get_events_out_of_emsgs.d.ts +28 -0
- package/dist/es2017/transports/dash/get_events_out_of_emsgs.js +92 -0
- package/dist/es2017/transports/dash/index.d.ts +21 -0
- package/dist/es2017/transports/dash/index.js +21 -0
- package/dist/es2017/transports/dash/init_segment_loader.d.ts +28 -0
- package/dist/es2017/transports/dash/init_segment_loader.js +85 -0
- package/dist/es2017/transports/dash/low_latency_segment_loader.d.ts +30 -0
- package/dist/es2017/transports/dash/low_latency_segment_loader.js +68 -0
- package/dist/es2017/transports/dash/manifest_parser.d.ts +18 -0
- package/dist/es2017/transports/dash/manifest_parser.js +282 -0
- package/dist/es2017/transports/dash/pipelines.d.ts +23 -0
- package/dist/es2017/transports/dash/pipelines.js +55 -0
- package/dist/es2017/transports/dash/segment_loader.d.ts +38 -0
- package/dist/es2017/transports/dash/segment_loader.js +173 -0
- package/dist/es2017/transports/dash/segment_parser.d.ts +23 -0
- package/dist/es2017/transports/dash/segment_parser.js +140 -0
- package/dist/es2017/transports/dash/text_loader.d.ts +25 -0
- package/dist/es2017/transports/dash/text_loader.js +85 -0
- package/dist/es2017/transports/dash/text_parser.d.ts +25 -0
- package/dist/es2017/transports/dash/text_parser.js +171 -0
- package/dist/es2017/transports/index.d.ts +16 -0
- package/dist/es2017/transports/index.js +16 -0
- package/dist/es2017/transports/local/index.d.ts +17 -0
- package/dist/es2017/transports/local/index.js +17 -0
- package/dist/es2017/transports/local/pipelines.d.ts +22 -0
- package/dist/es2017/transports/local/pipelines.js +65 -0
- package/dist/es2017/transports/local/segment_loader.d.ts +28 -0
- package/dist/es2017/transports/local/segment_loader.js +144 -0
- package/dist/es2017/transports/local/segment_parser.d.ts +20 -0
- package/dist/es2017/transports/local/segment_parser.js +77 -0
- package/dist/es2017/transports/local/text_parser.d.ts +27 -0
- package/dist/es2017/transports/local/text_parser.js +143 -0
- package/dist/es2017/transports/metaplaylist/index.d.ts +21 -0
- package/dist/es2017/transports/metaplaylist/index.js +21 -0
- package/dist/es2017/transports/metaplaylist/manifest_loader.d.ts +26 -0
- package/dist/es2017/transports/metaplaylist/manifest_loader.js +42 -0
- package/dist/es2017/transports/metaplaylist/pipelines.d.ts +17 -0
- package/dist/es2017/transports/metaplaylist/pipelines.js +229 -0
- package/dist/es2017/transports/smooth/extract_timings_infos.d.ts +62 -0
- package/dist/es2017/transports/smooth/extract_timings_infos.js +81 -0
- package/dist/es2017/transports/smooth/index.d.ts +21 -0
- package/dist/es2017/transports/smooth/index.js +21 -0
- package/dist/es2017/transports/smooth/is_mp4_embedded_track.d.ts +22 -0
- package/dist/es2017/transports/smooth/is_mp4_embedded_track.js +24 -0
- package/dist/es2017/transports/smooth/isobmff/create_audio_init_segment.d.ts +29 -0
- package/dist/es2017/transports/smooth/isobmff/create_audio_init_segment.js +52 -0
- package/dist/es2017/transports/smooth/isobmff/create_boxes.d.ts +171 -0
- package/dist/es2017/transports/smooth/isobmff/create_boxes.js +328 -0
- package/dist/es2017/transports/smooth/isobmff/create_init_segment.d.ts +33 -0
- package/dist/es2017/transports/smooth/isobmff/create_init_segment.js +65 -0
- package/dist/es2017/transports/smooth/isobmff/create_traf_box.d.ts +16 -0
- package/dist/es2017/transports/smooth/isobmff/create_traf_box.js +24 -0
- package/dist/es2017/transports/smooth/isobmff/create_video_init_segment.d.ts +29 -0
- package/dist/es2017/transports/smooth/isobmff/create_video_init_segment.js +57 -0
- package/dist/es2017/transports/smooth/isobmff/get_aaces_header.d.ts +27 -0
- package/dist/es2017/transports/smooth/isobmff/get_aaces_header.js +55 -0
- package/dist/es2017/transports/smooth/isobmff/index.d.ts +21 -0
- package/dist/es2017/transports/smooth/isobmff/index.js +21 -0
- package/dist/es2017/transports/smooth/isobmff/parse_tfrf.d.ts +24 -0
- package/dist/es2017/transports/smooth/isobmff/parse_tfrf.js +47 -0
- package/dist/es2017/transports/smooth/isobmff/parse_tfxd.d.ts +24 -0
- package/dist/es2017/transports/smooth/isobmff/parse_tfxd.js +31 -0
- package/dist/es2017/transports/smooth/isobmff/patch_segment.d.ts +23 -0
- package/dist/es2017/transports/smooth/isobmff/patch_segment.js +127 -0
- package/dist/es2017/transports/smooth/pipelines.d.ts +17 -0
- package/dist/es2017/transports/smooth/pipelines.js +291 -0
- package/dist/es2017/transports/smooth/segment_loader.d.ts +27 -0
- package/dist/es2017/transports/smooth/segment_loader.js +198 -0
- package/dist/es2017/transports/smooth/utils.d.ts +26 -0
- package/dist/es2017/transports/smooth/utils.js +32 -0
- package/dist/es2017/transports/types.d.ts +701 -0
- package/dist/es2017/transports/types.js +16 -0
- package/dist/es2017/transports/utils/byte_range.d.ts +21 -0
- package/dist/es2017/transports/utils/byte_range.js +24 -0
- package/dist/es2017/transports/utils/call_custom_manifest_loader.d.ts +19 -0
- package/dist/es2017/transports/utils/call_custom_manifest_loader.js +94 -0
- package/dist/es2017/transports/utils/check_isobmff_integrity.d.ts +23 -0
- package/dist/es2017/transports/utils/check_isobmff_integrity.js +46 -0
- package/dist/es2017/transports/utils/find_complete_box.d.ts +25 -0
- package/dist/es2017/transports/utils/find_complete_box.js +53 -0
- package/dist/es2017/transports/utils/generate_manifest_loader.d.ts +26 -0
- package/dist/es2017/transports/utils/generate_manifest_loader.js +64 -0
- package/dist/es2017/transports/utils/get_isobmff_timing_infos.d.ts +29 -0
- package/dist/es2017/transports/utils/get_isobmff_timing_infos.js +66 -0
- package/dist/es2017/transports/utils/infer_segment_container.d.ts +29 -0
- package/dist/es2017/transports/utils/infer_segment_container.js +44 -0
- package/dist/es2017/transports/utils/parse_text_track.d.ts +56 -0
- package/dist/es2017/transports/utils/parse_text_track.js +140 -0
- package/dist/es2017/utils/are_arrays_of_numbers_equal.d.ts +22 -0
- package/dist/es2017/utils/are_arrays_of_numbers_equal.js +35 -0
- package/dist/es2017/utils/are_codecs_compatible.d.ts +25 -0
- package/dist/es2017/utils/are_codecs_compatible.js +44 -0
- package/dist/es2017/utils/array_find.d.ts +23 -0
- package/dist/es2017/utils/array_find.js +35 -0
- package/dist/es2017/utils/array_find_index.d.ts +23 -0
- package/dist/es2017/utils/array_find_index.js +34 -0
- package/dist/es2017/utils/array_includes.d.ts +53 -0
- package/dist/es2017/utils/array_includes.js +81 -0
- package/dist/es2017/utils/assert.d.ts +34 -0
- package/dist/es2017/utils/assert.js +51 -0
- package/dist/es2017/utils/assert_unreachable.d.ts +40 -0
- package/dist/es2017/utils/assert_unreachable.js +43 -0
- package/dist/es2017/utils/base64.d.ts +14 -0
- package/dist/es2017/utils/base64.js +147 -0
- package/dist/es2017/utils/byte_parsing.d.ts +123 -0
- package/dist/es2017/utils/byte_parsing.js +227 -0
- package/dist/es2017/utils/cancellable_sleep.d.ts +30 -0
- package/dist/es2017/utils/cancellable_sleep.js +35 -0
- package/dist/es2017/utils/create_cancellable_promise.d.ts +26 -0
- package/dist/es2017/utils/create_cancellable_promise.js +52 -0
- package/dist/es2017/utils/deep_merge.d.ts +9 -0
- package/dist/es2017/utils/deep_merge.js +40 -0
- package/dist/es2017/utils/event_emitter.d.ts +62 -0
- package/dist/es2017/utils/event_emitter.js +100 -0
- package/dist/es2017/utils/flat_map.d.ts +22 -0
- package/dist/es2017/utils/flat_map.js +37 -0
- package/dist/es2017/utils/get_fuzzed_delay.d.ts +21 -0
- package/dist/es2017/utils/get_fuzzed_delay.js +25 -0
- package/dist/es2017/utils/hash_buffer.d.ts +32 -0
- package/dist/es2017/utils/hash_buffer.js +41 -0
- package/dist/es2017/utils/id_generator.d.ts +21 -0
- package/dist/es2017/utils/id_generator.js +33 -0
- package/dist/es2017/utils/initialization_segment_cache.d.ts +42 -0
- package/dist/es2017/utils/initialization_segment_cache.js +48 -0
- package/dist/es2017/utils/is_non_empty_string.d.ts +20 -0
- package/dist/es2017/utils/is_non_empty_string.js +22 -0
- package/dist/es2017/utils/is_null_or_undefined.d.ts +24 -0
- package/dist/es2017/utils/is_null_or_undefined.js +26 -0
- package/dist/es2017/utils/languages/ISO_639-1_to_ISO_639-3.d.ts +22 -0
- package/dist/es2017/utils/languages/ISO_639-1_to_ISO_639-3.js +205 -0
- package/dist/es2017/utils/languages/ISO_639-2_to_ISO_639-3.d.ts +22 -0
- package/dist/es2017/utils/languages/ISO_639-2_to_ISO_639-3.js +41 -0
- package/dist/es2017/utils/languages/index.d.ts +18 -0
- package/dist/es2017/utils/languages/index.js +18 -0
- package/dist/es2017/utils/languages/normalize.d.ts +68 -0
- package/dist/es2017/utils/languages/normalize.js +119 -0
- package/dist/es2017/utils/logger.d.ts +46 -0
- package/dist/es2017/utils/logger.js +77 -0
- package/dist/es2017/utils/monotonic_timestamp.d.ts +9 -0
- package/dist/es2017/utils/monotonic_timestamp.js +12 -0
- package/dist/es2017/utils/noop.d.ts +23 -0
- package/dist/es2017/utils/noop.js +25 -0
- package/dist/es2017/utils/object_assign.d.ts +22 -0
- package/dist/es2017/utils/object_assign.js +40 -0
- package/dist/es2017/utils/object_values.d.ts +30 -0
- package/dist/es2017/utils/object_values.js +26 -0
- package/dist/es2017/utils/ranges.d.ts +212 -0
- package/dist/es2017/utils/ranges.js +502 -0
- package/dist/es2017/utils/reference.d.ts +214 -0
- package/dist/es2017/utils/reference.js +287 -0
- package/dist/es2017/utils/request/fetch.d.ts +76 -0
- package/dist/es2017/utils/request/fetch.js +148 -0
- package/dist/es2017/utils/request/index.d.ts +19 -0
- package/dist/es2017/utils/request/index.js +19 -0
- package/dist/es2017/utils/request/xhr.d.ts +95 -0
- package/dist/es2017/utils/request/xhr.js +162 -0
- package/dist/es2017/utils/resolve_url.d.ts +35 -0
- package/dist/es2017/utils/resolve_url.js +113 -0
- package/dist/es2017/utils/retry_promise_with_backoff.d.ts +46 -0
- package/dist/es2017/utils/retry_promise_with_backoff.js +69 -0
- package/dist/es2017/utils/sleep.d.ts +10 -0
- package/dist/es2017/utils/sleep.js +14 -0
- package/dist/es2017/utils/slice_uint8array.d.ts +27 -0
- package/dist/es2017/utils/slice_uint8array.js +42 -0
- package/dist/es2017/utils/sorted_list.d.ts +127 -0
- package/dist/es2017/utils/sorted_list.js +177 -0
- package/dist/es2017/utils/starts_with.d.ts +26 -0
- package/dist/es2017/utils/starts_with.js +36 -0
- package/dist/es2017/utils/string_parsing.d.ts +88 -0
- package/dist/es2017/utils/string_parsing.js +372 -0
- package/dist/es2017/utils/task_canceller.d.ts +263 -0
- package/dist/es2017/utils/task_canceller.js +299 -0
- package/dist/es2017/utils/warn_once.d.ts +23 -0
- package/dist/es2017/utils/warn_once.js +31 -0
- package/dist/es2017/utils/weak_map_memory.d.ts +70 -0
- package/dist/es2017/utils/weak_map_memory.js +84 -0
- package/dist/es2017/utils/wrapInPromise.d.ts +7 -0
- package/dist/es2017/utils/wrapInPromise.js +22 -0
- package/dist/rx-player.d.ts +1 -1
- package/dist/rx-player.js +40 -73
- package/dist/rx-player.min.d.ts +1 -1
- package/dist/rx-player.min.js +1 -1
- package/experimental/features/index.d.ts +1 -1
- package/experimental/features/index.js +1 -1
- package/experimental/index.d.ts +1 -1
- package/experimental/index.js +1 -1
- package/{scripts/build/templates/experimental/tools/VideoThumbnailLoader/index.js → experimental/tools/VideoThumbnailLoader.d.ts} +2 -2
- package/experimental/tools/{VideoThumbnailLoader/index.d.ts → VideoThumbnailLoader.js} +2 -2
- package/experimental/tools/createMetaplaylist.d.ts +18 -0
- package/experimental/tools/createMetaplaylist.js +18 -0
- package/experimental/tools/index.d.ts +1 -1
- package/experimental/tools/index.js +1 -1
- package/experimental/tools/mediaCapabilitiesProber.d.ts +18 -0
- package/experimental/tools/mediaCapabilitiesProber.js +18 -0
- package/experimental/tools/parseBIFThumbnails.d.ts +18 -0
- package/experimental/tools/parseBIFThumbnails.js +18 -0
- package/features/index.d.ts +1 -1
- package/features/index.js +1 -1
- package/jest.config.js +2 -21
- package/logger/index.d.ts +1 -1
- package/logger/index.js +1 -1
- package/minimal/index.d.ts +1 -1
- package/minimal/index.js +1 -1
- package/package.json +120 -34
- package/scripts/build/{generate_build.js → generate_build.mjs} +30 -26
- package/{experimental/tools/VideoThumbnailLoader/index.js → scripts/build/templates/experimental/tools/VideoThumbnailLoader.d.ts} +2 -2
- package/scripts/build/templates/experimental/tools/VideoThumbnailLoader.js +18 -0
- package/scripts/build/templates/experimental/tools/createMetaplaylist.d.ts +18 -0
- package/scripts/build/templates/experimental/tools/createMetaplaylist.js +18 -0
- package/scripts/build/templates/experimental/tools/mediaCapabilitiesProber.d.ts +18 -0
- package/scripts/build/templates/experimental/tools/mediaCapabilitiesProber.js +18 -0
- package/scripts/build/templates/experimental/tools/parseBIFThumbnails.d.ts +18 -0
- package/scripts/build/templates/experimental/tools/parseBIFThumbnails.js +18 -0
- package/scripts/build/templates/tools/string-utils.d.ts +2 -2
- package/scripts/build/templates/tools/string-utils.js +2 -2
- package/scripts/{fast_demo_build.js → build_demo.mjs} +18 -17
- package/scripts/{generate_demo_list.js → generate_demo_list.mjs} +15 -10
- package/scripts/{generate_documentation_list.js → generate_documentation_list.mjs} +16 -11
- package/scripts/generate_standalone_demo.mjs +109 -0
- package/scripts/{launch_static_server.js → launch_static_server.mjs} +8 -8
- package/scripts/{list-npm-scripts.js → list-npm-scripts.mjs} +7 -7
- package/scripts/{run_standalone_demo.js → run_standalone_demo.mjs} +12 -7
- package/scripts/start_demo_web_server.mjs +59 -0
- package/scripts/update-version +1 -1
- package/scripts/update_gh-pages_demo +4 -4
- package/scripts/update_gh-pages_doc +4 -4
- package/scripts/utils/{display_webpack_errors.js → display_webpack_errors.mjs} +1 -1
- package/scripts/utils/{get_human_readable_hours.js → get_human_readable_hours.mjs} +1 -3
- package/scripts/utils/project_root_directory.mjs +4 -0
- package/scripts/{wasm-strip.js → wasm-strip.mjs} +11 -6
- package/sonar-project.properties +1 -1
- package/src/compat/README.md +18 -12
- package/src/core/adaptive/adaptive_representation_selector.ts +5 -3
- package/src/core/adaptive/utils/filter_by_resolution.ts +1 -3
- package/src/core/api/public_api.ts +2 -2
- package/src/core/segment_buffers/inventory/segment_inventory.ts +7 -14
- package/src/experimental/README.md +4 -0
- package/src/experimental/tools/{parseBIFThumbnails.ts → parseBIFThumbnails/index.ts} +1 -1
- package/src/globals.dev.d.ts +15 -0
- package/src/globals.prod.d.ts +15 -0
- package/src/parsers/manifest/smooth/create_parser.ts +1 -2
- package/src/tools/README.md +4 -0
- package/src/tools/{string_utils.ts → string_utils/index.ts} +1 -1
- package/src/transports/dash/segment_parser.ts +1 -2
- package/src/transports/dash/text_parser.ts +1 -2
- package/src/transports/local/segment_parser.ts +1 -2
- package/src/transports/local/text_parser.ts +2 -3
- package/tools/TextTrackRenderer.d.ts +2 -2
- package/tools/TextTrackRenderer.js +2 -2
- package/tools/index.d.ts +1 -1
- package/tools/index.js +1 -1
- package/tools/string-utils.d.ts +2 -2
- package/tools/string-utils.js +2 -2
- package/tsconfig.commonjs.json +9 -0
- package/tsconfig.eslint.json +7 -0
- package/tsconfig.jest.json +15 -0
- package/tsconfig.json +10 -6
- package/types/index.d.ts +1 -1
- package/webpack.config.mjs +97 -0
- package/scripts/generate_full_demo.js +0 -201
- package/scripts/generate_standalone_demo.js +0 -82
- package/scripts/start_demo_web_server.js +0 -44
- package/src/utils/__tests__/take_first_set.test.ts +0 -38
- package/src/utils/take_first_set.ts +0 -53
- package/tsconfig.modules.json +0 -34
- /package/dist/{_esm5.processed → commonjs}/compat/global_scope.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/compat/is_worker.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/compat/is_worker.js +0 -0
- /package/dist/{_esm5.processed → commonjs}/core/adaptive/utils/filter_by_resolution.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/core/api/track_management/index.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/core/api/track_management/media_element_tracks_store.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/core/api/track_management/track_dispatcher.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/core/api/track_management/tracks_store.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/core/segment_buffers/inventory/utils.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/core/stream/adaptation/get_representations_switch_strategy.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/index.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/transports/smooth/is_mp4_embedded_track.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/transports/smooth/is_mp4_embedded_track.js +0 -0
- /package/dist/{_esm5.processed → commonjs}/utils/monotonic_timestamp.d.ts +0 -0
- /package/dist/{_esm5.processed → commonjs}/utils/monotonic_timestamp.js +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2015 CANAL+ Group
|
|
4
3
|
*
|
|
@@ -14,17 +13,20 @@
|
|
|
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
|
-
/* eslint-disable @typescript-eslint/no-unsafe-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
16
|
+
import isNode from "../../is_node";
|
|
17
|
+
var WebKitMediaKeysConstructor;
|
|
18
|
+
if (!isNode) {
|
|
19
|
+
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
20
|
+
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
21
|
+
var WebKitMediaKeys = window.WebKitMediaKeys;
|
|
22
|
+
if (WebKitMediaKeys !== undefined &&
|
|
23
|
+
typeof WebKitMediaKeys.isTypeSupported === "function" &&
|
|
24
|
+
typeof WebKitMediaKeys.prototype.createSession === "function" &&
|
|
25
|
+
typeof HTMLMediaElement.prototype
|
|
26
|
+
.webkitSetMediaKeys === "function") {
|
|
27
|
+
WebKitMediaKeysConstructor = WebKitMediaKeys;
|
|
28
|
+
}
|
|
29
|
+
/* eslint-enable @typescript-eslint/no-unsafe-assignment */
|
|
30
|
+
/* eslint-enable @typescript-eslint/no-unsafe-member-access */
|
|
30
31
|
}
|
|
32
|
+
export { WebKitMediaKeysConstructor, };
|
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const old_webkit_media_keys_1 = require("./custom_media_keys/old_webkit_media_keys");
|
|
15
|
-
const webkit_media_keys_1 = require("./custom_media_keys/webkit_media_keys");
|
|
16
|
-
const webkit_media_keys_constructor_1 = require("./custom_media_keys/webkit_media_keys_constructor");
|
|
1
|
+
import { MediaError } from "../../errors";
|
|
2
|
+
import assert from "../../utils/assert";
|
|
3
|
+
import isNullOrUndefined from "../../utils/is_null_or_undefined";
|
|
4
|
+
import { isIE11 } from "../browser_detection";
|
|
5
|
+
import { createCompatibleEventListener } from "../event_listeners";
|
|
6
|
+
import isNode from "../is_node";
|
|
7
|
+
import shouldFavourCustomSafariEME from "../should_favour_custom_safari_EME";
|
|
8
|
+
import CustomMediaKeySystemAccess from "./custom_key_system_access";
|
|
9
|
+
import getIE11MediaKeysCallbacks, { MSMediaKeysConstructor, } from "./custom_media_keys/ie11_media_keys";
|
|
10
|
+
import getMozMediaKeysCallbacks, { MozMediaKeysConstructor, } from "./custom_media_keys/moz_media_keys_constructor";
|
|
11
|
+
import getOldKitWebKitMediaKeyCallbacks, { isOldWebkitMediaElement, } from "./custom_media_keys/old_webkit_media_keys";
|
|
12
|
+
import getWebKitMediaKeysCallbacks from "./custom_media_keys/webkit_media_keys";
|
|
13
|
+
import { WebKitMediaKeysConstructor, } from "./custom_media_keys/webkit_media_keys_constructor";
|
|
17
14
|
/**
|
|
18
15
|
* Automatically detect and set which EME implementation should be used in the
|
|
19
16
|
* current platform.
|
|
20
17
|
*
|
|
21
18
|
* You can call `getEmeApiImplementation` for a different implementation.
|
|
22
19
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
var defaultEmeImplementation = getEmeApiImplementation("auto");
|
|
21
|
+
export default defaultEmeImplementation;
|
|
25
22
|
/**
|
|
26
23
|
* Returns the current EME implementation based on what's present on the device
|
|
27
24
|
* and the given preference.
|
|
@@ -30,107 +27,113 @@ exports.default = defaultEmeImplementation;
|
|
|
30
27
|
* @returns {Object}
|
|
31
28
|
*/
|
|
32
29
|
function getEmeApiImplementation(preferredApiType) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
var requestMediaKeySystemAccess;
|
|
31
|
+
var onEncrypted;
|
|
32
|
+
var setMediaKeys = defaultSetMediaKeys;
|
|
33
|
+
var implementation;
|
|
37
34
|
if ((preferredApiType === "standard" ||
|
|
38
|
-
(preferredApiType === "auto" && !(
|
|
35
|
+
(preferredApiType === "auto" && !shouldFavourCustomSafariEME())) &&
|
|
39
36
|
(
|
|
40
37
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
41
|
-
|
|
42
|
-
requestMediaKeySystemAccess = (
|
|
43
|
-
|
|
38
|
+
isNode || !isNullOrUndefined(navigator.requestMediaKeySystemAccess))) {
|
|
39
|
+
requestMediaKeySystemAccess = function () {
|
|
40
|
+
var args = [];
|
|
41
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
42
|
+
args[_i] = arguments[_i];
|
|
43
|
+
}
|
|
44
|
+
return navigator.requestMediaKeySystemAccess.apply(navigator, args);
|
|
45
|
+
};
|
|
46
|
+
onEncrypted = createCompatibleEventListener(["encrypted"]);
|
|
44
47
|
implementation = "standard";
|
|
45
48
|
}
|
|
46
49
|
else {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
if (preferredApiType === "webkit" &&
|
|
50
|
-
onEncrypted =
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
var isTypeSupported_1;
|
|
51
|
+
var createCustomMediaKeys_1;
|
|
52
|
+
if (preferredApiType === "webkit" && WebKitMediaKeysConstructor !== undefined) {
|
|
53
|
+
onEncrypted = createCompatibleEventListener(["needkey"]);
|
|
54
|
+
var callbacks = getWebKitMediaKeysCallbacks();
|
|
55
|
+
isTypeSupported_1 = callbacks.isTypeSupported;
|
|
56
|
+
createCustomMediaKeys_1 = callbacks.createCustomMediaKeys;
|
|
54
57
|
setMediaKeys = callbacks.setMediaKeys;
|
|
55
58
|
implementation = "webkit";
|
|
56
59
|
}
|
|
57
60
|
else {
|
|
58
61
|
// This is for Chrome with unprefixed EME api
|
|
59
|
-
if (
|
|
60
|
-
onEncrypted =
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
if (isOldWebkitMediaElement(HTMLVideoElement.prototype)) {
|
|
63
|
+
onEncrypted = createCompatibleEventListener(["needkey"]);
|
|
64
|
+
var callbacks = getOldKitWebKitMediaKeyCallbacks();
|
|
65
|
+
isTypeSupported_1 = callbacks.isTypeSupported;
|
|
66
|
+
createCustomMediaKeys_1 = callbacks.createCustomMediaKeys;
|
|
64
67
|
setMediaKeys = callbacks.setMediaKeys;
|
|
65
68
|
implementation = "older-webkit";
|
|
66
69
|
// This is for WebKit with prefixed EME api
|
|
67
70
|
}
|
|
68
|
-
else if (
|
|
69
|
-
onEncrypted =
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
else if (WebKitMediaKeysConstructor !== undefined) {
|
|
72
|
+
onEncrypted = createCompatibleEventListener(["needkey"]);
|
|
73
|
+
var callbacks = getWebKitMediaKeysCallbacks();
|
|
74
|
+
isTypeSupported_1 = callbacks.isTypeSupported;
|
|
75
|
+
createCustomMediaKeys_1 = callbacks.createCustomMediaKeys;
|
|
73
76
|
setMediaKeys = callbacks.setMediaKeys;
|
|
74
77
|
implementation = "webkit";
|
|
75
78
|
}
|
|
76
|
-
else if (
|
|
77
|
-
onEncrypted =
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
else if (isIE11 && MSMediaKeysConstructor !== undefined) {
|
|
80
|
+
onEncrypted = createCompatibleEventListener(["encrypted", "needkey"]);
|
|
81
|
+
var callbacks = getIE11MediaKeysCallbacks();
|
|
82
|
+
isTypeSupported_1 = callbacks.isTypeSupported;
|
|
83
|
+
createCustomMediaKeys_1 = callbacks.createCustomMediaKeys;
|
|
81
84
|
setMediaKeys = callbacks.setMediaKeys;
|
|
82
85
|
implementation = "ms";
|
|
83
86
|
}
|
|
84
|
-
else if (
|
|
85
|
-
onEncrypted =
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
else if (MozMediaKeysConstructor !== undefined) {
|
|
88
|
+
onEncrypted = createCompatibleEventListener(["encrypted", "needkey"]);
|
|
89
|
+
var callbacks = getMozMediaKeysCallbacks();
|
|
90
|
+
isTypeSupported_1 = callbacks.isTypeSupported;
|
|
91
|
+
createCustomMediaKeys_1 = callbacks.createCustomMediaKeys;
|
|
89
92
|
setMediaKeys = callbacks.setMediaKeys;
|
|
90
93
|
implementation = "moz";
|
|
91
94
|
}
|
|
92
95
|
else {
|
|
93
|
-
onEncrypted =
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
if (
|
|
97
|
-
throw new
|
|
96
|
+
onEncrypted = createCompatibleEventListener(["encrypted", "needkey"]);
|
|
97
|
+
var MK_1 = window.MediaKeys;
|
|
98
|
+
var checkForStandardMediaKeys_1 = function () {
|
|
99
|
+
if (MK_1 === undefined) {
|
|
100
|
+
throw new MediaError("MEDIA_KEYS_NOT_SUPPORTED", "No `MediaKeys` implementation found " +
|
|
98
101
|
"in the current browser.");
|
|
99
102
|
}
|
|
100
|
-
if (typeof
|
|
101
|
-
|
|
103
|
+
if (typeof MK_1.isTypeSupported === "undefined") {
|
|
104
|
+
var message = "This browser seems to be unable to play encrypted " +
|
|
102
105
|
"contents currently." +
|
|
103
106
|
"Note: Some browsers do not allow decryption " +
|
|
104
107
|
"in some situations, like when not using HTTPS.";
|
|
105
108
|
throw new Error(message);
|
|
106
109
|
}
|
|
107
110
|
};
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
(
|
|
111
|
-
return
|
|
111
|
+
isTypeSupported_1 = function (keyType) {
|
|
112
|
+
checkForStandardMediaKeys_1();
|
|
113
|
+
assert(typeof MK_1.isTypeSupported === "function");
|
|
114
|
+
return MK_1.isTypeSupported(keyType);
|
|
112
115
|
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
return new
|
|
116
|
+
createCustomMediaKeys_1 = function (keyType) {
|
|
117
|
+
checkForStandardMediaKeys_1();
|
|
118
|
+
return new MK_1(keyType);
|
|
116
119
|
};
|
|
117
120
|
implementation = "unknown";
|
|
118
121
|
}
|
|
119
122
|
}
|
|
120
123
|
requestMediaKeySystemAccess = function (keyType, keySystemConfigurations) {
|
|
121
|
-
if (!
|
|
124
|
+
if (!isTypeSupported_1(keyType)) {
|
|
122
125
|
return Promise.reject(new Error("Unsupported key type"));
|
|
123
126
|
}
|
|
124
|
-
for (
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
127
|
+
for (var i = 0; i < keySystemConfigurations.length; i++) {
|
|
128
|
+
var keySystemConfiguration = keySystemConfigurations[i];
|
|
129
|
+
var videoCapabilities = keySystemConfiguration.videoCapabilities, audioCapabilities = keySystemConfiguration.audioCapabilities, initDataTypes = keySystemConfiguration.initDataTypes, distinctiveIdentifier = keySystemConfiguration.distinctiveIdentifier;
|
|
130
|
+
var supported = true;
|
|
128
131
|
supported = supported &&
|
|
129
132
|
(initDataTypes == null ||
|
|
130
|
-
initDataTypes.some((idt)
|
|
133
|
+
initDataTypes.some(function (idt) { return idt === "cenc"; }));
|
|
131
134
|
supported = supported && (distinctiveIdentifier !== "required");
|
|
132
135
|
if (supported) {
|
|
133
|
-
|
|
136
|
+
var keySystemConfigurationResponse = {
|
|
134
137
|
initDataTypes: ["cenc"],
|
|
135
138
|
distinctiveIdentifier: "not-allowed",
|
|
136
139
|
persistentState: "required",
|
|
@@ -143,17 +146,14 @@ function getEmeApiImplementation(preferredApiType) {
|
|
|
143
146
|
keySystemConfigurationResponse.audioCapabilities = audioCapabilities;
|
|
144
147
|
}
|
|
145
148
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
146
|
-
|
|
147
|
-
return Promise.resolve(new
|
|
149
|
+
var customMediaKeys = createCustomMediaKeys_1(keyType);
|
|
150
|
+
return Promise.resolve(new CustomMediaKeySystemAccess(keyType, customMediaKeys, keySystemConfigurationResponse));
|
|
148
151
|
}
|
|
149
152
|
}
|
|
150
153
|
return Promise.reject(new Error("Unsupported configuration"));
|
|
151
154
|
};
|
|
152
155
|
}
|
|
153
|
-
return { requestMediaKeySystemAccess,
|
|
154
|
-
onEncrypted,
|
|
155
|
-
setMediaKeys,
|
|
156
|
-
implementation };
|
|
156
|
+
return { requestMediaKeySystemAccess: requestMediaKeySystemAccess, onEncrypted: onEncrypted, setMediaKeys: setMediaKeys, implementation: implementation };
|
|
157
157
|
}
|
|
158
158
|
/**
|
|
159
159
|
* Set the given MediaKeys on the given HTMLMediaElement.
|
|
@@ -164,8 +164,8 @@ function getEmeApiImplementation(preferredApiType) {
|
|
|
164
164
|
*/
|
|
165
165
|
function defaultSetMediaKeys(mediaElement, mediaKeys) {
|
|
166
166
|
try {
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
var ret = void 0;
|
|
168
|
+
var elt = mediaElement;
|
|
169
169
|
/* eslint-disable @typescript-eslint/unbound-method */
|
|
170
170
|
if (typeof elt.setMediaKeys === "function") {
|
|
171
171
|
ret = elt.setMediaKeys(mediaKeys);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2015 CANAL+ Group
|
|
4
3
|
*
|
|
@@ -14,12 +13,10 @@
|
|
|
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
|
-
const byte_parsing_1 = require("../../utils/byte_parsing");
|
|
22
|
-
const constants_1 = require("./constants");
|
|
16
|
+
import log from "../../log";
|
|
17
|
+
import { getNextBoxOffsets } from "../../parsers/containers/isobmff";
|
|
18
|
+
import { be4toi, concat, } from "../../utils/byte_parsing";
|
|
19
|
+
import { PSSH_TO_INTEGER } from "./constants";
|
|
23
20
|
/**
|
|
24
21
|
* Modify "initialization data" sent to a `generateKeyRequest` EME call to
|
|
25
22
|
* improve the player's browser compatibility:
|
|
@@ -46,24 +43,24 @@ const constants_1 = require("./constants");
|
|
|
46
43
|
* @param {Uint8Array} initData - Initialization data you want to patch
|
|
47
44
|
* @returns {Uint8Array} - Initialization data, patched
|
|
48
45
|
*/
|
|
49
|
-
function patchInitData(initData) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
export function patchInitData(initData) {
|
|
47
|
+
log.info("Compat: Trying to move CENC PSSH from init data at the end of it.");
|
|
48
|
+
var foundCencV1 = false;
|
|
49
|
+
var concatenatedCencs = new Uint8Array();
|
|
50
|
+
var resInitData = new Uint8Array();
|
|
51
|
+
var offset = 0;
|
|
55
52
|
while (offset < initData.length) {
|
|
56
53
|
if (initData.length < offset + 8 ||
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
be4toi(initData, offset + 4) !== PSSH_TO_INTEGER) {
|
|
55
|
+
log.warn("Compat: unrecognized initialization data. Cannot patch it.");
|
|
59
56
|
throw new Error("Compat: unrecognized initialization data. Cannot patch it.");
|
|
60
57
|
}
|
|
61
|
-
|
|
58
|
+
var len = be4toi(new Uint8Array(initData), offset);
|
|
62
59
|
if (offset + len > initData.length) {
|
|
63
|
-
|
|
60
|
+
log.warn("Compat: unrecognized initialization data. Cannot patch it.");
|
|
64
61
|
throw new Error("Compat: unrecognized initialization data. Cannot patch it.");
|
|
65
62
|
}
|
|
66
|
-
|
|
63
|
+
var currentPSSH = initData.subarray(offset, offset + len);
|
|
67
64
|
// yep
|
|
68
65
|
if (initData[offset + 12] === 0x10 &&
|
|
69
66
|
initData[offset + 13] === 0x77 &&
|
|
@@ -81,39 +78,38 @@ function patchInitData(initData) {
|
|
|
81
78
|
initData[offset + 25] === 0xE2 &&
|
|
82
79
|
initData[offset + 26] === 0xFB &&
|
|
83
80
|
initData[offset + 27] === 0x4B) {
|
|
84
|
-
|
|
85
|
-
|
|
81
|
+
var cencOffsets = getNextBoxOffsets(currentPSSH);
|
|
82
|
+
var version = cencOffsets === null ? undefined :
|
|
86
83
|
currentPSSH[cencOffsets[1]];
|
|
87
|
-
|
|
84
|
+
log.info("Compat: CENC PSSH found with version", version);
|
|
88
85
|
if (version === undefined) {
|
|
89
|
-
|
|
86
|
+
log.warn("Compat: could not read version of CENC PSSH");
|
|
90
87
|
}
|
|
91
88
|
else if (foundCencV1 === (version === 1)) {
|
|
92
89
|
// Either `concatenatedCencs` only contains v1 or does not contain any
|
|
93
|
-
concatenatedCencs =
|
|
90
|
+
concatenatedCencs = concat(concatenatedCencs, currentPSSH);
|
|
94
91
|
}
|
|
95
92
|
else if (version === 1) {
|
|
96
|
-
|
|
93
|
+
log.warn("Compat: cenc version 1 encountered, " +
|
|
97
94
|
"removing every other cenc pssh box.");
|
|
98
95
|
concatenatedCencs = currentPSSH;
|
|
99
96
|
foundCencV1 = true;
|
|
100
97
|
}
|
|
101
98
|
else {
|
|
102
|
-
|
|
99
|
+
log.warn("Compat: filtering out cenc pssh box with wrong version", version);
|
|
103
100
|
}
|
|
104
101
|
}
|
|
105
102
|
else {
|
|
106
|
-
resInitData =
|
|
103
|
+
resInitData = concat(resInitData, currentPSSH);
|
|
107
104
|
}
|
|
108
105
|
offset += len;
|
|
109
106
|
}
|
|
110
107
|
if (offset !== initData.length) {
|
|
111
|
-
|
|
108
|
+
log.warn("Compat: unrecognized initialization data. Cannot patch it.");
|
|
112
109
|
throw new Error("Compat: unrecognized initialization data. Cannot patch it.");
|
|
113
110
|
}
|
|
114
|
-
return
|
|
111
|
+
return concat(resInitData, concatenatedCencs);
|
|
115
112
|
}
|
|
116
|
-
exports.patchInitData = patchInitData;
|
|
117
113
|
/**
|
|
118
114
|
* Generate a request from session.
|
|
119
115
|
* @param {MediaKeySession} session - MediaKeySession on which the request will
|
|
@@ -124,18 +120,18 @@ exports.patchInitData = patchInitData;
|
|
|
124
120
|
* the "encrypted" event for the corresponding request.
|
|
125
121
|
* @returns {Promise} - Emit when done. Errors if fails.
|
|
126
122
|
*/
|
|
127
|
-
function generateKeyRequest(session, initializationDataType, initializationData) {
|
|
128
|
-
|
|
129
|
-
|
|
123
|
+
export default function generateKeyRequest(session, initializationDataType, initializationData) {
|
|
124
|
+
log.debug("Compat: Calling generateRequest on the MediaKeySession");
|
|
125
|
+
var patchedInit;
|
|
130
126
|
try {
|
|
131
127
|
patchedInit = patchInitData(initializationData);
|
|
132
128
|
}
|
|
133
129
|
catch (_e) {
|
|
134
130
|
patchedInit = initializationData;
|
|
135
131
|
}
|
|
136
|
-
|
|
132
|
+
var initDataType = initializationDataType !== null && initializationDataType !== void 0 ? initializationDataType : "";
|
|
137
133
|
return session.generateRequest(initDataType, patchedInit)
|
|
138
|
-
.catch((error)
|
|
134
|
+
.catch(function (error) {
|
|
139
135
|
if (initDataType !== "" || !(error instanceof TypeError)) {
|
|
140
136
|
throw error;
|
|
141
137
|
}
|
|
@@ -144,9 +140,8 @@ function generateKeyRequest(session, initializationDataType, initializationData)
|
|
|
144
140
|
// a rejected promise with a TypeError in that case).
|
|
145
141
|
// Retry with a default "cenc" value for initialization data type if
|
|
146
142
|
// we're in that condition.
|
|
147
|
-
|
|
143
|
+
log.warn("Compat: error while calling `generateRequest` with an empty " +
|
|
148
144
|
"initialization data type. Retrying with a default \"cenc\" value.", error);
|
|
149
145
|
return session.generateRequest("cenc", patchedInit);
|
|
150
146
|
});
|
|
151
147
|
}
|
|
152
|
-
exports.default = generateKeyRequest;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2015 CANAL+ Group
|
|
4
3
|
*
|
|
@@ -14,12 +13,11 @@
|
|
|
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
|
-
const constants_1 = require("./constants");
|
|
16
|
+
import log from "../../log";
|
|
17
|
+
import { getPsshSystemID } from "../../parsers/containers/isobmff";
|
|
18
|
+
import areArraysOfNumbersEqual from "../../utils/are_arrays_of_numbers_equal";
|
|
19
|
+
import { be4toi } from "../../utils/byte_parsing";
|
|
20
|
+
import { PSSH_TO_INTEGER } from "./constants";
|
|
23
21
|
/**
|
|
24
22
|
* Take in input initialization data from an encrypted event and generate the
|
|
25
23
|
* corresponding array of initialization data values from it.
|
|
@@ -32,31 +30,31 @@ const constants_1 = require("./constants");
|
|
|
32
30
|
* @returns {Array.<Object>}
|
|
33
31
|
*/
|
|
34
32
|
function getInitializationDataValues(initData) {
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
var result = [];
|
|
34
|
+
var offset = 0;
|
|
37
35
|
while (offset < initData.length) {
|
|
38
36
|
if (initData.length < offset + 8 ||
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
be4toi(initData, offset + 4) !== PSSH_TO_INTEGER) {
|
|
38
|
+
log.warn("Compat: Unrecognized initialization data. Use as is.");
|
|
41
39
|
return [{ systemId: undefined,
|
|
42
40
|
data: initData }];
|
|
43
41
|
}
|
|
44
|
-
|
|
42
|
+
var len = be4toi(new Uint8Array(initData), offset);
|
|
45
43
|
if (offset + len > initData.length) {
|
|
46
|
-
|
|
44
|
+
log.warn("Compat: Unrecognized initialization data. Use as is.");
|
|
47
45
|
return [{ systemId: undefined,
|
|
48
46
|
data: initData }];
|
|
49
47
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
var currentPSSH = initData.subarray(offset, offset + len);
|
|
49
|
+
var systemId = getPsshSystemID(currentPSSH, 8);
|
|
50
|
+
var currentItem = { systemId: systemId, data: currentPSSH };
|
|
53
51
|
if (isPSSHAlreadyEncountered(result, currentItem)) {
|
|
54
52
|
// As we observed on some browsers (IE and Edge), the initialization data on
|
|
55
53
|
// some segments have sometimes duplicated PSSH when sent through an encrypted
|
|
56
54
|
// event (but not when the corresponding segment has been pushed to the
|
|
57
55
|
// SourceBuffer).
|
|
58
56
|
// We prefer filtering them out, to avoid further issues.
|
|
59
|
-
|
|
57
|
+
log.warn("Compat: Duplicated PSSH found in initialization data, removing it.");
|
|
60
58
|
}
|
|
61
59
|
else {
|
|
62
60
|
result.push(currentItem);
|
|
@@ -64,7 +62,7 @@ function getInitializationDataValues(initData) {
|
|
|
64
62
|
offset += len;
|
|
65
63
|
}
|
|
66
64
|
if (offset !== initData.length) {
|
|
67
|
-
|
|
65
|
+
log.warn("Compat: Unrecognized initialization data. Use as is.");
|
|
68
66
|
return [{ systemId: undefined,
|
|
69
67
|
data: initData }];
|
|
70
68
|
}
|
|
@@ -79,12 +77,12 @@ function getInitializationDataValues(initData) {
|
|
|
79
77
|
* @returns {boolean}
|
|
80
78
|
*/
|
|
81
79
|
function isPSSHAlreadyEncountered(encounteredPSSHs, pssh) {
|
|
82
|
-
for (
|
|
83
|
-
|
|
80
|
+
for (var i = 0; i < encounteredPSSHs.length; i++) {
|
|
81
|
+
var item = encounteredPSSHs[i];
|
|
84
82
|
if (pssh.systemId === undefined ||
|
|
85
83
|
item.systemId === undefined ||
|
|
86
84
|
pssh.systemId === item.systemId) {
|
|
87
|
-
if ((
|
|
85
|
+
if (areArraysOfNumbersEqual(pssh.data, item.data)) {
|
|
88
86
|
return true;
|
|
89
87
|
}
|
|
90
88
|
}
|
|
@@ -102,14 +100,13 @@ function isPSSHAlreadyEncountered(encounteredPSSHs, pssh) {
|
|
|
102
100
|
* @throws {EncryptedMediaError} - Throws if no initialization data is
|
|
103
101
|
* encountered in the given event.
|
|
104
102
|
*/
|
|
105
|
-
function getInitData(encryptedEvent) {
|
|
106
|
-
|
|
103
|
+
export default function getInitData(encryptedEvent) {
|
|
104
|
+
var initData = encryptedEvent.initData, initDataType = encryptedEvent.initDataType;
|
|
107
105
|
if (initData == null) {
|
|
108
|
-
|
|
106
|
+
log.warn("Compat: No init data found on media encrypted event.");
|
|
109
107
|
return null;
|
|
110
108
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
return { type: initDataType, values };
|
|
109
|
+
var initDataBytes = new Uint8Array(initData);
|
|
110
|
+
var values = getInitializationDataValues(initDataBytes);
|
|
111
|
+
return { type: initDataType, values: values };
|
|
114
112
|
}
|
|
115
|
-
exports.default = getInitData;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2015 CANAL+ Group
|
|
4
3
|
*
|
|
@@ -14,9 +13,8 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const browser_detection_1 = require("../browser_detection");
|
|
16
|
+
import { guidToUuid } from "../../utils/string_parsing";
|
|
17
|
+
import { isEdgeChromium, isIEOrEdge, } from "../browser_detection";
|
|
20
18
|
/**
|
|
21
19
|
* Get KID from MediaKeySession keyStatus, and convert it in usual big-endian kid
|
|
22
20
|
* if necessary. On EDGE, Microsoft Playready KID are presented into little-endian GUID.
|
|
@@ -24,11 +22,10 @@ const browser_detection_1 = require("../browser_detection");
|
|
|
24
22
|
* @param {Uint8Array} baseKeyId
|
|
25
23
|
* @returns {Uint8Array}
|
|
26
24
|
*/
|
|
27
|
-
function getUUIDKIDFromKeyStatusKID(keySystem, baseKeyId) {
|
|
25
|
+
export default function getUUIDKIDFromKeyStatusKID(keySystem, baseKeyId) {
|
|
28
26
|
if (keySystem.indexOf("playready") !== -1 &&
|
|
29
|
-
(
|
|
30
|
-
return
|
|
27
|
+
(isIEOrEdge || isEdgeChromium)) {
|
|
28
|
+
return guidToUuid(baseKeyId);
|
|
31
29
|
}
|
|
32
30
|
return baseKeyId;
|
|
33
31
|
}
|
|
34
|
-
exports.default = getUUIDKIDFromKeyStatusKID;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2015 CANAL+ Group
|
|
4
3
|
*
|
|
@@ -14,9 +13,8 @@
|
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
15
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const string_parsing_1 = require("../../utils/string_parsing");
|
|
16
|
+
import { itole4, le4toi, } from "../../utils/byte_parsing";
|
|
17
|
+
import { strToUtf16LE, utf16LEToStr, } from "../../utils/string_parsing";
|
|
20
18
|
/**
|
|
21
19
|
* Create formatted fairplay initdata for WebKit createSession.
|
|
22
20
|
* Layout is :
|
|
@@ -26,35 +24,34 @@ const string_parsing_1 = require("../../utils/string_parsing");
|
|
|
26
24
|
* @param {Uint8Array} serverCertificate
|
|
27
25
|
* @returns {Uint8Array}
|
|
28
26
|
*/
|
|
29
|
-
function getWebKitFairPlayInitData(initDataBytes, serverCertificateBytes) {
|
|
30
|
-
|
|
27
|
+
export default function getWebKitFairPlayInitData(initDataBytes, serverCertificateBytes) {
|
|
28
|
+
var initData = initDataBytes instanceof Uint8Array ? initDataBytes :
|
|
31
29
|
new Uint8Array(initDataBytes);
|
|
32
|
-
|
|
30
|
+
var serverCertificate = serverCertificateBytes instanceof Uint8Array ?
|
|
33
31
|
serverCertificateBytes :
|
|
34
32
|
new Uint8Array(serverCertificateBytes);
|
|
35
|
-
|
|
33
|
+
var length = le4toi(initData, 0);
|
|
36
34
|
if (length + 4 !== initData.length) {
|
|
37
35
|
throw new Error("Unsupported WebKit initData.");
|
|
38
36
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
var initDataUri = utf16LEToStr(initData);
|
|
38
|
+
var skdIndexInInitData = initDataUri.indexOf("skd://");
|
|
39
|
+
var contentIdStr = skdIndexInInitData > -1 ?
|
|
42
40
|
initDataUri.substring(skdIndexInInitData + 6) :
|
|
43
41
|
initDataUri;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
var id = strToUtf16LE(contentIdStr);
|
|
43
|
+
var offset = 0;
|
|
44
|
+
var res = new Uint8Array(initData.byteLength
|
|
47
45
|
/* id length */ + 4 + id.byteLength
|
|
48
46
|
/* certificate length */ + 4 + serverCertificate.byteLength);
|
|
49
47
|
res.set(initData);
|
|
50
48
|
offset += initData.length;
|
|
51
|
-
res.set(
|
|
49
|
+
res.set(itole4(id.byteLength), offset);
|
|
52
50
|
offset += 4;
|
|
53
51
|
res.set(id, offset);
|
|
54
52
|
offset += id.byteLength;
|
|
55
|
-
res.set(
|
|
53
|
+
res.set(itole4(serverCertificate.byteLength), offset);
|
|
56
54
|
offset += 4;
|
|
57
55
|
res.set(serverCertificate, offset);
|
|
58
56
|
return res;
|
|
59
57
|
}
|
|
60
|
-
exports.default = getWebKitFairPlayInitData;
|