rx-player 4.5.0 → 4.6.0-dev.2026100600
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -13
- package/README.md +1 -1
- package/VERSION +1 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.d.ts.map +1 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.js +20 -5
- package/dist/commonjs/__GENERATED_CODE/embedded_worker.d.ts.map +1 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_worker.js +23 -5
- package/dist/commonjs/__GENERATED_CODE/index.d.ts +2 -2
- package/dist/commonjs/__GENERATED_CODE/index.d.ts.map +1 -1
- package/dist/commonjs/__GENERATED_CODE/index.js +19 -6
- package/dist/commonjs/compat/add_class_name.js +16 -12
- package/dist/commonjs/compat/add_text_track.d.ts +1 -1
- package/dist/commonjs/compat/add_text_track.d.ts.map +1 -1
- package/dist/commonjs/compat/add_text_track.js +24 -15
- package/dist/commonjs/compat/browser_compatibility_types.d.ts +8 -7
- package/dist/commonjs/compat/browser_compatibility_types.d.ts.map +1 -1
- package/dist/commonjs/compat/browser_compatibility_types.js +24 -16
- package/dist/commonjs/compat/browser_version.js +30 -13
- package/dist/commonjs/compat/can_patch_isobmff.js +18 -9
- package/dist/commonjs/compat/can_patch_out_pssh.js +19 -9
- package/dist/commonjs/compat/can_preload_before_play.js +18 -10
- package/dist/commonjs/compat/can_rely_on_request_media_key_system_access.d.ts +7 -2
- package/dist/commonjs/compat/can_rely_on_request_media_key_system_access.d.ts.map +1 -1
- package/dist/commonjs/compat/can_rely_on_request_media_key_system_access.js +22 -34
- package/dist/commonjs/compat/can_rely_on_video_visibility_and_size.js +20 -10
- package/dist/commonjs/compat/can_reuse_media_keys.js +19 -14
- package/dist/commonjs/compat/change_source_buffer_type.d.ts +1 -1
- package/dist/commonjs/compat/change_source_buffer_type.d.ts.map +1 -1
- package/dist/commonjs/compat/change_source_buffer_type.js +25 -10
- package/dist/commonjs/compat/clear_element_src.d.ts +1 -1
- package/dist/commonjs/compat/clear_element_src.d.ts.map +1 -1
- package/dist/commonjs/compat/clear_element_src.js +23 -14
- package/dist/commonjs/compat/disable_remote_playback_on_managed_media_source.d.ts +2 -2
- package/dist/commonjs/compat/disable_remote_playback_on_managed_media_source.d.ts.map +1 -1
- package/dist/commonjs/compat/disable_remote_playback_on_managed_media_source.js +21 -12
- package/dist/commonjs/compat/eme/close_session.d.ts +1 -1
- package/dist/commonjs/compat/eme/close_session.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/close_session.js +266 -90
- package/dist/commonjs/compat/eme/constants.js +13 -8
- package/dist/commonjs/compat/eme/custom_key_system_access.d.ts +1 -1
- package/dist/commonjs/compat/eme/custom_key_system_access.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/custom_key_system_access.js +58 -34
- package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.d.ts +2 -2
- package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.js +246 -113
- package/dist/commonjs/compat/eme/custom_media_keys/index.d.ts +5 -5
- package/dist/commonjs/compat/eme/custom_media_keys/index.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/index.js +75 -15
- package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.js +35 -21
- package/dist/commonjs/compat/eme/custom_media_keys/ms_media_keys_constructor.js +20 -12
- package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.js +227 -118
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.d.ts +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.js +257 -149
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +19 -11
- package/dist/commonjs/compat/eme/eme-api-implementation.d.ts +3 -3
- package/dist/commonjs/compat/eme/eme-api-implementation.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/eme-api-implementation.js +191 -148
- package/dist/commonjs/compat/eme/generate_key_request.d.ts +1 -1
- package/dist/commonjs/compat/eme/generate_key_request.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/generate_key_request.js +73 -92
- package/dist/commonjs/compat/eme/get_init_data.d.ts +1 -1
- package/dist/commonjs/compat/eme/get_init_data.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/get_init_data.js +78 -48
- package/dist/commonjs/compat/eme/get_uuid_kid_from_keystatus_kid.js +20 -13
- package/dist/commonjs/compat/eme/get_webkit_fairplay_initdata.js +21 -20
- package/dist/commonjs/compat/eme/index.d.ts +7 -7
- package/dist/commonjs/compat/eme/index.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/index.js +38 -14
- package/dist/commonjs/compat/eme/load_session.d.ts +1 -1
- package/dist/commonjs/compat/eme/load_session.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/load_session.js +170 -60
- package/dist/commonjs/compat/eme/set_media_keys.d.ts +2 -2
- package/dist/commonjs/compat/eme/set_media_keys.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/set_media_keys.js +33 -21
- package/dist/commonjs/compat/enable_audio_track.d.ts +1 -1
- package/dist/commonjs/compat/enable_audio_track.d.ts.map +1 -1
- package/dist/commonjs/compat/enable_audio_track.js +18 -7
- package/dist/commonjs/compat/env_detector.d.ts +2 -0
- package/dist/commonjs/compat/env_detector.d.ts.map +1 -1
- package/dist/commonjs/compat/env_detector.js +88 -123
- package/dist/commonjs/compat/event_listeners.d.ts +4 -4
- package/dist/commonjs/compat/event_listeners.d.ts.map +1 -1
- package/dist/commonjs/compat/event_listeners.js +262 -183
- package/dist/commonjs/compat/force_media_key_instantiation_if_needed.d.ts +24 -0
- package/dist/commonjs/compat/force_media_key_instantiation_if_needed.d.ts.map +1 -0
- package/dist/commonjs/compat/force_media_key_instantiation_if_needed.js +226 -0
- package/dist/commonjs/compat/generate_init_data.d.ts +8 -0
- package/dist/commonjs/compat/generate_init_data.d.ts.map +1 -1
- package/dist/commonjs/compat/generate_init_data.js +64 -47
- package/dist/commonjs/compat/get_start_date.d.ts +1 -1
- package/dist/commonjs/compat/get_start_date.d.ts.map +1 -1
- package/dist/commonjs/compat/get_start_date.js +17 -9
- package/dist/commonjs/compat/has_issues_with_high_media_source_duration.js +19 -9
- package/dist/commonjs/compat/has_mse_in_worker.js +12 -5
- package/dist/commonjs/compat/has_webassembly.js +15 -4
- package/dist/commonjs/compat/has_worker_api.js +21 -8
- package/dist/commonjs/compat/is_codec_supported.d.ts +4 -3
- package/dist/commonjs/compat/is_codec_supported.d.ts.map +1 -1
- package/dist/commonjs/compat/is_codec_supported.js +35 -34
- package/dist/commonjs/compat/is_seeking_approximate.js +20 -10
- package/dist/commonjs/compat/is_vtt_cue.d.ts +1 -1
- package/dist/commonjs/compat/is_vtt_cue.d.ts.map +1 -1
- package/dist/commonjs/compat/is_vtt_cue.js +24 -8
- package/dist/commonjs/compat/make_vtt_cue.d.ts +1 -1
- package/dist/commonjs/compat/make_vtt_cue.d.ts.map +1 -1
- package/dist/commonjs/compat/make_vtt_cue.js +26 -14
- package/dist/commonjs/compat/may_media_element_fail_on_undecipherable_data.js +19 -9
- package/dist/commonjs/compat/on_height_width_change.d.ts +2 -2
- package/dist/commonjs/compat/on_height_width_change.d.ts.map +1 -1
- package/dist/commonjs/compat/on_height_width_change.js +42 -27
- package/dist/commonjs/compat/patch_webkit_source_buffer.js +30 -22
- package/dist/commonjs/compat/remove_cue.d.ts +1 -1
- package/dist/commonjs/compat/remove_cue.d.ts.map +1 -1
- package/dist/commonjs/compat/remove_cue.js +28 -21
- package/dist/commonjs/compat/reset_media_element.d.ts +1 -1
- package/dist/commonjs/compat/reset_media_element.d.ts.map +1 -1
- package/dist/commonjs/compat/reset_media_element.js +29 -14
- package/dist/commonjs/compat/should_await_set_media_keys.js +19 -11
- package/dist/commonjs/compat/should_favour_custom_safari_EME.js +21 -13
- package/dist/commonjs/compat/should_patch_out_dolby_vision_config_data_from_mp4.js +22 -11
- package/dist/commonjs/compat/should_reload_media_source_on_decipherability_update.js +19 -11
- package/dist/commonjs/compat/should_renew_media_key_system_access.d.ts +11 -0
- package/dist/commonjs/compat/should_renew_media_key_system_access.d.ts.map +1 -1
- package/dist/commonjs/compat/should_renew_media_key_system_access.js +31 -13
- package/dist/commonjs/compat/should_seek_at_zero.js +19 -9
- package/dist/commonjs/compat/should_unset_media_keys.js +20 -10
- package/dist/commonjs/compat/should_validate_metadata.js +20 -10
- package/dist/commonjs/compat/should_wait_for_data_before_loaded.js +21 -14
- package/dist/commonjs/compat/should_wait_for_have_enough_data.js +19 -9
- package/dist/commonjs/config.d.ts +2 -2
- package/dist/commonjs/config.d.ts.map +1 -1
- package/dist/commonjs/config.js +108 -58
- package/dist/commonjs/core/adaptive/adaptive_representation_selector.d.ts +9 -9
- package/dist/commonjs/core/adaptive/adaptive_representation_selector.d.ts.map +1 -1
- package/dist/commonjs/core/adaptive/adaptive_representation_selector.js +133 -142
- package/dist/commonjs/core/adaptive/buffer_based_chooser.d.ts +1 -1
- package/dist/commonjs/core/adaptive/buffer_based_chooser.d.ts.map +1 -1
- package/dist/commonjs/core/adaptive/buffer_based_chooser.js +144 -138
- package/dist/commonjs/core/adaptive/guess_based_chooser.d.ts +4 -4
- package/dist/commonjs/core/adaptive/guess_based_chooser.d.ts.map +1 -1
- package/dist/commonjs/core/adaptive/guess_based_chooser.js +171 -168
- package/dist/commonjs/core/adaptive/index.d.ts +2 -2
- package/dist/commonjs/core/adaptive/index.d.ts.map +1 -1
- package/dist/commonjs/core/adaptive/index.js +17 -5
- package/dist/commonjs/core/adaptive/network_analyzer.d.ts +4 -4
- package/dist/commonjs/core/adaptive/network_analyzer.d.ts.map +1 -1
- package/dist/commonjs/core/adaptive/network_analyzer.js +154 -147
- package/dist/commonjs/core/adaptive/utils/bandwidth_estimator.js +79 -46
- package/dist/commonjs/core/adaptive/utils/ewma.js +54 -27
- package/dist/commonjs/core/adaptive/utils/filter_by_bitrate.d.ts +1 -1
- package/dist/commonjs/core/adaptive/utils/filter_by_bitrate.d.ts.map +1 -1
- package/dist/commonjs/core/adaptive/utils/filter_by_bitrate.js +23 -9
- package/dist/commonjs/core/adaptive/utils/filter_by_resolution.d.ts +1 -1
- package/dist/commonjs/core/adaptive/utils/filter_by_resolution.d.ts.map +1 -1
- package/dist/commonjs/core/adaptive/utils/filter_by_resolution.js +25 -16
- package/dist/commonjs/core/adaptive/utils/get_buffer_levels.js +22 -17
- package/dist/commonjs/core/adaptive/utils/last_estimate_storage.d.ts +1 -1
- package/dist/commonjs/core/adaptive/utils/last_estimate_storage.d.ts.map +1 -1
- package/dist/commonjs/core/adaptive/utils/last_estimate_storage.js +43 -15
- package/dist/commonjs/core/adaptive/utils/pending_requests_store.d.ts +1 -1
- package/dist/commonjs/core/adaptive/utils/pending_requests_store.d.ts.map +1 -1
- package/dist/commonjs/core/adaptive/utils/pending_requests_store.js +96 -52
- package/dist/commonjs/core/adaptive/utils/representation_score_calculator.d.ts +1 -1
- package/dist/commonjs/core/adaptive/utils/representation_score_calculator.d.ts.map +1 -1
- package/dist/commonjs/core/adaptive/utils/representation_score_calculator.js +93 -86
- package/dist/commonjs/core/adaptive/utils/select_optimal_representation.d.ts +1 -1
- package/dist/commonjs/core/adaptive/utils/select_optimal_representation.d.ts.map +1 -1
- package/dist/commonjs/core/adaptive/utils/select_optimal_representation.js +21 -10
- package/dist/commonjs/core/cmcd/cmcd_data_builder.d.ts +4 -4
- package/dist/commonjs/core/cmcd/cmcd_data_builder.d.ts.map +1 -1
- package/dist/commonjs/core/cmcd/cmcd_data_builder.js +325 -313
- package/dist/commonjs/core/cmcd/index.d.ts +2 -2
- package/dist/commonjs/core/cmcd/index.d.ts.map +1 -1
- package/dist/commonjs/core/cmcd/index.js +16 -3
- package/dist/commonjs/core/entry/FreezeResolver.d.ts +3 -3
- package/dist/commonjs/core/entry/FreezeResolver.d.ts.map +1 -1
- package/dist/commonjs/core/entry/FreezeResolver.js +308 -324
- package/dist/commonjs/core/entry/content_preparer.d.ts +26 -30
- package/dist/commonjs/core/entry/content_preparer.d.ts.map +1 -1
- package/dist/commonjs/core/entry/content_preparer.js +311 -266
- package/dist/commonjs/core/entry/content_time_boundaries_observer.d.ts +5 -5
- package/dist/commonjs/core/entry/content_time_boundaries_observer.d.ts.map +1 -1
- package/dist/commonjs/core/entry/content_time_boundaries_observer.js +450 -347
- package/dist/commonjs/core/entry/core_entry.d.ts +4 -4
- package/dist/commonjs/core/entry/core_entry.d.ts.map +1 -1
- package/dist/commonjs/core/entry/core_entry.js +625 -527
- package/dist/commonjs/core/entry/core_text_displayer_interface.d.ts +4 -4
- package/dist/commonjs/core/entry/core_text_displayer_interface.d.ts.map +1 -1
- package/dist/commonjs/core/entry/core_text_displayer_interface.js +167 -113
- package/dist/commonjs/core/entry/create_content_time_boundaries_observer.d.ts +7 -7
- package/dist/commonjs/core/entry/create_content_time_boundaries_observer.d.ts.map +1 -1
- package/dist/commonjs/core/entry/create_content_time_boundaries_observer.js +26 -15
- package/dist/commonjs/core/entry/get_buffered_data_per_media_buffer.d.ts +4 -4
- package/dist/commonjs/core/entry/get_buffered_data_per_media_buffer.d.ts.map +1 -1
- package/dist/commonjs/core/entry/get_buffered_data_per_media_buffer.js +23 -8
- package/dist/commonjs/core/entry/get_thumbnail_data.d.ts +3 -3
- package/dist/commonjs/core/entry/get_thumbnail_data.d.ts.map +1 -1
- package/dist/commonjs/core/entry/get_thumbnail_data.js +152 -45
- package/dist/commonjs/core/entry/index.d.ts +3 -3
- package/dist/commonjs/core/entry/index.d.ts.map +1 -1
- package/dist/commonjs/core/entry/index.js +16 -3
- package/dist/commonjs/core/entry/track_choice_setter.d.ts +4 -4
- package/dist/commonjs/core/entry/track_choice_setter.d.ts.map +1 -1
- package/dist/commonjs/core/entry/track_choice_setter.js +187 -143
- package/dist/commonjs/core/entry/utils.d.ts +5 -5
- package/dist/commonjs/core/entry/utils.d.ts.map +1 -1
- package/dist/commonjs/core/entry/utils.js +117 -111
- package/dist/commonjs/core/fetchers/cdn_prioritizer.d.ts +3 -3
- package/dist/commonjs/core/fetchers/cdn_prioritizer.d.ts.map +1 -1
- package/dist/commonjs/core/fetchers/cdn_prioritizer.js +225 -131
- package/dist/commonjs/core/fetchers/index.d.ts +7 -7
- package/dist/commonjs/core/fetchers/index.d.ts.map +1 -1
- package/dist/commonjs/core/fetchers/index.js +33 -12
- package/dist/commonjs/core/fetchers/manifest/index.d.ts +2 -2
- package/dist/commonjs/core/fetchers/manifest/index.d.ts.map +1 -1
- package/dist/commonjs/core/fetchers/manifest/index.js +17 -5
- package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.d.ts +5 -5
- package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.d.ts.map +1 -1
- package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.js +737 -541
- package/dist/commonjs/core/fetchers/segment/index.d.ts +4 -4
- package/dist/commonjs/core/fetchers/segment/index.d.ts.map +1 -1
- package/dist/commonjs/core/fetchers/segment/index.js +17 -5
- package/dist/commonjs/core/fetchers/segment/initialization_segment_cache.d.ts +1 -1
- package/dist/commonjs/core/fetchers/segment/initialization_segment_cache.d.ts.map +1 -1
- package/dist/commonjs/core/fetchers/segment/initialization_segment_cache.js +56 -25
- package/dist/commonjs/core/fetchers/segment/prioritized_segment_fetcher.d.ts +4 -4
- package/dist/commonjs/core/fetchers/segment/prioritized_segment_fetcher.d.ts.map +1 -1
- package/dist/commonjs/core/fetchers/segment/prioritized_segment_fetcher.js +23 -16
- package/dist/commonjs/core/fetchers/segment/segment_fetcher.d.ts +8 -8
- package/dist/commonjs/core/fetchers/segment/segment_fetcher.d.ts.map +1 -1
- package/dist/commonjs/core/fetchers/segment/segment_fetcher.js +298 -175
- package/dist/commonjs/core/fetchers/segment/segment_queue.d.ts +6 -6
- package/dist/commonjs/core/fetchers/segment/segment_queue.d.ts.map +1 -1
- package/dist/commonjs/core/fetchers/segment/segment_queue.js +446 -363
- package/dist/commonjs/core/fetchers/segment/segment_queue_creator.d.ts +7 -7
- package/dist/commonjs/core/fetchers/segment/segment_queue_creator.d.ts.map +1 -1
- package/dist/commonjs/core/fetchers/segment/segment_queue_creator.js +96 -44
- package/dist/commonjs/core/fetchers/segment/task_prioritizer.d.ts +1 -1
- package/dist/commonjs/core/fetchers/segment/task_prioritizer.d.ts.map +1 -1
- package/dist/commonjs/core/fetchers/segment/task_prioritizer.js +370 -305
- package/dist/commonjs/core/fetchers/thumbnails/index.d.ts +2 -2
- package/dist/commonjs/core/fetchers/thumbnails/index.d.ts.map +1 -1
- package/dist/commonjs/core/fetchers/thumbnails/index.js +16 -3
- package/dist/commonjs/core/fetchers/thumbnails/thumbnail_fetcher.d.ts +5 -5
- package/dist/commonjs/core/fetchers/thumbnails/thumbnail_fetcher.d.ts.map +1 -1
- package/dist/commonjs/core/fetchers/thumbnails/thumbnail_fetcher.js +322 -139
- package/dist/commonjs/core/fetchers/utils/error_selector.d.ts +1 -1
- package/dist/commonjs/core/fetchers/utils/error_selector.d.ts.map +1 -1
- package/dist/commonjs/core/fetchers/utils/error_selector.js +23 -12
- package/dist/commonjs/core/fetchers/utils/retry_after_delay.d.ts +7 -0
- package/dist/commonjs/core/fetchers/utils/retry_after_delay.d.ts.map +1 -0
- package/dist/commonjs/core/fetchers/utils/retry_after_delay.js +91 -0
- package/dist/commonjs/core/fetchers/utils/schedule_request.d.ts +3 -3
- package/dist/commonjs/core/fetchers/utils/schedule_request.d.ts.map +1 -1
- package/dist/commonjs/core/fetchers/utils/schedule_request.js +309 -230
- package/dist/commonjs/core/segment_sinks/garbage_collector.d.ts +5 -5
- package/dist/commonjs/core/segment_sinks/garbage_collector.d.ts.map +1 -1
- package/dist/commonjs/core/segment_sinks/garbage_collector.js +275 -131
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/audio_video_segment_sink.d.ts +4 -4
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/audio_video_segment_sink.d.ts.map +1 -1
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/audio_video_segment_sink.js +479 -269
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/index.d.ts +1 -1
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/index.d.ts.map +1 -1
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/index.js +17 -5
- package/dist/commonjs/core/segment_sinks/implementations/index.d.ts +3 -3
- package/dist/commonjs/core/segment_sinks/implementations/index.d.ts.map +1 -1
- package/dist/commonjs/core/segment_sinks/implementations/index.js +29 -20
- package/dist/commonjs/core/segment_sinks/implementations/text/index.d.ts +2 -2
- package/dist/commonjs/core/segment_sinks/implementations/text/index.d.ts.map +1 -1
- package/dist/commonjs/core/segment_sinks/implementations/text/index.js +16 -3
- package/dist/commonjs/core/segment_sinks/implementations/text/text_segment_sink.d.ts +5 -5
- package/dist/commonjs/core/segment_sinks/implementations/text/text_segment_sink.d.ts.map +1 -1
- package/dist/commonjs/core/segment_sinks/implementations/text/text_segment_sink.js +394 -203
- package/dist/commonjs/core/segment_sinks/implementations/types.d.ts +4 -4
- package/dist/commonjs/core/segment_sinks/implementations/types.d.ts.map +1 -1
- package/dist/commonjs/core/segment_sinks/implementations/types.js +73 -69
- package/dist/commonjs/core/segment_sinks/implementations/utils/manual_time_ranges.js +97 -49
- package/dist/commonjs/core/segment_sinks/index.d.ts +6 -6
- package/dist/commonjs/core/segment_sinks/index.d.ts.map +1 -1
- package/dist/commonjs/core/segment_sinks/index.js +40 -14
- package/dist/commonjs/core/segment_sinks/inventory/buffered_history.d.ts +1 -1
- package/dist/commonjs/core/segment_sinks/inventory/buffered_history.d.ts.map +1 -1
- package/dist/commonjs/core/segment_sinks/inventory/buffered_history.js +96 -76
- package/dist/commonjs/core/segment_sinks/inventory/index.d.ts +5 -5
- package/dist/commonjs/core/segment_sinks/inventory/index.d.ts.map +1 -1
- package/dist/commonjs/core/segment_sinks/inventory/index.js +29 -9
- package/dist/commonjs/core/segment_sinks/inventory/segment_inventory.d.ts +4 -4
- package/dist/commonjs/core/segment_sinks/inventory/segment_inventory.d.ts.map +1 -1
- package/dist/commonjs/core/segment_sinks/inventory/segment_inventory.js +756 -773
- package/dist/commonjs/core/segment_sinks/inventory/types.d.ts +1 -1
- package/dist/commonjs/core/segment_sinks/inventory/types.d.ts.map +1 -1
- package/dist/commonjs/core/segment_sinks/inventory/types.js +4 -3
- package/dist/commonjs/core/segment_sinks/inventory/utils.d.ts +2 -2
- package/dist/commonjs/core/segment_sinks/inventory/utils.d.ts.map +1 -1
- package/dist/commonjs/core/segment_sinks/inventory/utils.js +34 -34
- package/dist/commonjs/core/segment_sinks/segment_sinks_store.d.ts +6 -6
- package/dist/commonjs/core/segment_sinks/segment_sinks_store.d.ts.map +1 -1
- package/dist/commonjs/core/segment_sinks/segment_sinks_store.js +311 -256
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.d.ts +2 -2
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.d.ts.map +1 -1
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.js +456 -257
- package/dist/commonjs/core/stream/adaptation/get_representations_switch_strategy.d.ts +4 -4
- package/dist/commonjs/core/stream/adaptation/get_representations_switch_strategy.d.ts.map +1 -1
- package/dist/commonjs/core/stream/adaptation/get_representations_switch_strategy.js +98 -71
- package/dist/commonjs/core/stream/adaptation/index.d.ts +2 -2
- package/dist/commonjs/core/stream/adaptation/index.d.ts.map +1 -1
- package/dist/commonjs/core/stream/adaptation/index.js +17 -5
- package/dist/commonjs/core/stream/adaptation/types.d.ts +8 -8
- package/dist/commonjs/core/stream/adaptation/types.d.ts.map +1 -1
- package/dist/commonjs/core/stream/adaptation/types.js +3 -1
- package/dist/commonjs/core/stream/index.d.ts +5 -5
- package/dist/commonjs/core/stream/index.d.ts.map +1 -1
- package/dist/commonjs/core/stream/index.js +17 -5
- package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.d.ts +3 -3
- package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.d.ts.map +1 -1
- package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.js +99 -82
- package/dist/commonjs/core/stream/orchestrator/index.d.ts +2 -2
- package/dist/commonjs/core/stream/orchestrator/index.d.ts.map +1 -1
- package/dist/commonjs/core/stream/orchestrator/index.js +17 -5
- package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.d.ts +9 -9
- package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.d.ts.map +1 -1
- package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.js +427 -262
- package/dist/commonjs/core/stream/period/index.d.ts +2 -2
- package/dist/commonjs/core/stream/period/index.d.ts.map +1 -1
- package/dist/commonjs/core/stream/period/index.js +17 -5
- package/dist/commonjs/core/stream/period/period_stream.d.ts +2 -2
- package/dist/commonjs/core/stream/period/period_stream.d.ts.map +1 -1
- package/dist/commonjs/core/stream/period/period_stream.js +566 -325
- package/dist/commonjs/core/stream/period/types.d.ts +15 -15
- package/dist/commonjs/core/stream/period/types.d.ts.map +1 -1
- package/dist/commonjs/core/stream/period/types.js +3 -1
- package/dist/commonjs/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +5 -5
- package/dist/commonjs/core/stream/period/utils/get_adaptation_switch_strategy.d.ts.map +1 -1
- package/dist/commonjs/core/stream/period/utils/get_adaptation_switch_strategy.js +101 -75
- package/dist/commonjs/core/stream/representation/encryption_data_notifier.d.ts +2 -2
- package/dist/commonjs/core/stream/representation/encryption_data_notifier.d.ts.map +1 -1
- package/dist/commonjs/core/stream/representation/encryption_data_notifier.js +75 -61
- package/dist/commonjs/core/stream/representation/index.d.ts +2 -2
- package/dist/commonjs/core/stream/representation/index.d.ts.map +1 -1
- package/dist/commonjs/core/stream/representation/index.js +17 -5
- package/dist/commonjs/core/stream/representation/representation_stream.d.ts +2 -2
- package/dist/commonjs/core/stream/representation/representation_stream.d.ts.map +1 -1
- package/dist/commonjs/core/stream/representation/representation_stream.js +137 -107
- package/dist/commonjs/core/stream/representation/types.d.ts +9 -9
- package/dist/commonjs/core/stream/representation/types.d.ts.map +1 -1
- package/dist/commonjs/core/stream/representation/types.js +3 -1
- package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.d.ts +6 -6
- package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.d.ts.map +1 -1
- package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.js +242 -90
- package/dist/commonjs/core/stream/representation/utils/check_for_discontinuity.d.ts +3 -3
- package/dist/commonjs/core/stream/representation/utils/check_for_discontinuity.d.ts.map +1 -1
- package/dist/commonjs/core/stream/representation/utils/check_for_discontinuity.js +68 -58
- package/dist/commonjs/core/stream/representation/utils/get_buffer_status.d.ts +4 -4
- package/dist/commonjs/core/stream/representation/utils/get_buffer_status.d.ts.map +1 -1
- package/dist/commonjs/core/stream/representation/utils/get_buffer_status.js +115 -103
- package/dist/commonjs/core/stream/representation/utils/get_needed_segments.d.ts +2 -2
- package/dist/commonjs/core/stream/representation/utils/get_needed_segments.d.ts.map +1 -1
- package/dist/commonjs/core/stream/representation/utils/get_needed_segments.js +97 -119
- package/dist/commonjs/core/stream/representation/utils/get_segment_priority.js +19 -9
- package/dist/commonjs/core/stream/representation/utils/push_init_segment.d.ts +6 -6
- package/dist/commonjs/core/stream/representation/utils/push_init_segment.d.ts.map +1 -1
- package/dist/commonjs/core/stream/representation/utils/push_init_segment.js +173 -53
- package/dist/commonjs/core/stream/representation/utils/push_media_segment.d.ts +7 -7
- package/dist/commonjs/core/stream/representation/utils/push_media_segment.d.ts.map +1 -1
- package/dist/commonjs/core/stream/representation/utils/push_media_segment.js +182 -64
- package/dist/commonjs/core/types.d.ts +14 -14
- package/dist/commonjs/core/types.d.ts.map +1 -1
- package/dist/commonjs/core/types.js +4 -2
- package/dist/commonjs/default_config.d.ts +8 -0
- package/dist/commonjs/default_config.d.ts.map +1 -1
- package/dist/commonjs/default_config.js +191 -266
- package/dist/commonjs/errors/custom_loader_error.js +116 -30
- package/dist/commonjs/errors/encrypted_media_error.d.ts +2 -2
- package/dist/commonjs/errors/encrypted_media_error.d.ts.map +1 -1
- package/dist/commonjs/errors/encrypted_media_error.js +152 -43
- package/dist/commonjs/errors/error_codes.d.ts +1 -1
- package/dist/commonjs/errors/error_codes.d.ts.map +1 -1
- package/dist/commonjs/errors/error_codes.js +25 -10
- package/dist/commonjs/errors/error_message.js +11 -6
- package/dist/commonjs/errors/format_error.d.ts +1 -1
- package/dist/commonjs/errors/format_error.d.ts.map +1 -1
- package/dist/commonjs/errors/format_error.js +29 -13
- package/dist/commonjs/errors/index.d.ts +14 -14
- package/dist/commonjs/errors/index.d.ts.map +1 -1
- package/dist/commonjs/errors/index.js +92 -25
- package/dist/commonjs/errors/is_known_error.d.ts +1 -1
- package/dist/commonjs/errors/is_known_error.d.ts.map +1 -1
- package/dist/commonjs/errors/is_known_error.js +28 -16
- package/dist/commonjs/errors/media_error.d.ts +2 -2
- package/dist/commonjs/errors/media_error.d.ts.map +1 -1
- package/dist/commonjs/errors/media_error.js +165 -58
- package/dist/commonjs/errors/network_error.d.ts +2 -2
- package/dist/commonjs/errors/network_error.d.ts.map +1 -1
- package/dist/commonjs/errors/network_error.js +156 -50
- package/dist/commonjs/errors/other_error.d.ts +1 -1
- package/dist/commonjs/errors/other_error.d.ts.map +1 -1
- package/dist/commonjs/errors/other_error.js +149 -42
- package/dist/commonjs/errors/source_buffer_error.js +149 -43
- package/dist/commonjs/errors/worker_initialization_error.d.ts.map +1 -1
- package/dist/commonjs/errors/worker_initialization_error.js +118 -30
- package/dist/commonjs/experimental/features/index.d.ts +3 -3
- package/dist/commonjs/experimental/features/index.d.ts.map +1 -1
- package/dist/commonjs/experimental/features/index.js +24 -10
- package/dist/commonjs/experimental/features/local.d.ts +1 -1
- package/dist/commonjs/experimental/features/local.d.ts.map +1 -1
- package/dist/commonjs/experimental/features/local.js +32 -13
- package/dist/commonjs/experimental/features/metaplaylist.d.ts +1 -1
- package/dist/commonjs/experimental/features/metaplaylist.d.ts.map +1 -1
- package/dist/commonjs/experimental/features/metaplaylist.js +32 -13
- package/dist/commonjs/experimental/features/multi_thread.d.ts +1 -1
- package/dist/commonjs/experimental/features/multi_thread.d.ts.map +1 -1
- package/dist/commonjs/experimental/features/multi_thread.js +27 -11
- package/dist/commonjs/experimental/features/worker/index.d.ts +3 -3
- package/dist/commonjs/experimental/features/worker/index.d.ts.map +1 -1
- package/dist/commonjs/experimental/features/worker/index.js +29 -10
- package/dist/commonjs/experimental/index.d.ts +1 -1
- package/dist/commonjs/experimental/index.d.ts.map +1 -1
- package/dist/commonjs/experimental/index.js +15 -4
- package/dist/commonjs/experimental/tools/DummyMediaElement/eme.d.ts +19 -3
- package/dist/commonjs/experimental/tools/DummyMediaElement/eme.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/DummyMediaElement/eme.js +1066 -626
- package/dist/commonjs/experimental/tools/DummyMediaElement/html5.d.ts +7 -7
- package/dist/commonjs/experimental/tools/DummyMediaElement/html5.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/DummyMediaElement/html5.js +840 -779
- package/dist/commonjs/experimental/tools/DummyMediaElement/index.d.ts +1 -1
- package/dist/commonjs/experimental/tools/DummyMediaElement/index.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/DummyMediaElement/index.js +11 -3
- package/dist/commonjs/experimental/tools/DummyMediaElement/mse.d.ts +4 -4
- package/dist/commonjs/experimental/tools/DummyMediaElement/mse.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/DummyMediaElement/mse.js +743 -580
- package/dist/commonjs/experimental/tools/DummyMediaElement/utils.d.ts +4 -4
- package/dist/commonjs/experimental/tools/DummyMediaElement/utils.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/DummyMediaElement/utils.js +304 -255
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/dash.d.ts +1 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/dash.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/dash.js +19 -6
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts +1 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/metaplaylist.js +19 -6
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/index.d.ts +1 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/index.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/index.js +53 -8
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +3 -3
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +32 -19
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +3 -3
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +45 -37
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +2 -2
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +11 -6
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/types.d.ts +2 -2
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/types.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/types.js +4 -3
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts +4 -4
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +493 -310
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.js +119 -27
- package/dist/commonjs/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +191 -82
- package/dist/commonjs/experimental/tools/createMetaplaylist/index.d.ts +1 -1
- package/dist/commonjs/experimental/tools/createMetaplaylist/index.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/createMetaplaylist/index.js +39 -15
- package/dist/commonjs/experimental/tools/index.d.ts +3 -3
- package/dist/commonjs/experimental/tools/index.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/index.js +29 -10
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api.d.ts +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api.js +370 -156
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/index.d.ts +2 -2
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/index.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/index.js +17 -5
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/log.d.ts +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/log.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/log.js +18 -6
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.js +187 -65
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +171 -78
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.js +61 -53
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/isTypeSupportedWithFeatures.d.ts +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/isTypeSupportedWithFeatures.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/isTypeSupportedWithFeatures.js +166 -78
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.js +23 -17
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +21 -13
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/types.js +4 -3
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/utils.d.ts +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/utils.d.ts.map +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/utils.js +90 -58
- package/dist/commonjs/features/add_features.d.ts +1 -1
- package/dist/commonjs/features/add_features.d.ts.map +1 -1
- package/dist/commonjs/features/add_features.js +36 -34
- package/dist/commonjs/features/features_object.d.ts +1 -1
- package/dist/commonjs/features/features_object.d.ts.map +1 -1
- package/dist/commonjs/features/features_object.js +17 -8
- package/dist/commonjs/features/index.d.ts +3 -3
- package/dist/commonjs/features/index.d.ts.map +1 -1
- package/dist/commonjs/features/index.js +27 -10
- package/dist/commonjs/features/list/dash.d.ts +1 -1
- package/dist/commonjs/features/list/dash.d.ts.map +1 -1
- package/dist/commonjs/features/list/dash.js +35 -17
- package/dist/commonjs/features/list/dash_wasm.d.ts +2 -2
- package/dist/commonjs/features/list/dash_wasm.d.ts.map +1 -1
- package/dist/commonjs/features/list/dash_wasm.js +37 -19
- package/dist/commonjs/features/list/debug_element.d.ts +1 -1
- package/dist/commonjs/features/list/debug_element.d.ts.map +1 -1
- package/dist/commonjs/features/list/debug_element.js +26 -7
- package/dist/commonjs/features/list/directfile.d.ts +1 -1
- package/dist/commonjs/features/list/directfile.d.ts.map +1 -1
- package/dist/commonjs/features/list/directfile.js +31 -10
- package/dist/commonjs/features/list/eme.d.ts +1 -1
- package/dist/commonjs/features/list/eme.d.ts.map +1 -1
- package/dist/commonjs/features/list/eme.js +27 -9
- package/dist/commonjs/features/list/html_sami_parser.d.ts +1 -1
- package/dist/commonjs/features/list/html_sami_parser.d.ts.map +1 -1
- package/dist/commonjs/features/list/html_sami_parser.js +29 -11
- package/dist/commonjs/features/list/html_srt_parser.d.ts +1 -1
- package/dist/commonjs/features/list/html_srt_parser.d.ts.map +1 -1
- package/dist/commonjs/features/list/html_srt_parser.js +29 -11
- package/dist/commonjs/features/list/html_text_buffer.d.ts +1 -1
- package/dist/commonjs/features/list/html_text_buffer.d.ts.map +1 -1
- package/dist/commonjs/features/list/html_text_buffer.js +27 -9
- package/dist/commonjs/features/list/html_ttml_parser.d.ts +1 -1
- package/dist/commonjs/features/list/html_ttml_parser.d.ts.map +1 -1
- package/dist/commonjs/features/list/html_ttml_parser.js +29 -11
- package/dist/commonjs/features/list/html_vtt_parser.d.ts +1 -1
- package/dist/commonjs/features/list/html_vtt_parser.d.ts.map +1 -1
- package/dist/commonjs/features/list/html_vtt_parser.js +30 -12
- package/dist/commonjs/features/list/index.d.ts +18 -17
- package/dist/commonjs/features/list/index.d.ts.map +1 -1
- package/dist/commonjs/features/list/index.js +84 -38
- package/dist/commonjs/features/list/media_source_main.d.ts +1 -1
- package/dist/commonjs/features/list/media_source_main.d.ts.map +1 -1
- package/dist/commonjs/features/list/media_source_main.js +30 -11
- package/dist/commonjs/features/list/multi_thread.d.ts +9 -0
- package/dist/commonjs/features/list/multi_thread.d.ts.map +1 -0
- package/dist/commonjs/features/list/multi_thread.js +35 -0
- package/dist/commonjs/features/list/native_sami_parser.d.ts +1 -1
- package/dist/commonjs/features/list/native_sami_parser.d.ts.map +1 -1
- package/dist/commonjs/features/list/native_sami_parser.js +29 -11
- package/dist/commonjs/features/list/native_srt_parser.d.ts +1 -1
- package/dist/commonjs/features/list/native_srt_parser.d.ts.map +1 -1
- package/dist/commonjs/features/list/native_srt_parser.js +29 -11
- package/dist/commonjs/features/list/native_text_buffer.d.ts +1 -1
- package/dist/commonjs/features/list/native_text_buffer.d.ts.map +1 -1
- package/dist/commonjs/features/list/native_text_buffer.js +27 -9
- package/dist/commonjs/features/list/native_ttml_parser.d.ts +1 -1
- package/dist/commonjs/features/list/native_ttml_parser.d.ts.map +1 -1
- package/dist/commonjs/features/list/native_ttml_parser.js +29 -11
- package/dist/commonjs/features/list/native_vtt_parser.d.ts +1 -1
- package/dist/commonjs/features/list/native_vtt_parser.d.ts.map +1 -1
- package/dist/commonjs/features/list/native_vtt_parser.js +30 -12
- package/dist/commonjs/features/list/smooth.d.ts +1 -1
- package/dist/commonjs/features/list/smooth.d.ts.map +1 -1
- package/dist/commonjs/features/list/smooth.js +33 -15
- package/dist/commonjs/features/types.d.ts +16 -16
- package/dist/commonjs/features/types.d.ts.map +1 -1
- package/dist/commonjs/features/types.js +4 -3
- package/dist/commonjs/importable_worker.d.ts +2 -2
- package/dist/commonjs/importable_worker.d.ts.map +1 -1
- package/dist/commonjs/importable_worker.js +178 -122
- package/dist/commonjs/index.d.ts +1 -1
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +36 -25
- package/dist/commonjs/initialize_worker.d.ts +1 -1
- package/dist/commonjs/initialize_worker.d.ts.map +1 -1
- package/dist/commonjs/initialize_worker.js +48 -34
- package/dist/commonjs/log.d.ts +1 -1
- package/dist/commonjs/log.d.ts.map +1 -1
- package/dist/commonjs/log.js +18 -6
- package/dist/commonjs/main_thread/api/debug/buffer_graph.d.ts +1 -1
- package/dist/commonjs/main_thread/api/debug/buffer_graph.d.ts.map +1 -1
- package/dist/commonjs/main_thread/api/debug/buffer_graph.js +187 -154
- package/dist/commonjs/main_thread/api/debug/buffer_size_graph.js +141 -98
- package/dist/commonjs/main_thread/api/debug/constants.js +11 -5
- package/dist/commonjs/main_thread/api/debug/index.d.ts +1 -1
- package/dist/commonjs/main_thread/api/debug/index.d.ts.map +1 -1
- package/dist/commonjs/main_thread/api/debug/index.js +16 -3
- package/dist/commonjs/main_thread/api/debug/modules/general_info.d.ts +2 -2
- package/dist/commonjs/main_thread/api/debug/modules/general_info.d.ts.map +1 -1
- package/dist/commonjs/main_thread/api/debug/modules/general_info.js +202 -137
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_content.d.ts +3 -3
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_content.d.ts.map +1 -1
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_content.js +73 -79
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_size.d.ts +2 -2
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_size.d.ts.map +1 -1
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_size.js +24 -13
- package/dist/commonjs/main_thread/api/debug/render.d.ts +2 -2
- package/dist/commonjs/main_thread/api/debug/render.d.ts.map +1 -1
- package/dist/commonjs/main_thread/api/debug/render.js +27 -15
- package/dist/commonjs/main_thread/api/debug/utils.js +46 -44
- package/dist/commonjs/main_thread/api/index.d.ts +1 -1
- package/dist/commonjs/main_thread/api/index.d.ts.map +1 -1
- package/dist/commonjs/main_thread/api/index.js +17 -5
- package/dist/commonjs/main_thread/api/option_utils.d.ts +2 -2
- package/dist/commonjs/main_thread/api/option_utils.d.ts.map +1 -1
- package/dist/commonjs/main_thread/api/option_utils.js +159 -179
- package/dist/commonjs/main_thread/api/public_api.d.ts +17 -17
- package/dist/commonjs/main_thread/api/public_api.d.ts.map +1 -1
- package/dist/commonjs/main_thread/api/public_api.js +3021 -2582
- package/dist/commonjs/main_thread/api/utils.d.ts +6 -6
- package/dist/commonjs/main_thread/api/utils.d.ts.map +1 -1
- package/dist/commonjs/main_thread/api/utils.js +79 -80
- package/dist/commonjs/main_thread/core_interface/base.d.ts +2 -2
- package/dist/commonjs/main_thread/core_interface/base.d.ts.map +1 -1
- package/dist/commonjs/main_thread/core_interface/base.js +68 -25
- package/dist/commonjs/main_thread/core_interface/monothread.d.ts +3 -3
- package/dist/commonjs/main_thread/core_interface/monothread.d.ts.map +1 -1
- package/dist/commonjs/main_thread/core_interface/monothread.js +132 -49
- package/dist/commonjs/main_thread/core_interface/multithread.d.ts +2 -2
- package/dist/commonjs/main_thread/core_interface/multithread.d.ts.map +1 -1
- package/dist/commonjs/main_thread/core_interface/multithread.js +107 -48
- package/dist/commonjs/main_thread/core_interface/types.d.ts +3 -3
- package/dist/commonjs/main_thread/core_interface/types.d.ts.map +1 -1
- package/dist/commonjs/main_thread/core_interface/types.js +3 -1
- package/dist/commonjs/main_thread/decrypt/clear_on_stop.d.ts +1 -1
- package/dist/commonjs/main_thread/decrypt/clear_on_stop.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/clear_on_stop.js +169 -59
- package/dist/commonjs/main_thread/decrypt/content_decryptor.d.ts +7 -7
- package/dist/commonjs/main_thread/decrypt/content_decryptor.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/content_decryptor.js +1105 -847
- package/dist/commonjs/main_thread/decrypt/create_or_load_session.d.ts +5 -5
- package/dist/commonjs/main_thread/decrypt/create_or_load_session.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/create_or_load_session.js +192 -76
- package/dist/commonjs/main_thread/decrypt/create_session.d.ts +5 -5
- package/dist/commonjs/main_thread/decrypt/create_session.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/create_session.js +253 -102
- package/dist/commonjs/main_thread/decrypt/dispose_decryption_resources.d.ts +1 -1
- package/dist/commonjs/main_thread/decrypt/dispose_decryption_resources.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/dispose_decryption_resources.js +144 -42
- package/dist/commonjs/main_thread/decrypt/find_key_system.d.ts +4 -4
- package/dist/commonjs/main_thread/decrypt/find_key_system.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/find_key_system.js +477 -326
- package/dist/commonjs/main_thread/decrypt/get_key_system_configuration.d.ts +1 -1
- package/dist/commonjs/main_thread/decrypt/get_key_system_configuration.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/get_key_system_configuration.js +19 -9
- package/dist/commonjs/main_thread/decrypt/get_media_keys.d.ts +6 -6
- package/dist/commonjs/main_thread/decrypt/get_media_keys.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/get_media_keys.js +252 -111
- package/dist/commonjs/main_thread/decrypt/index.d.ts +5 -5
- package/dist/commonjs/main_thread/decrypt/index.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/index.js +49 -29
- package/dist/commonjs/main_thread/decrypt/init_media_keys.d.ts +5 -5
- package/dist/commonjs/main_thread/decrypt/init_media_keys.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/init_media_keys.js +169 -58
- package/dist/commonjs/main_thread/decrypt/session_events_listener.d.ts +3 -3
- package/dist/commonjs/main_thread/decrypt/session_events_listener.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/session_events_listener.js +465 -200
- package/dist/commonjs/main_thread/decrypt/set_server_certificate.d.ts +2 -2
- package/dist/commonjs/main_thread/decrypt/set_server_certificate.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/set_server_certificate.js +258 -94
- package/dist/commonjs/main_thread/decrypt/types.d.ts +5 -5
- package/dist/commonjs/main_thread/decrypt/types.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/types.js +17 -17
- package/dist/commonjs/main_thread/decrypt/utils/are_init_values_compatible.d.ts +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/are_init_values_compatible.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/are_init_values_compatible.js +46 -39
- package/dist/commonjs/main_thread/decrypt/utils/check_key_statuses.d.ts +3 -3
- package/dist/commonjs/main_thread/decrypt/utils/check_key_statuses.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/check_key_statuses.js +317 -171
- package/dist/commonjs/main_thread/decrypt/utils/clean_old_loaded_sessions.d.ts +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/clean_old_loaded_sessions.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/clean_old_loaded_sessions.js +160 -54
- package/dist/commonjs/main_thread/decrypt/utils/clean_old_stored_persistent_info.d.ts +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/clean_old_stored_persistent_info.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/clean_old_stored_persistent_info.js +19 -9
- package/dist/commonjs/main_thread/decrypt/utils/get_drm_system_id.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/get_drm_system_id.js +21 -12
- package/dist/commonjs/main_thread/decrypt/utils/init_data_values_container.d.ts +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/init_data_values_container.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/init_data_values_container.js +108 -74
- package/dist/commonjs/main_thread/decrypt/utils/is_compatible_codec_supported.d.ts +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/is_compatible_codec_supported.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/is_compatible_codec_supported.js +36 -28
- package/dist/commonjs/main_thread/decrypt/utils/is_session_usable.d.ts +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/is_session_usable.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/is_session_usable.js +30 -18
- package/dist/commonjs/main_thread/decrypt/utils/key_id_comparison.js +79 -64
- package/dist/commonjs/main_thread/decrypt/utils/key_session_record.d.ts +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/key_session_record.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/key_session_record.js +134 -137
- package/dist/commonjs/main_thread/decrypt/utils/loaded_sessions_store.d.ts +6 -4
- package/dist/commonjs/main_thread/decrypt/utils/loaded_sessions_store.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/loaded_sessions_store.js +616 -410
- package/dist/commonjs/main_thread/decrypt/utils/media_keys_attacher.d.ts +4 -4
- package/dist/commonjs/main_thread/decrypt/utils/media_keys_attacher.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/media_keys_attacher.js +316 -140
- package/dist/commonjs/main_thread/decrypt/utils/persistent_sessions_store.d.ts +3 -3
- package/dist/commonjs/main_thread/decrypt/utils/persistent_sessions_store.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/persistent_sessions_store.js +373 -314
- package/dist/commonjs/main_thread/decrypt/utils/serializable_bytes.js +49 -23
- package/dist/commonjs/main_thread/decrypt/utils/server_certificate_store.d.ts +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/server_certificate_store.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/server_certificate_store.js +36 -33
- package/dist/commonjs/main_thread/init/directfile_content_initializer.d.ts +7 -7
- package/dist/commonjs/main_thread/init/directfile_content_initializer.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/directfile_content_initializer.js +277 -207
- package/dist/commonjs/main_thread/init/index.d.ts +2 -2
- package/dist/commonjs/main_thread/init/index.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/index.js +11 -6
- package/dist/commonjs/main_thread/init/media_source_content_initializer.d.ts +40 -24
- package/dist/commonjs/main_thread/init/media_source_content_initializer.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/media_source_content_initializer.js +1831 -1539
- package/dist/commonjs/main_thread/init/types.d.ts +10 -10
- package/dist/commonjs/main_thread/init/types.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/types.js +73 -34
- package/dist/commonjs/main_thread/init/utils/create_core_playback_observer.d.ts +9 -9
- package/dist/commonjs/main_thread/init/utils/create_core_playback_observer.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/utils/create_core_playback_observer.js +44 -26
- package/dist/commonjs/main_thread/init/utils/get_initial_time.d.ts +1 -1
- package/dist/commonjs/main_thread/init/utils/get_initial_time.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/utils/get_initial_time.js +63 -62
- package/dist/commonjs/main_thread/init/utils/get_loaded_reference.d.ts +3 -3
- package/dist/commonjs/main_thread/init/utils/get_loaded_reference.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/utils/get_loaded_reference.js +32 -21
- package/dist/commonjs/main_thread/init/utils/initial_seek_and_play.d.ts +5 -5
- package/dist/commonjs/main_thread/init/utils/initial_seek_and_play.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/utils/initial_seek_and_play.js +145 -136
- package/dist/commonjs/main_thread/init/utils/initialize_content_decryption.d.ts +8 -8
- package/dist/commonjs/main_thread/init/utils/initialize_content_decryption.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/utils/initialize_content_decryption.js +77 -46
- package/dist/commonjs/main_thread/init/utils/main_thread_text_displayer_interface.d.ts +3 -3
- package/dist/commonjs/main_thread/init/utils/main_thread_text_displayer_interface.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/utils/main_thread_text_displayer_interface.js +69 -39
- package/dist/commonjs/main_thread/init/utils/rebuffering_controller.d.ts +7 -7
- package/dist/commonjs/main_thread/init/utils/rebuffering_controller.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/utils/rebuffering_controller.js +345 -315
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/are_same_stream_events.js +12 -6
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/index.d.ts +2 -2
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/index.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/index.js +17 -5
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +2 -2
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +71 -61
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts +4 -4
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/stream_events_emitter.js +295 -211
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/types.d.ts +1 -1
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/types.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/types.js +4 -3
- package/dist/commonjs/main_thread/init/utils/throw_on_media_error.d.ts +3 -3
- package/dist/commonjs/main_thread/init/utils/throw_on_media_error.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/utils/throw_on_media_error.js +31 -27
- package/dist/commonjs/main_thread/init/utils/update_manifest_codec_support.d.ts +8 -6
- package/dist/commonjs/main_thread/init/utils/update_manifest_codec_support.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/utils/update_manifest_codec_support.js +150 -127
- package/dist/commonjs/main_thread/render_thumbnail.d.ts +2 -2
- package/dist/commonjs/main_thread/render_thumbnail.d.ts.map +1 -1
- package/dist/commonjs/main_thread/render_thumbnail.js +337 -137
- package/dist/commonjs/main_thread/text_displayer/html/html_parsers.d.ts +1 -1
- package/dist/commonjs/main_thread/text_displayer/html/html_parsers.d.ts.map +1 -1
- package/dist/commonjs/main_thread/text_displayer/html/html_parsers.js +27 -10
- package/dist/commonjs/main_thread/text_displayer/html/html_text_displayer.d.ts +4 -4
- package/dist/commonjs/main_thread/text_displayer/html/html_text_displayer.d.ts.map +1 -1
- package/dist/commonjs/main_thread/text_displayer/html/html_text_displayer.js +364 -299
- package/dist/commonjs/main_thread/text_displayer/html/index.d.ts +1 -1
- package/dist/commonjs/main_thread/text_displayer/html/index.d.ts.map +1 -1
- package/dist/commonjs/main_thread/text_displayer/html/index.js +16 -3
- package/dist/commonjs/main_thread/text_displayer/html/text_track_cues_store.d.ts +1 -1
- package/dist/commonjs/main_thread/text_displayer/html/text_track_cues_store.d.ts.map +1 -1
- package/dist/commonjs/main_thread/text_displayer/html/text_track_cues_store.js +370 -312
- package/dist/commonjs/main_thread/text_displayer/html/update_proportional_elements.js +22 -7
- package/dist/commonjs/main_thread/text_displayer/html/utils.js +37 -54
- package/dist/commonjs/main_thread/text_displayer/index.d.ts +1 -1
- package/dist/commonjs/main_thread/text_displayer/index.d.ts.map +1 -1
- package/dist/commonjs/main_thread/text_displayer/index.js +3 -1
- package/dist/commonjs/main_thread/text_displayer/manual_time_ranges.js +90 -41
- package/dist/commonjs/main_thread/text_displayer/native/index.d.ts +1 -1
- package/dist/commonjs/main_thread/text_displayer/native/index.d.ts.map +1 -1
- package/dist/commonjs/main_thread/text_displayer/native/index.js +16 -3
- package/dist/commonjs/main_thread/text_displayer/native/native_parsers.d.ts +2 -2
- package/dist/commonjs/main_thread/text_displayer/native/native_parsers.d.ts.map +1 -1
- package/dist/commonjs/main_thread/text_displayer/native/native_parsers.js +27 -10
- package/dist/commonjs/main_thread/text_displayer/native/native_text_displayer.d.ts +3 -3
- package/dist/commonjs/main_thread/text_displayer/native/native_text_displayer.d.ts.map +1 -1
- package/dist/commonjs/main_thread/text_displayer/native/native_text_displayer.js +223 -186
- package/dist/commonjs/main_thread/text_displayer/types.d.ts +2 -2
- package/dist/commonjs/main_thread/text_displayer/types.d.ts.map +1 -1
- package/dist/commonjs/main_thread/text_displayer/types.js +3 -1
- package/dist/commonjs/main_thread/tracks_store/index.d.ts +3 -3
- package/dist/commonjs/main_thread/tracks_store/index.d.ts.map +1 -1
- package/dist/commonjs/main_thread/tracks_store/index.js +29 -19
- package/dist/commonjs/main_thread/tracks_store/media_element_tracks_store.d.ts +3 -3
- package/dist/commonjs/main_thread/tracks_store/media_element_tracks_store.d.ts.map +1 -1
- package/dist/commonjs/main_thread/tracks_store/media_element_tracks_store.js +596 -513
- package/dist/commonjs/main_thread/tracks_store/track_dispatcher.d.ts +5 -5
- package/dist/commonjs/main_thread/tracks_store/track_dispatcher.d.ts.map +1 -1
- package/dist/commonjs/main_thread/tracks_store/track_dispatcher.js +219 -148
- package/dist/commonjs/main_thread/tracks_store/tracks_store.d.ts +6 -6
- package/dist/commonjs/main_thread/tracks_store/tracks_store.d.ts.map +1 -1
- package/dist/commonjs/main_thread/tracks_store/tracks_store.js +1395 -1155
- package/dist/commonjs/main_thread/types.d.ts +36 -34
- package/dist/commonjs/main_thread/types.d.ts.map +1 -1
- package/dist/commonjs/main_thread/types.js +3 -1
- package/dist/commonjs/main_thread/utils/media_capabilities.d.ts +2 -2
- package/dist/commonjs/main_thread/utils/media_capabilities.d.ts.map +1 -1
- package/dist/commonjs/main_thread/utils/media_capabilities.js +24 -6
- package/dist/commonjs/manifest/classes/adaptation.d.ts +5 -5
- package/dist/commonjs/manifest/classes/adaptation.d.ts.map +1 -1
- package/dist/commonjs/manifest/classes/adaptation.js +154 -133
- package/dist/commonjs/manifest/classes/codec_support_cache.js +83 -62
- package/dist/commonjs/manifest/classes/index.d.ts +14 -14
- package/dist/commonjs/manifest/classes/index.d.ts.map +1 -1
- package/dist/commonjs/manifest/classes/index.js +58 -31
- package/dist/commonjs/manifest/classes/manifest.d.ts +13 -13
- package/dist/commonjs/manifest/classes/manifest.d.ts.map +1 -1
- package/dist/commonjs/manifest/classes/manifest.js +489 -377
- package/dist/commonjs/manifest/classes/period.d.ts +6 -6
- package/dist/commonjs/manifest/classes/period.d.ts.map +1 -1
- package/dist/commonjs/manifest/classes/period.js +256 -184
- package/dist/commonjs/manifest/classes/representation.d.ts +5 -5
- package/dist/commonjs/manifest/classes/representation.d.ts.map +1 -1
- package/dist/commonjs/manifest/classes/representation.js +282 -229
- package/dist/commonjs/manifest/classes/representation_index/index.d.ts +2 -2
- package/dist/commonjs/manifest/classes/representation_index/index.d.ts.map +1 -1
- package/dist/commonjs/manifest/classes/representation_index/index.js +16 -6
- package/dist/commonjs/manifest/classes/representation_index/static.d.ts +1 -1
- package/dist/commonjs/manifest/classes/representation_index/static.d.ts.map +1 -1
- package/dist/commonjs/manifest/classes/representation_index/static.js +170 -107
- package/dist/commonjs/manifest/classes/representation_index/types.d.ts +4 -4
- package/dist/commonjs/manifest/classes/representation_index/types.d.ts.map +1 -1
- package/dist/commonjs/manifest/classes/representation_index/types.js +4 -3
- package/dist/commonjs/manifest/classes/types.js +14 -11
- package/dist/commonjs/manifest/classes/update_period_in_place.d.ts +5 -5
- package/dist/commonjs/manifest/classes/update_period_in_place.d.ts.map +1 -1
- package/dist/commonjs/manifest/classes/update_period_in_place.js +188 -154
- package/dist/commonjs/manifest/classes/update_periods.d.ts +4 -4
- package/dist/commonjs/manifest/classes/update_periods.d.ts.map +1 -1
- package/dist/commonjs/manifest/classes/update_periods.js +150 -117
- package/dist/commonjs/manifest/classes/utils.d.ts +4 -4
- package/dist/commonjs/manifest/classes/utils.d.ts.map +1 -1
- package/dist/commonjs/manifest/classes/utils.js +27 -21
- package/dist/commonjs/manifest/index.d.ts +6 -6
- package/dist/commonjs/manifest/index.d.ts.map +1 -1
- package/dist/commonjs/manifest/index.js +31 -19
- package/dist/commonjs/manifest/types.d.ts +2 -2
- package/dist/commonjs/manifest/types.d.ts.map +1 -1
- package/dist/commonjs/manifest/types.js +3 -1
- package/dist/commonjs/manifest/utils.d.ts +4 -4
- package/dist/commonjs/manifest/utils.d.ts.map +1 -1
- package/dist/commonjs/manifest/utils.js +558 -445
- package/dist/commonjs/minimal.d.ts +1 -1
- package/dist/commonjs/minimal.d.ts.map +1 -1
- package/dist/commonjs/minimal.js +21 -11
- package/dist/commonjs/mse/index.d.ts +2 -2
- package/dist/commonjs/mse/index.d.ts.map +1 -1
- package/dist/commonjs/mse/index.js +3 -1
- package/dist/commonjs/mse/main_media_source_interface.d.ts +10 -5
- package/dist/commonjs/mse/main_media_source_interface.d.ts.map +1 -1
- package/dist/commonjs/mse/main_media_source_interface.js +666 -507
- package/dist/commonjs/mse/types.d.ts +3 -3
- package/dist/commonjs/mse/types.d.ts.map +1 -1
- package/dist/commonjs/mse/types.js +3 -1
- package/dist/commonjs/mse/utils/end_of_stream.d.ts +2 -2
- package/dist/commonjs/mse/utils/end_of_stream.d.ts.map +1 -1
- package/dist/commonjs/mse/utils/end_of_stream.js +71 -61
- package/dist/commonjs/mse/utils/media_source_duration_updater.d.ts +1 -1
- package/dist/commonjs/mse/utils/media_source_duration_updater.d.ts.map +1 -1
- package/dist/commonjs/mse/utils/media_source_duration_updater.js +146 -124
- package/dist/commonjs/mse/worker_media_source_interface.d.ts +7 -7
- package/dist/commonjs/mse/worker_media_source_interface.d.ts.map +1 -1
- package/dist/commonjs/mse/worker_media_source_interface.js +502 -328
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/parsers/containers/isobmff/constants.js +12 -7
- package/dist/commonjs/parsers/containers/isobmff/create_box.js +53 -44
- package/dist/commonjs/parsers/containers/isobmff/drm/index.d.ts +1 -1
- package/dist/commonjs/parsers/containers/isobmff/drm/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/containers/isobmff/drm/index.js +11 -6
- package/dist/commonjs/parsers/containers/isobmff/drm/playready.d.ts.map +1 -1
- package/dist/commonjs/parsers/containers/isobmff/drm/playready.js +17 -16
- package/dist/commonjs/parsers/containers/isobmff/extract_complete_chunks.js +53 -29
- package/dist/commonjs/parsers/containers/isobmff/extract_pssh.js +51 -34
- package/dist/commonjs/parsers/containers/isobmff/find_complete_box.js +18 -14
- package/dist/commonjs/parsers/containers/isobmff/get_box.js +105 -84
- package/dist/commonjs/parsers/containers/isobmff/index.d.ts +9 -9
- package/dist/commonjs/parsers/containers/isobmff/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/containers/isobmff/index.js +124 -35
- package/dist/commonjs/parsers/containers/isobmff/read.js +44 -30
- package/dist/commonjs/parsers/containers/isobmff/remove_dolby_vision_config_data.js +71 -61
- package/dist/commonjs/parsers/containers/isobmff/utils.d.ts +1 -1
- package/dist/commonjs/parsers/containers/isobmff/utils.d.ts.map +1 -1
- package/dist/commonjs/parsers/containers/isobmff/utils.js +245 -237
- package/dist/commonjs/parsers/containers/matroska/index.d.ts +2 -2
- package/dist/commonjs/parsers/containers/matroska/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/containers/matroska/index.js +19 -7
- package/dist/commonjs/parsers/containers/matroska/utils.js +142 -78
- package/dist/commonjs/parsers/images/bif.js +42 -24
- package/dist/commonjs/parsers/manifest/dash/common/attach_trickmode_track.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/attach_trickmode_track.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/attach_trickmode_track.js +69 -47
- package/dist/commonjs/parsers/manifest/dash/common/content_protection_parser.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/common/content_protection_parser.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/content_protection_parser.js +245 -167
- package/dist/commonjs/parsers/manifest/dash/common/convert_supplemental_codecs.js +16 -20
- package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.js +25 -21
- package/dist/commonjs/parsers/manifest/dash/common/get_clock_offset.js +22 -10
- package/dist/commonjs/parsers/manifest/dash/common/get_hdr_information.js +65 -27
- package/dist/commonjs/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/get_http_utc-timing_url.js +14 -11
- package/dist/commonjs/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/get_minimum_and_maximum_positions.js +21 -11
- package/dist/commonjs/parsers/manifest/dash/common/get_periods_time_infos.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/get_periods_time_infos.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/get_periods_time_infos.js +33 -31
- package/dist/commonjs/parsers/manifest/dash/common/index.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/dash/common/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/index.js +35 -11
- package/dist/commonjs/parsers/manifest/dash/common/indexes/base.d.ts +15 -11
- package/dist/commonjs/parsers/manifest/dash/common/indexes/base.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/base.js +212 -150
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_init_segment.d.ts +31 -7
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_init_segment.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_init_segment.js +24 -14
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts +4 -4
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_segments_from_timeline.js +33 -31
- package/dist/commonjs/parsers/manifest/dash/common/indexes/index.d.ts +8 -8
- package/dist/commonjs/parsers/manifest/dash/common/indexes/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/index.js +33 -12
- package/dist/commonjs/parsers/manifest/dash/common/indexes/list.d.ts +13 -9
- package/dist/commonjs/parsers/manifest/dash/common/indexes/list.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/list.js +263 -163
- package/dist/commonjs/parsers/manifest/dash/common/indexes/template.d.ts +13 -9
- package/dist/commonjs/parsers/manifest/dash/common/indexes/template.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/template.js +392 -348
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +24 -14
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +41 -37
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.js +23 -23
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +37 -35
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/index.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/index.js +17 -5
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/parse_s_element.js +65 -59
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +17 -13
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +472 -460
- package/dist/commonjs/parsers/manifest/dash/common/indexes/tokens.js +37 -50
- package/dist/commonjs/parsers/manifest/dash/common/indexes/utils.js +17 -15
- package/dist/commonjs/parsers/manifest/dash/common/infer_adaptation_type.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/infer_adaptation_type.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/infer_adaptation_type.js +71 -71
- package/dist/commonjs/parsers/manifest/dash/common/manifest_bounds_calculator.js +99 -75
- package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.d.ts +5 -5
- package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.js +275 -210
- package/dist/commonjs/parsers/manifest/dash/common/parse_availability_start_time.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/parse_availability_start_time.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/parse_availability_start_time.js +18 -8
- package/dist/commonjs/parsers/manifest/dash/common/parse_mpd.d.ts +5 -5
- package/dist/commonjs/parsers/manifest/dash/common/parse_mpd.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/parse_mpd.js +169 -161
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.d.ts +5 -5
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.js +211 -150
- package/dist/commonjs/parsers/manifest/dash/common/parse_representation_index.d.ts +5 -5
- package/dist/commonjs/parsers/manifest/dash/common/parse_representation_index.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/parse_representation_index.js +151 -78
- package/dist/commonjs/parsers/manifest/dash/common/parse_representations.d.ts +5 -5
- package/dist/commonjs/parsers/manifest/dash/common/parse_representations.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/parse_representations.js +222 -222
- package/dist/commonjs/parsers/manifest/dash/common/resolve_base_urls.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/resolve_base_urls.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/resolve_base_urls.js +20 -13
- package/dist/commonjs/parsers/manifest/dash/index.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/index.js +25 -9
- package/dist/commonjs/parsers/manifest/dash/js-parser/index.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/index.js +17 -5
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +230 -224
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/BaseURL.js +23 -10
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.js +40 -33
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.js +113 -58
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/EventStream.js +118 -72
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Initialization.js +45 -36
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/MPD.js +163 -124
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Period.js +157 -115
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Representation.js +172 -147
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.js +112 -78
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentList.js +76 -28
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.js +106 -71
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.js +13 -8
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.js +48 -40
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts +6 -7
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/utils.js +353 -156
- package/dist/commonjs/parsers/manifest/dash/js-parser/parse_from_xml_string.d.ts +5 -2
- package/dist/commonjs/parsers/manifest/dash/js-parser/parse_from_xml_string.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/parse_from_xml_string.js +121 -68
- package/dist/commonjs/parsers/manifest/dash/node_parser_types.d.ts +91 -57
- package/dist/commonjs/parsers/manifest/dash/node_parser_types.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/node_parser_types.js +4 -3
- package/dist/commonjs/parsers/manifest/dash/parsers_types.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/parsers_types.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/parsers_types.js +4 -3
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/index.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/index.js +17 -5
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +4 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +558 -362
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +256 -212
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.js +13 -14
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.js +20 -21
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +35 -34
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.js +81 -72
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Initialization.d.ts +4 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Initialization.d.ts.map +1 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Initialization.js +29 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Label.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Label.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Label.js +14 -6
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +166 -130
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +158 -115
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +168 -135
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.js +16 -17
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts +4 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.js +88 -71
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.js +38 -24
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts +4 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.js +115 -82
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.js +34 -34
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/XLink.js +37 -27
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/index.js +11 -6
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/root.js +36 -30
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/parsers_stack.js +87 -43
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/types.d.ts +2 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/types.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/types.js +4 -3
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/utils.d.ts +4 -3
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/utils.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/utils.js +39 -10
- package/dist/commonjs/parsers/manifest/index.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/index.js +4 -3
- package/dist/commonjs/parsers/manifest/local/index.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/local/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/local/index.js +17 -5
- package/dist/commonjs/parsers/manifest/local/parse_local_manifest.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/local/parse_local_manifest.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/local/parse_local_manifest.js +59 -42
- package/dist/commonjs/parsers/manifest/local/representation_index.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/local/representation_index.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/local/representation_index.js +309 -237
- package/dist/commonjs/parsers/manifest/local/types.js +4 -3
- package/dist/commonjs/parsers/manifest/metaplaylist/index.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/metaplaylist/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/metaplaylist/index.js +17 -5
- package/dist/commonjs/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/metaplaylist/metaplaylist_parser.js +154 -146
- package/dist/commonjs/parsers/manifest/metaplaylist/representation_index.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/metaplaylist/representation_index.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/metaplaylist/representation_index.js +212 -165
- package/dist/commonjs/parsers/manifest/smooth/create_parser.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/smooth/create_parser.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/smooth/create_parser.js +273 -262
- package/dist/commonjs/parsers/manifest/smooth/get_codecs.js +27 -21
- package/dist/commonjs/parsers/manifest/smooth/index.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/smooth/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/smooth/index.js +26 -8
- package/dist/commonjs/parsers/manifest/smooth/parse_C_nodes.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/smooth/parse_C_nodes.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/smooth/parse_C_nodes.js +28 -16
- package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.js +52 -51
- package/dist/commonjs/parsers/manifest/smooth/representation_index.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/smooth/representation_index.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/smooth/representation_index.js +330 -270
- package/dist/commonjs/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/smooth/shared_smooth_segment_timeline.js +150 -134
- package/dist/commonjs/parsers/manifest/smooth/utils/add_segment_infos.js +22 -18
- package/dist/commonjs/parsers/manifest/smooth/utils/parseBoolean.js +13 -10
- package/dist/commonjs/parsers/manifest/smooth/utils/reduceChildren.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/smooth/utils/reduceChildren.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/smooth/utils/reduceChildren.js +25 -25
- package/dist/commonjs/parsers/manifest/smooth/utils/tokens.js +21 -12
- package/dist/commonjs/parsers/manifest/types.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/types.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/types.js +4 -3
- package/dist/commonjs/parsers/manifest/utils/check_manifest_ids.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/utils/check_manifest_ids.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/utils/check_manifest_ids.js +35 -26
- package/dist/commonjs/parsers/manifest/utils/clear_timeline_from_position.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/utils/clear_timeline_from_position.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/utils/clear_timeline_from_position.js +17 -16
- package/dist/commonjs/parsers/manifest/utils/get_first_time_from_adaptation.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/utils/get_first_time_from_adaptation.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/utils/get_first_time_from_adaptation.js +25 -25
- package/dist/commonjs/parsers/manifest/utils/get_last_time_from_adaptation.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/utils/get_last_time_from_adaptation.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/utils/get_last_time_from_adaptation.js +25 -25
- package/dist/commonjs/parsers/manifest/utils/get_maximum_positions.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/utils/get_maximum_positions.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/utils/get_maximum_positions.js +51 -25
- package/dist/commonjs/parsers/manifest/utils/get_minimum_position.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/utils/get_minimum_position.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/utils/get_minimum_position.js +26 -18
- package/dist/commonjs/parsers/manifest/utils/index_helpers.js +48 -68
- package/dist/commonjs/parsers/manifest/utils/update_segment_timeline.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/utils/update_segment_timeline.d.ts.map +1 -1
- package/dist/commonjs/parsers/manifest/utils/update_segment_timeline.js +107 -68
- package/dist/commonjs/parsers/texttracks/index.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/index.js +4 -3
- package/dist/commonjs/parsers/texttracks/sami/html.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/sami/html.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/sami/html.js +91 -59
- package/dist/commonjs/parsers/texttracks/sami/native.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/sami/native.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/sami/native.js +91 -53
- package/dist/commonjs/parsers/texttracks/srt/find_end_of_cue_block.js +18 -8
- package/dist/commonjs/parsers/texttracks/srt/get_cue_blocks.js +23 -15
- package/dist/commonjs/parsers/texttracks/srt/html.js +65 -75
- package/dist/commonjs/parsers/texttracks/srt/native.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/srt/native.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/srt/native.js +28 -20
- package/dist/commonjs/parsers/texttracks/srt/parse_cue.js +82 -33
- package/dist/commonjs/parsers/texttracks/srt/parse_timestamp.js +18 -8
- package/dist/commonjs/parsers/texttracks/ttml/get_parameters.js +38 -23
- package/dist/commonjs/parsers/texttracks/ttml/get_styling.js +81 -70
- package/dist/commonjs/parsers/texttracks/ttml/get_time_delimiters.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/get_time_delimiters.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/get_time_delimiters.js +28 -18
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.js +20 -35
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_extent.js +33 -23
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_font_size.js +30 -22
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_line_height.js +43 -34
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_origin.js +33 -23
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_padding.js +55 -55
- package/dist/commonjs/parsers/texttracks/ttml/html/create_element.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/create_element.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/create_element.js +150 -147
- package/dist/commonjs/parsers/texttracks/ttml/html/generate_css_test_outline.js +19 -12
- package/dist/commonjs/parsers/texttracks/ttml/html/index.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/index.js +18 -7
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_cue.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_cue.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_cue.js +27 -15
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_ttml_to_div.js +41 -37
- package/dist/commonjs/parsers/texttracks/ttml/html/ttml_color_to_css_color.js +30 -50
- package/dist/commonjs/parsers/texttracks/ttml/native/index.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/native/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/native/index.js +18 -7
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_cue.d.ts +2 -2
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_cue.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_cue.js +69 -78
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_ttml_to_vtt.js +38 -34
- package/dist/commonjs/parsers/texttracks/ttml/parse_ttml.d.ts +2 -2
- package/dist/commonjs/parsers/texttracks/ttml/parse_ttml.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/parse_ttml.js +109 -92
- package/dist/commonjs/parsers/texttracks/ttml/regexps.js +48 -16
- package/dist/commonjs/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/resolve_styles_inheritance.js +53 -48
- package/dist/commonjs/parsers/texttracks/ttml/time_parsing.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/time_parsing.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/time_parsing.js +29 -32
- package/dist/commonjs/parsers/texttracks/ttml/xml_utils.js +82 -87
- package/dist/commonjs/parsers/texttracks/types.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/types.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/types.js +4 -3
- package/dist/commonjs/parsers/texttracks/webvtt/create_default_style_elements.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/create_default_style_elements.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/create_default_style_elements.js +12 -6
- package/dist/commonjs/parsers/texttracks/webvtt/get_cue_blocks.js +23 -14
- package/dist/commonjs/parsers/texttracks/webvtt/get_style_blocks.js +23 -14
- package/dist/commonjs/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/convert_payload_to_html.js +22 -14
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_style_attribute.js +58 -60
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_styled_element.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_styled_element.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_styled_element.js +50 -33
- package/dist/commonjs/parsers/texttracks/webvtt/html/index.d.ts +3 -3
- package/dist/commonjs/parsers/texttracks/webvtt/html/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/index.js +26 -10
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_mp4.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_mp4.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_mp4.js +23 -12
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_plain_text.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_plain_text.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_plain_text.js +33 -24
- package/dist/commonjs/parsers/texttracks/webvtt/html/to_html.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/to_html.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/to_html.js +34 -21
- package/dist/commonjs/parsers/texttracks/webvtt/native/index.d.ts +2 -2
- package/dist/commonjs/parsers/texttracks/webvtt/native/index.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/native/index.js +26 -10
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_vtt_plain_text_to_cues.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_vtt_plain_text_to_cues.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_vtt_plain_text_to_cues.js +50 -46
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_webvtt_mp4_to_cues.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_webvtt_mp4_to_cues.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_webvtt_mp4_to_cues.js +24 -14
- package/dist/commonjs/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/native/set_settings_on_cue.js +39 -19
- package/dist/commonjs/parsers/texttracks/webvtt/native/to_native_cue.d.ts +2 -2
- package/dist/commonjs/parsers/texttracks/webvtt/native/to_native_cue.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/native/to_native_cue.js +18 -8
- package/dist/commonjs/parsers/texttracks/webvtt/parse_cue_block.js +43 -29
- package/dist/commonjs/parsers/texttracks/webvtt/parse_mp4_embedded_wvtt.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/parse_mp4_embedded_wvtt.d.ts.map +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/parse_mp4_embedded_wvtt.js +62 -62
- package/dist/commonjs/parsers/texttracks/webvtt/parse_style_block.js +42 -37
- package/dist/commonjs/parsers/texttracks/webvtt/parse_timestamp.js +19 -9
- package/dist/commonjs/parsers/texttracks/webvtt/utils.js +54 -44
- package/dist/commonjs/playback_observer/core_playback_observer.d.ts +7 -7
- package/dist/commonjs/playback_observer/core_playback_observer.d.ts.map +1 -1
- package/dist/commonjs/playback_observer/core_playback_observer.js +95 -38
- package/dist/commonjs/playback_observer/index.d.ts +4 -4
- package/dist/commonjs/playback_observer/index.d.ts.map +1 -1
- package/dist/commonjs/playback_observer/index.js +15 -4
- package/dist/commonjs/playback_observer/media_element_playback_observer.d.ts +5 -5
- package/dist/commonjs/playback_observer/media_element_playback_observer.d.ts.map +1 -1
- package/dist/commonjs/playback_observer/media_element_playback_observer.js +476 -495
- package/dist/commonjs/playback_observer/types.d.ts +3 -3
- package/dist/commonjs/playback_observer/types.d.ts.map +1 -1
- package/dist/commonjs/playback_observer/types.js +3 -1
- package/dist/commonjs/playback_observer/utils/generate_read_only_observer.d.ts +3 -3
- package/dist/commonjs/playback_observer/utils/generate_read_only_observer.d.ts.map +1 -1
- package/dist/commonjs/playback_observer/utils/generate_read_only_observer.js +19 -13
- package/dist/commonjs/playback_observer/utils/observation_position.js +72 -32
- package/dist/commonjs/public_types.d.ts +6 -6
- package/dist/commonjs/public_types.d.ts.map +1 -1
- package/dist/commonjs/public_types.js +4 -3
- package/dist/commonjs/tools/TextTrackRenderer/index.d.ts +6 -6
- package/dist/commonjs/tools/TextTrackRenderer/index.d.ts.map +1 -1
- package/dist/commonjs/tools/TextTrackRenderer/index.js +38 -15
- package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.d.ts +2 -2
- package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.d.ts.map +1 -1
- package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.js +90 -58
- package/dist/commonjs/tools/index.d.ts +3 -3
- package/dist/commonjs/tools/index.d.ts.map +1 -1
- package/dist/commonjs/tools/index.js +59 -9
- package/dist/commonjs/tools/parseBIFThumbnails/index.js +24 -11
- package/dist/commonjs/tools/string_utils/index.d.ts +1 -1
- package/dist/commonjs/tools/string_utils/index.d.ts.map +1 -1
- package/dist/commonjs/tools/string_utils/index.js +31 -11
- package/dist/commonjs/transports/dash/construct_segment_url.d.ts +2 -2
- package/dist/commonjs/transports/dash/construct_segment_url.d.ts.map +1 -1
- package/dist/commonjs/transports/dash/construct_segment_url.js +12 -6
- package/dist/commonjs/transports/dash/get_events_out_of_emsgs.d.ts +2 -2
- package/dist/commonjs/transports/dash/get_events_out_of_emsgs.d.ts.map +1 -1
- package/dist/commonjs/transports/dash/get_events_out_of_emsgs.js +47 -45
- package/dist/commonjs/transports/dash/index.d.ts +1 -1
- package/dist/commonjs/transports/dash/index.d.ts.map +1 -1
- package/dist/commonjs/transports/dash/index.js +18 -7
- package/dist/commonjs/transports/dash/init_segment_loader.d.ts +3 -3
- package/dist/commonjs/transports/dash/init_segment_loader.d.ts.map +1 -1
- package/dist/commonjs/transports/dash/init_segment_loader.js +118 -60
- package/dist/commonjs/transports/dash/integrity_checks.d.ts +1 -1
- package/dist/commonjs/transports/dash/integrity_checks.d.ts.map +1 -1
- package/dist/commonjs/transports/dash/integrity_checks.js +245 -141
- package/dist/commonjs/transports/dash/load_chunked_segment_data.d.ts +2 -2
- package/dist/commonjs/transports/dash/load_chunked_segment_data.d.ts.map +1 -1
- package/dist/commonjs/transports/dash/load_chunked_segment_data.js +169 -65
- package/dist/commonjs/transports/dash/manifest_parser.d.ts +2 -2
- package/dist/commonjs/transports/dash/manifest_parser.d.ts.map +1 -1
- package/dist/commonjs/transports/dash/manifest_parser.js +119 -133
- package/dist/commonjs/transports/dash/pipelines.d.ts +1 -1
- package/dist/commonjs/transports/dash/pipelines.d.ts.map +1 -1
- package/dist/commonjs/transports/dash/pipelines.js +49 -34
- package/dist/commonjs/transports/dash/segment_loader.d.ts +3 -3
- package/dist/commonjs/transports/dash/segment_loader.d.ts.map +1 -1
- package/dist/commonjs/transports/dash/segment_loader.js +270 -142
- package/dist/commonjs/transports/dash/segment_parser.d.ts +1 -1
- package/dist/commonjs/transports/dash/segment_parser.d.ts.map +1 -1
- package/dist/commonjs/transports/dash/segment_parser.js +59 -53
- package/dist/commonjs/transports/dash/text_loader.d.ts +1 -1
- package/dist/commonjs/transports/dash/text_loader.d.ts.map +1 -1
- package/dist/commonjs/transports/dash/text_loader.js +247 -107
- package/dist/commonjs/transports/dash/text_parser.d.ts +1 -1
- package/dist/commonjs/transports/dash/text_parser.d.ts.map +1 -1
- package/dist/commonjs/transports/dash/text_parser.js +81 -68
- package/dist/commonjs/transports/dash/thumbnails.d.ts +4 -4
- package/dist/commonjs/transports/dash/thumbnails.d.ts.map +1 -1
- package/dist/commonjs/transports/dash/thumbnails.js +167 -81
- package/dist/commonjs/transports/index.d.ts +1 -1
- package/dist/commonjs/transports/index.d.ts.map +1 -1
- package/dist/commonjs/transports/index.js +4 -3
- package/dist/commonjs/transports/local/index.d.ts +1 -1
- package/dist/commonjs/transports/local/index.d.ts.map +1 -1
- package/dist/commonjs/transports/local/index.js +17 -5
- package/dist/commonjs/transports/local/pipelines.d.ts +1 -1
- package/dist/commonjs/transports/local/pipelines.d.ts.map +1 -1
- package/dist/commonjs/transports/local/pipelines.js +49 -35
- package/dist/commonjs/transports/local/segment_loader.d.ts +3 -3
- package/dist/commonjs/transports/local/segment_loader.d.ts.map +1 -1
- package/dist/commonjs/transports/local/segment_loader.js +54 -52
- package/dist/commonjs/transports/local/segment_parser.d.ts +1 -1
- package/dist/commonjs/transports/local/segment_parser.d.ts.map +1 -1
- package/dist/commonjs/transports/local/segment_parser.js +39 -26
- package/dist/commonjs/transports/local/text_parser.d.ts +1 -1
- package/dist/commonjs/transports/local/text_parser.d.ts.map +1 -1
- package/dist/commonjs/transports/local/text_parser.js +63 -45
- package/dist/commonjs/transports/metaplaylist/index.d.ts +1 -1
- package/dist/commonjs/transports/metaplaylist/index.d.ts.map +1 -1
- package/dist/commonjs/transports/metaplaylist/index.js +18 -7
- package/dist/commonjs/transports/metaplaylist/pipelines.d.ts +1 -1
- package/dist/commonjs/transports/metaplaylist/pipelines.d.ts.map +1 -1
- package/dist/commonjs/transports/metaplaylist/pipelines.js +92 -92
- package/dist/commonjs/transports/smooth/extract_timings_infos.d.ts +2 -2
- package/dist/commonjs/transports/smooth/extract_timings_infos.d.ts.map +1 -1
- package/dist/commonjs/transports/smooth/extract_timings_infos.js +68 -50
- package/dist/commonjs/transports/smooth/index.d.ts +1 -1
- package/dist/commonjs/transports/smooth/index.d.ts.map +1 -1
- package/dist/commonjs/transports/smooth/index.js +18 -7
- package/dist/commonjs/transports/smooth/is_mp4_embedded_track.js +11 -6
- package/dist/commonjs/transports/smooth/isobmff/create_audio_init_segment.js +44 -26
- package/dist/commonjs/transports/smooth/isobmff/create_boxes.js +277 -172
- package/dist/commonjs/transports/smooth/isobmff/create_init_segment.d.ts.map +1 -1
- package/dist/commonjs/transports/smooth/isobmff/create_init_segment.js +72 -38
- package/dist/commonjs/transports/smooth/isobmff/create_traf_box.d.ts.map +1 -1
- package/dist/commonjs/transports/smooth/isobmff/create_traf_box.js +19 -9
- package/dist/commonjs/transports/smooth/isobmff/create_video_init_segment.js +91 -42
- package/dist/commonjs/transports/smooth/isobmff/get_aaces_header.js +34 -18
- package/dist/commonjs/transports/smooth/isobmff/index.d.ts +6 -6
- package/dist/commonjs/transports/smooth/isobmff/index.d.ts.map +1 -1
- package/dist/commonjs/transports/smooth/isobmff/index.js +37 -14
- package/dist/commonjs/transports/smooth/isobmff/parse_tfrf.js +21 -17
- package/dist/commonjs/transports/smooth/isobmff/parse_tfxd.js +16 -11
- package/dist/commonjs/transports/smooth/isobmff/patch_segment.js +59 -48
- package/dist/commonjs/transports/smooth/pipelines.d.ts +1 -1
- package/dist/commonjs/transports/smooth/pipelines.d.ts.map +1 -1
- package/dist/commonjs/transports/smooth/pipelines.js +144 -152
- package/dist/commonjs/transports/smooth/segment_loader.d.ts +3 -3
- package/dist/commonjs/transports/smooth/segment_loader.d.ts.map +1 -1
- package/dist/commonjs/transports/smooth/segment_loader.js +257 -153
- package/dist/commonjs/transports/smooth/utils.d.ts +2 -2
- package/dist/commonjs/transports/smooth/utils.d.ts.map +1 -1
- package/dist/commonjs/transports/smooth/utils.js +22 -11
- package/dist/commonjs/transports/types.d.ts +7 -7
- package/dist/commonjs/transports/types.d.ts.map +1 -1
- package/dist/commonjs/transports/types.js +4 -3
- package/dist/commonjs/transports/utils/add_query_string.js +14 -11
- package/dist/commonjs/transports/utils/byte_range.js +58 -23
- package/dist/commonjs/transports/utils/call_custom_manifest_loader.d.ts +3 -3
- package/dist/commonjs/transports/utils/call_custom_manifest_loader.d.ts.map +1 -1
- package/dist/commonjs/transports/utils/call_custom_manifest_loader.js +51 -40
- package/dist/commonjs/transports/utils/check_isobmff_integrity.js +22 -18
- package/dist/commonjs/transports/utils/generate_manifest_loader.d.ts +2 -2
- package/dist/commonjs/transports/utils/generate_manifest_loader.d.ts.map +1 -1
- package/dist/commonjs/transports/utils/generate_manifest_loader.js +38 -35
- package/dist/commonjs/transports/utils/get_isobmff_timing_infos.d.ts +2 -2
- package/dist/commonjs/transports/utils/get_isobmff_timing_infos.d.ts.map +1 -1
- package/dist/commonjs/transports/utils/get_isobmff_timing_infos.js +25 -18
- package/dist/commonjs/transports/utils/infer_segment_container.d.ts +1 -1
- package/dist/commonjs/transports/utils/infer_segment_container.d.ts.map +1 -1
- package/dist/commonjs/transports/utils/infer_segment_container.js +12 -8
- package/dist/commonjs/transports/utils/parse_text_track.d.ts +2 -2
- package/dist/commonjs/transports/utils/parse_text_track.d.ts.map +1 -1
- package/dist/commonjs/transports/utils/parse_text_track.js +52 -63
- package/dist/commonjs/utils/are_arrays_of_numbers_equal.js +12 -7
- package/dist/commonjs/utils/are_codecs_compatible.js +62 -28
- package/dist/commonjs/utils/array_find.js +12 -7
- package/dist/commonjs/utils/array_find_index.js +12 -7
- package/dist/commonjs/utils/array_includes.js +15 -11
- package/dist/commonjs/utils/assert.js +145 -85
- package/dist/commonjs/utils/base64.d.ts.map +1 -1
- package/dist/commonjs/utils/base64.js +172 -47
- package/dist/commonjs/utils/buffer_source_to_uint8.js +18 -7
- package/dist/commonjs/utils/byte_parsing.js +119 -111
- package/dist/commonjs/utils/cancellable_sleep.d.ts +1 -1
- package/dist/commonjs/utils/cancellable_sleep.d.ts.map +1 -1
- package/dist/commonjs/utils/cancellable_sleep.js +24 -10
- package/dist/commonjs/utils/create_cancellable_promise.d.ts +1 -1
- package/dist/commonjs/utils/create_cancellable_promise.d.ts.map +1 -1
- package/dist/commonjs/utils/create_cancellable_promise.js +17 -11
- package/dist/commonjs/utils/create_uuid.js +25 -15
- package/dist/commonjs/utils/deep_merge.js +70 -47
- package/dist/commonjs/utils/event_emitter.d.ts +1 -1
- package/dist/commonjs/utils/event_emitter.d.ts.map +1 -1
- package/dist/commonjs/utils/event_emitter.js +150 -105
- package/dist/commonjs/utils/flat_map.js +41 -33
- package/dist/commonjs/utils/get_fuzzed_delay.js +14 -9
- package/dist/commonjs/utils/get_last_item_from_array.d.ts +8 -0
- package/dist/commonjs/utils/get_last_item_from_array.d.ts.map +1 -0
- package/dist/commonjs/utils/get_last_item_from_array.js +18 -0
- package/dist/commonjs/utils/global_scope.js +21 -11
- package/dist/commonjs/utils/hash_buffer.js +12 -7
- package/dist/commonjs/utils/id_generator.js +11 -6
- package/dist/commonjs/utils/is_node.js +18 -7
- package/dist/commonjs/utils/is_non_empty_string.js +11 -6
- package/dist/commonjs/utils/is_null_or_undefined.js +11 -6
- package/dist/commonjs/utils/is_worker.js +17 -5
- package/dist/commonjs/utils/languages/ISO_639-1_to_ISO_639-3.js +195 -189
- package/dist/commonjs/utils/languages/ISO_639-2_to_ISO_639-3.js +32 -26
- package/dist/commonjs/utils/languages/index.d.ts +2 -2
- package/dist/commonjs/utils/languages/index.d.ts.map +1 -1
- package/dist/commonjs/utils/languages/index.js +53 -8
- package/dist/commonjs/utils/languages/normalize.js +52 -33
- package/dist/commonjs/utils/logger.d.ts +1 -1
- package/dist/commonjs/utils/logger.d.ts.map +1 -1
- package/dist/commonjs/utils/logger.js +236 -173
- package/dist/commonjs/utils/monotonic_timestamp.js +33 -17
- package/dist/commonjs/utils/noop.js +13 -8
- package/dist/commonjs/utils/object_assign.d.ts.map +1 -1
- package/dist/commonjs/utils/object_assign.js +30 -33
- package/dist/commonjs/utils/object_entries.d.ts +16 -0
- package/dist/commonjs/utils/object_entries.d.ts.map +1 -0
- package/dist/commonjs/utils/object_entries.js +31 -0
- package/dist/commonjs/utils/object_values.js +24 -9
- package/dist/commonjs/utils/queue_microtask.js +14 -6
- package/dist/commonjs/utils/ranges.js +178 -133
- package/dist/commonjs/utils/reference.d.ts +1 -1
- package/dist/commonjs/utils/reference.d.ts.map +1 -1
- package/dist/commonjs/utils/reference.js +246 -197
- package/dist/commonjs/utils/request/fetch.d.ts +1 -1
- package/dist/commonjs/utils/request/fetch.d.ts.map +1 -1
- package/dist/commonjs/utils/request/fetch.js +253 -109
- package/dist/commonjs/utils/request/index.d.ts +6 -6
- package/dist/commonjs/utils/request/index.d.ts.map +1 -1
- package/dist/commonjs/utils/request/index.js +69 -13
- package/dist/commonjs/utils/request/request_error.d.ts +9 -1
- package/dist/commonjs/utils/request/request_error.d.ts.map +1 -1
- package/dist/commonjs/utils/request/request_error.js +159 -41
- package/dist/commonjs/utils/request/xhr.d.ts +1 -1
- package/dist/commonjs/utils/request/xhr.d.ts.map +1 -1
- package/dist/commonjs/utils/request/xhr.js +107 -63
- package/dist/commonjs/utils/retry_promise_with_backoff.d.ts +1 -1
- package/dist/commonjs/utils/retry_promise_with_backoff.d.ts.map +1 -1
- package/dist/commonjs/utils/retry_promise_with_backoff.js +190 -72
- package/dist/commonjs/utils/sleep.js +11 -5
- package/dist/commonjs/utils/slice_uint8array.js +13 -10
- package/dist/commonjs/utils/sorted_list.js +140 -114
- package/dist/commonjs/utils/starts_with.js +12 -8
- package/dist/commonjs/utils/string_parsing.js +115 -102
- package/dist/commonjs/utils/sync_or_async.js +27 -17
- package/dist/commonjs/utils/task_canceller.js +286 -250
- package/dist/commonjs/utils/url-utils.js +99 -100
- package/dist/commonjs/utils/warn_once.js +19 -9
- package/dist/commonjs/utils/weak_map_memory.js +55 -29
- package/dist/commonjs/utils/wrapInPromise.js +17 -11
- package/dist/commonjs/utils/xml-parser.js +112 -125
- package/dist/commonjs/worker_entry_point.js +11 -4
- package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.d.ts.map +1 -1
- package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.js +2 -1
- package/dist/es2017/__GENERATED_CODE/embedded_worker.d.ts.map +1 -1
- package/dist/es2017/__GENERATED_CODE/embedded_worker.js +1 -1
- package/dist/es2017/__GENERATED_CODE/index.d.ts +2 -2
- package/dist/es2017/__GENERATED_CODE/index.d.ts.map +1 -1
- package/dist/es2017/__GENERATED_CODE/index.js +2 -2
- package/dist/es2017/compat/add_text_track.d.ts +1 -1
- package/dist/es2017/compat/add_text_track.d.ts.map +1 -1
- package/dist/es2017/compat/add_text_track.js +1 -1
- package/dist/es2017/compat/browser_compatibility_types.d.ts +8 -7
- package/dist/es2017/compat/browser_compatibility_types.d.ts.map +1 -1
- package/dist/es2017/compat/browser_compatibility_types.js +1 -1
- package/dist/es2017/compat/browser_version.js +2 -2
- package/dist/es2017/compat/can_patch_isobmff.js +1 -1
- package/dist/es2017/compat/can_patch_out_pssh.js +2 -2
- package/dist/es2017/compat/can_preload_before_play.js +1 -1
- package/dist/es2017/compat/can_rely_on_request_media_key_system_access.d.ts +7 -2
- package/dist/es2017/compat/can_rely_on_request_media_key_system_access.d.ts.map +1 -1
- package/dist/es2017/compat/can_rely_on_request_media_key_system_access.js +12 -4
- package/dist/es2017/compat/can_rely_on_video_visibility_and_size.js +2 -2
- package/dist/es2017/compat/can_reuse_media_keys.js +2 -2
- package/dist/es2017/compat/change_source_buffer_type.d.ts +1 -1
- package/dist/es2017/compat/change_source_buffer_type.d.ts.map +1 -1
- package/dist/es2017/compat/change_source_buffer_type.js +1 -1
- package/dist/es2017/compat/clear_element_src.d.ts +1 -1
- package/dist/es2017/compat/clear_element_src.d.ts.map +1 -1
- package/dist/es2017/compat/clear_element_src.js +2 -2
- package/dist/es2017/compat/disable_remote_playback_on_managed_media_source.d.ts +2 -2
- package/dist/es2017/compat/disable_remote_playback_on_managed_media_source.d.ts.map +1 -1
- package/dist/es2017/compat/disable_remote_playback_on_managed_media_source.js +1 -1
- package/dist/es2017/compat/eme/close_session.d.ts +1 -1
- package/dist/es2017/compat/eme/close_session.d.ts.map +1 -1
- package/dist/es2017/compat/eme/close_session.js +3 -3
- package/dist/es2017/compat/eme/constants.js +2 -2
- package/dist/es2017/compat/eme/custom_key_system_access.d.ts +1 -1
- package/dist/es2017/compat/eme/custom_key_system_access.d.ts.map +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.d.ts +2 -2
- package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.d.ts.map +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.js +6 -6
- package/dist/es2017/compat/eme/custom_media_keys/index.d.ts +5 -5
- package/dist/es2017/compat/eme/custom_media_keys/index.d.ts.map +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/index.js +5 -5
- package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts.map +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.js +2 -2
- package/dist/es2017/compat/eme/custom_media_keys/ms_media_keys_constructor.js +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts.map +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.js +7 -7
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.d.ts +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.d.ts.map +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.js +7 -7
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts.map +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +1 -1
- package/dist/es2017/compat/eme/eme-api-implementation.d.ts +3 -3
- package/dist/es2017/compat/eme/eme-api-implementation.d.ts.map +1 -1
- package/dist/es2017/compat/eme/eme-api-implementation.js +15 -15
- package/dist/es2017/compat/eme/generate_key_request.d.ts +1 -1
- package/dist/es2017/compat/eme/generate_key_request.d.ts.map +1 -1
- package/dist/es2017/compat/eme/generate_key_request.js +15 -6
- package/dist/es2017/compat/eme/get_init_data.d.ts +1 -1
- package/dist/es2017/compat/eme/get_init_data.d.ts.map +1 -1
- package/dist/es2017/compat/eme/get_init_data.js +10 -6
- package/dist/es2017/compat/eme/get_uuid_kid_from_keystatus_kid.js +2 -2
- package/dist/es2017/compat/eme/get_webkit_fairplay_initdata.js +2 -2
- package/dist/es2017/compat/eme/index.d.ts +7 -7
- package/dist/es2017/compat/eme/index.d.ts.map +1 -1
- package/dist/es2017/compat/eme/index.js +5 -5
- package/dist/es2017/compat/eme/load_session.d.ts +1 -1
- package/dist/es2017/compat/eme/load_session.d.ts.map +1 -1
- package/dist/es2017/compat/eme/load_session.js +1 -1
- package/dist/es2017/compat/eme/set_media_keys.d.ts +2 -2
- package/dist/es2017/compat/eme/set_media_keys.d.ts.map +1 -1
- package/dist/es2017/compat/eme/set_media_keys.js +4 -3
- package/dist/es2017/compat/enable_audio_track.d.ts +1 -1
- package/dist/es2017/compat/enable_audio_track.d.ts.map +1 -1
- package/dist/es2017/compat/enable_audio_track.js +1 -1
- package/dist/es2017/compat/env_detector.d.ts +2 -0
- package/dist/es2017/compat/env_detector.d.ts.map +1 -1
- package/dist/es2017/compat/env_detector.js +10 -2
- package/dist/es2017/compat/event_listeners.d.ts +4 -4
- package/dist/es2017/compat/event_listeners.d.ts.map +1 -1
- package/dist/es2017/compat/event_listeners.js +7 -7
- package/dist/es2017/compat/force_media_key_instantiation_if_needed.d.ts +24 -0
- package/dist/es2017/compat/force_media_key_instantiation_if_needed.d.ts.map +1 -0
- package/dist/es2017/compat/force_media_key_instantiation_if_needed.js +72 -0
- package/dist/es2017/compat/generate_init_data.d.ts +8 -0
- package/dist/es2017/compat/generate_init_data.d.ts.map +1 -1
- package/dist/es2017/compat/generate_init_data.js +28 -2
- package/dist/es2017/compat/get_start_date.d.ts +1 -1
- package/dist/es2017/compat/get_start_date.d.ts.map +1 -1
- package/dist/es2017/compat/has_issues_with_high_media_source_duration.js +2 -2
- package/dist/es2017/compat/has_worker_api.js +1 -1
- package/dist/es2017/compat/is_codec_supported.d.ts +4 -3
- package/dist/es2017/compat/is_codec_supported.d.ts.map +1 -1
- package/dist/es2017/compat/is_codec_supported.js +9 -15
- package/dist/es2017/compat/is_seeking_approximate.js +2 -2
- package/dist/es2017/compat/is_vtt_cue.d.ts +1 -1
- package/dist/es2017/compat/is_vtt_cue.d.ts.map +1 -1
- package/dist/es2017/compat/is_vtt_cue.js +1 -1
- package/dist/es2017/compat/make_vtt_cue.d.ts +1 -1
- package/dist/es2017/compat/make_vtt_cue.d.ts.map +1 -1
- package/dist/es2017/compat/make_vtt_cue.js +3 -3
- package/dist/es2017/compat/may_media_element_fail_on_undecipherable_data.js +2 -2
- package/dist/es2017/compat/on_height_width_change.d.ts +2 -2
- package/dist/es2017/compat/on_height_width_change.d.ts.map +1 -1
- package/dist/es2017/compat/on_height_width_change.js +3 -3
- package/dist/es2017/compat/patch_webkit_source_buffer.js +5 -5
- package/dist/es2017/compat/remove_cue.d.ts +1 -1
- package/dist/es2017/compat/remove_cue.d.ts.map +1 -1
- package/dist/es2017/compat/remove_cue.js +2 -2
- package/dist/es2017/compat/reset_media_element.d.ts +1 -1
- package/dist/es2017/compat/reset_media_element.d.ts.map +1 -1
- package/dist/es2017/compat/reset_media_element.js +2 -2
- package/dist/es2017/compat/should_await_set_media_keys.js +2 -2
- package/dist/es2017/compat/should_favour_custom_safari_EME.js +3 -3
- package/dist/es2017/compat/should_patch_out_dolby_vision_config_data_from_mp4.js +2 -2
- package/dist/es2017/compat/should_reload_media_source_on_decipherability_update.js +1 -1
- package/dist/es2017/compat/should_renew_media_key_system_access.d.ts +11 -0
- package/dist/es2017/compat/should_renew_media_key_system_access.d.ts.map +1 -1
- package/dist/es2017/compat/should_renew_media_key_system_access.js +17 -4
- package/dist/es2017/compat/should_seek_at_zero.js +2 -2
- package/dist/es2017/compat/should_unset_media_keys.js +2 -2
- package/dist/es2017/compat/should_validate_metadata.js +2 -2
- package/dist/es2017/compat/should_wait_for_data_before_loaded.js +2 -2
- package/dist/es2017/compat/should_wait_for_have_enough_data.js +2 -2
- package/dist/es2017/config.d.ts +2 -2
- package/dist/es2017/config.d.ts.map +1 -1
- package/dist/es2017/config.js +3 -3
- package/dist/es2017/core/adaptive/adaptive_representation_selector.d.ts +9 -9
- package/dist/es2017/core/adaptive/adaptive_representation_selector.d.ts.map +1 -1
- package/dist/es2017/core/adaptive/adaptive_representation_selector.js +17 -17
- package/dist/es2017/core/adaptive/buffer_based_chooser.d.ts +1 -1
- package/dist/es2017/core/adaptive/buffer_based_chooser.d.ts.map +1 -1
- package/dist/es2017/core/adaptive/buffer_based_chooser.js +5 -5
- package/dist/es2017/core/adaptive/guess_based_chooser.d.ts +4 -4
- package/dist/es2017/core/adaptive/guess_based_chooser.d.ts.map +1 -1
- package/dist/es2017/core/adaptive/guess_based_chooser.js +4 -4
- package/dist/es2017/core/adaptive/index.d.ts +2 -2
- package/dist/es2017/core/adaptive/index.d.ts.map +1 -1
- package/dist/es2017/core/adaptive/index.js +1 -1
- package/dist/es2017/core/adaptive/network_analyzer.d.ts +4 -4
- package/dist/es2017/core/adaptive/network_analyzer.d.ts.map +1 -1
- package/dist/es2017/core/adaptive/network_analyzer.js +6 -6
- package/dist/es2017/core/adaptive/utils/bandwidth_estimator.js +2 -2
- package/dist/es2017/core/adaptive/utils/filter_by_bitrate.d.ts +1 -1
- package/dist/es2017/core/adaptive/utils/filter_by_bitrate.d.ts.map +1 -1
- package/dist/es2017/core/adaptive/utils/filter_by_bitrate.js +1 -1
- package/dist/es2017/core/adaptive/utils/filter_by_resolution.d.ts +1 -1
- package/dist/es2017/core/adaptive/utils/filter_by_resolution.d.ts.map +1 -1
- package/dist/es2017/core/adaptive/utils/filter_by_resolution.js +1 -1
- package/dist/es2017/core/adaptive/utils/last_estimate_storage.d.ts +1 -1
- package/dist/es2017/core/adaptive/utils/last_estimate_storage.d.ts.map +1 -1
- package/dist/es2017/core/adaptive/utils/pending_requests_store.d.ts +1 -1
- package/dist/es2017/core/adaptive/utils/pending_requests_store.d.ts.map +1 -1
- package/dist/es2017/core/adaptive/utils/pending_requests_store.js +3 -3
- package/dist/es2017/core/adaptive/utils/representation_score_calculator.d.ts +1 -1
- package/dist/es2017/core/adaptive/utils/representation_score_calculator.d.ts.map +1 -1
- package/dist/es2017/core/adaptive/utils/representation_score_calculator.js +2 -2
- package/dist/es2017/core/adaptive/utils/select_optimal_representation.d.ts +1 -1
- package/dist/es2017/core/adaptive/utils/select_optimal_representation.d.ts.map +1 -1
- package/dist/es2017/core/adaptive/utils/select_optimal_representation.js +1 -1
- package/dist/es2017/core/cmcd/cmcd_data_builder.d.ts +4 -4
- package/dist/es2017/core/cmcd/cmcd_data_builder.d.ts.map +1 -1
- package/dist/es2017/core/cmcd/cmcd_data_builder.js +5 -5
- package/dist/es2017/core/cmcd/index.d.ts +2 -2
- package/dist/es2017/core/cmcd/index.d.ts.map +1 -1
- package/dist/es2017/core/cmcd/index.js +1 -1
- package/dist/es2017/core/entry/FreezeResolver.d.ts +3 -3
- package/dist/es2017/core/entry/FreezeResolver.d.ts.map +1 -1
- package/dist/es2017/core/entry/FreezeResolver.js +3 -3
- package/dist/es2017/core/entry/content_preparer.d.ts +26 -30
- package/dist/es2017/core/entry/content_preparer.d.ts.map +1 -1
- package/dist/es2017/core/entry/content_preparer.js +41 -45
- package/dist/es2017/core/entry/content_time_boundaries_observer.d.ts +5 -5
- package/dist/es2017/core/entry/content_time_boundaries_observer.d.ts.map +1 -1
- package/dist/es2017/core/entry/content_time_boundaries_observer.js +7 -7
- package/dist/es2017/core/entry/core_entry.d.ts +4 -4
- package/dist/es2017/core/entry/core_entry.d.ts.map +1 -1
- package/dist/es2017/core/entry/core_entry.js +21 -27
- package/dist/es2017/core/entry/core_text_displayer_interface.d.ts +4 -4
- package/dist/es2017/core/entry/core_text_displayer_interface.d.ts.map +1 -1
- package/dist/es2017/core/entry/core_text_displayer_interface.js +2 -2
- package/dist/es2017/core/entry/create_content_time_boundaries_observer.d.ts +7 -7
- package/dist/es2017/core/entry/create_content_time_boundaries_observer.d.ts.map +1 -1
- package/dist/es2017/core/entry/create_content_time_boundaries_observer.js +2 -2
- package/dist/es2017/core/entry/get_buffered_data_per_media_buffer.d.ts +4 -4
- package/dist/es2017/core/entry/get_buffered_data_per_media_buffer.d.ts.map +1 -1
- package/dist/es2017/core/entry/get_buffered_data_per_media_buffer.js +1 -1
- package/dist/es2017/core/entry/get_thumbnail_data.d.ts +3 -3
- package/dist/es2017/core/entry/get_thumbnail_data.d.ts.map +1 -1
- package/dist/es2017/core/entry/get_thumbnail_data.js +2 -2
- package/dist/es2017/core/entry/index.d.ts +3 -3
- package/dist/es2017/core/entry/index.d.ts.map +1 -1
- package/dist/es2017/core/entry/index.js +1 -1
- package/dist/es2017/core/entry/track_choice_setter.d.ts +4 -4
- package/dist/es2017/core/entry/track_choice_setter.d.ts.map +1 -1
- package/dist/es2017/core/entry/track_choice_setter.js +4 -4
- package/dist/es2017/core/entry/utils.d.ts +5 -5
- package/dist/es2017/core/entry/utils.d.ts.map +1 -1
- package/dist/es2017/core/entry/utils.js +4 -4
- package/dist/es2017/core/fetchers/cdn_prioritizer.d.ts +3 -3
- package/dist/es2017/core/fetchers/cdn_prioritizer.d.ts.map +1 -1
- package/dist/es2017/core/fetchers/cdn_prioritizer.js +3 -3
- package/dist/es2017/core/fetchers/index.d.ts +7 -7
- package/dist/es2017/core/fetchers/index.d.ts.map +1 -1
- package/dist/es2017/core/fetchers/index.js +4 -4
- package/dist/es2017/core/fetchers/manifest/index.d.ts +2 -2
- package/dist/es2017/core/fetchers/manifest/index.d.ts.map +1 -1
- package/dist/es2017/core/fetchers/manifest/index.js +1 -1
- package/dist/es2017/core/fetchers/manifest/manifest_fetcher.d.ts +5 -5
- package/dist/es2017/core/fetchers/manifest/manifest_fetcher.d.ts.map +1 -1
- package/dist/es2017/core/fetchers/manifest/manifest_fetcher.js +10 -10
- package/dist/es2017/core/fetchers/segment/index.d.ts +4 -4
- package/dist/es2017/core/fetchers/segment/index.d.ts.map +1 -1
- package/dist/es2017/core/fetchers/segment/index.js +1 -1
- package/dist/es2017/core/fetchers/segment/initialization_segment_cache.d.ts +1 -1
- package/dist/es2017/core/fetchers/segment/initialization_segment_cache.d.ts.map +1 -1
- package/dist/es2017/core/fetchers/segment/prioritized_segment_fetcher.d.ts +4 -4
- package/dist/es2017/core/fetchers/segment/prioritized_segment_fetcher.d.ts.map +1 -1
- package/dist/es2017/core/fetchers/segment/prioritized_segment_fetcher.js +1 -1
- package/dist/es2017/core/fetchers/segment/segment_fetcher.d.ts +8 -8
- package/dist/es2017/core/fetchers/segment/segment_fetcher.d.ts.map +1 -1
- package/dist/es2017/core/fetchers/segment/segment_fetcher.js +13 -13
- package/dist/es2017/core/fetchers/segment/segment_queue.d.ts +6 -6
- package/dist/es2017/core/fetchers/segment/segment_queue.d.ts.map +1 -1
- package/dist/es2017/core/fetchers/segment/segment_queue.js +7 -7
- package/dist/es2017/core/fetchers/segment/segment_queue_creator.d.ts +7 -7
- package/dist/es2017/core/fetchers/segment/segment_queue_creator.d.ts.map +1 -1
- package/dist/es2017/core/fetchers/segment/segment_queue_creator.js +5 -5
- package/dist/es2017/core/fetchers/segment/task_prioritizer.d.ts +1 -1
- package/dist/es2017/core/fetchers/segment/task_prioritizer.d.ts.map +1 -1
- package/dist/es2017/core/fetchers/segment/task_prioritizer.js +4 -4
- package/dist/es2017/core/fetchers/thumbnails/index.d.ts +2 -2
- package/dist/es2017/core/fetchers/thumbnails/index.d.ts.map +1 -1
- package/dist/es2017/core/fetchers/thumbnails/index.js +1 -1
- package/dist/es2017/core/fetchers/thumbnails/thumbnail_fetcher.d.ts +5 -5
- package/dist/es2017/core/fetchers/thumbnails/thumbnail_fetcher.d.ts.map +1 -1
- package/dist/es2017/core/fetchers/thumbnails/thumbnail_fetcher.js +8 -8
- package/dist/es2017/core/fetchers/utils/error_selector.d.ts +1 -1
- package/dist/es2017/core/fetchers/utils/error_selector.d.ts.map +1 -1
- package/dist/es2017/core/fetchers/utils/error_selector.js +2 -2
- package/dist/es2017/core/fetchers/utils/retry_after_delay.d.ts +7 -0
- package/dist/es2017/core/fetchers/utils/retry_after_delay.d.ts.map +1 -0
- package/dist/es2017/core/fetchers/utils/retry_after_delay.js +77 -0
- package/dist/es2017/core/fetchers/utils/schedule_request.d.ts +3 -3
- package/dist/es2017/core/fetchers/utils/schedule_request.d.ts.map +1 -1
- package/dist/es2017/core/fetchers/utils/schedule_request.js +13 -12
- package/dist/es2017/core/segment_sinks/garbage_collector.d.ts +5 -5
- package/dist/es2017/core/segment_sinks/garbage_collector.d.ts.map +1 -1
- package/dist/es2017/core/segment_sinks/garbage_collector.js +4 -4
- package/dist/es2017/core/segment_sinks/implementations/audio_video/audio_video_segment_sink.d.ts +4 -4
- package/dist/es2017/core/segment_sinks/implementations/audio_video/audio_video_segment_sink.d.ts.map +1 -1
- package/dist/es2017/core/segment_sinks/implementations/audio_video/audio_video_segment_sink.js +4 -4
- package/dist/es2017/core/segment_sinks/implementations/audio_video/index.d.ts +1 -1
- package/dist/es2017/core/segment_sinks/implementations/audio_video/index.d.ts.map +1 -1
- package/dist/es2017/core/segment_sinks/implementations/audio_video/index.js +1 -1
- package/dist/es2017/core/segment_sinks/implementations/index.d.ts +3 -3
- package/dist/es2017/core/segment_sinks/implementations/index.d.ts.map +1 -1
- package/dist/es2017/core/segment_sinks/implementations/index.js +2 -2
- package/dist/es2017/core/segment_sinks/implementations/text/index.d.ts +2 -2
- package/dist/es2017/core/segment_sinks/implementations/text/index.d.ts.map +1 -1
- package/dist/es2017/core/segment_sinks/implementations/text/index.js +1 -1
- package/dist/es2017/core/segment_sinks/implementations/text/text_segment_sink.d.ts +5 -5
- package/dist/es2017/core/segment_sinks/implementations/text/text_segment_sink.d.ts.map +1 -1
- package/dist/es2017/core/segment_sinks/implementations/text/text_segment_sink.js +4 -4
- package/dist/es2017/core/segment_sinks/implementations/types.d.ts +4 -4
- package/dist/es2017/core/segment_sinks/implementations/types.d.ts.map +1 -1
- package/dist/es2017/core/segment_sinks/implementations/types.js +1 -1
- package/dist/es2017/core/segment_sinks/implementations/utils/manual_time_ranges.js +2 -2
- package/dist/es2017/core/segment_sinks/index.d.ts +6 -6
- package/dist/es2017/core/segment_sinks/index.d.ts.map +1 -1
- package/dist/es2017/core/segment_sinks/index.js +4 -4
- package/dist/es2017/core/segment_sinks/inventory/buffered_history.d.ts +1 -1
- package/dist/es2017/core/segment_sinks/inventory/buffered_history.d.ts.map +1 -1
- package/dist/es2017/core/segment_sinks/inventory/buffered_history.js +2 -2
- package/dist/es2017/core/segment_sinks/inventory/index.d.ts +5 -5
- package/dist/es2017/core/segment_sinks/inventory/index.d.ts.map +1 -1
- package/dist/es2017/core/segment_sinks/inventory/index.js +2 -2
- package/dist/es2017/core/segment_sinks/inventory/segment_inventory.d.ts +4 -4
- package/dist/es2017/core/segment_sinks/inventory/segment_inventory.d.ts.map +1 -1
- package/dist/es2017/core/segment_sinks/inventory/segment_inventory.js +6 -6
- package/dist/es2017/core/segment_sinks/inventory/types.d.ts +1 -1
- package/dist/es2017/core/segment_sinks/inventory/types.d.ts.map +1 -1
- package/dist/es2017/core/segment_sinks/inventory/utils.d.ts +2 -2
- package/dist/es2017/core/segment_sinks/inventory/utils.d.ts.map +1 -1
- package/dist/es2017/core/segment_sinks/segment_sinks_store.d.ts +6 -6
- package/dist/es2017/core/segment_sinks/segment_sinks_store.d.ts.map +1 -1
- package/dist/es2017/core/segment_sinks/segment_sinks_store.js +8 -8
- package/dist/es2017/core/stream/adaptation/adaptation_stream.d.ts +2 -2
- package/dist/es2017/core/stream/adaptation/adaptation_stream.d.ts.map +1 -1
- package/dist/es2017/core/stream/adaptation/adaptation_stream.js +13 -13
- package/dist/es2017/core/stream/adaptation/get_representations_switch_strategy.d.ts +4 -4
- package/dist/es2017/core/stream/adaptation/get_representations_switch_strategy.d.ts.map +1 -1
- package/dist/es2017/core/stream/adaptation/get_representations_switch_strategy.js +4 -4
- package/dist/es2017/core/stream/adaptation/index.d.ts +2 -2
- package/dist/es2017/core/stream/adaptation/index.d.ts.map +1 -1
- package/dist/es2017/core/stream/adaptation/index.js +1 -1
- package/dist/es2017/core/stream/adaptation/types.d.ts +8 -8
- package/dist/es2017/core/stream/adaptation/types.d.ts.map +1 -1
- package/dist/es2017/core/stream/index.d.ts +5 -5
- package/dist/es2017/core/stream/index.d.ts.map +1 -1
- package/dist/es2017/core/stream/index.js +1 -1
- package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.d.ts +3 -3
- package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.d.ts.map +1 -1
- package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.js +3 -3
- package/dist/es2017/core/stream/orchestrator/index.d.ts +2 -2
- package/dist/es2017/core/stream/orchestrator/index.d.ts.map +1 -1
- package/dist/es2017/core/stream/orchestrator/index.js +1 -1
- package/dist/es2017/core/stream/orchestrator/stream_orchestrator.d.ts +9 -9
- package/dist/es2017/core/stream/orchestrator/stream_orchestrator.d.ts.map +1 -1
- package/dist/es2017/core/stream/orchestrator/stream_orchestrator.js +12 -12
- package/dist/es2017/core/stream/period/index.d.ts +2 -2
- package/dist/es2017/core/stream/period/index.d.ts.map +1 -1
- package/dist/es2017/core/stream/period/index.js +1 -1
- package/dist/es2017/core/stream/period/period_stream.d.ts +2 -2
- package/dist/es2017/core/stream/period/period_stream.d.ts.map +1 -1
- package/dist/es2017/core/stream/period/period_stream.js +13 -13
- package/dist/es2017/core/stream/period/types.d.ts +15 -15
- package/dist/es2017/core/stream/period/types.d.ts.map +1 -1
- package/dist/es2017/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +5 -5
- package/dist/es2017/core/stream/period/utils/get_adaptation_switch_strategy.d.ts.map +1 -1
- package/dist/es2017/core/stream/period/utils/get_adaptation_switch_strategy.js +4 -4
- package/dist/es2017/core/stream/representation/encryption_data_notifier.d.ts +2 -2
- package/dist/es2017/core/stream/representation/encryption_data_notifier.d.ts.map +1 -1
- package/dist/es2017/core/stream/representation/index.d.ts +2 -2
- package/dist/es2017/core/stream/representation/index.d.ts.map +1 -1
- package/dist/es2017/core/stream/representation/index.js +1 -1
- package/dist/es2017/core/stream/representation/representation_stream.d.ts +2 -2
- package/dist/es2017/core/stream/representation/representation_stream.d.ts.map +1 -1
- package/dist/es2017/core/stream/representation/representation_stream.js +9 -9
- package/dist/es2017/core/stream/representation/types.d.ts +9 -9
- package/dist/es2017/core/stream/representation/types.d.ts.map +1 -1
- package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.d.ts +6 -6
- package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.d.ts.map +1 -1
- package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.js +5 -5
- package/dist/es2017/core/stream/representation/utils/check_for_discontinuity.d.ts +3 -3
- package/dist/es2017/core/stream/representation/utils/check_for_discontinuity.d.ts.map +1 -1
- package/dist/es2017/core/stream/representation/utils/check_for_discontinuity.js +1 -1
- package/dist/es2017/core/stream/representation/utils/get_buffer_status.d.ts +4 -4
- package/dist/es2017/core/stream/representation/utils/get_buffer_status.d.ts.map +1 -1
- package/dist/es2017/core/stream/representation/utils/get_buffer_status.js +5 -5
- package/dist/es2017/core/stream/representation/utils/get_needed_segments.d.ts +2 -2
- package/dist/es2017/core/stream/representation/utils/get_needed_segments.d.ts.map +1 -1
- package/dist/es2017/core/stream/representation/utils/get_needed_segments.js +4 -4
- package/dist/es2017/core/stream/representation/utils/get_segment_priority.js +1 -1
- package/dist/es2017/core/stream/representation/utils/push_init_segment.d.ts +6 -6
- package/dist/es2017/core/stream/representation/utils/push_init_segment.d.ts.map +1 -1
- package/dist/es2017/core/stream/representation/utils/push_init_segment.js +2 -2
- package/dist/es2017/core/stream/representation/utils/push_media_segment.d.ts +7 -7
- package/dist/es2017/core/stream/representation/utils/push_media_segment.d.ts.map +1 -1
- package/dist/es2017/core/stream/representation/utils/push_media_segment.js +3 -3
- package/dist/es2017/core/types.d.ts +14 -14
- package/dist/es2017/core/types.d.ts.map +1 -1
- package/dist/es2017/default_config.d.ts +8 -0
- package/dist/es2017/default_config.d.ts.map +1 -1
- package/dist/es2017/default_config.js +8 -0
- package/dist/es2017/errors/encrypted_media_error.d.ts +2 -2
- package/dist/es2017/errors/encrypted_media_error.d.ts.map +1 -1
- package/dist/es2017/errors/encrypted_media_error.js +2 -2
- package/dist/es2017/errors/error_codes.d.ts +1 -1
- package/dist/es2017/errors/error_codes.d.ts.map +1 -1
- package/dist/es2017/errors/error_codes.js +1 -1
- package/dist/es2017/errors/format_error.d.ts +1 -1
- package/dist/es2017/errors/format_error.d.ts.map +1 -1
- package/dist/es2017/errors/format_error.js +2 -2
- package/dist/es2017/errors/index.d.ts +14 -14
- package/dist/es2017/errors/index.d.ts.map +1 -1
- package/dist/es2017/errors/index.js +9 -9
- package/dist/es2017/errors/is_known_error.d.ts +1 -1
- package/dist/es2017/errors/is_known_error.d.ts.map +1 -1
- package/dist/es2017/errors/is_known_error.js +5 -5
- package/dist/es2017/errors/media_error.d.ts +2 -2
- package/dist/es2017/errors/media_error.d.ts.map +1 -1
- package/dist/es2017/errors/media_error.js +3 -3
- package/dist/es2017/errors/network_error.d.ts +2 -2
- package/dist/es2017/errors/network_error.d.ts.map +1 -1
- package/dist/es2017/errors/network_error.js +2 -2
- package/dist/es2017/errors/other_error.d.ts +1 -1
- package/dist/es2017/errors/other_error.d.ts.map +1 -1
- package/dist/es2017/errors/other_error.js +2 -2
- package/dist/es2017/errors/worker_initialization_error.d.ts.map +1 -1
- package/dist/es2017/errors/worker_initialization_error.js +1 -1
- package/dist/es2017/experimental/features/index.d.ts +3 -3
- package/dist/es2017/experimental/features/index.d.ts.map +1 -1
- package/dist/es2017/experimental/features/index.js +3 -3
- package/dist/es2017/experimental/features/local.d.ts +1 -1
- package/dist/es2017/experimental/features/local.d.ts.map +1 -1
- package/dist/es2017/experimental/features/local.js +4 -4
- package/dist/es2017/experimental/features/metaplaylist.d.ts +1 -1
- package/dist/es2017/experimental/features/metaplaylist.d.ts.map +1 -1
- package/dist/es2017/experimental/features/metaplaylist.js +4 -4
- package/dist/es2017/experimental/features/multi_thread.d.ts +1 -1
- package/dist/es2017/experimental/features/multi_thread.d.ts.map +1 -1
- package/dist/es2017/experimental/features/multi_thread.js +7 -6
- package/dist/es2017/experimental/features/worker/index.d.ts +3 -3
- package/dist/es2017/experimental/features/worker/index.d.ts.map +1 -1
- package/dist/es2017/experimental/features/worker/index.js +3 -3
- package/dist/es2017/experimental/index.d.ts +1 -1
- package/dist/es2017/experimental/index.d.ts.map +1 -1
- package/dist/es2017/experimental/index.js +1 -1
- package/dist/es2017/experimental/tools/DummyMediaElement/eme.d.ts +19 -3
- package/dist/es2017/experimental/tools/DummyMediaElement/eme.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/DummyMediaElement/eme.js +44 -13
- package/dist/es2017/experimental/tools/DummyMediaElement/html5.d.ts +7 -7
- package/dist/es2017/experimental/tools/DummyMediaElement/html5.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/DummyMediaElement/html5.js +9 -9
- package/dist/es2017/experimental/tools/DummyMediaElement/index.d.ts +1 -1
- package/dist/es2017/experimental/tools/DummyMediaElement/index.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/DummyMediaElement/index.js +1 -1
- package/dist/es2017/experimental/tools/DummyMediaElement/mse.d.ts +4 -4
- package/dist/es2017/experimental/tools/DummyMediaElement/mse.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/DummyMediaElement/mse.js +9 -9
- package/dist/es2017/experimental/tools/DummyMediaElement/utils.d.ts +4 -4
- package/dist/es2017/experimental/tools/DummyMediaElement/utils.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/DummyMediaElement/utils.js +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/dash.d.ts +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/dash.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/dash.js +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/metaplaylist.js +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/index.d.ts +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/index.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/index.js +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +3 -3
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +3 -3
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +10 -10
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +2 -2
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/types.d.ts +2 -2
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/types.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts +4 -4
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +14 -14
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.js +1 -1
- package/dist/es2017/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +4 -4
- package/dist/es2017/experimental/tools/createMetaplaylist/index.d.ts +1 -1
- package/dist/es2017/experimental/tools/createMetaplaylist/index.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/createMetaplaylist/index.js +1 -1
- package/dist/es2017/experimental/tools/index.d.ts +3 -3
- package/dist/es2017/experimental/tools/index.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/index.js +3 -3
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api.d.ts +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api.js +11 -11
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/index.d.ts +2 -2
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/index.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/index.js +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/log.d.ts +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/log.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/log.js +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.js +2 -2
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.js +2 -2
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/isTypeSupportedWithFeatures.d.ts +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/isTypeSupportedWithFeatures.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/isTypeSupportedWithFeatures.js +3 -3
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.js +2 -2
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +2 -2
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/utils.d.ts +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/utils.d.ts.map +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/utils.js +5 -4
- package/dist/es2017/features/add_features.d.ts +1 -1
- package/dist/es2017/features/add_features.d.ts.map +1 -1
- package/dist/es2017/features/add_features.js +2 -2
- package/dist/es2017/features/features_object.d.ts +1 -1
- package/dist/es2017/features/features_object.d.ts.map +1 -1
- package/dist/es2017/features/index.d.ts +3 -3
- package/dist/es2017/features/index.d.ts.map +1 -1
- package/dist/es2017/features/index.js +2 -2
- package/dist/es2017/features/list/dash.d.ts +1 -1
- package/dist/es2017/features/list/dash.d.ts.map +1 -1
- package/dist/es2017/features/list/dash.js +5 -5
- package/dist/es2017/features/list/dash_wasm.d.ts +2 -2
- package/dist/es2017/features/list/dash_wasm.d.ts.map +1 -1
- package/dist/es2017/features/list/dash_wasm.js +5 -5
- package/dist/es2017/features/list/debug_element.d.ts +1 -1
- package/dist/es2017/features/list/debug_element.d.ts.map +1 -1
- package/dist/es2017/features/list/debug_element.js +1 -1
- package/dist/es2017/features/list/directfile.d.ts +1 -1
- package/dist/es2017/features/list/directfile.d.ts.map +1 -1
- package/dist/es2017/features/list/directfile.js +2 -2
- package/dist/es2017/features/list/eme.d.ts +1 -1
- package/dist/es2017/features/list/eme.d.ts.map +1 -1
- package/dist/es2017/features/list/eme.js +1 -1
- package/dist/es2017/features/list/html_sami_parser.d.ts +1 -1
- package/dist/es2017/features/list/html_sami_parser.d.ts.map +1 -1
- package/dist/es2017/features/list/html_sami_parser.js +2 -2
- package/dist/es2017/features/list/html_srt_parser.d.ts +1 -1
- package/dist/es2017/features/list/html_srt_parser.d.ts.map +1 -1
- package/dist/es2017/features/list/html_srt_parser.js +2 -2
- package/dist/es2017/features/list/html_text_buffer.d.ts +1 -1
- package/dist/es2017/features/list/html_text_buffer.d.ts.map +1 -1
- package/dist/es2017/features/list/html_text_buffer.js +1 -1
- package/dist/es2017/features/list/html_ttml_parser.d.ts +1 -1
- package/dist/es2017/features/list/html_ttml_parser.d.ts.map +1 -1
- package/dist/es2017/features/list/html_ttml_parser.js +2 -2
- package/dist/es2017/features/list/html_vtt_parser.d.ts +1 -1
- package/dist/es2017/features/list/html_vtt_parser.d.ts.map +1 -1
- package/dist/es2017/features/list/html_vtt_parser.js +2 -2
- package/dist/es2017/features/list/index.d.ts +18 -17
- package/dist/es2017/features/list/index.d.ts.map +1 -1
- package/dist/es2017/features/list/index.js +18 -17
- package/dist/es2017/features/list/media_source_main.d.ts +1 -1
- package/dist/es2017/features/list/media_source_main.d.ts.map +1 -1
- package/dist/es2017/features/list/media_source_main.js +3 -3
- package/dist/es2017/features/list/multi_thread.d.ts +9 -0
- package/dist/es2017/features/list/multi_thread.d.ts.map +1 -0
- package/dist/es2017/features/list/multi_thread.js +14 -0
- package/dist/es2017/features/list/native_sami_parser.d.ts +1 -1
- package/dist/es2017/features/list/native_sami_parser.d.ts.map +1 -1
- package/dist/es2017/features/list/native_sami_parser.js +2 -2
- package/dist/es2017/features/list/native_srt_parser.d.ts +1 -1
- package/dist/es2017/features/list/native_srt_parser.d.ts.map +1 -1
- package/dist/es2017/features/list/native_srt_parser.js +2 -2
- package/dist/es2017/features/list/native_text_buffer.d.ts +1 -1
- package/dist/es2017/features/list/native_text_buffer.d.ts.map +1 -1
- package/dist/es2017/features/list/native_text_buffer.js +1 -1
- package/dist/es2017/features/list/native_ttml_parser.d.ts +1 -1
- package/dist/es2017/features/list/native_ttml_parser.d.ts.map +1 -1
- package/dist/es2017/features/list/native_ttml_parser.js +2 -2
- package/dist/es2017/features/list/native_vtt_parser.d.ts +1 -1
- package/dist/es2017/features/list/native_vtt_parser.d.ts.map +1 -1
- package/dist/es2017/features/list/native_vtt_parser.js +2 -2
- package/dist/es2017/features/list/smooth.d.ts +1 -1
- package/dist/es2017/features/list/smooth.d.ts.map +1 -1
- package/dist/es2017/features/list/smooth.js +4 -4
- package/dist/es2017/features/types.d.ts +16 -16
- package/dist/es2017/features/types.d.ts.map +1 -1
- package/dist/es2017/importable_worker.d.ts +2 -2
- package/dist/es2017/importable_worker.d.ts.map +1 -1
- package/dist/es2017/importable_worker.js +4 -4
- package/dist/es2017/index.d.ts +1 -1
- package/dist/es2017/index.d.ts.map +1 -1
- package/dist/es2017/index.js +4 -4
- package/dist/es2017/initialize_worker.d.ts +1 -1
- package/dist/es2017/initialize_worker.d.ts.map +1 -1
- package/dist/es2017/initialize_worker.js +8 -8
- package/dist/es2017/log.d.ts +1 -1
- package/dist/es2017/log.d.ts.map +1 -1
- package/dist/es2017/log.js +1 -1
- package/dist/es2017/main_thread/api/debug/buffer_graph.d.ts +1 -1
- package/dist/es2017/main_thread/api/debug/buffer_graph.d.ts.map +1 -1
- package/dist/es2017/main_thread/api/debug/buffer_size_graph.js +1 -1
- package/dist/es2017/main_thread/api/debug/index.d.ts +1 -1
- package/dist/es2017/main_thread/api/debug/index.d.ts.map +1 -1
- package/dist/es2017/main_thread/api/debug/index.js +1 -1
- package/dist/es2017/main_thread/api/debug/modules/general_info.d.ts +2 -2
- package/dist/es2017/main_thread/api/debug/modules/general_info.d.ts.map +1 -1
- package/dist/es2017/main_thread/api/debug/modules/general_info.js +3 -3
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_content.d.ts +3 -3
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_content.d.ts.map +1 -1
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_content.js +5 -5
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_size.d.ts +2 -2
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_size.d.ts.map +1 -1
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_size.js +3 -3
- package/dist/es2017/main_thread/api/debug/render.d.ts +2 -2
- package/dist/es2017/main_thread/api/debug/render.d.ts.map +1 -1
- package/dist/es2017/main_thread/api/debug/render.js +4 -4
- package/dist/es2017/main_thread/api/index.d.ts +1 -1
- package/dist/es2017/main_thread/api/index.d.ts.map +1 -1
- package/dist/es2017/main_thread/api/index.js +1 -1
- package/dist/es2017/main_thread/api/option_utils.d.ts +2 -2
- package/dist/es2017/main_thread/api/option_utils.d.ts.map +1 -1
- package/dist/es2017/main_thread/api/option_utils.js +5 -5
- package/dist/es2017/main_thread/api/public_api.d.ts +17 -17
- package/dist/es2017/main_thread/api/public_api.d.ts.map +1 -1
- package/dist/es2017/main_thread/api/public_api.js +70 -51
- package/dist/es2017/main_thread/api/utils.d.ts +6 -6
- package/dist/es2017/main_thread/api/utils.d.ts.map +1 -1
- package/dist/es2017/main_thread/api/utils.js +5 -5
- package/dist/es2017/main_thread/core_interface/base.d.ts +2 -2
- package/dist/es2017/main_thread/core_interface/base.d.ts.map +1 -1
- package/dist/es2017/main_thread/core_interface/monothread.d.ts +3 -3
- package/dist/es2017/main_thread/core_interface/monothread.d.ts.map +1 -1
- package/dist/es2017/main_thread/core_interface/monothread.js +4 -4
- package/dist/es2017/main_thread/core_interface/multithread.d.ts +2 -2
- package/dist/es2017/main_thread/core_interface/multithread.d.ts.map +1 -1
- package/dist/es2017/main_thread/core_interface/multithread.js +2 -2
- package/dist/es2017/main_thread/core_interface/types.d.ts +3 -3
- package/dist/es2017/main_thread/core_interface/types.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/clear_on_stop.d.ts +1 -1
- package/dist/es2017/main_thread/decrypt/clear_on_stop.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/clear_on_stop.js +4 -4
- package/dist/es2017/main_thread/decrypt/content_decryptor.d.ts +7 -7
- package/dist/es2017/main_thread/decrypt/content_decryptor.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/content_decryptor.js +24 -24
- package/dist/es2017/main_thread/decrypt/create_or_load_session.d.ts +5 -5
- package/dist/es2017/main_thread/decrypt/create_or_load_session.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/create_or_load_session.js +4 -4
- package/dist/es2017/main_thread/decrypt/create_session.d.ts +5 -5
- package/dist/es2017/main_thread/decrypt/create_session.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/create_session.js +2 -2
- package/dist/es2017/main_thread/decrypt/dispose_decryption_resources.d.ts +1 -1
- package/dist/es2017/main_thread/decrypt/dispose_decryption_resources.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/dispose_decryption_resources.js +1 -1
- package/dist/es2017/main_thread/decrypt/find_key_system.d.ts +4 -4
- package/dist/es2017/main_thread/decrypt/find_key_system.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/find_key_system.js +14 -12
- package/dist/es2017/main_thread/decrypt/get_key_system_configuration.d.ts +1 -1
- package/dist/es2017/main_thread/decrypt/get_key_system_configuration.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/get_key_system_configuration.js +1 -1
- package/dist/es2017/main_thread/decrypt/get_media_keys.d.ts +6 -6
- package/dist/es2017/main_thread/decrypt/get_media_keys.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/get_media_keys.js +11 -9
- package/dist/es2017/main_thread/decrypt/index.d.ts +5 -5
- package/dist/es2017/main_thread/decrypt/index.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/index.js +5 -5
- package/dist/es2017/main_thread/decrypt/init_media_keys.d.ts +5 -5
- package/dist/es2017/main_thread/decrypt/init_media_keys.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/init_media_keys.js +3 -3
- package/dist/es2017/main_thread/decrypt/session_events_listener.d.ts +3 -3
- package/dist/es2017/main_thread/decrypt/session_events_listener.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/session_events_listener.js +11 -8
- package/dist/es2017/main_thread/decrypt/set_server_certificate.d.ts +2 -2
- package/dist/es2017/main_thread/decrypt/set_server_certificate.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/set_server_certificate.js +5 -3
- package/dist/es2017/main_thread/decrypt/types.d.ts +5 -5
- package/dist/es2017/main_thread/decrypt/types.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/are_init_values_compatible.d.ts +1 -1
- package/dist/es2017/main_thread/decrypt/utils/are_init_values_compatible.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/are_init_values_compatible.js +2 -2
- package/dist/es2017/main_thread/decrypt/utils/check_key_statuses.d.ts +3 -3
- package/dist/es2017/main_thread/decrypt/utils/check_key_statuses.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/check_key_statuses.js +5 -5
- package/dist/es2017/main_thread/decrypt/utils/clean_old_loaded_sessions.d.ts +1 -1
- package/dist/es2017/main_thread/decrypt/utils/clean_old_loaded_sessions.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/clean_old_loaded_sessions.js +1 -1
- package/dist/es2017/main_thread/decrypt/utils/clean_old_stored_persistent_info.d.ts +1 -1
- package/dist/es2017/main_thread/decrypt/utils/clean_old_stored_persistent_info.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/clean_old_stored_persistent_info.js +1 -1
- package/dist/es2017/main_thread/decrypt/utils/get_drm_system_id.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/get_drm_system_id.js +3 -2
- package/dist/es2017/main_thread/decrypt/utils/init_data_values_container.d.ts +1 -1
- package/dist/es2017/main_thread/decrypt/utils/init_data_values_container.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/init_data_values_container.js +3 -3
- package/dist/es2017/main_thread/decrypt/utils/is_compatible_codec_supported.d.ts +1 -1
- package/dist/es2017/main_thread/decrypt/utils/is_compatible_codec_supported.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/is_compatible_codec_supported.js +1 -1
- package/dist/es2017/main_thread/decrypt/utils/is_session_usable.d.ts +1 -1
- package/dist/es2017/main_thread/decrypt/utils/is_session_usable.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/is_session_usable.js +2 -2
- package/dist/es2017/main_thread/decrypt/utils/key_id_comparison.js +1 -1
- package/dist/es2017/main_thread/decrypt/utils/key_session_record.d.ts +1 -1
- package/dist/es2017/main_thread/decrypt/utils/key_session_record.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/key_session_record.js +2 -2
- package/dist/es2017/main_thread/decrypt/utils/loaded_sessions_store.d.ts +6 -4
- package/dist/es2017/main_thread/decrypt/utils/loaded_sessions_store.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/loaded_sessions_store.js +5 -5
- package/dist/es2017/main_thread/decrypt/utils/media_keys_attacher.d.ts +4 -4
- package/dist/es2017/main_thread/decrypt/utils/media_keys_attacher.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/media_keys_attacher.js +4 -4
- package/dist/es2017/main_thread/decrypt/utils/persistent_sessions_store.d.ts +3 -3
- package/dist/es2017/main_thread/decrypt/utils/persistent_sessions_store.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/persistent_sessions_store.js +9 -9
- package/dist/es2017/main_thread/decrypt/utils/serializable_bytes.js +1 -1
- package/dist/es2017/main_thread/decrypt/utils/server_certificate_store.d.ts +1 -1
- package/dist/es2017/main_thread/decrypt/utils/server_certificate_store.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/server_certificate_store.js +1 -1
- package/dist/es2017/main_thread/init/directfile_content_initializer.d.ts +7 -7
- package/dist/es2017/main_thread/init/directfile_content_initializer.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/directfile_content_initializer.js +13 -13
- package/dist/es2017/main_thread/init/index.d.ts +2 -2
- package/dist/es2017/main_thread/init/index.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/index.js +1 -1
- package/dist/es2017/main_thread/init/media_source_content_initializer.d.ts +40 -24
- package/dist/es2017/main_thread/init/media_source_content_initializer.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/media_source_content_initializer.js +42 -43
- package/dist/es2017/main_thread/init/types.d.ts +10 -10
- package/dist/es2017/main_thread/init/types.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/types.js +1 -1
- package/dist/es2017/main_thread/init/utils/create_core_playback_observer.d.ts +9 -9
- package/dist/es2017/main_thread/init/utils/create_core_playback_observer.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/utils/create_core_playback_observer.js +4 -4
- package/dist/es2017/main_thread/init/utils/get_initial_time.d.ts +1 -1
- package/dist/es2017/main_thread/init/utils/get_initial_time.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/utils/get_initial_time.js +5 -5
- package/dist/es2017/main_thread/init/utils/get_loaded_reference.d.ts +3 -3
- package/dist/es2017/main_thread/init/utils/get_loaded_reference.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/utils/get_loaded_reference.js +5 -5
- package/dist/es2017/main_thread/init/utils/initial_seek_and_play.d.ts +5 -5
- package/dist/es2017/main_thread/init/utils/initial_seek_and_play.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/utils/initial_seek_and_play.js +5 -5
- package/dist/es2017/main_thread/init/utils/initialize_content_decryption.d.ts +8 -8
- package/dist/es2017/main_thread/init/utils/initialize_content_decryption.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/utils/initialize_content_decryption.js +7 -7
- package/dist/es2017/main_thread/init/utils/main_thread_text_displayer_interface.d.ts +3 -3
- package/dist/es2017/main_thread/init/utils/main_thread_text_displayer_interface.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/utils/rebuffering_controller.d.ts +7 -7
- package/dist/es2017/main_thread/init/utils/rebuffering_controller.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/utils/rebuffering_controller.js +9 -9
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/index.d.ts +2 -2
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/index.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/index.js +1 -1
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +2 -2
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +1 -1
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts +4 -4
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/stream_events_emitter.js +5 -5
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/types.d.ts +1 -1
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/types.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/utils/throw_on_media_error.d.ts +3 -3
- package/dist/es2017/main_thread/init/utils/throw_on_media_error.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/utils/throw_on_media_error.js +2 -2
- package/dist/es2017/main_thread/init/utils/update_manifest_codec_support.d.ts +8 -6
- package/dist/es2017/main_thread/init/utils/update_manifest_codec_support.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/utils/update_manifest_codec_support.js +7 -5
- package/dist/es2017/main_thread/render_thumbnail.d.ts +2 -2
- package/dist/es2017/main_thread/render_thumbnail.d.ts.map +1 -1
- package/dist/es2017/main_thread/render_thumbnail.js +6 -6
- package/dist/es2017/main_thread/text_displayer/html/html_parsers.d.ts +1 -1
- package/dist/es2017/main_thread/text_displayer/html/html_parsers.d.ts.map +1 -1
- package/dist/es2017/main_thread/text_displayer/html/html_parsers.js +2 -2
- package/dist/es2017/main_thread/text_displayer/html/html_text_displayer.d.ts +4 -4
- package/dist/es2017/main_thread/text_displayer/html/html_text_displayer.d.ts.map +1 -1
- package/dist/es2017/main_thread/text_displayer/html/html_text_displayer.js +10 -10
- package/dist/es2017/main_thread/text_displayer/html/index.d.ts +1 -1
- package/dist/es2017/main_thread/text_displayer/html/index.d.ts.map +1 -1
- package/dist/es2017/main_thread/text_displayer/html/index.js +1 -1
- package/dist/es2017/main_thread/text_displayer/html/text_track_cues_store.d.ts +1 -1
- package/dist/es2017/main_thread/text_displayer/html/text_track_cues_store.d.ts.map +1 -1
- package/dist/es2017/main_thread/text_displayer/html/text_track_cues_store.js +2 -2
- package/dist/es2017/main_thread/text_displayer/index.d.ts +1 -1
- package/dist/es2017/main_thread/text_displayer/index.d.ts.map +1 -1
- package/dist/es2017/main_thread/text_displayer/manual_time_ranges.js +2 -2
- package/dist/es2017/main_thread/text_displayer/native/index.d.ts +1 -1
- package/dist/es2017/main_thread/text_displayer/native/index.d.ts.map +1 -1
- package/dist/es2017/main_thread/text_displayer/native/index.js +1 -1
- package/dist/es2017/main_thread/text_displayer/native/native_parsers.d.ts +2 -2
- package/dist/es2017/main_thread/text_displayer/native/native_parsers.d.ts.map +1 -1
- package/dist/es2017/main_thread/text_displayer/native/native_parsers.js +2 -2
- package/dist/es2017/main_thread/text_displayer/native/native_text_displayer.d.ts +3 -3
- package/dist/es2017/main_thread/text_displayer/native/native_text_displayer.d.ts.map +1 -1
- package/dist/es2017/main_thread/text_displayer/native/native_text_displayer.js +6 -6
- package/dist/es2017/main_thread/text_displayer/types.d.ts +2 -2
- package/dist/es2017/main_thread/text_displayer/types.d.ts.map +1 -1
- package/dist/es2017/main_thread/tracks_store/index.d.ts +3 -3
- package/dist/es2017/main_thread/tracks_store/index.d.ts.map +1 -1
- package/dist/es2017/main_thread/tracks_store/index.js +2 -2
- package/dist/es2017/main_thread/tracks_store/media_element_tracks_store.d.ts +3 -3
- package/dist/es2017/main_thread/tracks_store/media_element_tracks_store.d.ts.map +1 -1
- package/dist/es2017/main_thread/tracks_store/media_element_tracks_store.js +5 -5
- package/dist/es2017/main_thread/tracks_store/track_dispatcher.d.ts +5 -5
- package/dist/es2017/main_thread/tracks_store/track_dispatcher.d.ts.map +1 -1
- package/dist/es2017/main_thread/tracks_store/track_dispatcher.js +6 -6
- package/dist/es2017/main_thread/tracks_store/tracks_store.d.ts +6 -6
- package/dist/es2017/main_thread/tracks_store/tracks_store.d.ts.map +1 -1
- package/dist/es2017/main_thread/tracks_store/tracks_store.js +11 -11
- package/dist/es2017/main_thread/types.d.ts +36 -34
- package/dist/es2017/main_thread/types.d.ts.map +1 -1
- package/dist/es2017/main_thread/utils/media_capabilities.d.ts +2 -2
- package/dist/es2017/main_thread/utils/media_capabilities.d.ts.map +1 -1
- package/dist/es2017/main_thread/utils/media_capabilities.js +1 -1
- package/dist/es2017/manifest/classes/adaptation.d.ts +5 -5
- package/dist/es2017/manifest/classes/adaptation.d.ts.map +1 -1
- package/dist/es2017/manifest/classes/adaptation.js +5 -5
- package/dist/es2017/manifest/classes/index.d.ts +14 -14
- package/dist/es2017/manifest/classes/index.d.ts.map +1 -1
- package/dist/es2017/manifest/classes/index.js +7 -7
- package/dist/es2017/manifest/classes/manifest.d.ts +13 -13
- package/dist/es2017/manifest/classes/manifest.d.ts.map +1 -1
- package/dist/es2017/manifest/classes/manifest.js +12 -12
- package/dist/es2017/manifest/classes/period.d.ts +6 -6
- package/dist/es2017/manifest/classes/period.d.ts.map +1 -1
- package/dist/es2017/manifest/classes/period.js +7 -6
- package/dist/es2017/manifest/classes/representation.d.ts +5 -5
- package/dist/es2017/manifest/classes/representation.d.ts.map +1 -1
- package/dist/es2017/manifest/classes/representation.js +5 -5
- package/dist/es2017/manifest/classes/representation_index/index.d.ts +2 -2
- package/dist/es2017/manifest/classes/representation_index/index.d.ts.map +1 -1
- package/dist/es2017/manifest/classes/representation_index/index.js +1 -1
- package/dist/es2017/manifest/classes/representation_index/static.d.ts +1 -1
- package/dist/es2017/manifest/classes/representation_index/static.d.ts.map +1 -1
- package/dist/es2017/manifest/classes/representation_index/static.js +1 -1
- package/dist/es2017/manifest/classes/representation_index/types.d.ts +4 -4
- package/dist/es2017/manifest/classes/representation_index/types.d.ts.map +1 -1
- package/dist/es2017/manifest/classes/update_period_in_place.d.ts +5 -5
- package/dist/es2017/manifest/classes/update_period_in_place.d.ts.map +1 -1
- package/dist/es2017/manifest/classes/update_period_in_place.js +3 -3
- package/dist/es2017/manifest/classes/update_periods.d.ts +4 -4
- package/dist/es2017/manifest/classes/update_periods.d.ts.map +1 -1
- package/dist/es2017/manifest/classes/update_periods.js +6 -6
- package/dist/es2017/manifest/classes/utils.d.ts +4 -4
- package/dist/es2017/manifest/classes/utils.d.ts.map +1 -1
- package/dist/es2017/manifest/classes/utils.js +1 -1
- package/dist/es2017/manifest/index.d.ts +6 -6
- package/dist/es2017/manifest/index.d.ts.map +1 -1
- package/dist/es2017/manifest/index.js +2 -2
- package/dist/es2017/manifest/types.d.ts +2 -2
- package/dist/es2017/manifest/types.d.ts.map +1 -1
- package/dist/es2017/manifest/utils.d.ts +4 -4
- package/dist/es2017/manifest/utils.d.ts.map +1 -1
- package/dist/es2017/manifest/utils.js +6 -6
- package/dist/es2017/minimal.d.ts +1 -1
- package/dist/es2017/minimal.d.ts.map +1 -1
- package/dist/es2017/minimal.js +2 -2
- package/dist/es2017/mse/index.d.ts +2 -2
- package/dist/es2017/mse/index.d.ts.map +1 -1
- package/dist/es2017/mse/main_media_source_interface.d.ts +10 -5
- package/dist/es2017/mse/main_media_source_interface.d.ts.map +1 -1
- package/dist/es2017/mse/main_media_source_interface.js +19 -19
- package/dist/es2017/mse/types.d.ts +3 -3
- package/dist/es2017/mse/types.d.ts.map +1 -1
- package/dist/es2017/mse/utils/end_of_stream.d.ts +2 -2
- package/dist/es2017/mse/utils/end_of_stream.d.ts.map +1 -1
- package/dist/es2017/mse/utils/end_of_stream.js +3 -3
- package/dist/es2017/mse/utils/media_source_duration_updater.d.ts +1 -1
- package/dist/es2017/mse/utils/media_source_duration_updater.d.ts.map +1 -1
- package/dist/es2017/mse/utils/media_source_duration_updater.js +5 -5
- package/dist/es2017/mse/worker_media_source_interface.d.ts +7 -7
- package/dist/es2017/mse/worker_media_source_interface.d.ts.map +1 -1
- package/dist/es2017/mse/worker_media_source_interface.js +5 -5
- package/dist/es2017/parsers/containers/isobmff/create_box.js +3 -3
- package/dist/es2017/parsers/containers/isobmff/drm/index.d.ts +1 -1
- package/dist/es2017/parsers/containers/isobmff/drm/index.d.ts.map +1 -1
- package/dist/es2017/parsers/containers/isobmff/drm/index.js +1 -1
- package/dist/es2017/parsers/containers/isobmff/drm/playready.d.ts.map +1 -1
- package/dist/es2017/parsers/containers/isobmff/drm/playready.js +3 -3
- package/dist/es2017/parsers/containers/isobmff/extract_complete_chunks.js +2 -2
- package/dist/es2017/parsers/containers/isobmff/extract_pssh.js +5 -5
- package/dist/es2017/parsers/containers/isobmff/find_complete_box.js +1 -1
- package/dist/es2017/parsers/containers/isobmff/get_box.js +3 -3
- package/dist/es2017/parsers/containers/isobmff/index.d.ts +9 -9
- package/dist/es2017/parsers/containers/isobmff/index.d.ts.map +1 -1
- package/dist/es2017/parsers/containers/isobmff/index.js +8 -8
- package/dist/es2017/parsers/containers/isobmff/read.js +1 -1
- package/dist/es2017/parsers/containers/isobmff/remove_dolby_vision_config_data.js +3 -3
- package/dist/es2017/parsers/containers/isobmff/utils.d.ts +1 -1
- package/dist/es2017/parsers/containers/isobmff/utils.d.ts.map +1 -1
- package/dist/es2017/parsers/containers/isobmff/utils.js +10 -10
- package/dist/es2017/parsers/containers/matroska/index.d.ts +2 -2
- package/dist/es2017/parsers/containers/matroska/index.d.ts.map +1 -1
- package/dist/es2017/parsers/containers/matroska/index.js +1 -1
- package/dist/es2017/parsers/containers/matroska/utils.js +1 -1
- package/dist/es2017/parsers/images/bif.js +2 -2
- package/dist/es2017/parsers/manifest/dash/common/attach_trickmode_track.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/common/attach_trickmode_track.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/attach_trickmode_track.js +1 -1
- package/dist/es2017/parsers/manifest/dash/common/content_protection_parser.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/common/content_protection_parser.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/content_protection_parser.js +13 -12
- package/dist/es2017/parsers/manifest/dash/common/convert_supplemental_codecs.js +1 -1
- package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.js +1 -1
- package/dist/es2017/parsers/manifest/dash/common/get_clock_offset.js +2 -2
- package/dist/es2017/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/get_http_utc-timing_url.js +4 -4
- package/dist/es2017/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/get_minimum_and_maximum_positions.js +2 -2
- package/dist/es2017/parsers/manifest/dash/common/get_periods_time_infos.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/common/get_periods_time_infos.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/get_periods_time_infos.js +1 -1
- package/dist/es2017/parsers/manifest/dash/common/index.d.ts +3 -3
- package/dist/es2017/parsers/manifest/dash/common/index.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/index.js +2 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/base.d.ts +15 -11
- package/dist/es2017/parsers/manifest/dash/common/indexes/base.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/base.js +9 -8
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_init_segment.d.ts +31 -7
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_init_segment.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_init_segment.js +14 -7
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts +4 -4
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_segments_from_timeline.js +2 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/index.d.ts +8 -8
- package/dist/es2017/parsers/manifest/dash/common/indexes/index.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/index.js +4 -4
- package/dist/es2017/parsers/manifest/dash/common/indexes/list.d.ts +13 -9
- package/dist/es2017/parsers/manifest/dash/common/indexes/list.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/list.js +12 -8
- package/dist/es2017/parsers/manifest/dash/common/indexes/template.d.ts +13 -9
- package/dist/es2017/parsers/manifest/dash/common/indexes/template.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/template.js +11 -10
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +2 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +5 -5
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.js +2 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/index.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/index.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/index.js +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/parse_s_element.js +2 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +17 -13
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +19 -18
- package/dist/es2017/parsers/manifest/dash/common/indexes/tokens.js +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/utils.js +1 -1
- package/dist/es2017/parsers/manifest/dash/common/infer_adaptation_type.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/common/infer_adaptation_type.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/infer_adaptation_type.js +19 -19
- package/dist/es2017/parsers/manifest/dash/common/manifest_bounds_calculator.js +1 -1
- package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.d.ts +5 -5
- package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.js +50 -44
- package/dist/es2017/parsers/manifest/dash/common/parse_availability_start_time.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/common/parse_availability_start_time.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/parse_availability_start_time.js +1 -1
- package/dist/es2017/parsers/manifest/dash/common/parse_mpd.d.ts +5 -5
- package/dist/es2017/parsers/manifest/dash/common/parse_mpd.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/parse_mpd.js +36 -34
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.d.ts +5 -5
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.js +19 -19
- package/dist/es2017/parsers/manifest/dash/common/parse_representation_index.d.ts +5 -5
- package/dist/es2017/parsers/manifest/dash/common/parse_representation_index.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/parse_representation_index.js +65 -29
- package/dist/es2017/parsers/manifest/dash/common/parse_representations.d.ts +5 -5
- package/dist/es2017/parsers/manifest/dash/common/parse_representations.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/parse_representations.js +30 -30
- package/dist/es2017/parsers/manifest/dash/common/resolve_base_urls.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/common/resolve_base_urls.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/common/resolve_base_urls.js +1 -1
- package/dist/es2017/parsers/manifest/dash/index.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/index.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/index.js +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/index.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/index.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/index.js +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +62 -99
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/BaseURL.js +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts +3 -3
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.js +6 -6
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.js +7 -7
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/EventStream.js +5 -6
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts +3 -3
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Initialization.js +8 -7
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/MPD.js +29 -37
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Period.js +26 -30
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Representation.js +36 -58
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.js +21 -25
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentList.js +7 -5
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.js +18 -21
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.js +8 -10
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts +6 -7
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/utils.js +13 -12
- package/dist/es2017/parsers/manifest/dash/js-parser/parse_from_xml_string.d.ts +5 -2
- package/dist/es2017/parsers/manifest/dash/js-parser/parse_from_xml_string.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/parse_from_xml_string.js +17 -13
- package/dist/es2017/parsers/manifest/dash/node_parser_types.d.ts +91 -57
- package/dist/es2017/parsers/manifest/dash/node_parser_types.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/parsers_types.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/parsers_types.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/index.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/index.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/index.js +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +4 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +20 -15
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts +3 -3
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +88 -98
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.js +2 -3
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.js +5 -6
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +11 -12
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts +3 -3
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.js +13 -15
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Initialization.d.ts +4 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Initialization.d.ts.map +1 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Initialization.js +18 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Label.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Label.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Label.js +4 -3
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts +3 -3
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +38 -43
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts +3 -3
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +42 -35
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts +3 -3
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +48 -62
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts +3 -3
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.js +3 -4
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts +4 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.js +25 -37
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts +3 -3
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.js +11 -7
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts +4 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.js +31 -29
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.js +5 -6
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts +3 -3
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/XLink.js +9 -3
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/index.js +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/root.js +7 -6
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/parsers_stack.js +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/types.d.ts +2 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/types.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/utils.d.ts +4 -3
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/utils.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/utils.js +15 -3
- package/dist/es2017/parsers/manifest/index.d.ts +1 -1
- package/dist/es2017/parsers/manifest/index.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/local/index.d.ts +2 -2
- package/dist/es2017/parsers/manifest/local/index.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/local/index.js +1 -1
- package/dist/es2017/parsers/manifest/local/parse_local_manifest.d.ts +2 -2
- package/dist/es2017/parsers/manifest/local/parse_local_manifest.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/local/parse_local_manifest.js +3 -3
- package/dist/es2017/parsers/manifest/local/representation_index.d.ts +2 -2
- package/dist/es2017/parsers/manifest/local/representation_index.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/local/representation_index.js +1 -1
- package/dist/es2017/parsers/manifest/metaplaylist/index.d.ts +2 -2
- package/dist/es2017/parsers/manifest/metaplaylist/index.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/metaplaylist/index.js +1 -1
- package/dist/es2017/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts +2 -2
- package/dist/es2017/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/metaplaylist/metaplaylist_parser.js +8 -8
- package/dist/es2017/parsers/manifest/metaplaylist/representation_index.d.ts +3 -3
- package/dist/es2017/parsers/manifest/metaplaylist/representation_index.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/metaplaylist/representation_index.js +2 -2
- package/dist/es2017/parsers/manifest/smooth/create_parser.d.ts +2 -2
- package/dist/es2017/parsers/manifest/smooth/create_parser.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/smooth/create_parser.js +22 -22
- package/dist/es2017/parsers/manifest/smooth/get_codecs.js +1 -1
- package/dist/es2017/parsers/manifest/smooth/index.d.ts +3 -3
- package/dist/es2017/parsers/manifest/smooth/index.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/smooth/index.js +2 -2
- package/dist/es2017/parsers/manifest/smooth/parse_C_nodes.d.ts +1 -1
- package/dist/es2017/parsers/manifest/smooth/parse_C_nodes.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/smooth/parse_C_nodes.js +1 -1
- package/dist/es2017/parsers/manifest/smooth/parse_protection_node.d.ts +1 -1
- package/dist/es2017/parsers/manifest/smooth/parse_protection_node.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/smooth/parse_protection_node.js +4 -4
- package/dist/es2017/parsers/manifest/smooth/representation_index.d.ts +3 -3
- package/dist/es2017/parsers/manifest/smooth/representation_index.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/smooth/representation_index.js +6 -6
- package/dist/es2017/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts +1 -1
- package/dist/es2017/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/smooth/shared_smooth_segment_timeline.js +6 -6
- package/dist/es2017/parsers/manifest/smooth/utils/add_segment_infos.js +1 -1
- package/dist/es2017/parsers/manifest/smooth/utils/reduceChildren.d.ts +1 -1
- package/dist/es2017/parsers/manifest/smooth/utils/reduceChildren.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/types.d.ts +2 -2
- package/dist/es2017/parsers/manifest/types.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/utils/check_manifest_ids.d.ts +1 -1
- package/dist/es2017/parsers/manifest/utils/check_manifest_ids.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/utils/check_manifest_ids.js +2 -2
- package/dist/es2017/parsers/manifest/utils/clear_timeline_from_position.d.ts +1 -1
- package/dist/es2017/parsers/manifest/utils/clear_timeline_from_position.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/utils/get_first_time_from_adaptation.d.ts +1 -1
- package/dist/es2017/parsers/manifest/utils/get_first_time_from_adaptation.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/utils/get_last_time_from_adaptation.d.ts +1 -1
- package/dist/es2017/parsers/manifest/utils/get_last_time_from_adaptation.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/utils/get_maximum_positions.d.ts +1 -1
- package/dist/es2017/parsers/manifest/utils/get_maximum_positions.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/utils/get_maximum_positions.js +2 -2
- package/dist/es2017/parsers/manifest/utils/get_minimum_position.d.ts +1 -1
- package/dist/es2017/parsers/manifest/utils/get_minimum_position.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/utils/get_minimum_position.js +2 -2
- package/dist/es2017/parsers/manifest/utils/index_helpers.js +1 -1
- package/dist/es2017/parsers/manifest/utils/update_segment_timeline.d.ts +1 -1
- package/dist/es2017/parsers/manifest/utils/update_segment_timeline.d.ts.map +1 -1
- package/dist/es2017/parsers/manifest/utils/update_segment_timeline.js +3 -3
- package/dist/es2017/parsers/texttracks/index.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/index.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/sami/html.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/sami/html.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/sami/html.js +4 -4
- package/dist/es2017/parsers/texttracks/sami/native.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/sami/native.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/sami/native.js +5 -5
- package/dist/es2017/parsers/texttracks/srt/find_end_of_cue_block.js +1 -1
- package/dist/es2017/parsers/texttracks/srt/get_cue_blocks.js +2 -2
- package/dist/es2017/parsers/texttracks/srt/html.js +4 -4
- package/dist/es2017/parsers/texttracks/srt/native.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/srt/native.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/srt/native.js +5 -5
- package/dist/es2017/parsers/texttracks/srt/parse_cue.js +2 -2
- package/dist/es2017/parsers/texttracks/srt/parse_timestamp.js +1 -1
- package/dist/es2017/parsers/texttracks/ttml/get_parameters.js +2 -2
- package/dist/es2017/parsers/texttracks/ttml/get_styling.js +4 -4
- package/dist/es2017/parsers/texttracks/ttml/get_time_delimiters.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/ttml/get_time_delimiters.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/ttml/get_time_delimiters.js +3 -3
- package/dist/es2017/parsers/texttracks/ttml/html/apply_extent.js +3 -3
- package/dist/es2017/parsers/texttracks/ttml/html/apply_font_size.js +3 -3
- package/dist/es2017/parsers/texttracks/ttml/html/apply_line_height.js +3 -3
- package/dist/es2017/parsers/texttracks/ttml/html/apply_origin.js +3 -3
- package/dist/es2017/parsers/texttracks/ttml/html/apply_padding.js +3 -3
- package/dist/es2017/parsers/texttracks/ttml/html/create_element.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/ttml/html/create_element.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/ttml/html/create_element.js +12 -12
- package/dist/es2017/parsers/texttracks/ttml/html/generate_css_test_outline.js +1 -1
- package/dist/es2017/parsers/texttracks/ttml/html/index.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/ttml/html/index.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/ttml/html/index.js +1 -1
- package/dist/es2017/parsers/texttracks/ttml/html/parse_cue.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/ttml/html/parse_cue.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/ttml/html/parse_cue.js +2 -2
- package/dist/es2017/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/ttml/html/parse_ttml_to_div.js +5 -5
- package/dist/es2017/parsers/texttracks/ttml/html/ttml_color_to_css_color.js +2 -2
- package/dist/es2017/parsers/texttracks/ttml/native/index.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/ttml/native/index.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/ttml/native/index.js +1 -1
- package/dist/es2017/parsers/texttracks/ttml/native/parse_cue.d.ts +2 -2
- package/dist/es2017/parsers/texttracks/ttml/native/parse_cue.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/ttml/native/parse_cue.js +7 -7
- package/dist/es2017/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/ttml/native/parse_ttml_to_vtt.js +4 -4
- package/dist/es2017/parsers/texttracks/ttml/parse_ttml.d.ts +2 -2
- package/dist/es2017/parsers/texttracks/ttml/parse_ttml.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/ttml/parse_ttml.js +7 -7
- package/dist/es2017/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/ttml/resolve_styles_inheritance.js +4 -4
- package/dist/es2017/parsers/texttracks/ttml/time_parsing.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/ttml/time_parsing.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/ttml/time_parsing.js +1 -1
- package/dist/es2017/parsers/texttracks/ttml/xml_utils.js +1 -1
- package/dist/es2017/parsers/texttracks/types.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/types.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/create_default_style_elements.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/create_default_style_elements.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/get_cue_blocks.js +2 -2
- package/dist/es2017/parsers/texttracks/webvtt/get_style_blocks.js +2 -2
- package/dist/es2017/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/convert_payload_to_html.js +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/create_style_attribute.js +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/create_styled_element.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/create_styled_element.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/create_styled_element.js +2 -2
- package/dist/es2017/parsers/texttracks/webvtt/html/index.d.ts +3 -3
- package/dist/es2017/parsers/texttracks/webvtt/html/index.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/index.js +2 -2
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_mp4.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_mp4.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_mp4.js +4 -4
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_plain_text.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_plain_text.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_plain_text.js +8 -8
- package/dist/es2017/parsers/texttracks/webvtt/html/to_html.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/to_html.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/to_html.js +3 -3
- package/dist/es2017/parsers/texttracks/webvtt/native/index.d.ts +2 -2
- package/dist/es2017/parsers/texttracks/webvtt/native/index.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/native/index.js +2 -2
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_vtt_plain_text_to_cues.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_vtt_plain_text_to_cues.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_vtt_plain_text_to_cues.js +10 -10
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_webvtt_mp4_to_cues.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_webvtt_mp4_to_cues.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_webvtt_mp4_to_cues.js +4 -4
- package/dist/es2017/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/native/set_settings_on_cue.js +2 -2
- package/dist/es2017/parsers/texttracks/webvtt/native/to_native_cue.d.ts +2 -2
- package/dist/es2017/parsers/texttracks/webvtt/native/to_native_cue.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/native/to_native_cue.js +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/parse_cue_block.js +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/parse_mp4_embedded_wvtt.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/parse_mp4_embedded_wvtt.d.ts.map +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/parse_mp4_embedded_wvtt.js +6 -6
- package/dist/es2017/parsers/texttracks/webvtt/parse_style_block.js +2 -2
- package/dist/es2017/parsers/texttracks/webvtt/parse_timestamp.js +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/utils.js +1 -1
- package/dist/es2017/playback_observer/core_playback_observer.d.ts +7 -7
- package/dist/es2017/playback_observer/core_playback_observer.d.ts.map +1 -1
- package/dist/es2017/playback_observer/core_playback_observer.js +1 -1
- package/dist/es2017/playback_observer/index.d.ts +4 -4
- package/dist/es2017/playback_observer/index.d.ts.map +1 -1
- package/dist/es2017/playback_observer/index.js +1 -1
- package/dist/es2017/playback_observer/media_element_playback_observer.d.ts +5 -5
- package/dist/es2017/playback_observer/media_element_playback_observer.d.ts.map +1 -1
- package/dist/es2017/playback_observer/media_element_playback_observer.js +12 -12
- package/dist/es2017/playback_observer/types.d.ts +3 -3
- package/dist/es2017/playback_observer/types.d.ts.map +1 -1
- package/dist/es2017/playback_observer/utils/generate_read_only_observer.d.ts +3 -3
- package/dist/es2017/playback_observer/utils/generate_read_only_observer.d.ts.map +1 -1
- package/dist/es2017/public_types.d.ts +6 -6
- package/dist/es2017/public_types.d.ts.map +1 -1
- package/dist/es2017/tools/TextTrackRenderer/index.d.ts +6 -6
- package/dist/es2017/tools/TextTrackRenderer/index.d.ts.map +1 -1
- package/dist/es2017/tools/TextTrackRenderer/index.js +5 -5
- package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.d.ts +2 -2
- package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.d.ts.map +1 -1
- package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.js +2 -2
- package/dist/es2017/tools/index.d.ts +3 -3
- package/dist/es2017/tools/index.d.ts.map +1 -1
- package/dist/es2017/tools/index.js +3 -4
- package/dist/es2017/tools/parseBIFThumbnails/index.js +1 -1
- package/dist/es2017/tools/string_utils/index.d.ts +1 -1
- package/dist/es2017/tools/string_utils/index.d.ts.map +1 -1
- package/dist/es2017/tools/string_utils/index.js +1 -1
- package/dist/es2017/transports/dash/construct_segment_url.d.ts +2 -2
- package/dist/es2017/transports/dash/construct_segment_url.d.ts.map +1 -1
- package/dist/es2017/transports/dash/construct_segment_url.js +1 -1
- package/dist/es2017/transports/dash/get_events_out_of_emsgs.d.ts +2 -2
- package/dist/es2017/transports/dash/get_events_out_of_emsgs.d.ts.map +1 -1
- package/dist/es2017/transports/dash/get_events_out_of_emsgs.js +1 -1
- package/dist/es2017/transports/dash/index.d.ts +1 -1
- package/dist/es2017/transports/dash/index.d.ts.map +1 -1
- package/dist/es2017/transports/dash/index.js +1 -1
- package/dist/es2017/transports/dash/init_segment_loader.d.ts +3 -3
- package/dist/es2017/transports/dash/init_segment_loader.d.ts.map +1 -1
- package/dist/es2017/transports/dash/init_segment_loader.js +4 -4
- package/dist/es2017/transports/dash/integrity_checks.d.ts +1 -1
- package/dist/es2017/transports/dash/integrity_checks.d.ts.map +1 -1
- package/dist/es2017/transports/dash/integrity_checks.js +6 -6
- package/dist/es2017/transports/dash/load_chunked_segment_data.d.ts +2 -2
- package/dist/es2017/transports/dash/load_chunked_segment_data.d.ts.map +1 -1
- package/dist/es2017/transports/dash/load_chunked_segment_data.js +3 -3
- package/dist/es2017/transports/dash/manifest_parser.d.ts +2 -2
- package/dist/es2017/transports/dash/manifest_parser.d.ts.map +1 -1
- package/dist/es2017/transports/dash/manifest_parser.js +10 -10
- package/dist/es2017/transports/dash/pipelines.d.ts +1 -1
- package/dist/es2017/transports/dash/pipelines.d.ts.map +1 -1
- package/dist/es2017/transports/dash/pipelines.js +9 -9
- package/dist/es2017/transports/dash/segment_loader.d.ts +3 -3
- package/dist/es2017/transports/dash/segment_loader.d.ts.map +1 -1
- package/dist/es2017/transports/dash/segment_loader.js +10 -10
- package/dist/es2017/transports/dash/segment_parser.d.ts +1 -1
- package/dist/es2017/transports/dash/segment_parser.d.ts.map +1 -1
- package/dist/es2017/transports/dash/segment_parser.js +10 -10
- package/dist/es2017/transports/dash/text_loader.d.ts +1 -1
- package/dist/es2017/transports/dash/text_loader.d.ts.map +1 -1
- package/dist/es2017/transports/dash/text_loader.js +9 -9
- package/dist/es2017/transports/dash/text_parser.d.ts +1 -1
- package/dist/es2017/transports/dash/text_parser.d.ts.map +1 -1
- package/dist/es2017/transports/dash/text_parser.js +5 -5
- package/dist/es2017/transports/dash/thumbnails.d.ts +4 -4
- package/dist/es2017/transports/dash/thumbnails.d.ts.map +1 -1
- package/dist/es2017/transports/dash/thumbnails.js +4 -4
- package/dist/es2017/transports/index.d.ts +1 -1
- package/dist/es2017/transports/index.d.ts.map +1 -1
- package/dist/es2017/transports/local/index.d.ts +1 -1
- package/dist/es2017/transports/local/index.d.ts.map +1 -1
- package/dist/es2017/transports/local/index.js +1 -1
- package/dist/es2017/transports/local/pipelines.d.ts +1 -1
- package/dist/es2017/transports/local/pipelines.d.ts.map +1 -1
- package/dist/es2017/transports/local/pipelines.js +7 -7
- package/dist/es2017/transports/local/segment_loader.d.ts +3 -3
- package/dist/es2017/transports/local/segment_loader.d.ts.map +1 -1
- package/dist/es2017/transports/local/segment_loader.js +3 -3
- package/dist/es2017/transports/local/segment_parser.d.ts +1 -1
- package/dist/es2017/transports/local/segment_parser.d.ts.map +1 -1
- package/dist/es2017/transports/local/segment_parser.js +5 -5
- package/dist/es2017/transports/local/text_parser.d.ts +1 -1
- package/dist/es2017/transports/local/text_parser.d.ts.map +1 -1
- package/dist/es2017/transports/local/text_parser.js +5 -5
- package/dist/es2017/transports/metaplaylist/index.d.ts +1 -1
- package/dist/es2017/transports/metaplaylist/index.d.ts.map +1 -1
- package/dist/es2017/transports/metaplaylist/index.js +1 -1
- package/dist/es2017/transports/metaplaylist/pipelines.d.ts +1 -1
- package/dist/es2017/transports/metaplaylist/pipelines.d.ts.map +1 -1
- package/dist/es2017/transports/metaplaylist/pipelines.js +8 -8
- package/dist/es2017/transports/smooth/extract_timings_infos.d.ts +2 -2
- package/dist/es2017/transports/smooth/extract_timings_infos.d.ts.map +1 -1
- package/dist/es2017/transports/smooth/extract_timings_infos.js +3 -3
- package/dist/es2017/transports/smooth/index.d.ts +1 -1
- package/dist/es2017/transports/smooth/index.d.ts.map +1 -1
- package/dist/es2017/transports/smooth/index.js +1 -1
- package/dist/es2017/transports/smooth/isobmff/create_audio_init_segment.js +4 -4
- package/dist/es2017/transports/smooth/isobmff/create_boxes.js +3 -3
- package/dist/es2017/transports/smooth/isobmff/create_init_segment.d.ts.map +1 -1
- package/dist/es2017/transports/smooth/isobmff/create_init_segment.js +3 -3
- package/dist/es2017/transports/smooth/isobmff/create_traf_box.d.ts.map +1 -1
- package/dist/es2017/transports/smooth/isobmff/create_traf_box.js +2 -2
- package/dist/es2017/transports/smooth/isobmff/create_video_init_segment.js +4 -4
- package/dist/es2017/transports/smooth/isobmff/get_aaces_header.js +2 -2
- package/dist/es2017/transports/smooth/isobmff/index.d.ts +6 -6
- package/dist/es2017/transports/smooth/isobmff/index.d.ts.map +1 -1
- package/dist/es2017/transports/smooth/isobmff/index.js +5 -5
- package/dist/es2017/transports/smooth/isobmff/parse_tfrf.js +2 -2
- package/dist/es2017/transports/smooth/isobmff/parse_tfxd.js +2 -2
- package/dist/es2017/transports/smooth/isobmff/patch_segment.js +5 -5
- package/dist/es2017/transports/smooth/pipelines.d.ts +1 -1
- package/dist/es2017/transports/smooth/pipelines.d.ts.map +1 -1
- package/dist/es2017/transports/smooth/pipelines.js +16 -16
- package/dist/es2017/transports/smooth/segment_loader.d.ts +3 -3
- package/dist/es2017/transports/smooth/segment_loader.d.ts.map +1 -1
- package/dist/es2017/transports/smooth/segment_loader.js +8 -8
- package/dist/es2017/transports/smooth/utils.d.ts +2 -2
- package/dist/es2017/transports/smooth/utils.d.ts.map +1 -1
- package/dist/es2017/transports/smooth/utils.js +1 -1
- package/dist/es2017/transports/types.d.ts +7 -7
- package/dist/es2017/transports/types.d.ts.map +1 -1
- package/dist/es2017/transports/utils/call_custom_manifest_loader.d.ts +3 -3
- package/dist/es2017/transports/utils/call_custom_manifest_loader.d.ts.map +1 -1
- package/dist/es2017/transports/utils/call_custom_manifest_loader.js +2 -2
- package/dist/es2017/transports/utils/check_isobmff_integrity.js +2 -2
- package/dist/es2017/transports/utils/generate_manifest_loader.d.ts +2 -2
- package/dist/es2017/transports/utils/generate_manifest_loader.d.ts.map +1 -1
- package/dist/es2017/transports/utils/generate_manifest_loader.js +4 -4
- package/dist/es2017/transports/utils/get_isobmff_timing_infos.d.ts +2 -2
- package/dist/es2017/transports/utils/get_isobmff_timing_infos.d.ts.map +1 -1
- package/dist/es2017/transports/utils/get_isobmff_timing_infos.js +2 -2
- package/dist/es2017/transports/utils/infer_segment_container.d.ts +1 -1
- package/dist/es2017/transports/utils/infer_segment_container.d.ts.map +1 -1
- package/dist/es2017/transports/utils/parse_text_track.d.ts +2 -2
- package/dist/es2017/transports/utils/parse_text_track.d.ts.map +1 -1
- package/dist/es2017/transports/utils/parse_text_track.js +4 -4
- package/dist/es2017/utils/are_codecs_compatible.js +2 -2
- package/dist/es2017/utils/assert.js +1 -1
- package/dist/es2017/utils/base64.d.ts.map +1 -1
- package/dist/es2017/utils/base64.js +18 -4
- package/dist/es2017/utils/cancellable_sleep.d.ts +1 -1
- package/dist/es2017/utils/cancellable_sleep.d.ts.map +1 -1
- package/dist/es2017/utils/cancellable_sleep.js +1 -1
- package/dist/es2017/utils/create_cancellable_promise.d.ts +1 -1
- package/dist/es2017/utils/create_cancellable_promise.d.ts.map +1 -1
- package/dist/es2017/utils/create_uuid.js +2 -2
- package/dist/es2017/utils/deep_merge.js +1 -1
- package/dist/es2017/utils/event_emitter.d.ts +1 -1
- package/dist/es2017/utils/event_emitter.d.ts.map +1 -1
- package/dist/es2017/utils/event_emitter.js +2 -2
- package/dist/es2017/utils/get_last_item_from_array.d.ts +8 -0
- package/dist/es2017/utils/get_last_item_from_array.d.ts.map +1 -0
- package/dist/es2017/utils/get_last_item_from_array.js +9 -0
- package/dist/es2017/utils/global_scope.js +2 -2
- package/dist/es2017/utils/is_node.js +1 -1
- package/dist/es2017/utils/languages/index.d.ts +2 -2
- package/dist/es2017/utils/languages/index.d.ts.map +1 -1
- package/dist/es2017/utils/languages/index.js +1 -1
- package/dist/es2017/utils/languages/normalize.js +4 -4
- package/dist/es2017/utils/logger.d.ts +1 -1
- package/dist/es2017/utils/logger.d.ts.map +1 -1
- package/dist/es2017/utils/logger.js +3 -3
- package/dist/es2017/utils/monotonic_timestamp.js +1 -1
- package/dist/es2017/utils/object_assign.d.ts.map +1 -1
- package/dist/es2017/utils/object_entries.d.ts +16 -0
- package/dist/es2017/utils/object_entries.d.ts.map +1 -0
- package/dist/es2017/utils/object_entries.js +10 -0
- package/dist/es2017/utils/reference.d.ts +1 -1
- package/dist/es2017/utils/reference.d.ts.map +1 -1
- package/dist/es2017/utils/reference.js +2 -2
- package/dist/es2017/utils/request/fetch.d.ts +1 -1
- package/dist/es2017/utils/request/fetch.d.ts.map +1 -1
- package/dist/es2017/utils/request/fetch.js +7 -6
- package/dist/es2017/utils/request/index.d.ts +6 -6
- package/dist/es2017/utils/request/index.d.ts.map +1 -1
- package/dist/es2017/utils/request/index.js +3 -3
- package/dist/es2017/utils/request/request_error.d.ts +9 -1
- package/dist/es2017/utils/request/request_error.d.ts.map +1 -1
- package/dist/es2017/utils/request/request_error.js +13 -2
- package/dist/es2017/utils/request/xhr.d.ts +1 -1
- package/dist/es2017/utils/request/xhr.d.ts.map +1 -1
- package/dist/es2017/utils/request/xhr.js +7 -6
- package/dist/es2017/utils/retry_promise_with_backoff.d.ts +1 -1
- package/dist/es2017/utils/retry_promise_with_backoff.d.ts.map +1 -1
- package/dist/es2017/utils/retry_promise_with_backoff.js +3 -3
- package/dist/es2017/utils/sorted_list.js +2 -2
- package/dist/es2017/utils/string_parsing.js +3 -3
- package/dist/es2017/utils/sync_or_async.js +1 -1
- package/dist/es2017/utils/task_canceller.js +3 -3
- package/dist/es2017/utils/url-utils.js +2 -2
- package/dist/es2017/utils/warn_once.js +1 -1
- package/dist/es2017/utils/xml-parser.js +1 -1
- package/dist/es2017/worker_entry_point.js +1 -1
- package/dist/mpd-parser.wasm +0 -0
- package/dist/worker.js +8 -8
- package/eslint.config.mjs +131 -20
- package/package.json +30 -16
- package/src/__GENERATED_CODE/embedded_dash_wasm.ts +3 -1
- package/src/__GENERATED_CODE/embedded_worker.ts +1 -1
- package/src/__GENERATED_CODE/index.ts +2 -2
- package/src/compat/add_text_track.ts +2 -2
- package/src/compat/browser_compatibility_types.ts +10 -7
- package/src/compat/browser_version.ts +2 -2
- package/src/compat/can_patch_isobmff.ts +1 -1
- package/src/compat/can_patch_out_pssh.ts +2 -2
- package/src/compat/can_preload_before_play.ts +1 -1
- package/src/compat/can_rely_on_request_media_key_system_access.ts +12 -4
- package/src/compat/can_rely_on_video_visibility_and_size.ts +2 -2
- package/src/compat/can_reuse_media_keys.ts +2 -2
- package/src/compat/change_source_buffer_type.ts +2 -2
- package/src/compat/clear_element_src.ts +3 -3
- package/src/compat/disable_remote_playback_on_managed_media_source.ts +2 -2
- package/src/compat/eme/close_session.ts +4 -4
- package/src/compat/eme/constants.ts +2 -2
- package/src/compat/eme/custom_key_system_access.ts +4 -1
- package/src/compat/eme/custom_media_keys/ie11_media_keys.ts +8 -8
- package/src/compat/eme/custom_media_keys/index.ts +5 -5
- package/src/compat/eme/custom_media_keys/moz_media_keys_constructor.ts +3 -3
- package/src/compat/eme/custom_media_keys/ms_media_keys_constructor.ts +1 -1
- package/src/compat/eme/custom_media_keys/old_webkit_media_keys.ts +8 -8
- package/src/compat/eme/custom_media_keys/webkit_media_keys.ts +9 -9
- package/src/compat/eme/custom_media_keys/webkit_media_keys_constructor.ts +3 -4
- package/src/compat/eme/eme-api-implementation.ts +18 -18
- package/src/compat/eme/generate_key_request.ts +34 -22
- package/src/compat/eme/get_init_data.ts +12 -7
- package/src/compat/eme/get_uuid_kid_from_keystatus_kid.ts +2 -2
- package/src/compat/eme/get_webkit_fairplay_initdata.ts +2 -2
- package/src/compat/eme/index.ts +7 -7
- package/src/compat/eme/load_session.ts +2 -2
- package/src/compat/eme/set_media_keys.ts +6 -5
- package/src/compat/enable_audio_track.ts +2 -2
- package/src/compat/env_detector.ts +9 -2
- package/src/compat/event_listeners.ts +11 -11
- package/src/compat/force_media_key_instantiation_if_needed.ts +88 -0
- package/src/compat/generate_init_data.ts +32 -2
- package/src/compat/get_start_date.ts +1 -1
- package/src/compat/has_issues_with_high_media_source_duration.ts +2 -2
- package/src/compat/has_worker_api.ts +1 -1
- package/src/compat/is_codec_supported.ts +10 -19
- package/src/compat/is_seeking_approximate.ts +2 -2
- package/src/compat/is_vtt_cue.ts +2 -2
- package/src/compat/make_vtt_cue.ts +4 -4
- package/src/compat/may_media_element_fail_on_undecipherable_data.ts +2 -2
- package/src/compat/on_height_width_change.ts +5 -5
- package/src/compat/patch_webkit_source_buffer.ts +5 -5
- package/src/compat/remove_cue.ts +3 -3
- package/src/compat/reset_media_element.ts +3 -3
- package/src/compat/should_await_set_media_keys.ts +2 -2
- package/src/compat/should_favour_custom_safari_EME.ts +3 -3
- package/src/compat/should_patch_out_dolby_vision_config_data_from_mp4.ts +2 -2
- package/src/compat/should_reload_media_source_on_decipherability_update.ts +1 -1
- package/src/compat/should_renew_media_key_system_access.ts +19 -6
- package/src/compat/should_seek_at_zero.ts +2 -2
- package/src/compat/should_unset_media_keys.ts +2 -2
- package/src/compat/should_validate_metadata.ts +2 -2
- package/src/compat/should_wait_for_data_before_loaded.ts +2 -2
- package/src/compat/should_wait_for_have_enough_data.ts +2 -2
- package/src/config.ts +4 -4
- package/src/core/adaptive/adaptive_representation_selector.ts +25 -25
- package/src/core/adaptive/buffer_based_chooser.ts +7 -7
- package/src/core/adaptive/guess_based_chooser.ts +11 -11
- package/src/core/adaptive/index.ts +2 -2
- package/src/core/adaptive/network_analyzer.ts +10 -10
- package/src/core/adaptive/utils/bandwidth_estimator.ts +2 -2
- package/src/core/adaptive/utils/filter_by_bitrate.ts +2 -2
- package/src/core/adaptive/utils/filter_by_resolution.ts +2 -2
- package/src/core/adaptive/utils/last_estimate_storage.ts +1 -1
- package/src/core/adaptive/utils/pending_requests_store.ts +4 -4
- package/src/core/adaptive/utils/representation_score_calculator.ts +3 -3
- package/src/core/adaptive/utils/select_optimal_representation.ts +2 -2
- package/src/core/cmcd/cmcd_data_builder.ts +9 -9
- package/src/core/cmcd/index.ts +2 -2
- package/src/core/entry/FreezeResolver.ts +7 -7
- package/src/core/entry/content_preparer.ts +72 -65
- package/src/core/entry/content_time_boundaries_observer.ts +11 -11
- package/src/core/entry/core_entry.ts +36 -40
- package/src/core/entry/core_text_displayer_interface.ts +7 -7
- package/src/core/entry/create_content_time_boundaries_observer.ts +8 -8
- package/src/core/entry/get_buffered_data_per_media_buffer.ts +6 -6
- package/src/core/entry/get_thumbnail_data.ts +5 -5
- package/src/core/entry/index.ts +3 -3
- package/src/core/entry/track_choice_setter.ts +7 -7
- package/src/core/entry/utils.ts +9 -9
- package/src/core/fetchers/cdn_prioritizer.ts +5 -5
- package/src/core/fetchers/index.ts +10 -7
- package/src/core/fetchers/manifest/index.ts +2 -2
- package/src/core/fetchers/manifest/manifest_fetcher.ts +14 -14
- package/src/core/fetchers/segment/index.ts +4 -4
- package/src/core/fetchers/segment/initialization_segment_cache.ts +1 -1
- package/src/core/fetchers/segment/prioritized_segment_fetcher.ts +5 -5
- package/src/core/fetchers/segment/segment_fetcher.ts +22 -22
- package/src/core/fetchers/segment/segment_queue.ts +11 -11
- package/src/core/fetchers/segment/segment_queue_creator.ts +13 -11
- package/src/core/fetchers/segment/task_prioritizer.ts +5 -5
- package/src/core/fetchers/thumbnails/index.ts +2 -2
- package/src/core/fetchers/thumbnails/thumbnail_fetcher.ts +14 -14
- package/src/core/fetchers/utils/error_selector.ts +3 -3
- package/src/core/fetchers/utils/retry_after_delay.ts +89 -0
- package/src/core/fetchers/utils/schedule_request.ts +23 -14
- package/src/core/segment_sinks/garbage_collector.ts +10 -10
- package/src/core/segment_sinks/implementations/audio_video/audio_video_segment_sink.ts +7 -7
- package/src/core/segment_sinks/implementations/audio_video/index.ts +1 -1
- package/src/core/segment_sinks/implementations/index.ts +3 -3
- package/src/core/segment_sinks/implementations/text/index.ts +2 -2
- package/src/core/segment_sinks/implementations/text/text_segment_sink.ts +9 -11
- package/src/core/segment_sinks/implementations/types.ts +10 -7
- package/src/core/segment_sinks/implementations/utils/manual_time_ranges.ts +2 -2
- package/src/core/segment_sinks/index.ts +6 -6
- package/src/core/segment_sinks/inventory/buffered_history.ts +3 -3
- package/src/core/segment_sinks/inventory/index.ts +5 -5
- package/src/core/segment_sinks/inventory/segment_inventory.ts +15 -10
- package/src/core/segment_sinks/inventory/types.ts +1 -1
- package/src/core/segment_sinks/inventory/utils.ts +2 -2
- package/src/core/segment_sinks/segment_sinks_store.ts +15 -15
- package/src/core/stream/adaptation/adaptation_stream.ts +18 -18
- package/src/core/stream/adaptation/get_representations_switch_strategy.ts +9 -9
- package/src/core/stream/adaptation/index.ts +2 -2
- package/src/core/stream/adaptation/types.ts +13 -8
- package/src/core/stream/index.ts +5 -5
- package/src/core/stream/orchestrator/get_time_ranges_for_content.ts +4 -4
- package/src/core/stream/orchestrator/index.ts +2 -2
- package/src/core/stream/orchestrator/stream_orchestrator.ts +27 -23
- package/src/core/stream/period/index.ts +2 -2
- package/src/core/stream/period/period_stream.ts +22 -22
- package/src/core/stream/period/types.ts +15 -15
- package/src/core/stream/period/utils/get_adaptation_switch_strategy.ts +10 -10
- package/src/core/stream/representation/encryption_data_notifier.ts +2 -2
- package/src/core/stream/representation/index.ts +2 -2
- package/src/core/stream/representation/representation_stream.ts +13 -13
- package/src/core/stream/representation/types.ts +9 -9
- package/src/core/stream/representation/utils/append_segment_to_buffer.ts +11 -11
- package/src/core/stream/representation/utils/check_for_discontinuity.ts +4 -4
- package/src/core/stream/representation/utils/get_buffer_status.ts +9 -9
- package/src/core/stream/representation/utils/get_needed_segments.ts +7 -7
- package/src/core/stream/representation/utils/get_segment_priority.ts +1 -1
- package/src/core/stream/representation/utils/push_init_segment.ts +8 -8
- package/src/core/stream/representation/utils/push_media_segment.ts +10 -10
- package/src/core/types.ts +15 -17
- package/src/default_config.ts +9 -0
- package/src/errors/encrypted_media_error.ts +4 -4
- package/src/errors/error_codes.ts +5 -14
- package/src/errors/format_error.ts +3 -3
- package/src/errors/index.ts +14 -14
- package/src/errors/is_known_error.ts +6 -6
- package/src/errors/media_error.ts +6 -7
- package/src/errors/network_error.ts +4 -4
- package/src/errors/other_error.ts +3 -3
- package/src/errors/worker_initialization_error.ts +2 -4
- package/src/experimental/features/index.ts +3 -3
- package/src/experimental/features/local.ts +5 -5
- package/src/experimental/features/metaplaylist.ts +5 -5
- package/src/experimental/features/multi_thread.ts +10 -7
- package/src/experimental/features/worker/index.ts +3 -3
- package/src/experimental/index.ts +1 -1
- package/src/experimental/tools/DummyMediaElement/eme.ts +53 -15
- package/src/experimental/tools/DummyMediaElement/html5.ts +14 -15
- package/src/experimental/tools/DummyMediaElement/index.ts +1 -1
- package/src/experimental/tools/DummyMediaElement/mse.ts +11 -11
- package/src/experimental/tools/DummyMediaElement/utils.ts +5 -5
- package/src/experimental/tools/VideoThumbnailLoader/features/dash.ts +2 -2
- package/src/experimental/tools/VideoThumbnailLoader/features/metaplaylist.ts +2 -2
- package/src/experimental/tools/VideoThumbnailLoader/index.ts +4 -1
- package/src/experimental/tools/VideoThumbnailLoader/load_and_push_segment.ts +4 -4
- package/src/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.ts +17 -14
- package/src/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.ts +2 -2
- package/src/experimental/tools/VideoThumbnailLoader/types.ts +7 -2
- package/src/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.ts +19 -19
- package/src/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.ts +1 -1
- package/src/experimental/tools/createMetaplaylist/get_duration_from_manifest.ts +5 -5
- package/src/experimental/tools/createMetaplaylist/index.ts +2 -2
- package/src/experimental/tools/index.ts +3 -3
- package/src/experimental/tools/mediaCapabilitiesProber/api.ts +12 -15
- package/src/experimental/tools/mediaCapabilitiesProber/index.ts +2 -2
- package/src/experimental/tools/mediaCapabilitiesProber/log.ts +1 -1
- package/src/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.ts +2 -2
- package/src/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.ts +1 -1
- package/src/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.ts +2 -2
- package/src/experimental/tools/mediaCapabilitiesProber/probers/isTypeSupportedWithFeatures.ts +4 -4
- package/src/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.ts +3 -3
- package/src/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.ts +3 -3
- package/src/experimental/tools/mediaCapabilitiesProber/utils.ts +6 -5
- package/src/features/add_features.ts +3 -3
- package/src/features/features_object.ts +1 -1
- package/src/features/index.ts +3 -3
- package/src/features/list/dash.ts +6 -6
- package/src/features/list/dash_wasm.ts +7 -7
- package/src/features/list/debug_element.ts +2 -2
- package/src/features/list/directfile.ts +3 -3
- package/src/features/list/eme.ts +2 -2
- package/src/features/list/html_sami_parser.ts +3 -3
- package/src/features/list/html_srt_parser.ts +3 -3
- package/src/features/list/html_text_buffer.ts +2 -2
- package/src/features/list/html_ttml_parser.ts +3 -3
- package/src/features/list/html_vtt_parser.ts +3 -3
- package/src/features/list/index.ts +18 -17
- package/src/features/list/media_source_main.ts +4 -4
- package/src/features/list/multi_thread.ts +17 -0
- package/src/features/list/native_sami_parser.ts +3 -3
- package/src/features/list/native_srt_parser.ts +3 -3
- package/src/features/list/native_text_buffer.ts +2 -2
- package/src/features/list/native_ttml_parser.ts +3 -3
- package/src/features/list/native_vtt_parser.ts +3 -3
- package/src/features/list/smooth.ts +5 -5
- package/src/features/types.ts +19 -16
- package/src/importable_worker.ts +8 -8
- package/src/index.ts +4 -4
- package/src/initialize_worker.ts +11 -11
- package/src/log.ts +1 -1
- package/src/main_thread/api/debug/buffer_graph.ts +2 -2
- package/src/main_thread/api/debug/buffer_size_graph.ts +1 -1
- package/src/main_thread/api/debug/index.ts +1 -1
- package/src/main_thread/api/debug/modules/general_info.ts +5 -5
- package/src/main_thread/api/debug/modules/segment_buffer_content.ts +10 -10
- package/src/main_thread/api/debug/modules/segment_buffer_size.ts +5 -5
- package/src/main_thread/api/debug/render.ts +6 -6
- package/src/main_thread/api/index.ts +1 -1
- package/src/main_thread/api/option_utils.ts +8 -9
- package/src/main_thread/api/public_api.ts +84 -65
- package/src/main_thread/api/utils.ts +12 -12
- package/src/main_thread/core_interface/base.ts +2 -2
- package/src/main_thread/core_interface/monothread.ts +6 -6
- package/src/main_thread/core_interface/multithread.ts +3 -3
- package/src/main_thread/core_interface/types.ts +3 -3
- package/src/main_thread/decrypt/clear_on_stop.ts +5 -5
- package/src/main_thread/decrypt/content_decryptor.ts +33 -33
- package/src/main_thread/decrypt/create_or_load_session.ts +10 -12
- package/src/main_thread/decrypt/create_session.ts +10 -11
- package/src/main_thread/decrypt/dispose_decryption_resources.ts +2 -2
- package/src/main_thread/decrypt/find_key_system.ts +19 -21
- package/src/main_thread/decrypt/get_key_system_configuration.ts +2 -2
- package/src/main_thread/decrypt/get_media_keys.ts +17 -15
- package/src/main_thread/decrypt/index.ts +5 -5
- package/src/main_thread/decrypt/init_media_keys.ts +8 -8
- package/src/main_thread/decrypt/session_events_listener.ts +15 -12
- package/src/main_thread/decrypt/set_server_certificate.ts +7 -5
- package/src/main_thread/decrypt/types.ts +5 -5
- package/src/main_thread/decrypt/utils/are_init_values_compatible.ts +2 -2
- package/src/main_thread/decrypt/utils/check_key_statuses.ts +7 -7
- package/src/main_thread/decrypt/utils/clean_old_loaded_sessions.ts +2 -2
- package/src/main_thread/decrypt/utils/clean_old_stored_persistent_info.ts +2 -2
- package/src/main_thread/decrypt/utils/get_drm_system_id.ts +4 -2
- package/src/main_thread/decrypt/utils/init_data_values_container.ts +4 -4
- package/src/main_thread/decrypt/utils/is_compatible_codec_supported.ts +2 -2
- package/src/main_thread/decrypt/utils/is_session_usable.ts +3 -3
- package/src/main_thread/decrypt/utils/key_id_comparison.ts +1 -1
- package/src/main_thread/decrypt/utils/key_session_record.ts +3 -3
- package/src/main_thread/decrypt/utils/loaded_sessions_store.ts +13 -8
- package/src/main_thread/decrypt/utils/media_keys_attacher.ts +8 -8
- package/src/main_thread/decrypt/utils/persistent_sessions_store.ts +13 -13
- package/src/main_thread/decrypt/utils/serializable_bytes.ts +1 -1
- package/src/main_thread/decrypt/utils/server_certificate_store.ts +2 -2
- package/src/main_thread/init/directfile_content_initializer.ts +20 -20
- package/src/main_thread/init/index.ts +2 -2
- package/src/main_thread/init/media_source_content_initializer.ts +91 -72
- package/src/main_thread/init/types.ts +11 -12
- package/src/main_thread/init/utils/create_core_playback_observer.ts +13 -13
- package/src/main_thread/init/utils/get_initial_time.ts +6 -6
- package/src/main_thread/init/utils/get_loaded_reference.ts +8 -8
- package/src/main_thread/init/utils/initial_seek_and_play.ts +11 -11
- package/src/main_thread/init/utils/initialize_content_decryption.ts +13 -13
- package/src/main_thread/init/utils/main_thread_text_displayer_interface.ts +3 -3
- package/src/main_thread/init/utils/rebuffering_controller.ts +16 -16
- package/src/main_thread/init/utils/stream_events_emitter/index.ts +2 -2
- package/src/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.ts +3 -3
- package/src/main_thread/init/utils/stream_events_emitter/stream_events_emitter.ts +10 -10
- package/src/main_thread/init/utils/stream_events_emitter/types.ts +1 -1
- package/src/main_thread/init/utils/throw_on_media_error.ts +4 -4
- package/src/main_thread/init/utils/update_manifest_codec_support.ts +12 -10
- package/src/main_thread/render_thumbnail.ts +9 -9
- package/src/main_thread/text_displayer/html/html_parsers.ts +3 -3
- package/src/main_thread/text_displayer/html/html_text_displayer.ts +15 -15
- package/src/main_thread/text_displayer/html/index.ts +1 -1
- package/src/main_thread/text_displayer/html/text_track_cues_store.ts +3 -3
- package/src/main_thread/text_displayer/index.ts +1 -1
- package/src/main_thread/text_displayer/manual_time_ranges.ts +2 -2
- package/src/main_thread/text_displayer/native/index.ts +1 -1
- package/src/main_thread/text_displayer/native/native_parsers.ts +4 -4
- package/src/main_thread/text_displayer/native/native_text_displayer.ts +10 -10
- package/src/main_thread/text_displayer/types.ts +2 -2
- package/src/main_thread/tracks_store/index.ts +3 -3
- package/src/main_thread/tracks_store/media_element_tracks_store.ts +11 -17
- package/src/main_thread/tracks_store/track_dispatcher.ts +14 -12
- package/src/main_thread/tracks_store/tracks_store.ts +14 -14
- package/src/main_thread/types.ts +36 -34
- package/src/main_thread/utils/media_capabilities.ts +3 -3
- package/src/manifest/classes/adaptation.ts +9 -9
- package/src/manifest/classes/index.ts +14 -14
- package/src/manifest/classes/manifest.ts +21 -21
- package/src/manifest/classes/period.ts +12 -11
- package/src/manifest/classes/representation.ts +10 -10
- package/src/manifest/classes/representation_index/index.ts +2 -2
- package/src/manifest/classes/representation_index/static.ts +2 -2
- package/src/manifest/classes/representation_index/types.ts +4 -4
- package/src/manifest/classes/update_period_in_place.ts +10 -7
- package/src/manifest/classes/update_periods.ts +10 -10
- package/src/manifest/classes/utils.ts +5 -5
- package/src/manifest/index.ts +6 -6
- package/src/manifest/types.ts +5 -2
- package/src/manifest/utils.ts +16 -11
- package/src/minimal.ts +2 -2
- package/src/mse/index.ts +2 -2
- package/src/mse/main_media_source_interface.ts +26 -27
- package/src/mse/types.ts +3 -3
- package/src/mse/utils/end_of_stream.ts +5 -5
- package/src/mse/utils/media_source_duration_updater.ts +12 -8
- package/src/mse/worker_media_source_interface.ts +10 -10
- package/src/parsers/containers/isobmff/create_box.ts +3 -3
- package/src/parsers/containers/isobmff/drm/index.ts +1 -1
- package/src/parsers/containers/isobmff/drm/playready.ts +7 -3
- package/src/parsers/containers/isobmff/extract_complete_chunks.ts +2 -2
- package/src/parsers/containers/isobmff/extract_pssh.ts +5 -5
- package/src/parsers/containers/isobmff/find_complete_box.ts +1 -1
- package/src/parsers/containers/isobmff/get_box.ts +3 -3
- package/src/parsers/containers/isobmff/index.ts +9 -9
- package/src/parsers/containers/isobmff/read.ts +1 -1
- package/src/parsers/containers/isobmff/remove_dolby_vision_config_data.ts +3 -3
- package/src/parsers/containers/isobmff/utils.ts +10 -10
- package/src/parsers/containers/matroska/index.ts +2 -2
- package/src/parsers/containers/matroska/utils.ts +1 -1
- package/src/parsers/images/bif.ts +2 -2
- package/src/parsers/manifest/dash/common/attach_trickmode_track.ts +2 -2
- package/src/parsers/manifest/dash/common/content_protection_parser.ts +15 -14
- package/src/parsers/manifest/dash/common/convert_supplemental_codecs.ts +1 -1
- package/src/parsers/manifest/dash/common/flatten_overlapping_periods.ts +2 -2
- package/src/parsers/manifest/dash/common/get_clock_offset.ts +2 -2
- package/src/parsers/manifest/dash/common/get_http_utc-timing_url.ts +14 -10
- package/src/parsers/manifest/dash/common/get_minimum_and_maximum_positions.ts +3 -3
- package/src/parsers/manifest/dash/common/get_periods_time_infos.ts +2 -2
- package/src/parsers/manifest/dash/common/index.ts +3 -3
- package/src/parsers/manifest/dash/common/indexes/base.ts +29 -27
- package/src/parsers/manifest/dash/common/indexes/get_init_segment.ts +34 -11
- package/src/parsers/manifest/dash/common/indexes/get_segments_from_timeline.ts +6 -6
- package/src/parsers/manifest/dash/common/indexes/index.ts +8 -8
- package/src/parsers/manifest/dash/common/indexes/list.ts +34 -27
- package/src/parsers/manifest/dash/common/indexes/template.ts +28 -27
- package/src/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.ts +5 -5
- package/src/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.ts +8 -8
- package/src/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.ts +3 -3
- package/src/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.ts +3 -3
- package/src/parsers/manifest/dash/common/indexes/timeline/index.ts +2 -2
- package/src/parsers/manifest/dash/common/indexes/timeline/parse_s_element.ts +3 -3
- package/src/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.ts +41 -40
- package/src/parsers/manifest/dash/common/indexes/tokens.ts +1 -1
- package/src/parsers/manifest/dash/common/indexes/utils.ts +1 -1
- package/src/parsers/manifest/dash/common/infer_adaptation_type.ts +26 -31
- package/src/parsers/manifest/dash/common/manifest_bounds_calculator.ts +1 -1
- package/src/parsers/manifest/dash/common/parse_adaptation_sets.ts +68 -62
- package/src/parsers/manifest/dash/common/parse_availability_start_time.ts +2 -2
- package/src/parsers/manifest/dash/common/parse_mpd.ts +39 -39
- package/src/parsers/manifest/dash/common/parse_periods.ts +23 -22
- package/src/parsers/manifest/dash/common/parse_representation_index.ts +132 -44
- package/src/parsers/manifest/dash/common/parse_representations.ts +40 -40
- package/src/parsers/manifest/dash/common/resolve_base_urls.ts +2 -2
- package/src/parsers/manifest/dash/index.ts +1 -1
- package/src/parsers/manifest/dash/js-parser/index.ts +1 -1
- package/src/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.ts +64 -98
- package/src/parsers/manifest/dash/js-parser/node_parsers/BaseURL.ts +3 -3
- package/src/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.ts +11 -9
- package/src/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.ts +10 -10
- package/src/parsers/manifest/dash/js-parser/node_parsers/EventStream.ts +7 -8
- package/src/parsers/manifest/dash/js-parser/node_parsers/Initialization.ts +11 -10
- package/src/parsers/manifest/dash/js-parser/node_parsers/MPD.ts +31 -43
- package/src/parsers/manifest/dash/js-parser/node_parsers/Period.ts +28 -38
- package/src/parsers/manifest/dash/js-parser/node_parsers/Representation.ts +38 -59
- package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.ts +23 -28
- package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentList.ts +10 -7
- package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.ts +20 -24
- package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.ts +2 -2
- package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.ts +10 -12
- package/src/parsers/manifest/dash/js-parser/node_parsers/utils.ts +17 -18
- package/src/parsers/manifest/dash/js-parser/parse_from_xml_string.ts +33 -19
- package/src/parsers/manifest/dash/node_parser_types.ts +95 -62
- package/src/parsers/manifest/dash/parsers_types.ts +4 -6
- package/src/parsers/manifest/dash/wasm-parser/Cargo.lock +2 -20
- package/src/parsers/manifest/dash/wasm-parser/Cargo.toml +3 -6
- package/src/parsers/manifest/dash/wasm-parser/README.md +12 -10
- package/src/parsers/manifest/dash/wasm-parser/index.ts +2 -2
- package/src/parsers/manifest/dash/wasm-parser/rs/events.rs +25 -25
- package/src/parsers/manifest/dash/wasm-parser/rs/lib.rs +17 -14
- package/src/parsers/manifest/dash/wasm-parser/rs/processor/attributes.rs +62 -162
- package/src/parsers/manifest/dash/wasm-parser/rs/processor/mod.rs +206 -224
- package/src/parsers/manifest/dash/wasm-parser/rs/processor/s_element.rs +8 -11
- package/src/parsers/manifest/dash/wasm-parser/rs/reader.rs +1 -1
- package/src/parsers/manifest/dash/wasm-parser/rs/reportable.rs +8 -47
- package/src/parsers/manifest/dash/wasm-parser/rs/utils.rs +1 -1
- package/src/parsers/manifest/dash/wasm-parser/rs/xml.rs +796 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.ts +27 -20
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.ts +120 -137
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.ts +5 -6
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.ts +8 -9
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.ts +14 -15
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.ts +27 -19
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/Initialization.ts +26 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/Label.ts +7 -6
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/MPD.ts +52 -49
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/Period.ts +53 -46
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/Representation.ts +73 -86
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.ts +7 -8
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.ts +40 -47
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.ts +20 -11
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.ts +50 -34
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.ts +8 -9
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/XLink.ts +13 -7
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/index.ts +1 -1
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/root.ts +10 -9
- package/src/parsers/manifest/dash/wasm-parser/ts/parsers_stack.ts +7 -2
- package/src/parsers/manifest/dash/wasm-parser/ts/types.ts +3 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/utils.ts +18 -8
- package/src/parsers/manifest/index.ts +1 -1
- package/src/parsers/manifest/local/index.ts +2 -2
- package/src/parsers/manifest/local/parse_local_manifest.ts +5 -5
- package/src/parsers/manifest/local/representation_index.ts +3 -3
- package/src/parsers/manifest/metaplaylist/index.ts +2 -2
- package/src/parsers/manifest/metaplaylist/metaplaylist_parser.ts +11 -11
- package/src/parsers/manifest/metaplaylist/representation_index.ts +5 -5
- package/src/parsers/manifest/smooth/create_parser.ts +24 -24
- package/src/parsers/manifest/smooth/get_codecs.ts +1 -1
- package/src/parsers/manifest/smooth/index.ts +3 -3
- package/src/parsers/manifest/smooth/parse_C_nodes.ts +2 -2
- package/src/parsers/manifest/smooth/parse_protection_node.ts +5 -5
- package/src/parsers/manifest/smooth/representation_index.ts +10 -10
- package/src/parsers/manifest/smooth/shared_smooth_segment_timeline.ts +7 -7
- package/src/parsers/manifest/smooth/utils/add_segment_infos.ts +1 -1
- package/src/parsers/manifest/smooth/utils/reduceChildren.ts +1 -1
- package/src/parsers/manifest/types.ts +2 -2
- package/src/parsers/manifest/utils/check_manifest_ids.ts +3 -3
- package/src/parsers/manifest/utils/clear_timeline_from_position.ts +1 -1
- package/src/parsers/manifest/utils/get_first_time_from_adaptation.ts +1 -1
- package/src/parsers/manifest/utils/get_last_time_from_adaptation.ts +1 -1
- package/src/parsers/manifest/utils/get_maximum_positions.ts +3 -3
- package/src/parsers/manifest/utils/get_minimum_position.ts +3 -3
- package/src/parsers/manifest/utils/index_helpers.ts +1 -1
- package/src/parsers/manifest/utils/update_segment_timeline.ts +4 -4
- package/src/parsers/texttracks/index.ts +1 -1
- package/src/parsers/texttracks/sami/html.ts +5 -5
- package/src/parsers/texttracks/sami/native.ts +6 -6
- package/src/parsers/texttracks/srt/find_end_of_cue_block.ts +1 -1
- package/src/parsers/texttracks/srt/get_cue_blocks.ts +2 -2
- package/src/parsers/texttracks/srt/html.ts +4 -4
- package/src/parsers/texttracks/srt/native.ts +6 -6
- package/src/parsers/texttracks/srt/parse_cue.ts +2 -2
- package/src/parsers/texttracks/srt/parse_timestamp.ts +1 -1
- package/src/parsers/texttracks/ttml/get_parameters.ts +2 -2
- package/src/parsers/texttracks/ttml/get_styling.ts +4 -4
- package/src/parsers/texttracks/ttml/get_time_delimiters.ts +4 -4
- package/src/parsers/texttracks/ttml/html/apply_extent.ts +3 -3
- package/src/parsers/texttracks/ttml/html/apply_font_size.ts +3 -3
- package/src/parsers/texttracks/ttml/html/apply_line_height.ts +3 -3
- package/src/parsers/texttracks/ttml/html/apply_origin.ts +3 -3
- package/src/parsers/texttracks/ttml/html/apply_padding.ts +3 -3
- package/src/parsers/texttracks/ttml/html/create_element.ts +13 -13
- package/src/parsers/texttracks/ttml/html/generate_css_test_outline.ts +1 -1
- package/src/parsers/texttracks/ttml/html/index.ts +1 -1
- package/src/parsers/texttracks/ttml/html/parse_cue.ts +3 -3
- package/src/parsers/texttracks/ttml/html/parse_ttml_to_div.ts +6 -6
- package/src/parsers/texttracks/ttml/html/ttml_color_to_css_color.ts +2 -2
- package/src/parsers/texttracks/ttml/native/index.ts +1 -1
- package/src/parsers/texttracks/ttml/native/parse_cue.ts +10 -10
- package/src/parsers/texttracks/ttml/native/parse_ttml_to_vtt.ts +5 -5
- package/src/parsers/texttracks/ttml/parse_ttml.ts +9 -9
- package/src/parsers/texttracks/ttml/resolve_styles_inheritance.ts +5 -5
- package/src/parsers/texttracks/ttml/time_parsing.ts +2 -2
- package/src/parsers/texttracks/ttml/xml_utils.ts +1 -1
- package/src/parsers/texttracks/types.ts +1 -1
- package/src/parsers/texttracks/webvtt/create_default_style_elements.ts +1 -1
- package/src/parsers/texttracks/webvtt/get_cue_blocks.ts +2 -2
- package/src/parsers/texttracks/webvtt/get_style_blocks.ts +2 -2
- package/src/parsers/texttracks/webvtt/html/convert_payload_to_html.ts +2 -2
- package/src/parsers/texttracks/webvtt/html/create_style_attribute.ts +1 -1
- package/src/parsers/texttracks/webvtt/html/create_styled_element.ts +3 -3
- package/src/parsers/texttracks/webvtt/html/index.ts +3 -3
- package/src/parsers/texttracks/webvtt/html/parse_webvtt_mp4.ts +5 -5
- package/src/parsers/texttracks/webvtt/html/parse_webvtt_plain_text.ts +9 -9
- package/src/parsers/texttracks/webvtt/html/to_html.ts +4 -4
- package/src/parsers/texttracks/webvtt/native/index.ts +2 -2
- package/src/parsers/texttracks/webvtt/native/parse_vtt_plain_text_to_cues.ts +11 -11
- package/src/parsers/texttracks/webvtt/native/parse_webvtt_mp4_to_cues.ts +5 -5
- package/src/parsers/texttracks/webvtt/native/set_settings_on_cue.ts +3 -3
- package/src/parsers/texttracks/webvtt/native/to_native_cue.ts +3 -3
- package/src/parsers/texttracks/webvtt/parse_cue_block.ts +1 -1
- package/src/parsers/texttracks/webvtt/parse_mp4_embedded_wvtt.ts +7 -7
- package/src/parsers/texttracks/webvtt/parse_style_block.ts +2 -2
- package/src/parsers/texttracks/webvtt/parse_timestamp.ts +1 -1
- package/src/parsers/texttracks/webvtt/utils.ts +1 -1
- package/src/playback_observer/core_playback_observer.ts +9 -9
- package/src/playback_observer/index.ts +4 -4
- package/src/playback_observer/media_element_playback_observer.ts +17 -17
- package/src/playback_observer/types.ts +3 -3
- package/src/playback_observer/utils/generate_read_only_observer.ts +3 -3
- package/src/public_types.ts +13 -14
- package/src/tools/TextTrackRenderer/index.ts +6 -6
- package/src/tools/TextTrackRenderer/text_track_renderer.ts +4 -4
- package/src/tools/index.ts +3 -3
- package/src/tools/parseBIFThumbnails/index.ts +1 -1
- package/src/tools/string_utils/index.ts +1 -1
- package/src/transports/dash/construct_segment_url.ts +3 -3
- package/src/transports/dash/get_events_out_of_emsgs.ts +3 -3
- package/src/transports/dash/index.ts +1 -1
- package/src/transports/dash/init_segment_loader.ts +7 -7
- package/src/transports/dash/integrity_checks.ts +8 -8
- package/src/transports/dash/load_chunked_segment_data.ts +6 -6
- package/src/transports/dash/manifest_parser.ts +14 -15
- package/src/transports/dash/pipelines.ts +10 -10
- package/src/transports/dash/segment_loader.ts +17 -14
- package/src/transports/dash/segment_parser.ts +14 -11
- package/src/transports/dash/text_loader.ts +12 -12
- package/src/transports/dash/text_parser.ts +9 -6
- package/src/transports/dash/thumbnails.ts +8 -8
- package/src/transports/index.ts +1 -1
- package/src/transports/local/index.ts +1 -1
- package/src/transports/local/pipelines.ts +11 -11
- package/src/transports/local/segment_loader.ts +8 -10
- package/src/transports/local/segment_parser.ts +6 -6
- package/src/transports/local/text_parser.ts +6 -6
- package/src/transports/metaplaylist/index.ts +1 -1
- package/src/transports/metaplaylist/pipelines.ts +19 -15
- package/src/transports/smooth/extract_timings_infos.ts +6 -6
- package/src/transports/smooth/index.ts +1 -1
- package/src/transports/smooth/isobmff/create_audio_init_segment.ts +4 -4
- package/src/transports/smooth/isobmff/create_boxes.ts +3 -3
- package/src/transports/smooth/isobmff/create_init_segment.ts +6 -3
- package/src/transports/smooth/isobmff/create_traf_box.ts +5 -2
- package/src/transports/smooth/isobmff/create_video_init_segment.ts +4 -4
- package/src/transports/smooth/isobmff/get_aaces_header.ts +2 -2
- package/src/transports/smooth/isobmff/index.ts +6 -6
- package/src/transports/smooth/isobmff/parse_tfrf.ts +2 -2
- package/src/transports/smooth/isobmff/parse_tfxd.ts +2 -2
- package/src/transports/smooth/isobmff/patch_segment.ts +5 -5
- package/src/transports/smooth/pipelines.ts +19 -19
- package/src/transports/smooth/segment_loader.ts +14 -11
- package/src/transports/smooth/utils.ts +3 -3
- package/src/transports/types.ts +9 -13
- package/src/transports/utils/call_custom_manifest_loader.ts +8 -5
- package/src/transports/utils/check_isobmff_integrity.ts +2 -2
- package/src/transports/utils/generate_manifest_loader.ts +7 -7
- package/src/transports/utils/get_isobmff_timing_infos.ts +4 -4
- package/src/transports/utils/infer_segment_container.ts +1 -1
- package/src/transports/utils/parse_text_track.ts +6 -6
- package/src/utils/are_codecs_compatible.ts +2 -2
- package/src/utils/assert.ts +1 -1
- package/src/utils/base64.ts +20 -6
- package/src/utils/cancellable_sleep.ts +2 -2
- package/src/utils/create_cancellable_promise.ts +1 -1
- package/src/utils/create_uuid.ts +2 -2
- package/src/utils/deep_merge.ts +1 -1
- package/src/utils/event_emitter.ts +3 -3
- package/src/utils/get_last_item_from_array.ts +9 -0
- package/src/utils/global_scope.ts +2 -2
- package/src/utils/is_node.ts +1 -1
- package/src/utils/languages/index.ts +5 -2
- package/src/utils/languages/normalize.ts +4 -4
- package/src/utils/logger.ts +4 -6
- package/src/utils/monotonic_timestamp.ts +1 -1
- package/src/utils/object_assign.ts +3 -4
- package/src/utils/object_entries.ts +12 -0
- package/src/utils/reference.ts +3 -3
- package/src/utils/request/fetch.ts +8 -6
- package/src/utils/request/index.ts +6 -6
- package/src/utils/request/request_error.ts +26 -6
- package/src/utils/request/xhr.ts +15 -7
- package/src/utils/retry_promise_with_backoff.ts +4 -4
- package/src/utils/sorted_list.ts +2 -2
- package/src/utils/string_parsing.ts +3 -3
- package/src/utils/sync_or_async.ts +1 -1
- package/src/utils/task_canceller.ts +3 -3
- package/src/utils/url-utils.ts +2 -2
- package/src/utils/warn_once.ts +1 -1
- package/src/utils/xml-parser.ts +2 -2
- package/src/worker_entry_point.ts +1 -1
- package/vitest.config.parsers.mjs +20 -0
- package/vitest.config.unit.mjs +1 -1
- package/dist/commonjs/transports/metaplaylist/manifest_loader.d.ts +0 -27
- package/dist/commonjs/transports/metaplaylist/manifest_loader.d.ts.map +0 -1
- package/dist/commonjs/transports/metaplaylist/manifest_loader.js +0 -57
- package/dist/commonjs/utils/test-utils.d.ts +0 -30
- package/dist/commonjs/utils/test-utils.d.ts.map +0 -1
- package/dist/commonjs/utils/test-utils.js +0 -79
- package/dist/es2017/transports/metaplaylist/manifest_loader.d.ts +0 -27
- package/dist/es2017/transports/metaplaylist/manifest_loader.d.ts.map +0 -1
- package/dist/es2017/transports/metaplaylist/manifest_loader.js +0 -53
- package/dist/es2017/utils/test-utils.d.ts +0 -30
- package/dist/es2017/utils/test-utils.d.ts.map +0 -1
- package/dist/es2017/utils/test-utils.js +0 -36
- package/src/compat/__tests__/add_text_track.test.ts +0 -157
- package/src/compat/__tests__/browser_compatibility_types.test.ts +0 -137
- package/src/compat/__tests__/browser_version.test.ts +0 -98
- package/src/compat/__tests__/can_patch_isobmff.test.ts +0 -30
- package/src/compat/__tests__/can_patch_out_pssh.test.ts +0 -40
- package/src/compat/__tests__/can_rely_on_video_visibility_and_size.test.ts +0 -44
- package/src/compat/__tests__/can_reuse_media_keys.test.ts +0 -48
- package/src/compat/__tests__/change_source_buffer_type.test.ts +0 -41
- package/src/compat/__tests__/clear_element_src.test.ts +0 -223
- package/src/compat/__tests__/enable_audio_track.test.ts +0 -331
- package/src/compat/__tests__/generate_init_data.test.ts +0 -20
- package/src/compat/__tests__/is_codec_supported.test.ts +0 -65
- package/src/compat/__tests__/is_seeking_approximate.test.ts +0 -22
- package/src/compat/__tests__/is_vtt_cue.test.ts +0 -49
- package/src/compat/__tests__/make_vtt_cue.test.ts +0 -71
- package/src/compat/__tests__/patch_webkit_source_buffer.test.ts +0 -109
- package/src/compat/__tests__/remove_cue.test.ts +0 -194
- package/src/compat/__tests__/should_favour_custom_safari_EME.test.ts +0 -62
- package/src/compat/__tests__/should_patch_out_dolby_vision_config_data_from_mp4.test.ts +0 -78
- package/src/compat/__tests__/should_reload_media_source_on_decipherability_update.test.ts +0 -38
- package/src/compat/__tests__/should_renew_media_key_system_access.test.ts +0 -50
- package/src/compat/__tests__/should_unset_media_keys.test.ts +0 -25
- package/src/compat/__tests__/should_validate_metadata.test.ts +0 -22
- package/src/compat/__tests__/should_wait_for_data_before_loaded.test.ts +0 -42
- package/src/compat/__tests__/should_wait_for_have_enough_data.test.ts +0 -22
- package/src/core/adaptive/__tests__/adaptive_representation_selector.test.ts +0 -845
- package/src/core/adaptive/__tests__/buffer_based_chooser.test.ts +0 -477
- package/src/core/adaptive/__tests__/guess_based_chooser.test.ts +0 -899
- package/src/core/adaptive/__tests__/mocks.ts +0 -100
- package/src/core/adaptive/__tests__/network_analyzer.test.ts +0 -607
- package/src/core/adaptive/utils/__tests__/bandwidth_estimator.test.ts +0 -117
- package/src/core/adaptive/utils/__tests__/ewma.test.ts +0 -64
- package/src/core/adaptive/utils/__tests__/filter_by_bitrate.test.ts +0 -33
- package/src/core/adaptive/utils/__tests__/filter_by_resolution.test.ts +0 -83
- package/src/core/adaptive/utils/__tests__/get_buffer_levels.test.ts +0 -35
- package/src/core/adaptive/utils/__tests__/last_estimate_storage.test.ts +0 -89
- package/src/core/adaptive/utils/__tests__/pending_requests_store.test.ts +0 -292
- package/src/core/adaptive/utils/__tests__/representation_score_calculator.test.ts +0 -249
- package/src/core/adaptive/utils/__tests__/select_optimal_representation.test.ts +0 -38
- package/src/core/cmcd/__tests__/cmcd_data_builder.test.ts +0 -509
- package/src/core/entry/__tests__/FreezeResolver.test.ts +0 -542
- package/src/core/entry/__tests__/content_time_boundaries_observer.test.ts +0 -886
- package/src/core/entry/__tests__/core_text_displayer_interface.test.ts +0 -225
- package/src/core/entry/__tests__/get_buffered_data_per_media_buffer.test.ts +0 -95
- package/src/core/entry/__tests__/track_choice_setter.test.ts +0 -288
- package/src/core/entry/__tests__/utils.test.ts +0 -315
- package/src/core/fetchers/__tests__/cdn_prioritizer.test.ts +0 -166
- package/src/core/fetchers/manifest/__tests__/manifest_fetcher.test.ts +0 -852
- package/src/core/fetchers/segment/__tests__/initialization_segment_cache.test.ts +0 -301
- package/src/core/fetchers/segment/__tests__/segment_fetcher.test.ts +0 -872
- package/src/core/fetchers/segment/__tests__/segment_queue.test.ts +0 -557
- package/src/core/fetchers/segment/__tests__/task_prioritizer.test.ts +0 -936
- package/src/core/fetchers/thumbnails/__tests__/thumbnail_fetcher.test.ts +0 -505
- package/src/core/fetchers/utils/__tests__/schedule_request.test.ts +0 -331
- package/src/core/segment_sinks/__tests__/garbage_collector.test.ts +0 -434
- package/src/core/segment_sinks/__tests__/mocks.ts +0 -49
- package/src/core/segment_sinks/implementations/text/__tests__/text_segment_sink.test.ts +0 -177
- package/src/core/segment_sinks/inventory/__tests__/buffered_history.test.ts +0 -215
- package/src/core/segment_sinks/inventory/__tests__/segment_inventory.test.ts +0 -448
- package/src/core/stream/adaptation/__tests__/adaptation_stream.test.ts +0 -973
- package/src/core/stream/adaptation/__tests__/get_representations_switch_strategy.test.ts +0 -502
- package/src/core/stream/orchestrator/__tests__/stream_orchestrator.test.ts +0 -707
- package/src/core/stream/period/utils/__tests__/get_adaptation_switch_strategy.test.ts +0 -716
- package/src/core/stream/representation/__tests__/encryption_data_notifier.test.ts +0 -561
- package/src/core/stream/representation/utils/__tests__/append_segment_to_buffer.test.ts +0 -364
- package/src/core/stream/representation/utils/__tests__/check_for_discontinuity.test.ts +0 -488
- package/src/core/stream/representation/utils/__tests__/get_segment_priority.test.ts +0 -132
- package/src/core/stream/representation/utils/__tests__/push_init_segment.test.ts +0 -252
- package/src/core/stream/representation/utils/__tests__/push_media_segment.test.ts +0 -409
- package/src/errors/__tests__/encrypted_media_error.test.ts +0 -43
- package/src/errors/__tests__/error_message.test.ts +0 -8
- package/src/errors/__tests__/format_error.test.ts +0 -53
- package/src/errors/__tests__/is_known_error.test.ts +0 -47
- package/src/errors/__tests__/media_error.test.ts +0 -142
- package/src/errors/__tests__/network_error.test.ts +0 -53
- package/src/errors/__tests__/other_error.test.ts +0 -38
- package/src/experimental/features/__tests__/index.test.ts +0 -11
- package/src/experimental/features/__tests__/local.test.ts +0 -27
- package/src/experimental/features/__tests__/metaplaylist.test.ts +0 -27
- package/src/experimental/features/__tests__/multi_thread.test.ts +0 -22
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/mediaDisplayInfos.test.ts +0 -106
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/utils.test.ts +0 -243
- package/src/experimental/tools/mediaCapabilitiesProber/probers/__tests__/HDCPPolicy.test.ts +0 -118
- package/src/experimental/tools/mediaCapabilitiesProber/probers/__tests__/decodingInfo.test.ts +0 -313
- package/src/experimental/tools/mediaCapabilitiesProber/probers/__tests__/defaultCodecsFinder.test.ts +0 -115
- package/src/experimental/tools/mediaCapabilitiesProber/probers/__tests__/mediaContentType.test.ts +0 -186
- package/src/experimental/tools/mediaCapabilitiesProber/probers/__tests__/mediaDisplayInfos.test.ts +0 -108
- package/src/features/__tests__/add_features.test.ts +0 -43
- package/src/features/list/__tests__/dash.test.ts +0 -33
- package/src/features/list/__tests__/dash_wasm.test.ts +0 -31
- package/src/features/list/__tests__/debug_element.test.ts +0 -13
- package/src/features/list/__tests__/directfile.test.ts +0 -19
- package/src/features/list/__tests__/eme.test.ts +0 -13
- package/src/features/list/__tests__/html_sami_parser.test.ts +0 -20
- package/src/features/list/__tests__/html_srt_parser.test.ts +0 -19
- package/src/features/list/__tests__/html_text_buffer.test.ts +0 -13
- package/src/features/list/__tests__/html_ttml_parser.test.ts +0 -19
- package/src/features/list/__tests__/html_vtt_parser.test.ts +0 -23
- package/src/features/list/__tests__/index.test.ts +0 -56
- package/src/features/list/__tests__/native_sami_parser.test.ts +0 -20
- package/src/features/list/__tests__/native_srt_parser.test.ts +0 -19
- package/src/features/list/__tests__/native_text_buffer.test.ts +0 -13
- package/src/features/list/__tests__/native_ttml_parser.test.ts +0 -19
- package/src/features/list/__tests__/native_vtt_parser.test.ts +0 -28
- package/src/features/list/__tests__/smooth.test.ts +0 -27
- package/src/main_thread/__tests__/render_thumbnail.test.ts +0 -193
- package/src/main_thread/api/__tests__/option_utils.test.ts +0 -1268
- package/src/main_thread/api/__tests__/public_api.test.ts +0 -603
- package/src/main_thread/api/__tests__/utils.test.ts +0 -273
- package/src/main_thread/decrypt/__tests__/__global__/content_decryptor.test.ts +0 -180
- package/src/main_thread/decrypt/__tests__/__global__/find_key_system.test.ts +0 -94
- package/src/main_thread/decrypt/__tests__/__global__/get_license.test.ts +0 -586
- package/src/main_thread/decrypt/__tests__/__global__/init_data.test.ts +0 -771
- package/src/main_thread/decrypt/__tests__/__global__/media_key_system_access.test.ts +0 -1255
- package/src/main_thread/decrypt/__tests__/__global__/media_keys.test.ts +0 -398
- package/src/main_thread/decrypt/__tests__/__global__/server_certificate.test.ts +0 -338
- package/src/main_thread/decrypt/__tests__/__global__/utils.ts +0 -470
- package/src/main_thread/decrypt/__tests__/find_key_system.test.ts +0 -366
- package/src/main_thread/decrypt/utils/__tests__/are_init_values_compatible.test.ts +0 -162
- package/src/main_thread/decrypt/utils/__tests__/clean_old_loaded_sessions.test.ts +0 -147
- package/src/main_thread/decrypt/utils/__tests__/clean_old_stored_persistent_info.test.ts +0 -124
- package/src/main_thread/decrypt/utils/__tests__/is_compatible_codec_supported.test.ts +0 -38
- package/src/main_thread/init/utils/__tests__/are_same_stream_events.test.ts +0 -35
- package/src/main_thread/init/utils/__tests__/refresh_scheduled_events_list.test.ts +0 -120
- package/src/main_thread/init/utils/__tests__/stream_events_emitter.test.ts +0 -175
- package/src/main_thread/init/utils/__tests__/update_manifest_codec_support.test.ts +0 -373
- package/src/main_thread/text_displayer/html/__tests__/text_track_cues_store.test.ts +0 -325
- package/src/main_thread/text_displayer/html/__tests__/utils.test.ts +0 -377
- package/src/main_thread/tracks_store/__tests__/media_element_tracks_store.test.ts +0 -203
- package/src/main_thread/tracks_store/__tests__/tracks_store.test.ts +0 -91
- package/src/manifest/classes/__tests__/adaptation.test.ts +0 -473
- package/src/manifest/classes/__tests__/manifest.test.ts +0 -507
- package/src/manifest/classes/__tests__/mocks.ts +0 -202
- package/src/manifest/classes/__tests__/period.test.ts +0 -950
- package/src/manifest/classes/__tests__/representation.test.ts +0 -553
- package/src/manifest/classes/__tests__/update_period_in_place.test.ts +0 -1716
- package/src/manifest/classes/__tests__/update_periods.test.ts +0 -866
- package/src/manifest/classes/representation_index/__tests__/static.test.ts +0 -64
- package/src/mse/__tests__/main_media_source_interface.test.ts +0 -848
- package/src/mse/__tests__/worker_media_source_interface.test.ts +0 -608
- package/src/parsers/containers/isobmff/__tests__/extract_pssh.test.ts +0 -199
- package/src/parsers/containers/isobmff/__tests__/find_complete_box.test.ts +0 -42
- package/src/parsers/containers/isobmff/__tests__/get_box.test.ts +0 -449
- package/src/parsers/containers/isobmff/__tests__/remove_dolby_vision_config_data.test.ts +0 -282
- package/src/parsers/manifest/dash/common/__tests__/attach_trickmode_track.test.ts +0 -48
- package/src/parsers/manifest/dash/common/__tests__/convert_supplemental_codecs.test.ts +0 -34
- package/src/parsers/manifest/dash/common/__tests__/flatten_overlapping_period.test.ts +0 -158
- package/src/parsers/manifest/dash/common/__tests__/get_clock_offset.test.ts +0 -42
- package/src/parsers/manifest/dash/common/__tests__/get_http_utc-timing_url.test.ts +0 -146
- package/src/parsers/manifest/dash/common/__tests__/get_periods_time_infos.test.ts +0 -89
- package/src/parsers/manifest/dash/common/__tests__/manifest_bounds_calculator.test.ts +0 -277
- package/src/parsers/manifest/dash/common/__tests__/parse_availability_start_time.test.ts +0 -65
- package/src/parsers/manifest/dash/common/indexes/__tests__/tokens.test.ts +0 -48
- package/src/parsers/manifest/dash/common/indexes/timeline/__tests__/parse_s_element.test.ts +0 -90
- package/src/parsers/manifest/dash/js-parser/__tests__/parse_from_xml_string.test.ts +0 -25
- package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/AdaptationSet.test.ts +0 -600
- package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/ContentComponent.test.ts +0 -48
- package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/ContentProtection.test.ts +0 -157
- package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/Initialization.test.ts +0 -82
- package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/SegmentURL.test.ts +0 -121
- package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/utils.test.ts +0 -188
- package/src/parsers/manifest/utils/__tests__/get_first_time_from_adaptations.test.ts +0 -227
- package/src/parsers/manifest/utils/__tests__/get_last_time_from_adaptation.test.ts +0 -227
- package/src/parsers/manifest/utils/__tests__/index_helpers.test.ts +0 -25
- package/src/parsers/manifest/utils/__tests__/update_segment_timeline.test.ts +0 -611
- package/src/parsers/texttracks/srt/__tests__/find_end_of_cue_block.test.ts +0 -84
- package/src/parsers/texttracks/srt/__tests__/get_cue_blocks.test.ts +0 -88
- package/src/parsers/texttracks/srt/__tests__/parse_cue.test.ts +0 -87
- package/src/parsers/texttracks/srt/__tests__/parse_timestamp.test.ts +0 -21
- package/src/parsers/texttracks/ttml/__tests__/resolve_styles_inheritance.test.ts +0 -249
- package/src/parsers/texttracks/ttml/html/__tests__/__global__/html_ttml_parser.test.ts +0 -186
- package/src/parsers/texttracks/ttml/html/__tests__/generate_css_test_outline.test.ts +0 -19
- package/src/parsers/texttracks/ttml/html/__tests__/ttml_color_to_css_color.test.ts +0 -38
- package/src/parsers/texttracks/webvtt/__tests__/create_default_style_elements.test.ts +0 -27
- package/src/parsers/texttracks/webvtt/__tests__/get_cue_blocks.test.ts +0 -165
- package/src/parsers/texttracks/webvtt/__tests__/get_style_blocks.test.ts +0 -45
- package/src/parsers/texttracks/webvtt/__tests__/parse_cue_block.test.ts +0 -190
- package/src/parsers/texttracks/webvtt/__tests__/parse_style_block.test.ts +0 -207
- package/src/parsers/texttracks/webvtt/__tests__/parse_timestamp.test.ts +0 -24
- package/src/parsers/texttracks/webvtt/__tests__/utils.test.ts +0 -374
- package/src/parsers/texttracks/webvtt/html/__tests__/convert_payload_to_html.test.ts +0 -79
- package/src/parsers/texttracks/webvtt/html/__tests__/create_style_attribute.test.ts +0 -140
- package/src/parsers/texttracks/webvtt/html/__tests__/create_styled_element.test.ts +0 -104
- package/src/parsers/texttracks/webvtt/html/__tests__/parse_webvtt_to_div.test.ts +0 -146
- package/src/parsers/texttracks/webvtt/html/__tests__/to_html.test.ts +0 -205
- package/src/playback_observer/__tests__/mocks.ts +0 -152
- package/src/transports/metaplaylist/manifest_loader.ts +0 -74
- package/src/transports/smooth/isobmff/__tests__/create_boxes.test.ts +0 -348
- package/src/transports/utils/__tests__/add_query_string.test.ts +0 -108
- package/src/transports/utils/__tests__/byte_range.test.ts +0 -36
- package/src/transports/utils/__tests__/check_isobmff_integrity.test.ts +0 -111
- package/src/transports/utils/__tests__/infer_segment_container.test.ts +0 -66
- package/src/utils/__tests__/are_arrays_of_numbers_equal.test.ts +0 -69
- package/src/utils/__tests__/are_codecs_compatible.test.ts +0 -79
- package/src/utils/__tests__/array_find.test.ts +0 -110
- package/src/utils/__tests__/array_find_index.test.ts +0 -109
- package/src/utils/__tests__/array_includes.test.ts +0 -115
- package/src/utils/__tests__/assert.test.ts +0 -238
- package/src/utils/__tests__/base64.test.ts +0 -181
- package/src/utils/__tests__/byte_parsing.test.ts +0 -219
- package/src/utils/__tests__/deep_merge.test.ts +0 -48
- package/src/utils/__tests__/event_emitter.test.ts +0 -712
- package/src/utils/__tests__/flat_map.test.ts +0 -43
- package/src/utils/__tests__/get_fuzzed_delay.test.ts +0 -17
- package/src/utils/__tests__/hash_buffer.test.ts +0 -28
- package/src/utils/__tests__/id_generator.test.ts +0 -66
- package/src/utils/__tests__/is_non_empty_string.test.ts +0 -28
- package/src/utils/__tests__/is_null_or_undefined.test.ts +0 -18
- package/src/utils/__tests__/logger.test.ts +0 -342
- package/src/utils/__tests__/noop.test.ts +0 -8
- package/src/utils/__tests__/object_assign.test.ts +0 -59
- package/src/utils/__tests__/object_values.test.ts +0 -11
- package/src/utils/__tests__/ranges.test.ts +0 -1150
- package/src/utils/__tests__/retry_promise_with_backoff.test.ts +0 -40
- package/src/utils/__tests__/sorted_list.test.ts +0 -302
- package/src/utils/__tests__/starts_with.test.ts +0 -49
- package/src/utils/__tests__/string_parsing.test.ts +0 -273
- package/src/utils/__tests__/url-utils.test.ts +0 -304
- package/src/utils/__tests__/warn_once.test.ts +0 -23
- package/src/utils/__tests__/weak_map_memory.test.ts +0 -169
- package/src/utils/__tests__/xml-parser.test.ts +0 -441
- package/src/utils/languages/__tests__/normalize.test.ts +0 -326
- package/src/utils/request/__tests__/request_error.test.ts +0 -30
- package/src/utils/test-utils.ts +0 -50
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* Copyright 2015 CANAL+ Group
|
|
4
3
|
*
|
|
@@ -13,105 +12,215 @@
|
|
|
13
12
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
13
|
* See the License for the specific language governing permissions and
|
|
15
14
|
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return t;
|
|
25
|
-
};
|
|
26
|
-
return __assign.apply(this, arguments);
|
|
27
|
-
};
|
|
28
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
15
|
+
*/ "use strict";
|
|
16
|
+
Object.defineProperty(exports, "__esModule", {
|
|
17
|
+
value: true
|
|
18
|
+
});
|
|
19
|
+
function _export(target, all) {
|
|
20
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
35
23
|
});
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
24
|
+
}
|
|
25
|
+
_export(exports, {
|
|
26
|
+
get /**
|
|
27
|
+
* Try to find a compatible key system from the keySystems array given.
|
|
28
|
+
*
|
|
29
|
+
* This function will request a MediaKeySystemAccess based on the various
|
|
30
|
+
* keySystems provided.
|
|
31
|
+
*
|
|
32
|
+
* This Promise might either:
|
|
33
|
+
* - resolves the MediaKeySystemAccess and the keySystems as an object, when
|
|
34
|
+
* found.
|
|
35
|
+
* - reject if no compatible key system has been found.
|
|
36
|
+
*
|
|
37
|
+
* @param {Object} eme - current EME implementation
|
|
38
|
+
* @param {HTMLMediaElement} mediaElement
|
|
39
|
+
* @param {Array.<Object>} keySystemsConfigs - The keySystems you want to test.
|
|
40
|
+
* @param {Object} cancelSignal
|
|
41
|
+
* @returns {Promise.<Object>}
|
|
42
|
+
*/ default () {
|
|
43
|
+
return getMediaKeySystemAccess;
|
|
44
|
+
},
|
|
45
|
+
get extractCodecSupportListFromConfiguration () {
|
|
46
|
+
return extractCodecSupportListFromConfiguration;
|
|
47
|
+
},
|
|
48
|
+
get testKeySystem () {
|
|
49
|
+
return testKeySystem;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
var _can_rely_on_request_media_key_system_access = require("../../compat/can_rely_on_request_media_key_system_access.js");
|
|
53
|
+
var _generate_init_data = require("../../compat/generate_init_data.js");
|
|
54
|
+
var _should_renew_media_key_system_access = /*#__PURE__*/ _interop_require_default(require("../../compat/should_renew_media_key_system_access.js"));
|
|
55
|
+
var _config = /*#__PURE__*/ _interop_require_default(require("../../config.js"));
|
|
56
|
+
var _index = require("../../errors/index.js");
|
|
57
|
+
var _log = /*#__PURE__*/ _interop_require_default(require("../../log.js"));
|
|
58
|
+
var _are_codecs_compatible = require("../../utils/are_codecs_compatible.js");
|
|
59
|
+
var _array_includes = /*#__PURE__*/ _interop_require_default(require("../../utils/array_includes.js"));
|
|
60
|
+
var _flat_map = /*#__PURE__*/ _interop_require_default(require("../../utils/flat_map.js"));
|
|
61
|
+
var _is_null_or_undefined = /*#__PURE__*/ _interop_require_default(require("../../utils/is_null_or_undefined.js"));
|
|
62
|
+
var _media_keys_attacher = /*#__PURE__*/ _interop_require_default(require("./utils/media_keys_attacher.js"));
|
|
63
|
+
function _array_like_to_array(arr, len) {
|
|
64
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
65
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
66
|
+
return arr2;
|
|
67
|
+
}
|
|
68
|
+
function _array_without_holes(arr) {
|
|
69
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
70
|
+
}
|
|
71
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
72
|
+
try {
|
|
73
|
+
var info = gen[key](arg);
|
|
74
|
+
var value = info.value;
|
|
75
|
+
} catch (error) {
|
|
76
|
+
reject(error);
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
if (info.done) resolve(value);
|
|
80
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
81
|
+
}
|
|
82
|
+
function _async_to_generator(fn) {
|
|
83
|
+
return function() {
|
|
84
|
+
var self = this, args = arguments;
|
|
85
|
+
return new Promise(function(resolve, reject) {
|
|
86
|
+
var gen = fn.apply(self, args);
|
|
87
|
+
function _next(value) {
|
|
88
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
89
|
+
}
|
|
90
|
+
function _throw(err) {
|
|
91
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
92
|
+
}
|
|
93
|
+
_next(undefined);
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function _interop_require_default(obj) {
|
|
98
|
+
return obj && obj.__esModule ? obj : {
|
|
99
|
+
default: obj
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function _iterable_to_array(iter) {
|
|
103
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
104
|
+
return Array.from(iter);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
function _non_iterable_spread() {
|
|
108
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
109
|
+
}
|
|
110
|
+
function _to_consumable_array(arr) {
|
|
111
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
112
|
+
}
|
|
113
|
+
function _ts_generator(thisArg, body) {
|
|
114
|
+
var f, y, t, _ = {
|
|
115
|
+
label: 0,
|
|
116
|
+
sent: function() {
|
|
117
|
+
if (t[0] & 1) throw t[1];
|
|
118
|
+
return t[1];
|
|
119
|
+
},
|
|
120
|
+
trys: [],
|
|
121
|
+
ops: []
|
|
122
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
123
|
+
return d(g, "next", {
|
|
124
|
+
value: verb(0)
|
|
125
|
+
}), d(g, "throw", {
|
|
126
|
+
value: verb(1)
|
|
127
|
+
}), d(g, "return", {
|
|
128
|
+
value: verb(2)
|
|
129
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
130
|
+
value: function() {
|
|
131
|
+
return this;
|
|
132
|
+
}
|
|
133
|
+
}), g;
|
|
134
|
+
function verb(n) {
|
|
135
|
+
return function(v) {
|
|
136
|
+
return step([
|
|
137
|
+
n,
|
|
138
|
+
v
|
|
139
|
+
]);
|
|
140
|
+
};
|
|
141
|
+
}
|
|
41
142
|
function step(op) {
|
|
42
143
|
if (f) throw new TypeError("Generator is already executing.");
|
|
43
|
-
while
|
|
144
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
44
145
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
45
|
-
if (y = 0, t) op = [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
case
|
|
146
|
+
if (y = 0, t) op = [
|
|
147
|
+
op[0] & 2,
|
|
148
|
+
t.value
|
|
149
|
+
];
|
|
150
|
+
switch(op[0]){
|
|
151
|
+
case 0:
|
|
152
|
+
case 1:
|
|
153
|
+
t = op;
|
|
154
|
+
break;
|
|
155
|
+
case 4:
|
|
156
|
+
_.label++;
|
|
157
|
+
return {
|
|
158
|
+
value: op[1],
|
|
159
|
+
done: false
|
|
160
|
+
};
|
|
161
|
+
case 5:
|
|
162
|
+
_.label++;
|
|
163
|
+
y = op[1];
|
|
164
|
+
op = [
|
|
165
|
+
0
|
|
166
|
+
];
|
|
167
|
+
continue;
|
|
168
|
+
case 7:
|
|
169
|
+
op = _.ops.pop();
|
|
170
|
+
_.trys.pop();
|
|
171
|
+
continue;
|
|
51
172
|
default:
|
|
52
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
173
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
174
|
+
_ = 0;
|
|
175
|
+
continue;
|
|
176
|
+
}
|
|
177
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
178
|
+
_.label = op[1];
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
182
|
+
_.label = t[1];
|
|
183
|
+
t = op;
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
if (t && _.label < t[2]) {
|
|
187
|
+
_.label = t[2];
|
|
188
|
+
_.ops.push(op);
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
56
191
|
if (t[2]) _.ops.pop();
|
|
57
|
-
_.trys.pop();
|
|
192
|
+
_.trys.pop();
|
|
193
|
+
continue;
|
|
58
194
|
}
|
|
59
195
|
op = body.call(thisArg, _);
|
|
60
|
-
} catch (e) {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
next: function () {
|
|
69
|
-
if (o && i >= o.length) o = void 0;
|
|
70
|
-
return { value: o && o[i++], done: !o };
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
74
|
-
};
|
|
75
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
76
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
77
|
-
if (!m) return o;
|
|
78
|
-
var i = m.call(o), r, ar = [], e;
|
|
79
|
-
try {
|
|
80
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
81
|
-
}
|
|
82
|
-
catch (error) { e = { error: error }; }
|
|
83
|
-
finally {
|
|
84
|
-
try {
|
|
85
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
86
|
-
}
|
|
87
|
-
finally { if (e) throw e.error; }
|
|
88
|
-
}
|
|
89
|
-
return ar;
|
|
90
|
-
};
|
|
91
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
92
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
93
|
-
if (ar || !(i in from)) {
|
|
94
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
95
|
-
ar[i] = from[i];
|
|
196
|
+
} catch (e) {
|
|
197
|
+
op = [
|
|
198
|
+
6,
|
|
199
|
+
e
|
|
200
|
+
];
|
|
201
|
+
y = 0;
|
|
202
|
+
} finally{
|
|
203
|
+
f = t = 0;
|
|
96
204
|
}
|
|
205
|
+
if (op[0] & 5) throw op[1];
|
|
206
|
+
return {
|
|
207
|
+
value: op[0] ? op[1] : void 0,
|
|
208
|
+
done: true
|
|
209
|
+
};
|
|
97
210
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
var
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
var array_includes_1 = require("../../utils/array_includes");
|
|
112
|
-
var flat_map_1 = require("../../utils/flat_map");
|
|
113
|
-
var is_null_or_undefined_1 = require("../../utils/is_null_or_undefined");
|
|
114
|
-
var media_keys_attacher_1 = require("./utils/media_keys_attacher");
|
|
211
|
+
}
|
|
212
|
+
function _type_of(obj) {
|
|
213
|
+
"@swc/helpers - typeof";
|
|
214
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
215
|
+
}
|
|
216
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
217
|
+
if (!o) return;
|
|
218
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
219
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
220
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
221
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
222
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
223
|
+
}
|
|
115
224
|
/**
|
|
116
225
|
* Takes a `newConfiguration` `MediaKeySystemConfiguration`, that is intended
|
|
117
226
|
* for the creation of a `MediaKeySystemAccess`, and a `prevConfiguration`
|
|
@@ -126,66 +235,57 @@ var media_keys_attacher_1 = require("./utils/media_keys_attacher");
|
|
|
126
235
|
* relied on util now.
|
|
127
236
|
* @returns {boolean} - `true` if `newConfiguration` is compatible with
|
|
128
237
|
* `prevConfiguration`.
|
|
129
|
-
*/
|
|
130
|
-
function
|
|
131
|
-
|
|
132
|
-
|
|
238
|
+
*/ function isNewMediaKeySystemConfigurationCompatibleWithPreviousOne(newConfiguration, prevConfiguration) {
|
|
239
|
+
var _loop = function(_i, _iter) {
|
|
240
|
+
var prop = _iter[_i];
|
|
241
|
+
var newCapabilities = (_j = newConfiguration[prop]) !== null && _j !== void 0 ? _j : [];
|
|
242
|
+
var prevCapabilities = (_k = prevConfiguration[prop]) !== null && _k !== void 0 ? _k : [];
|
|
243
|
+
var wasFound = newCapabilities.every(function(n) {
|
|
244
|
+
var _a, _b, _c, _d, _e, _f;
|
|
245
|
+
for(var i = 0; i < prevCapabilities.length; i++){
|
|
246
|
+
var prevCap = prevCapabilities[i];
|
|
247
|
+
if (((_a = prevCap.robustness) !== null && _a !== void 0 ? _a : "") === ((_b = n.robustness) !== null && _b !== void 0 ? _b : "") || ((_c = prevCap.encryptionScheme) !== null && _c !== void 0 ? _c : null) === ((_d = n.encryptionScheme) !== null && _d !== void 0 ? _d : null) || ((_e = prevCap.robustness) !== null && _e !== void 0 ? _e : "") === ((_f = n.robustness) !== null && _f !== void 0 ? _f : "")) {
|
|
248
|
+
return true;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
return false;
|
|
252
|
+
});
|
|
253
|
+
if (!wasFound) {
|
|
254
|
+
return {
|
|
255
|
+
v: false
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
133
260
|
if (newConfiguration.label !== prevConfiguration.label) {
|
|
134
261
|
return false;
|
|
135
262
|
}
|
|
136
|
-
var prevDistinctiveIdentifier = (
|
|
137
|
-
var newDistinctiveIdentifier = (
|
|
263
|
+
var prevDistinctiveIdentifier = (_a = prevConfiguration.distinctiveIdentifier) !== null && _a !== void 0 ? _a : "optional";
|
|
264
|
+
var newDistinctiveIdentifier = (_b = newConfiguration.distinctiveIdentifier) !== null && _b !== void 0 ? _b : "optional";
|
|
138
265
|
if (prevDistinctiveIdentifier !== newDistinctiveIdentifier) {
|
|
139
266
|
return false;
|
|
140
267
|
}
|
|
141
|
-
var prevPersistentState = (
|
|
142
|
-
var newPersistentState = (
|
|
268
|
+
var prevPersistentState = (_c = prevConfiguration.persistentState) !== null && _c !== void 0 ? _c : "optional";
|
|
269
|
+
var newPersistentState = (_d = newConfiguration.persistentState) !== null && _d !== void 0 ? _d : "optional";
|
|
143
270
|
if (prevPersistentState !== newPersistentState) {
|
|
144
271
|
return false;
|
|
145
272
|
}
|
|
146
|
-
var prevInitDataTypes = (
|
|
147
|
-
var newInitDataTypes = (
|
|
273
|
+
var prevInitDataTypes = (_e = prevConfiguration.initDataTypes) !== null && _e !== void 0 ? _e : [];
|
|
274
|
+
var newInitDataTypes = (_f = newConfiguration.initDataTypes) !== null && _f !== void 0 ? _f : [];
|
|
148
275
|
if (!isArraySubsetOf(newInitDataTypes, prevInitDataTypes)) {
|
|
149
276
|
return false;
|
|
150
277
|
}
|
|
151
|
-
var prevSessionTypes = (
|
|
152
|
-
var newSessionTypes = (
|
|
278
|
+
var prevSessionTypes = (_g = prevConfiguration.sessionTypes) !== null && _g !== void 0 ? _g : [];
|
|
279
|
+
var newSessionTypes = (_h = newConfiguration.sessionTypes) !== null && _h !== void 0 ? _h : [];
|
|
153
280
|
if (!isArraySubsetOf(newSessionTypes, prevSessionTypes)) {
|
|
154
281
|
return false;
|
|
155
282
|
}
|
|
156
|
-
var
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
var prevCap = prevCapabilities[i];
|
|
163
|
-
if (((_a = prevCap.robustness) !== null && _a !== void 0 ? _a : "") === ((_b = n.robustness) !== null && _b !== void 0 ? _b : "") ||
|
|
164
|
-
((_c = prevCap.encryptionScheme) !== null && _c !== void 0 ? _c : null) === ((_d = n.encryptionScheme) !== null && _d !== void 0 ? _d : null) ||
|
|
165
|
-
((_e = prevCap.robustness) !== null && _e !== void 0 ? _e : "") === ((_f = n.robustness) !== null && _f !== void 0 ? _f : "")) {
|
|
166
|
-
return true;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
return false;
|
|
170
|
-
});
|
|
171
|
-
if (!wasFound) {
|
|
172
|
-
return { value: false };
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
try {
|
|
176
|
-
for (var _m = __values(["audioCapabilities", "videoCapabilities"]), _o = _m.next(); !_o.done; _o = _m.next()) {
|
|
177
|
-
var prop = _o.value;
|
|
178
|
-
var state_1 = _loop_1(prop);
|
|
179
|
-
if (typeof state_1 === "object")
|
|
180
|
-
return state_1.value;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
184
|
-
finally {
|
|
185
|
-
try {
|
|
186
|
-
if (_o && !_o.done && (_a = _m.return)) _a.call(_m);
|
|
187
|
-
}
|
|
188
|
-
finally { if (e_1) throw e_1.error; }
|
|
283
|
+
for(var _i = 0, _iter = [
|
|
284
|
+
"audioCapabilities",
|
|
285
|
+
"videoCapabilities"
|
|
286
|
+
]; _i < _iter.length; _i++){
|
|
287
|
+
var _ret = _loop(_i, _iter);
|
|
288
|
+
if (_type_of(_ret) === "object") return _ret.v;
|
|
189
289
|
}
|
|
190
290
|
return true;
|
|
191
291
|
}
|
|
@@ -193,24 +293,29 @@ function isNewMediaKeySystemConfigurationCompatibleWithPreviousOne(newConfigurat
|
|
|
193
293
|
* Find key system canonical name from key system type.
|
|
194
294
|
* @param {string} ksType - Obtained via inversion
|
|
195
295
|
* @returns {string|undefined} - Either the canonical name, or undefined.
|
|
196
|
-
*/
|
|
197
|
-
|
|
198
|
-
var
|
|
199
|
-
var EME_KEY_SYSTEMS = config_1.default.getCurrent().EME_KEY_SYSTEMS;
|
|
296
|
+
*/ function findKeySystemCanonicalName(ksType) {
|
|
297
|
+
var EME_KEY_SYSTEMS = _config.default.getCurrent().EME_KEY_SYSTEMS;
|
|
298
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
200
299
|
try {
|
|
201
|
-
for
|
|
202
|
-
var ksName =
|
|
203
|
-
if ((0,
|
|
300
|
+
for(var _iterator = Object.keys(EME_KEY_SYSTEMS)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
301
|
+
var ksName = _step.value;
|
|
302
|
+
if ((0, _array_includes.default)(EME_KEY_SYSTEMS[ksName], ksType)) {
|
|
204
303
|
return ksName;
|
|
205
304
|
}
|
|
206
305
|
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
|
|
306
|
+
} catch (err) {
|
|
307
|
+
_didIteratorError = true;
|
|
308
|
+
_iteratorError = err;
|
|
309
|
+
} finally{
|
|
210
310
|
try {
|
|
211
|
-
if (
|
|
311
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
312
|
+
_iterator.return();
|
|
313
|
+
}
|
|
314
|
+
} finally{
|
|
315
|
+
if (_didIteratorError) {
|
|
316
|
+
throw _iteratorError;
|
|
317
|
+
}
|
|
212
318
|
}
|
|
213
|
-
finally { if (e_2) throw e_2.error; }
|
|
214
319
|
}
|
|
215
320
|
return undefined;
|
|
216
321
|
}
|
|
@@ -220,33 +325,33 @@ function findKeySystemCanonicalName(ksType) {
|
|
|
220
325
|
* @param {Object} keySystemTypeInfo
|
|
221
326
|
* @returns {Array.<Object>} - Configuration to give to the
|
|
222
327
|
* requestMediaKeySystemAccess API.
|
|
223
|
-
*/
|
|
224
|
-
function buildKeySystemConfigurations(keySystemTypeInfo) {
|
|
328
|
+
*/ function buildKeySystemConfigurations(keySystemTypeInfo) {
|
|
225
329
|
var keyName = keySystemTypeInfo.keyName, keyType = keySystemTypeInfo.keyType, keySystem = keySystemTypeInfo.keySystemOptions;
|
|
226
330
|
var sessionTypes;
|
|
227
331
|
var persistentState = "optional";
|
|
228
332
|
var distinctiveIdentifier = "optional";
|
|
229
333
|
if (Array.isArray(keySystem.wantedSessionTypes)) {
|
|
230
334
|
sessionTypes = keySystem.wantedSessionTypes;
|
|
231
|
-
if ((0,
|
|
232
|
-
!(0, is_null_or_undefined_1.default)(keySystem.persistentLicenseConfig)) {
|
|
335
|
+
if ((0, _array_includes.default)(keySystem.wantedSessionTypes, "persistent-license") && !(0, _is_null_or_undefined.default)(keySystem.persistentLicenseConfig)) {
|
|
233
336
|
persistentState = "required";
|
|
234
337
|
}
|
|
235
|
-
}
|
|
236
|
-
else if (!(0, is_null_or_undefined_1.default)(keySystem.persistentLicenseConfig)) {
|
|
338
|
+
} else if (!(0, _is_null_or_undefined.default)(keySystem.persistentLicenseConfig)) {
|
|
237
339
|
persistentState = "required";
|
|
238
|
-
sessionTypes = [
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
340
|
+
sessionTypes = [
|
|
341
|
+
"persistent-license"
|
|
342
|
+
];
|
|
343
|
+
} else {
|
|
344
|
+
sessionTypes = [
|
|
345
|
+
"temporary"
|
|
346
|
+
];
|
|
242
347
|
}
|
|
243
|
-
if (!(0,
|
|
348
|
+
if (!(0, _is_null_or_undefined.default)(keySystem.persistentState)) {
|
|
244
349
|
persistentState = keySystem.persistentState;
|
|
245
350
|
}
|
|
246
|
-
if (!(0,
|
|
351
|
+
if (!(0, _is_null_or_undefined.default)(keySystem.distinctiveIdentifier)) {
|
|
247
352
|
distinctiveIdentifier = keySystem.distinctiveIdentifier;
|
|
248
353
|
}
|
|
249
|
-
var
|
|
354
|
+
var _config_getCurrent = _config.default.getCurrent(), EME_DEFAULT_AUDIO_CODECS = _config_getCurrent.EME_DEFAULT_AUDIO_CODECS, EME_DEFAULT_VIDEO_CODECS = _config_getCurrent.EME_DEFAULT_VIDEO_CODECS, EME_DEFAULT_WIDEVINE_ROBUSTNESSES = _config_getCurrent.EME_DEFAULT_WIDEVINE_ROBUSTNESSES, EME_DEFAULT_PLAYREADY_RECOMMENDATION_ROBUSTNESSES = _config_getCurrent.EME_DEFAULT_PLAYREADY_RECOMMENDATION_ROBUSTNESSES;
|
|
250
355
|
// From the W3 EME spec, we have to provide videoCapabilities and
|
|
251
356
|
// audioCapabilities.
|
|
252
357
|
// These capabilities must specify a codec (even though you can use a
|
|
@@ -263,89 +368,92 @@ function buildKeySystemConfigurations(keySystemTypeInfo) {
|
|
|
263
368
|
var audioCapabilitiesConfig = keySystem.audioCapabilitiesConfig, videoCapabilitiesConfig = keySystem.videoCapabilitiesConfig;
|
|
264
369
|
if ((audioCapabilitiesConfig === null || audioCapabilitiesConfig === void 0 ? void 0 : audioCapabilitiesConfig.type) === "full") {
|
|
265
370
|
audioCapabilities = audioCapabilitiesConfig.value;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
var audioRobustnesses = void 0;
|
|
371
|
+
} else {
|
|
372
|
+
var audioRobustnesses;
|
|
269
373
|
if ((audioCapabilitiesConfig === null || audioCapabilitiesConfig === void 0 ? void 0 : audioCapabilitiesConfig.type) === "robustness") {
|
|
270
374
|
audioRobustnesses = audioCapabilitiesConfig.value;
|
|
271
|
-
}
|
|
272
|
-
else if (keyName === "widevine") {
|
|
375
|
+
} else if (keyName === "widevine") {
|
|
273
376
|
audioRobustnesses = EME_DEFAULT_WIDEVINE_ROBUSTNESSES;
|
|
274
|
-
}
|
|
275
|
-
else if (keyType === "com.microsoft.playready.recommendation") {
|
|
377
|
+
} else if (keyType === "com.microsoft.playready.recommendation") {
|
|
276
378
|
audioRobustnesses = EME_DEFAULT_PLAYREADY_RECOMMENDATION_ROBUSTNESSES;
|
|
277
|
-
}
|
|
278
|
-
else {
|
|
379
|
+
} else {
|
|
279
380
|
audioRobustnesses = [];
|
|
280
381
|
}
|
|
281
382
|
if (audioRobustnesses.length === 0) {
|
|
282
383
|
audioRobustnesses.push(undefined);
|
|
283
384
|
}
|
|
284
|
-
var
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
385
|
+
var audioCodecs = (audioCapabilitiesConfig === null || audioCapabilitiesConfig === void 0 ? void 0 : audioCapabilitiesConfig.type) === "contentType" ? audioCapabilitiesConfig.value : EME_DEFAULT_AUDIO_CODECS;
|
|
386
|
+
audioCapabilities = (0, _flat_map.default)(audioRobustnesses, function(robustness) {
|
|
387
|
+
return audioCodecs.map(function(contentType) {
|
|
388
|
+
return robustness !== undefined ? {
|
|
389
|
+
contentType: contentType,
|
|
390
|
+
robustness: robustness
|
|
391
|
+
} : {
|
|
392
|
+
contentType: contentType
|
|
393
|
+
};
|
|
290
394
|
});
|
|
291
395
|
});
|
|
292
396
|
}
|
|
293
397
|
if ((videoCapabilitiesConfig === null || videoCapabilitiesConfig === void 0 ? void 0 : videoCapabilitiesConfig.type) === "full") {
|
|
294
398
|
videoCapabilities = videoCapabilitiesConfig.value;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
var videoRobustnesses = void 0;
|
|
399
|
+
} else {
|
|
400
|
+
var videoRobustnesses;
|
|
298
401
|
if ((videoCapabilitiesConfig === null || videoCapabilitiesConfig === void 0 ? void 0 : videoCapabilitiesConfig.type) === "robustness") {
|
|
299
402
|
videoRobustnesses = videoCapabilitiesConfig.value;
|
|
300
|
-
}
|
|
301
|
-
else if (keyName === "widevine") {
|
|
403
|
+
} else if (keyName === "widevine") {
|
|
302
404
|
videoRobustnesses = EME_DEFAULT_WIDEVINE_ROBUSTNESSES;
|
|
303
|
-
}
|
|
304
|
-
else if (keyType === "com.microsoft.playready.recommendation") {
|
|
405
|
+
} else if (keyType === "com.microsoft.playready.recommendation") {
|
|
305
406
|
videoRobustnesses = EME_DEFAULT_PLAYREADY_RECOMMENDATION_ROBUSTNESSES;
|
|
306
|
-
}
|
|
307
|
-
else {
|
|
407
|
+
} else {
|
|
308
408
|
videoRobustnesses = [];
|
|
309
409
|
}
|
|
310
410
|
if (videoRobustnesses.length === 0) {
|
|
311
411
|
videoRobustnesses.push(undefined);
|
|
312
412
|
}
|
|
313
|
-
var
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
413
|
+
var videoCodecs = (videoCapabilitiesConfig === null || videoCapabilitiesConfig === void 0 ? void 0 : videoCapabilitiesConfig.type) === "contentType" ? videoCapabilitiesConfig.value : EME_DEFAULT_VIDEO_CODECS;
|
|
414
|
+
videoCapabilities = (0, _flat_map.default)(videoRobustnesses, function(robustness) {
|
|
415
|
+
return videoCodecs.map(function(contentType) {
|
|
416
|
+
return robustness !== undefined ? {
|
|
417
|
+
contentType: contentType,
|
|
418
|
+
robustness: robustness
|
|
419
|
+
} : {
|
|
420
|
+
contentType: contentType
|
|
421
|
+
};
|
|
319
422
|
});
|
|
320
423
|
});
|
|
321
424
|
}
|
|
322
425
|
var wantedMediaKeySystemConfiguration = {
|
|
323
|
-
initDataTypes: [
|
|
426
|
+
initDataTypes: [
|
|
427
|
+
"cenc"
|
|
428
|
+
],
|
|
324
429
|
videoCapabilities: videoCapabilities,
|
|
325
430
|
audioCapabilities: audioCapabilities,
|
|
326
431
|
distinctiveIdentifier: distinctiveIdentifier,
|
|
327
432
|
persistentState: persistentState,
|
|
328
|
-
sessionTypes: sessionTypes
|
|
433
|
+
sessionTypes: sessionTypes
|
|
329
434
|
};
|
|
330
435
|
if (audioCapabilitiesConfig !== undefined) {
|
|
331
436
|
if (videoCapabilitiesConfig !== undefined) {
|
|
332
|
-
return [
|
|
437
|
+
return [
|
|
438
|
+
wantedMediaKeySystemConfiguration
|
|
439
|
+
];
|
|
333
440
|
}
|
|
334
441
|
return [
|
|
335
442
|
wantedMediaKeySystemConfiguration,
|
|
336
|
-
|
|
443
|
+
Object.assign(Object.assign({}, wantedMediaKeySystemConfiguration), {
|
|
337
444
|
// Re-try without `videoCapabilities` in case the EME implementation is
|
|
338
445
|
// buggy
|
|
339
|
-
videoCapabilities: undefined
|
|
446
|
+
videoCapabilities: undefined
|
|
447
|
+
})
|
|
340
448
|
];
|
|
341
|
-
}
|
|
342
|
-
else if (videoCapabilitiesConfig !== undefined) {
|
|
449
|
+
} else if (videoCapabilitiesConfig !== undefined) {
|
|
343
450
|
return [
|
|
344
451
|
wantedMediaKeySystemConfiguration,
|
|
345
|
-
|
|
452
|
+
Object.assign(Object.assign({}, wantedMediaKeySystemConfiguration), {
|
|
346
453
|
// Re-try without `audioCapabilities` in case the EME implementation is
|
|
347
454
|
// buggy
|
|
348
|
-
audioCapabilities: undefined
|
|
455
|
+
audioCapabilities: undefined
|
|
456
|
+
})
|
|
349
457
|
];
|
|
350
458
|
}
|
|
351
459
|
return [
|
|
@@ -353,27 +461,32 @@ function buildKeySystemConfigurations(keySystemTypeInfo) {
|
|
|
353
461
|
// Some legacy implementations have issues with `audioCapabilities` and
|
|
354
462
|
// `videoCapabilities`, so we're including a supplementary
|
|
355
463
|
// `MediaKeySystemConfiguration` without those properties.
|
|
356
|
-
|
|
464
|
+
Object.assign(Object.assign({}, wantedMediaKeySystemConfiguration), {
|
|
465
|
+
audioCapabilities: undefined,
|
|
466
|
+
videoCapabilities: undefined
|
|
467
|
+
})
|
|
357
468
|
];
|
|
358
469
|
}
|
|
359
|
-
/**
|
|
360
|
-
* Extract from the current mediaKeys the supported Codecs.
|
|
361
|
-
* @param {Object} initialConfiguration - The MediaKeySystemConfiguration given
|
|
362
|
-
* to the `navigator.requestMediaKeySystemAccess` API.
|
|
363
|
-
* @param {Object | undefined} mksConfiguration - The result of
|
|
364
|
-
* getConfiguration() of the media keys.
|
|
365
|
-
* @return {Array} The list of supported codec by the CDM.
|
|
366
|
-
*/
|
|
367
470
|
function extractCodecSupportListFromConfiguration(initialConfiguration, mksConfiguration) {
|
|
368
471
|
var _a, _b, _c, _d, _e, _f;
|
|
369
|
-
var testedAudioCodecs = (_b = (_a = initialConfiguration.audioCapabilities) === null || _a === void 0 ? void 0 : _a.map(function
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
var
|
|
376
|
-
|
|
472
|
+
var testedAudioCodecs = (_b = (_a = initialConfiguration.audioCapabilities) === null || _a === void 0 ? void 0 : _a.map(function(v) {
|
|
473
|
+
return v.contentType;
|
|
474
|
+
})) !== null && _b !== void 0 ? _b : [];
|
|
475
|
+
var testedVideoCodecs = (_d = (_c = initialConfiguration.videoCapabilities) === null || _c === void 0 ? void 0 : _c.map(function(v) {
|
|
476
|
+
return v.contentType;
|
|
477
|
+
})) !== null && _d !== void 0 ? _d : [];
|
|
478
|
+
var testedCodecs = testedAudioCodecs.concat(testedVideoCodecs).filter(function(c) {
|
|
479
|
+
return c !== undefined;
|
|
480
|
+
});
|
|
481
|
+
var supportedVideoCodecs = (_e = mksConfiguration.videoCapabilities) === null || _e === void 0 ? void 0 : _e.map(function(entry) {
|
|
482
|
+
return entry.contentType;
|
|
483
|
+
});
|
|
484
|
+
var supportedAudioCodecs = (_f = mksConfiguration.audioCapabilities) === null || _f === void 0 ? void 0 : _f.map(function(entry) {
|
|
485
|
+
return entry.contentType;
|
|
486
|
+
});
|
|
487
|
+
var supportedCodecs = _to_consumable_array(supportedVideoCodecs !== null && supportedVideoCodecs !== void 0 ? supportedVideoCodecs : []).concat(_to_consumable_array(supportedAudioCodecs !== null && supportedAudioCodecs !== void 0 ? supportedAudioCodecs : [])).filter(function(contentType) {
|
|
488
|
+
return contentType !== undefined;
|
|
489
|
+
});
|
|
377
490
|
if (supportedCodecs.length === 0) {
|
|
378
491
|
// Some legacy implementations have issues with `audioCapabilities` and
|
|
379
492
|
// `videoCapabilities` in requestMediaKeySystemAccess so the codecs are not provided.
|
|
@@ -385,51 +498,42 @@ function extractCodecSupportListFromConfiguration(initialConfiguration, mksConfi
|
|
|
385
498
|
// never reach this code.
|
|
386
499
|
return [];
|
|
387
500
|
}
|
|
388
|
-
var codecSupportList = testedCodecs.map(function
|
|
389
|
-
var
|
|
390
|
-
var isSupported = (0,
|
|
501
|
+
var codecSupportList = testedCodecs.map(function(codec) {
|
|
502
|
+
var _parseCodec = (0, _are_codecs_compatible.parseCodec)(codec), codecs = _parseCodec.codecs, mimeType = _parseCodec.mimeType;
|
|
503
|
+
var isSupported = (0, _array_includes.default)(supportedCodecs, codec);
|
|
391
504
|
return {
|
|
392
505
|
codec: codecs,
|
|
393
506
|
mimeType: mimeType,
|
|
394
|
-
result: isSupported
|
|
507
|
+
result: isSupported
|
|
395
508
|
};
|
|
396
509
|
});
|
|
397
510
|
return codecSupportList;
|
|
398
511
|
}
|
|
399
|
-
/**
|
|
400
|
-
* Try to find a compatible key system from the keySystems array given.
|
|
401
|
-
*
|
|
402
|
-
* This function will request a MediaKeySystemAccess based on the various
|
|
403
|
-
* keySystems provided.
|
|
404
|
-
*
|
|
405
|
-
* This Promise might either:
|
|
406
|
-
* - resolves the MediaKeySystemAccess and the keySystems as an object, when
|
|
407
|
-
* found.
|
|
408
|
-
* - reject if no compatible key system has been found.
|
|
409
|
-
*
|
|
410
|
-
* @param {Object} eme - current EME implementation
|
|
411
|
-
* @param {HTMLMediaElement} mediaElement
|
|
412
|
-
* @param {Array.<Object>} keySystemsConfigs - The keySystems you want to test.
|
|
413
|
-
* @param {Object} cancelSignal
|
|
414
|
-
* @returns {Promise.<Object>}
|
|
415
|
-
*/
|
|
416
512
|
function getMediaKeySystemAccess(eme, mediaElement, keySystemsConfigs, cancelSignal) {
|
|
417
|
-
|
|
418
|
-
/** Array of set keySystems for this content. */
|
|
419
|
-
|
|
420
|
-
var EME_KEY_SYSTEMS = config_1.default.getCurrent().EME_KEY_SYSTEMS;
|
|
513
|
+
_log.default.info("DRM", "Searching for compatible MediaKeySystemAccess");
|
|
514
|
+
/** Array of set keySystems for this content. */ var keySystemsType = keySystemsConfigs.reduce(function(arr, keySystemOptions) {
|
|
515
|
+
var EME_KEY_SYSTEMS = _config.default.getCurrent().EME_KEY_SYSTEMS;
|
|
421
516
|
var managedRDNs = EME_KEY_SYSTEMS[keySystemOptions.type];
|
|
422
517
|
var ksType;
|
|
423
|
-
if (!(0,
|
|
424
|
-
ksType = managedRDNs.map(function
|
|
518
|
+
if (!(0, _is_null_or_undefined.default)(managedRDNs)) {
|
|
519
|
+
ksType = managedRDNs.map(function(keyType) {
|
|
425
520
|
var keyName = keySystemOptions.type;
|
|
426
|
-
return {
|
|
521
|
+
return {
|
|
522
|
+
keyName: keyName,
|
|
523
|
+
keyType: keyType,
|
|
524
|
+
keySystemOptions: keySystemOptions
|
|
525
|
+
};
|
|
427
526
|
});
|
|
428
|
-
}
|
|
429
|
-
else {
|
|
527
|
+
} else {
|
|
430
528
|
var keyName = findKeySystemCanonicalName(keySystemOptions.type);
|
|
431
529
|
var keyType = keySystemOptions.type;
|
|
432
|
-
ksType = [
|
|
530
|
+
ksType = [
|
|
531
|
+
{
|
|
532
|
+
keyName: keyName,
|
|
533
|
+
keyType: keyType,
|
|
534
|
+
keySystemOptions: keySystemOptions
|
|
535
|
+
}
|
|
536
|
+
];
|
|
433
537
|
}
|
|
434
538
|
return arr.concat(ksType);
|
|
435
539
|
}, []);
|
|
@@ -443,150 +547,197 @@ function getMediaKeySystemAccess(eme, mediaElement, keySystemsConfigs, cancelSig
|
|
|
443
547
|
* @param {Number} index - The index in `keySystemsType` to start from.
|
|
444
548
|
* Should be set to `0` when calling directly.
|
|
445
549
|
* @returns {Promise.<Object>}
|
|
446
|
-
*/
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
switch (_a.label) {
|
|
550
|
+
*/ function recursivelyTestKeySystems(index) {
|
|
551
|
+
return _async_to_generator(function() {
|
|
552
|
+
var chosenType, keyType, keySystemOptions, keySystemConfigurations, keySystemAccess, currentState, configIdx, keySystemConfiguration, _;
|
|
553
|
+
return _ts_generator(this, function(_state) {
|
|
554
|
+
switch(_state.label){
|
|
452
555
|
case 0:
|
|
453
556
|
// if we iterated over the whole keySystemsType Array, quit on error
|
|
454
557
|
if (index >= keySystemsType.length) {
|
|
455
|
-
throw new
|
|
456
|
-
"configuration has been found in the current " +
|
|
457
|
-
"browser.", {
|
|
558
|
+
throw new _index.EncryptedMediaError("INCOMPATIBLE_KEYSYSTEMS", "No key system compatible with your wanted " + "configuration has been found in the current " + "browser.", {
|
|
458
559
|
keyStatuses: undefined,
|
|
459
560
|
keySystemConfiguration: undefined,
|
|
460
|
-
keySystem: undefined
|
|
561
|
+
keySystem: undefined
|
|
461
562
|
});
|
|
462
563
|
}
|
|
463
|
-
if ((0,
|
|
564
|
+
if ((0, _is_null_or_undefined.default)(eme.requestMediaKeySystemAccess)) {
|
|
464
565
|
throw new Error("requestMediaKeySystemAccess is not implemented in your browser.");
|
|
465
566
|
}
|
|
466
567
|
chosenType = keySystemsType[index];
|
|
467
568
|
keyType = chosenType.keyType, keySystemOptions = chosenType.keySystemOptions;
|
|
468
569
|
keySystemConfigurations = buildKeySystemConfigurations(chosenType);
|
|
469
|
-
|
|
570
|
+
_log.default.debug("DRM", "Request keysystem access", {
|
|
470
571
|
keyType: keyType,
|
|
471
572
|
index: index,
|
|
472
|
-
length: keySystemsType.length
|
|
573
|
+
length: keySystemsType.length
|
|
473
574
|
});
|
|
474
|
-
return [
|
|
575
|
+
return [
|
|
576
|
+
4,
|
|
577
|
+
_media_keys_attacher.default.getAttachedMediaKeysState(mediaElement)
|
|
578
|
+
];
|
|
475
579
|
case 1:
|
|
476
|
-
currentState =
|
|
580
|
+
currentState = _state.sent();
|
|
477
581
|
configIdx = 0;
|
|
478
|
-
|
|
582
|
+
_state.label = 2;
|
|
479
583
|
case 2:
|
|
480
|
-
if (!(configIdx < keySystemConfigurations.length)) return [
|
|
584
|
+
if (!(configIdx < keySystemConfigurations.length)) return [
|
|
585
|
+
3,
|
|
586
|
+
7
|
|
587
|
+
];
|
|
481
588
|
keySystemConfiguration = keySystemConfigurations[configIdx];
|
|
482
589
|
// Check if the current `MediaKeySystemAccess` created cannot be reused here
|
|
483
|
-
if (currentState !== null &&
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
log_1.default.info("DRM", "Found cached compatible keySystem");
|
|
490
|
-
return [2 /*return*/, Promise.resolve({
|
|
590
|
+
if (currentState !== null && !(0, _should_renew_media_key_system_access.default)(currentState.mediaKeySystemAccess.keySystem) && // TODO: Do it with MediaKeySystemAccess.prototype.keySystem instead?
|
|
591
|
+
keyType === currentState.mediaKeySystemAccess.keySystem && eme.implementation === currentState.emeImplementation.implementation && isNewMediaKeySystemConfigurationCompatibleWithPreviousOne(keySystemConfiguration, currentState.askedConfiguration)) {
|
|
592
|
+
_log.default.info("DRM", "Found cached compatible keySystem");
|
|
593
|
+
return [
|
|
594
|
+
2,
|
|
595
|
+
Promise.resolve({
|
|
491
596
|
type: "reuse-media-key-system-access",
|
|
492
597
|
value: {
|
|
493
598
|
mediaKeySystemAccess: currentState.mediaKeySystemAccess,
|
|
494
599
|
askedConfiguration: currentState.askedConfiguration,
|
|
495
600
|
options: keySystemOptions,
|
|
496
|
-
codecSupport: extractCodecSupportListFromConfiguration(currentState.askedConfiguration, currentState.mediaKeySystemAccess.getConfiguration())
|
|
497
|
-
}
|
|
498
|
-
})
|
|
601
|
+
codecSupport: extractCodecSupportListFromConfiguration(currentState.askedConfiguration, currentState.mediaKeySystemAccess.getConfiguration())
|
|
602
|
+
}
|
|
603
|
+
})
|
|
604
|
+
];
|
|
499
605
|
}
|
|
500
|
-
|
|
606
|
+
_state.label = 3;
|
|
501
607
|
case 3:
|
|
502
|
-
|
|
503
|
-
|
|
608
|
+
_state.trys.push([
|
|
609
|
+
3,
|
|
610
|
+
5,
|
|
611
|
+
,
|
|
612
|
+
6
|
|
613
|
+
]);
|
|
614
|
+
return [
|
|
615
|
+
4,
|
|
616
|
+
testKeySystem(eme, keyType, [
|
|
617
|
+
keySystemConfiguration
|
|
618
|
+
])
|
|
619
|
+
];
|
|
504
620
|
case 4:
|
|
505
|
-
keySystemAccess =
|
|
506
|
-
|
|
621
|
+
keySystemAccess = _state.sent();
|
|
622
|
+
_log.default.info("DRM", "Found compatible keysystem", {
|
|
507
623
|
keyType: keyType,
|
|
508
624
|
index: index,
|
|
509
|
-
configIndex: configIdx
|
|
625
|
+
configIndex: configIdx
|
|
510
626
|
});
|
|
511
|
-
return [
|
|
627
|
+
return [
|
|
628
|
+
2,
|
|
629
|
+
{
|
|
512
630
|
type: "create-media-key-system-access",
|
|
513
631
|
value: {
|
|
514
632
|
options: keySystemOptions,
|
|
515
633
|
mediaKeySystemAccess: keySystemAccess,
|
|
516
634
|
askedConfiguration: keySystemConfiguration,
|
|
517
|
-
codecSupport: extractCodecSupportListFromConfiguration(keySystemConfiguration, keySystemAccess.getConfiguration())
|
|
518
|
-
}
|
|
519
|
-
}
|
|
635
|
+
codecSupport: extractCodecSupportListFromConfiguration(keySystemConfiguration, keySystemAccess.getConfiguration())
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
];
|
|
520
639
|
case 5:
|
|
521
|
-
|
|
522
|
-
|
|
640
|
+
_ = _state.sent();
|
|
641
|
+
_log.default.debug("DRM", "Rejected access to keysystem", {
|
|
523
642
|
keyType: keyType,
|
|
524
643
|
index: index,
|
|
525
|
-
configIndex: configIdx
|
|
644
|
+
configIndex: configIdx
|
|
526
645
|
});
|
|
527
646
|
if (cancelSignal.cancellationError !== null) {
|
|
528
647
|
throw cancelSignal.cancellationError;
|
|
529
648
|
}
|
|
530
|
-
return [
|
|
649
|
+
return [
|
|
650
|
+
3,
|
|
651
|
+
6
|
|
652
|
+
];
|
|
531
653
|
case 6:
|
|
532
654
|
configIdx++;
|
|
533
|
-
return [
|
|
534
|
-
|
|
655
|
+
return [
|
|
656
|
+
3,
|
|
657
|
+
2
|
|
658
|
+
];
|
|
659
|
+
case 7:
|
|
660
|
+
return [
|
|
661
|
+
2,
|
|
662
|
+
recursivelyTestKeySystems(index + 1)
|
|
663
|
+
];
|
|
535
664
|
}
|
|
536
665
|
});
|
|
537
|
-
});
|
|
666
|
+
})();
|
|
538
667
|
}
|
|
539
668
|
}
|
|
540
|
-
/**
|
|
541
|
-
* Test a key system configuration, resolves with the MediaKeySystemAccess
|
|
542
|
-
* or reject if the key system is unsupported.
|
|
543
|
-
* @param {Object} eme - current EME implementation
|
|
544
|
-
* @param {string} keyType - The KeySystem string to test (ex: com.microsoft.playready.recommendation)
|
|
545
|
-
* @param {Array.<MediaKeySystemMediaCapability>} keySystemConfigurations - Configurations for this keySystem
|
|
546
|
-
* @returns Promise resolving with the MediaKeySystemAccess. Rejects if unsupported.
|
|
547
|
-
*/
|
|
548
669
|
function testKeySystem(eme, keyType, keySystemConfigurations) {
|
|
549
|
-
return
|
|
550
|
-
var keySystemAccess, mediaKeys, session, initData,
|
|
551
|
-
return
|
|
552
|
-
switch
|
|
553
|
-
case 0:
|
|
670
|
+
return _async_to_generator(function() {
|
|
671
|
+
var keySystemAccess, mediaKeys, session, initData, err;
|
|
672
|
+
return _ts_generator(this, function(_state) {
|
|
673
|
+
switch(_state.label){
|
|
674
|
+
case 0:
|
|
675
|
+
_log.default.debug("DRM", "Calling requestMediaKeySystemAccess", {
|
|
676
|
+
keyType: keyType
|
|
677
|
+
});
|
|
678
|
+
return [
|
|
679
|
+
4,
|
|
680
|
+
eme.requestMediaKeySystemAccess(keyType, keySystemConfigurations)
|
|
681
|
+
];
|
|
554
682
|
case 1:
|
|
555
|
-
keySystemAccess =
|
|
556
|
-
|
|
557
|
-
|
|
683
|
+
keySystemAccess = _state.sent();
|
|
684
|
+
_log.default.debug("DRM", "requestMediaKeySystemAccess succeeded", {
|
|
685
|
+
keyType: keyType
|
|
686
|
+
});
|
|
687
|
+
if (!!(0, _can_rely_on_request_media_key_system_access.canRelyOnRequestMediaKeySystemAccess)(keyType)) return [
|
|
688
|
+
3,
|
|
689
|
+
6
|
|
690
|
+
];
|
|
691
|
+
_state.label = 2;
|
|
558
692
|
case 2:
|
|
559
|
-
|
|
560
|
-
|
|
693
|
+
_state.trys.push([
|
|
694
|
+
2,
|
|
695
|
+
5,
|
|
696
|
+
,
|
|
697
|
+
6
|
|
698
|
+
]);
|
|
699
|
+
return [
|
|
700
|
+
4,
|
|
701
|
+
keySystemAccess.createMediaKeys()
|
|
702
|
+
];
|
|
561
703
|
case 3:
|
|
562
|
-
mediaKeys =
|
|
704
|
+
mediaKeys = _state.sent();
|
|
563
705
|
session = mediaKeys.createSession();
|
|
564
|
-
initData = (0,
|
|
565
|
-
return [
|
|
706
|
+
initData = (0, _generate_init_data.getDummyInitDataForKeySystem)(keyType);
|
|
707
|
+
return [
|
|
708
|
+
4,
|
|
709
|
+
session.generateRequest("cenc", initData)
|
|
710
|
+
];
|
|
566
711
|
case 4:
|
|
567
|
-
|
|
568
|
-
session.close().catch(function
|
|
569
|
-
|
|
712
|
+
_state.sent();
|
|
713
|
+
session.close().catch(function() {
|
|
714
|
+
_log.default.warn("DRM", "Failed to close the dummy session");
|
|
570
715
|
});
|
|
571
|
-
return [
|
|
716
|
+
return [
|
|
717
|
+
3,
|
|
718
|
+
6
|
|
719
|
+
];
|
|
572
720
|
case 5:
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
throw
|
|
576
|
-
case 6:
|
|
721
|
+
err = _state.sent();
|
|
722
|
+
_log.default.debug("DRM", "KeySystemAccess was granted but it is not usable");
|
|
723
|
+
throw err;
|
|
724
|
+
case 6:
|
|
725
|
+
return [
|
|
726
|
+
2,
|
|
727
|
+
keySystemAccess
|
|
728
|
+
];
|
|
577
729
|
}
|
|
578
730
|
});
|
|
579
|
-
});
|
|
731
|
+
})();
|
|
580
732
|
}
|
|
581
733
|
/**
|
|
582
734
|
* Returns `true` if `arr1`'s values are entirely contained in `arr2`.
|
|
583
735
|
* @param {string} arr1
|
|
584
736
|
* @param {string} arr2
|
|
585
737
|
* @return {boolean}
|
|
586
|
-
*/
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
if (!(0, array_includes_1.default)(arr2, arr1[i])) {
|
|
738
|
+
*/ function isArraySubsetOf(arr1, arr2) {
|
|
739
|
+
for(var i = 0; i < arr1.length; i++){
|
|
740
|
+
if (!(0, _array_includes.default)(arr2, arr1[i])) {
|
|
590
741
|
return false;
|
|
591
742
|
}
|
|
592
743
|
}
|