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,5 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
3
11
|
/**
|
|
4
12
|
* Configuration file for the whole player.
|
|
5
13
|
* Feel free to tweak those values if you know what you're doing.
|
|
@@ -8,26 +16,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
16
|
* modifications into account.
|
|
9
17
|
*
|
|
10
18
|
* @type {Object}
|
|
11
|
-
*/
|
|
12
|
-
var DEFAULT_CONFIG = {
|
|
19
|
+
*/ var DEFAULT_CONFIG = {
|
|
13
20
|
/**
|
|
14
21
|
* Default time interval after which a request will timeout, in ms.
|
|
15
22
|
* @type {Number}
|
|
16
|
-
*/
|
|
17
|
-
DEFAULT_REQUEST_TIMEOUT: 30 * 1000,
|
|
23
|
+
*/ DEFAULT_REQUEST_TIMEOUT: 30 * 1000,
|
|
18
24
|
/**
|
|
19
25
|
* Default connection time after which a request will timeout, in ms.
|
|
20
26
|
* @type {Number}
|
|
21
|
-
*/
|
|
22
|
-
DEFAULT_CONNECTION_TIMEOUT: 15 * 1000,
|
|
27
|
+
*/ DEFAULT_CONNECTION_TIMEOUT: 15 * 1000,
|
|
23
28
|
/**
|
|
24
29
|
* Can be either:
|
|
25
30
|
* - "native": Subtitles are all displayed in a <track> element
|
|
26
31
|
* - "html": Subtitles are all displayed in a <div> separated from the video
|
|
27
32
|
* element. Can be useful to display richer TTML subtitles, for example.
|
|
28
33
|
* @type {Object|null}
|
|
29
|
-
*/
|
|
30
|
-
DEFAULT_TEXT_TRACK_MODE: "native",
|
|
34
|
+
*/ DEFAULT_TEXT_TRACK_MODE: "native",
|
|
31
35
|
/**
|
|
32
36
|
* Default behavior for the `enableFastSwitching` loadVideo options.
|
|
33
37
|
*
|
|
@@ -39,8 +43,7 @@ var DEFAULT_CONFIG = {
|
|
|
39
43
|
* bitrate). This allows to have a fast transition when network conditions
|
|
40
44
|
* improve.
|
|
41
45
|
* When disabled, segments of a lower-quality will not be replaced.
|
|
42
|
-
*/
|
|
43
|
-
DEFAULT_ENABLE_FAST_SWITCHING: true,
|
|
46
|
+
*/ DEFAULT_ENABLE_FAST_SWITCHING: true,
|
|
44
47
|
/**
|
|
45
48
|
* In some cases after switching the current track or bitrate, the RxPlayer
|
|
46
49
|
* could be led to go into the `"RELOADING"` state, which corresponds to
|
|
@@ -57,10 +60,8 @@ var DEFAULT_CONFIG = {
|
|
|
57
60
|
* For example: a value of `-0.7` means that will seek back 700 milliseconds
|
|
58
61
|
* when reloading due to a track or bitrate switch with necessitated a
|
|
59
62
|
* reloading.
|
|
60
|
-
*/
|
|
61
|
-
|
|
62
|
-
/** Relative position when switching the bitrate */
|
|
63
|
-
bitrateSwitch: -0.1,
|
|
63
|
+
*/ DELTA_POSITION_AFTER_RELOAD: {
|
|
64
|
+
/** Relative position when switching the bitrate */ bitrateSwitch: -0.1,
|
|
64
65
|
/**
|
|
65
66
|
* Relative position when switching the track.
|
|
66
67
|
*
|
|
@@ -76,8 +77,11 @@ var DEFAULT_CONFIG = {
|
|
|
76
77
|
*
|
|
77
78
|
* "Other" mainly concern text track, where seeking back could even be
|
|
78
79
|
* annoying, so that behavior has been disabled in that case.
|
|
79
|
-
*/
|
|
80
|
-
|
|
80
|
+
*/ trackSwitch: {
|
|
81
|
+
audio: 0,
|
|
82
|
+
video: 0,
|
|
83
|
+
other: 0
|
|
84
|
+
}
|
|
81
85
|
},
|
|
82
86
|
/**
|
|
83
87
|
* Behavior of the RxPlayer when encountering a whole other codec on a already
|
|
@@ -92,8 +96,7 @@ var DEFAULT_CONFIG = {
|
|
|
92
96
|
*
|
|
93
97
|
* - "reload": Every time a new incompatible codec is encountered on a
|
|
94
98
|
* given SourceBuffer, we will reload the MediaSource.
|
|
95
|
-
*/
|
|
96
|
-
DEFAULT_CODEC_SWITCHING_BEHAVIOR: "continue",
|
|
99
|
+
*/ DEFAULT_CODEC_SWITCHING_BEHAVIOR: "continue",
|
|
97
100
|
/**
|
|
98
101
|
* Specifies the behavior when all audio tracks are not playable.
|
|
99
102
|
*
|
|
@@ -101,8 +104,7 @@ var DEFAULT_CONFIG = {
|
|
|
101
104
|
* - If set to `"error"`, an error will be thrown to indicate that the audio tracks could not be played.
|
|
102
105
|
*
|
|
103
106
|
* Note: If neither the audio nor the video tracks are playable, an error will be thrown regardless of this setting.
|
|
104
|
-
*/
|
|
105
|
-
DEFAULT_AUDIO_TRACKS_NOT_PLAYABLE_BEHAVIOR: "error",
|
|
107
|
+
*/ DEFAULT_AUDIO_TRACKS_NOT_PLAYABLE_BEHAVIOR: "error",
|
|
106
108
|
/**
|
|
107
109
|
* Specifies the behavior when all video tracks are not playable.
|
|
108
110
|
*
|
|
@@ -110,74 +112,65 @@ var DEFAULT_CONFIG = {
|
|
|
110
112
|
* - If set to `"error"`, an error will be thrown to indicate that the video tracks could not be played.
|
|
111
113
|
*
|
|
112
114
|
* Note: If neither the audio nor the video tracks are playable, an error will be thrown regardless of this setting.
|
|
113
|
-
*/
|
|
114
|
-
DEFAULT_VIDEO_TRACKS_NOT_PLAYABLE_BEHAVIOR: "error",
|
|
115
|
+
*/ DEFAULT_VIDEO_TRACKS_NOT_PLAYABLE_BEHAVIOR: "error",
|
|
115
116
|
/**
|
|
116
117
|
* If set to true, video through loadVideo will auto play by default
|
|
117
118
|
* @type {Boolean}
|
|
118
|
-
*/
|
|
119
|
-
DEFAULT_AUTO_PLAY: false,
|
|
119
|
+
*/ DEFAULT_AUTO_PLAY: false,
|
|
120
120
|
/**
|
|
121
121
|
* Default buffer goal in seconds.
|
|
122
122
|
* Once enough content has been downloaded to fill the buffer up to
|
|
123
123
|
* ``current position + DEFAULT_WANTED_BUFFER_AHEAD", we will stop downloading
|
|
124
124
|
* content.
|
|
125
125
|
* @type {Number}
|
|
126
|
-
*/
|
|
127
|
-
DEFAULT_WANTED_BUFFER_AHEAD: 30,
|
|
126
|
+
*/ DEFAULT_WANTED_BUFFER_AHEAD: 30,
|
|
128
127
|
/**
|
|
129
128
|
* Default max buffer size ahead of the current position in seconds.
|
|
130
129
|
* The buffer _after_ this limit will be garbage collected.
|
|
131
130
|
* Set to Infinity for no limit.
|
|
132
131
|
* @type {Number}
|
|
133
|
-
*/
|
|
134
|
-
DEFAULT_MAX_BUFFER_AHEAD: Infinity,
|
|
132
|
+
*/ DEFAULT_MAX_BUFFER_AHEAD: Infinity,
|
|
135
133
|
/**
|
|
136
134
|
* Default max buffer size ahead of the current position in seconds.
|
|
137
135
|
* The buffer _before_ this limit will be garbage collected.
|
|
138
136
|
* Set to Infinity for no limit.
|
|
139
137
|
* @type {Number}
|
|
140
|
-
*/
|
|
141
|
-
DEFAULT_MAX_BUFFER_BEHIND: Infinity,
|
|
138
|
+
*/ DEFAULT_MAX_BUFFER_BEHIND: Infinity,
|
|
142
139
|
/**
|
|
143
140
|
* Default video buffer memory limit in kilobytes.
|
|
144
141
|
* Once enough video content has been downloaded to fill the buffer up to
|
|
145
142
|
* DEFAULT_MAX_VIDEO_BUFFER_SIZE , we will stop downloading
|
|
146
143
|
* content.
|
|
147
144
|
* @type {Number}
|
|
148
|
-
*/
|
|
149
|
-
DEFAULT_MAX_VIDEO_BUFFER_SIZE: Infinity,
|
|
145
|
+
*/ DEFAULT_MAX_VIDEO_BUFFER_SIZE: Infinity,
|
|
150
146
|
/**
|
|
151
147
|
* Maximum possible buffer ahead for each type of buffer, to avoid too much
|
|
152
148
|
* memory usage when playing for a long time.
|
|
153
149
|
* Equal to Infinity if not defined here.
|
|
154
150
|
* @type {Object}
|
|
155
|
-
*/
|
|
156
|
-
|
|
157
|
-
text: 5 * 60 * 60,
|
|
151
|
+
*/ MAXIMUM_MAX_BUFFER_AHEAD: {
|
|
152
|
+
text: 5 * 60 * 60
|
|
158
153
|
},
|
|
159
154
|
/**
|
|
160
155
|
* Minimum possible buffer ahead for each type of buffer, to avoid Garbage
|
|
161
156
|
* Collecting too much data when it would have adverse effects.
|
|
162
157
|
* Equal to `0` if not defined here.
|
|
163
158
|
* @type {Object}
|
|
164
|
-
*/
|
|
165
|
-
MINIMUM_MAX_BUFFER_AHEAD: {
|
|
159
|
+
*/ MINIMUM_MAX_BUFFER_AHEAD: {
|
|
166
160
|
// Text segments are both much lighter on resources and might
|
|
167
161
|
// actually be much larger than other types of segments in terms
|
|
168
162
|
// of duration. Let's make an exception here by authorizing a
|
|
169
163
|
// larger text buffer ahead, to avoid unnecesarily reloading the
|
|
170
164
|
// same text track.
|
|
171
|
-
text: 2 * 60
|
|
165
|
+
text: 2 * 60
|
|
172
166
|
},
|
|
173
167
|
/**
|
|
174
168
|
* Maximum possible buffer behind for each type of buffer, to avoid too much
|
|
175
169
|
* memory usage when playing for a long time.
|
|
176
170
|
* Equal to Infinity if not defined here.
|
|
177
171
|
* @type {Object}
|
|
178
|
-
*/
|
|
179
|
-
|
|
180
|
-
text: 5 * 60 * 60,
|
|
172
|
+
*/ MAXIMUM_MAX_BUFFER_BEHIND: {
|
|
173
|
+
text: 5 * 60 * 60
|
|
181
174
|
},
|
|
182
175
|
/**
|
|
183
176
|
* Default bitrate ceils initially set as the first content begins.
|
|
@@ -190,8 +183,7 @@ var DEFAULT_CONFIG = {
|
|
|
190
183
|
* These values are only useful for the first content played, as consecutive
|
|
191
184
|
* play will always take the last set one.
|
|
192
185
|
* @type {Object}
|
|
193
|
-
*/
|
|
194
|
-
DEFAULT_BASE_BANDWIDTH: 0,
|
|
186
|
+
*/ DEFAULT_BASE_BANDWIDTH: 0,
|
|
195
187
|
/**
|
|
196
188
|
* Delay after which, if the page is hidden, the user is considered inactive
|
|
197
189
|
* on the current video.
|
|
@@ -199,15 +191,13 @@ var DEFAULT_CONFIG = {
|
|
|
199
191
|
* Allow to enforce specific optimizations when the page is not shown.
|
|
200
192
|
* @see DEFAULT_THROTTLE_WHEN_HIDDEN
|
|
201
193
|
* @type {Number}
|
|
202
|
-
*/
|
|
203
|
-
INACTIVITY_DELAY: 60 * 1000,
|
|
194
|
+
*/ INACTIVITY_DELAY: 60 * 1000,
|
|
204
195
|
/**
|
|
205
196
|
* If true, if the video is considered in a "hidden" state for a delay specified by
|
|
206
197
|
* the INACTIVITY DELAY config property, we throttle automatically to the video
|
|
207
198
|
* representation with the lowest bitrate.
|
|
208
199
|
* @type {Boolean}
|
|
209
|
-
*/
|
|
210
|
-
DEFAULT_THROTTLE_VIDEO_BITRATE_WHEN_HIDDEN: false,
|
|
200
|
+
*/ DEFAULT_THROTTLE_VIDEO_BITRATE_WHEN_HIDDEN: false,
|
|
211
201
|
/**
|
|
212
202
|
* Default video resolution limit behavior.
|
|
213
203
|
*
|
|
@@ -216,31 +206,27 @@ var DEFAULT_CONFIG = {
|
|
|
216
206
|
*
|
|
217
207
|
* Here set to "none" by default to disable throttling.
|
|
218
208
|
* @type {Boolean}
|
|
219
|
-
*/
|
|
220
|
-
DEFAULT_VIDEO_RESOLUTION_LIMIT: "none",
|
|
209
|
+
*/ DEFAULT_VIDEO_RESOLUTION_LIMIT: "none",
|
|
221
210
|
/**
|
|
222
211
|
* Default initial live gap considered if no presentation delay has been
|
|
223
212
|
* suggested, in seconds.
|
|
224
213
|
* @type {Number}
|
|
225
|
-
*/
|
|
226
|
-
DEFAULT_LIVE_GAP: {
|
|
214
|
+
*/ DEFAULT_LIVE_GAP: {
|
|
227
215
|
DEFAULT: 10,
|
|
228
|
-
LOW_LATENCY: 3.5
|
|
216
|
+
LOW_LATENCY: 3.5
|
|
229
217
|
},
|
|
230
218
|
/**
|
|
231
219
|
* Maximum time, in seconds, the player should automatically skip when stalled
|
|
232
220
|
* because of a current hole in the buffer.
|
|
233
221
|
* Bear in mind that this might seek over not-yet-downloaded/pushed segments.
|
|
234
222
|
* @type {Number}
|
|
235
|
-
*/
|
|
236
|
-
BUFFER_DISCONTINUITY_THRESHOLD: 0.2,
|
|
223
|
+
*/ BUFFER_DISCONTINUITY_THRESHOLD: 0.2,
|
|
237
224
|
/**
|
|
238
225
|
* Ratio used to know if an already loaded segment should be re-buffered.
|
|
239
226
|
* We re-load the given segment if the current one times that ratio is
|
|
240
227
|
* inferior to the new one.
|
|
241
228
|
* @type {Number}
|
|
242
|
-
*/
|
|
243
|
-
BITRATE_REBUFFERING_RATIO: 1.5,
|
|
229
|
+
*/ BITRATE_REBUFFERING_RATIO: 1.5,
|
|
244
230
|
/**
|
|
245
231
|
* The default number of times a manifest request will be re-performed
|
|
246
232
|
* when loaded/refreshed if the request finishes on an error which
|
|
@@ -251,8 +237,7 @@ var DEFAULT_CONFIG = {
|
|
|
251
237
|
* - if the error is an HTTP error code, but not a 500-smthg or a 404, no
|
|
252
238
|
* retry will be performed.
|
|
253
239
|
* @type Number
|
|
254
|
-
*/
|
|
255
|
-
DEFAULT_MAX_MANIFEST_REQUEST_RETRY: 4,
|
|
240
|
+
*/ DEFAULT_MAX_MANIFEST_REQUEST_RETRY: 4,
|
|
256
241
|
/**
|
|
257
242
|
* Default delay, in seconds, during which a CDN will be "downgraded".
|
|
258
243
|
*
|
|
@@ -262,8 +247,7 @@ var DEFAULT_CONFIG = {
|
|
|
262
247
|
*
|
|
263
248
|
* This value is the amount of time this CDN will be "less considered" than the
|
|
264
249
|
* alternatives.
|
|
265
|
-
*/
|
|
266
|
-
DEFAULT_CDN_DOWNGRADE_TIME: 60,
|
|
250
|
+
*/ DEFAULT_CDN_DOWNGRADE_TIME: 60,
|
|
267
251
|
/**
|
|
268
252
|
* The default number of times a segment request will be re-performed when
|
|
269
253
|
* on error which justify a retry.
|
|
@@ -273,8 +257,7 @@ var DEFAULT_CONFIG = {
|
|
|
273
257
|
* - if the error is an HTTP error code, but not a 500-smthg or a 404, no
|
|
274
258
|
* retry will be performed.
|
|
275
259
|
* @type Number
|
|
276
|
-
*/
|
|
277
|
-
DEFAULT_MAX_REQUESTS_RETRY_ON_ERROR: 4,
|
|
260
|
+
*/ DEFAULT_MAX_REQUESTS_RETRY_ON_ERROR: 4,
|
|
278
261
|
/**
|
|
279
262
|
* Initial backoff delay when a segment / manifest download fails, in
|
|
280
263
|
* milliseconds.
|
|
@@ -284,10 +267,9 @@ var DEFAULT_CONFIG = {
|
|
|
284
267
|
*
|
|
285
268
|
* Please note that this delay is not exact, as it will be fuzzed.
|
|
286
269
|
* @type {Number}
|
|
287
|
-
*/
|
|
288
|
-
INITIAL_BACKOFF_DELAY_BASE: {
|
|
270
|
+
*/ INITIAL_BACKOFF_DELAY_BASE: {
|
|
289
271
|
REGULAR: 200,
|
|
290
|
-
LOW_LATENCY: 50
|
|
272
|
+
LOW_LATENCY: 50
|
|
291
273
|
},
|
|
292
274
|
/**
|
|
293
275
|
* Maximum backoff delay when a segment / manifest download fails, in
|
|
@@ -295,11 +277,17 @@ var DEFAULT_CONFIG = {
|
|
|
295
277
|
*
|
|
296
278
|
* Please note that this delay is not exact, as it will be fuzzed.
|
|
297
279
|
* @type {Number}
|
|
298
|
-
*/
|
|
299
|
-
MAX_BACKOFF_DELAY_BASE: {
|
|
280
|
+
*/ MAX_BACKOFF_DELAY_BASE: {
|
|
300
281
|
REGULAR: 3000,
|
|
301
|
-
LOW_LATENCY: 1000
|
|
282
|
+
LOW_LATENCY: 1000
|
|
302
283
|
},
|
|
284
|
+
/**
|
|
285
|
+
* Maximum delay that can be applied from a Retry-After response field, in
|
|
286
|
+
* milliseconds.
|
|
287
|
+
*
|
|
288
|
+
* Longer delays will be capped to avoid blocking request retries for too long.
|
|
289
|
+
* @type {Number}
|
|
290
|
+
*/ MAX_RETRY_AFTER_DELAY: 60 * 1000,
|
|
303
291
|
/**
|
|
304
292
|
* Minimum interval at which playback information samples will be taken. This
|
|
305
293
|
* variable is for the "regular" mediasource strategy (that is, not for the
|
|
@@ -311,18 +299,15 @@ var DEFAULT_CONFIG = {
|
|
|
311
299
|
* Keep in mind this is the minimum interval. This logic will also be
|
|
312
300
|
* triggered when various events of the media element are received.
|
|
313
301
|
* @type {Number}
|
|
314
|
-
*/
|
|
315
|
-
SAMPLING_INTERVAL_MEDIASOURCE: 1000,
|
|
302
|
+
*/ SAMPLING_INTERVAL_MEDIASOURCE: 1000,
|
|
316
303
|
/**
|
|
317
304
|
* Same than SAMPLING_INTERVAL_MEDIASOURCE but for lowLatency mode.
|
|
318
305
|
* @type {Number}
|
|
319
|
-
*/
|
|
320
|
-
SAMPLING_INTERVAL_LOW_LATENCY: 500,
|
|
306
|
+
*/ SAMPLING_INTERVAL_LOW_LATENCY: 500,
|
|
321
307
|
/**
|
|
322
308
|
* Same than SAMPLING_INTERVAL_MEDIASOURCE but for the directfile API.
|
|
323
309
|
* @type {Number}
|
|
324
|
-
*/
|
|
325
|
-
SAMPLING_INTERVAL_NO_MEDIASOURCE: 500,
|
|
310
|
+
*/ SAMPLING_INTERVAL_NO_MEDIASOURCE: 500,
|
|
326
311
|
/**
|
|
327
312
|
* Amount of buffer to have ahead of the current position before we may
|
|
328
313
|
* consider buffer-based adaptive estimates, in seconds.
|
|
@@ -333,8 +318,7 @@ var DEFAULT_CONFIG = {
|
|
|
333
318
|
*
|
|
334
319
|
* To avoid getting in-and-out of the buffer-based logic all the time, it
|
|
335
320
|
* should be set higher than `ABR_EXIT_BUFFER_BASED_ALGO`.
|
|
336
|
-
*/
|
|
337
|
-
ABR_ENTER_BUFFER_BASED_ALGO: 10,
|
|
321
|
+
*/ ABR_ENTER_BUFFER_BASED_ALGO: 10,
|
|
338
322
|
/**
|
|
339
323
|
* Below this amount of buffer ahead of the current position, in seconds, we
|
|
340
324
|
* will stop using buffer-based estimate in our adaptive logic to select a
|
|
@@ -346,8 +330,7 @@ var DEFAULT_CONFIG = {
|
|
|
346
330
|
*
|
|
347
331
|
* To avoid getting in-and-out of the buffer-based logic all the time, it
|
|
348
332
|
* should be set lower than `ABR_ENTER_BUFFER_BASED_ALGO`.
|
|
349
|
-
*/
|
|
350
|
-
ABR_EXIT_BUFFER_BASED_ALGO: 5,
|
|
333
|
+
*/ ABR_EXIT_BUFFER_BASED_ALGO: 5,
|
|
351
334
|
/**
|
|
352
335
|
* Minimum number of bytes sampled before we trust the estimate.
|
|
353
336
|
* If we have not sampled much data, our estimate may not be accurate
|
|
@@ -356,8 +339,7 @@ var DEFAULT_CONFIG = {
|
|
|
356
339
|
* default estimate.
|
|
357
340
|
* This specific value is based on experimentations.
|
|
358
341
|
* @type {Number}
|
|
359
|
-
*/
|
|
360
|
-
ABR_MINIMUM_TOTAL_BYTES: 150e3,
|
|
342
|
+
*/ ABR_MINIMUM_TOTAL_BYTES: 150e3,
|
|
361
343
|
/**
|
|
362
344
|
* Minimum number of bytes, under which samples are discarded.
|
|
363
345
|
* Our models do not include latency information, so connection startup time
|
|
@@ -366,25 +348,22 @@ var DEFAULT_CONFIG = {
|
|
|
366
348
|
* our estimate to be too low.
|
|
367
349
|
* This specific value is based on experimentation.
|
|
368
350
|
* @type {Number}
|
|
369
|
-
*/
|
|
370
|
-
ABR_MINIMUM_CHUNK_SIZE: 16e3,
|
|
351
|
+
*/ ABR_MINIMUM_CHUNK_SIZE: 16e3,
|
|
371
352
|
/**
|
|
372
353
|
* Factor with which is multiplied the bandwidth estimate when the ABR is in
|
|
373
354
|
* starvation mode.
|
|
374
355
|
* @type {Object}
|
|
375
|
-
*/
|
|
376
|
-
ABR_STARVATION_FACTOR: {
|
|
356
|
+
*/ ABR_STARVATION_FACTOR: {
|
|
377
357
|
DEFAULT: 0.72,
|
|
378
|
-
LOW_LATENCY: 0.72
|
|
358
|
+
LOW_LATENCY: 0.72
|
|
379
359
|
},
|
|
380
360
|
/**
|
|
381
361
|
* Factor with which is multiplied the bandwidth estimate when the ABR is not
|
|
382
362
|
* in starvation mode.
|
|
383
363
|
* @type {Object}
|
|
384
|
-
*/
|
|
385
|
-
ABR_REGULAR_FACTOR: {
|
|
364
|
+
*/ ABR_REGULAR_FACTOR: {
|
|
386
365
|
DEFAULT: 0.72,
|
|
387
|
-
LOW_LATENCY: 0.72
|
|
366
|
+
LOW_LATENCY: 0.72
|
|
388
367
|
},
|
|
389
368
|
/**
|
|
390
369
|
* If a media buffer has less than ABR_STARVATION_GAP in seconds ahead of the
|
|
@@ -404,14 +383,13 @@ var DEFAULT_CONFIG = {
|
|
|
404
383
|
* re-calculated from this single request.
|
|
405
384
|
*
|
|
406
385
|
* @type {Object}
|
|
407
|
-
*/
|
|
408
|
-
ABR_STARVATION_GAP: {
|
|
386
|
+
*/ ABR_STARVATION_GAP: {
|
|
409
387
|
DEFAULT: 5,
|
|
410
|
-
LOW_LATENCY: 5
|
|
388
|
+
LOW_LATENCY: 5
|
|
411
389
|
},
|
|
412
390
|
OUT_OF_STARVATION_GAP: {
|
|
413
391
|
DEFAULT: 7,
|
|
414
|
-
LOW_LATENCY: 7
|
|
392
|
+
LOW_LATENCY: 7
|
|
415
393
|
},
|
|
416
394
|
/**
|
|
417
395
|
* This is a security to avoid going into starvation mode when the content is
|
|
@@ -421,8 +399,7 @@ var DEFAULT_CONFIG = {
|
|
|
421
399
|
* (which equals to the current position + the available buffer ahead of it)
|
|
422
400
|
* is equal or higher than this value.
|
|
423
401
|
* @type {Number}
|
|
424
|
-
*/
|
|
425
|
-
ABR_STARVATION_DURATION_DELTA: 0.1,
|
|
402
|
+
*/ ABR_STARVATION_DURATION_DELTA: 0.1,
|
|
426
403
|
/**
|
|
427
404
|
* Half-life, in seconds for a fastly-evolving exponential weighted moving
|
|
428
405
|
* average.
|
|
@@ -430,8 +407,7 @@ var DEFAULT_CONFIG = {
|
|
|
430
407
|
* falling quickly.
|
|
431
408
|
* Should be kept to a lower number than ABR_SLOW_EMA for coherency reasons.
|
|
432
409
|
* @type {Number}
|
|
433
|
-
*/
|
|
434
|
-
ABR_FAST_EMA: 2,
|
|
410
|
+
*/ ABR_FAST_EMA: 2,
|
|
435
411
|
/**
|
|
436
412
|
* Half-life, in seconds for a slowly-evolving exponential weighted moving
|
|
437
413
|
* average.
|
|
@@ -439,34 +415,30 @@ var DEFAULT_CONFIG = {
|
|
|
439
415
|
* bandwidth variation, on the higher and on the lower side.
|
|
440
416
|
* Should be kept to a higher number than ABR_FAST_EMA for coherency reasons.
|
|
441
417
|
* @type {Number}
|
|
442
|
-
*/
|
|
443
|
-
ABR_SLOW_EMA: 10,
|
|
418
|
+
*/ ABR_SLOW_EMA: 10,
|
|
444
419
|
/**
|
|
445
420
|
* Number of seconds ahead in the buffer after which playback will resume when
|
|
446
421
|
* seeking on an unbuffered part of the content.
|
|
447
422
|
* @type {Number}
|
|
448
|
-
*/
|
|
449
|
-
RESUME_GAP_AFTER_SEEKING: {
|
|
423
|
+
*/ RESUME_GAP_AFTER_SEEKING: {
|
|
450
424
|
DEFAULT: 1.5,
|
|
451
|
-
LOW_LATENCY: 0.5
|
|
425
|
+
LOW_LATENCY: 0.5
|
|
452
426
|
},
|
|
453
427
|
/**
|
|
454
428
|
* Number of seconds ahead in the buffer after which playback will resume when
|
|
455
429
|
* the player was rebuffering due to a low readyState.
|
|
456
430
|
* @type {Number}
|
|
457
|
-
*/
|
|
458
|
-
RESUME_GAP_AFTER_NOT_ENOUGH_DATA: {
|
|
431
|
+
*/ RESUME_GAP_AFTER_NOT_ENOUGH_DATA: {
|
|
459
432
|
DEFAULT: 0.5,
|
|
460
|
-
LOW_LATENCY: 0.5
|
|
433
|
+
LOW_LATENCY: 0.5
|
|
461
434
|
},
|
|
462
435
|
/**
|
|
463
436
|
* Number of seconds ahead in the buffer after which playback will resume
|
|
464
437
|
* after the player went through a buffering step.
|
|
465
438
|
* @type {Number}
|
|
466
|
-
*/
|
|
467
|
-
RESUME_GAP_AFTER_BUFFERING: {
|
|
439
|
+
*/ RESUME_GAP_AFTER_BUFFERING: {
|
|
468
440
|
DEFAULT: 5,
|
|
469
|
-
LOW_LATENCY: 0.5
|
|
441
|
+
LOW_LATENCY: 0.5
|
|
470
442
|
},
|
|
471
443
|
/**
|
|
472
444
|
* Maximum number of seconds in the buffer based on which a "rebuffering"
|
|
@@ -475,10 +447,9 @@ var DEFAULT_CONFIG = {
|
|
|
475
447
|
* buffer. This mostly happen when seeking in an unbuffered part or when not
|
|
476
448
|
* enough buffer is ahead of the current position.
|
|
477
449
|
* @type {Number}
|
|
478
|
-
*/
|
|
479
|
-
REBUFFERING_GAP: {
|
|
450
|
+
*/ REBUFFERING_GAP: {
|
|
480
451
|
DEFAULT: 0.5,
|
|
481
|
-
LOW_LATENCY: 0.2
|
|
452
|
+
LOW_LATENCY: 0.2
|
|
482
453
|
},
|
|
483
454
|
/**
|
|
484
455
|
* Amount of time (in seconds) with data ahead of the current position, at
|
|
@@ -486,8 +457,7 @@ var DEFAULT_CONFIG = {
|
|
|
486
457
|
*
|
|
487
458
|
* If the media element has this amount of data in advance or more but
|
|
488
459
|
* playback cannot begin, the player will consider it "freezing".
|
|
489
|
-
*/
|
|
490
|
-
MINIMUM_BUFFER_AMOUNT_BEFORE_FREEZING: 2,
|
|
460
|
+
*/ MINIMUM_BUFFER_AMOUNT_BEFORE_FREEZING: 2,
|
|
491
461
|
/**
|
|
492
462
|
* A media whose position inexplicably does not increment despite playing is
|
|
493
463
|
* called as "freezing" in the RxPlayer.
|
|
@@ -498,8 +468,7 @@ var DEFAULT_CONFIG = {
|
|
|
498
468
|
*
|
|
499
469
|
* Those interactions can be costly in time before playback continue, so it
|
|
500
470
|
* should be set at a sufficiently high value to avoid false positives.
|
|
501
|
-
*/
|
|
502
|
-
UNFREEZING_SEEK_DELAY: 6000,
|
|
471
|
+
*/ UNFREEZING_SEEK_DELAY: 6000,
|
|
503
472
|
/**
|
|
504
473
|
* A media whose position inexplicably does not increment despite playing is
|
|
505
474
|
* called as "freezing" in the RxPlayer.
|
|
@@ -510,8 +479,7 @@ var DEFAULT_CONFIG = {
|
|
|
510
479
|
* If the media is still "freezing" after waiting for `FREEZING_STALLED_DELAY`
|
|
511
480
|
* milliseconds, the RxPlayer will emit a BUFFERING state through its API to
|
|
512
481
|
* notify that the player cannot currently advance.
|
|
513
|
-
*/
|
|
514
|
-
FREEZING_STALLED_DELAY: 600,
|
|
482
|
+
*/ FREEZING_STALLED_DELAY: 600,
|
|
515
483
|
/**
|
|
516
484
|
* A media whose position inexplicably does not increment despite playing is
|
|
517
485
|
* called as "freezing" in the RxPlayer.
|
|
@@ -522,8 +490,7 @@ var DEFAULT_CONFIG = {
|
|
|
522
490
|
*
|
|
523
491
|
* This should be kept short enough as the goal is just to un-freeze lower-level
|
|
524
492
|
* buffers.
|
|
525
|
-
*/
|
|
526
|
-
UNFREEZING_DELTA_POSITION: 0.001,
|
|
493
|
+
*/ UNFREEZING_DELTA_POSITION: 0.001,
|
|
527
494
|
/**
|
|
528
495
|
* `FREEZING` is a situation where the playback does not seem to advance despite
|
|
529
496
|
* all web indicators telling us we can.
|
|
@@ -544,11 +511,10 @@ var DEFAULT_CONFIG = {
|
|
|
544
511
|
* `FREEZING_FLUSH_FAILURE_DELAY.POSITION_DELTA` seconds from it) is
|
|
545
512
|
* encountered again, we will consider that the flushing attempt was unsuccesful
|
|
546
513
|
* and try more agressive solutions (such as reloading the content).
|
|
547
|
-
*/
|
|
548
|
-
FREEZING_FLUSH_FAILURE_DELAY: {
|
|
514
|
+
*/ FREEZING_FLUSH_FAILURE_DELAY: {
|
|
549
515
|
MAXIMUM: 20000,
|
|
550
516
|
MINIMUM: 4000,
|
|
551
|
-
POSITION_DELTA: 1
|
|
517
|
+
POSITION_DELTA: 1
|
|
552
518
|
},
|
|
553
519
|
/**
|
|
554
520
|
* The RxPlayer has a recurring logic which will synchronize the browser's
|
|
@@ -563,8 +529,7 @@ var DEFAULT_CONFIG = {
|
|
|
563
529
|
* This value thus set an amount of milliseconds we might want to wait before
|
|
564
530
|
* being sure that the buffered time ranges should have considered a segment
|
|
565
531
|
* that has been pushed.
|
|
566
|
-
*/
|
|
567
|
-
SEGMENT_SYNCHRONIZATION_DELAY: 1500,
|
|
532
|
+
*/ SEGMENT_SYNCHRONIZATION_DELAY: 1500,
|
|
568
533
|
/**
|
|
569
534
|
* The `SEGMENT_SYNCHRONIZATION_DELAY` defined in this same configuration
|
|
570
535
|
* object only needs to be used if it appears that the current buffered
|
|
@@ -579,8 +544,7 @@ var DEFAULT_CONFIG = {
|
|
|
579
544
|
* seconds, we can begin to trust the reported buffered time ranges.
|
|
580
545
|
*
|
|
581
546
|
* Should generally be inferior to `MAX_TIME_MISSING_FROM_COMPLETE_SEGMENT`.
|
|
582
|
-
*/
|
|
583
|
-
MISSING_DATA_TRIGGER_SYNC_DELAY: 0.1,
|
|
547
|
+
*/ MISSING_DATA_TRIGGER_SYNC_DELAY: 0.1,
|
|
584
548
|
/**
|
|
585
549
|
* Maximum authorized difference between what we calculated to be the
|
|
586
550
|
* beginning or end of the segment in a media buffer and what we
|
|
@@ -590,8 +554,7 @@ var DEFAULT_CONFIG = {
|
|
|
590
554
|
* will infer that the segment has been garbage collected and we might try to
|
|
591
555
|
* re-download it.
|
|
592
556
|
* @type {Number}
|
|
593
|
-
*/
|
|
594
|
-
MAX_TIME_MISSING_FROM_COMPLETE_SEGMENT: 0.15,
|
|
557
|
+
*/ MAX_TIME_MISSING_FROM_COMPLETE_SEGMENT: 0.15,
|
|
595
558
|
/**
|
|
596
559
|
* The maximum authorized difference, in seconds, between the real buffered
|
|
597
560
|
* time of a given chunk and what the segment information of the Manifest
|
|
@@ -605,8 +568,7 @@ var DEFAULT_CONFIG = {
|
|
|
605
568
|
* linked to the concerned segment and to segments wrongly believed to be
|
|
606
569
|
* partly garbage collected (instead of complete segments).
|
|
607
570
|
* @type {Number}
|
|
608
|
-
*/
|
|
609
|
-
MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE: 0.4,
|
|
571
|
+
*/ MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE: 0.4,
|
|
610
572
|
/**
|
|
611
573
|
* The maximum authorized difference, in seconds, between the duration a
|
|
612
574
|
* segment should have according to the Manifest and the actual duration it
|
|
@@ -621,8 +583,7 @@ var DEFAULT_CONFIG = {
|
|
|
621
583
|
* partly garbage collected (instead of complete segments). This last point
|
|
622
584
|
* could lead to unnecessary segment re-downloading.
|
|
623
585
|
* @type {Number}
|
|
624
|
-
*/
|
|
625
|
-
MAX_MANIFEST_BUFFERED_DURATION_DIFFERENCE: 0.3,
|
|
586
|
+
*/ MAX_MANIFEST_BUFFERED_DURATION_DIFFERENCE: 0.3,
|
|
626
587
|
/**
|
|
627
588
|
* Minimum duration in seconds a segment should be into a buffered range to be
|
|
628
589
|
* considered as part of that range.
|
|
@@ -640,8 +601,7 @@ var DEFAULT_CONFIG = {
|
|
|
640
601
|
* better logic would be to also consider the duration of a segment. Though
|
|
641
602
|
* this logic could lead to bugs with the current code.
|
|
642
603
|
* @type {Number}
|
|
643
|
-
*/
|
|
644
|
-
MINIMUM_SEGMENT_SIZE: 0.001,
|
|
604
|
+
*/ MINIMUM_SEGMENT_SIZE: 0.001,
|
|
645
605
|
/**
|
|
646
606
|
* Append windows allow to filter media data from segments if they are outside
|
|
647
607
|
* a given limit.
|
|
@@ -658,10 +618,9 @@ var DEFAULT_CONFIG = {
|
|
|
658
618
|
* Those securities are added to the set windows (substracted from the window
|
|
659
619
|
* start and added to the window end) to avoid those problems.
|
|
660
620
|
* @type {Object}
|
|
661
|
-
*/
|
|
662
|
-
APPEND_WINDOW_SECURITIES: {
|
|
621
|
+
*/ APPEND_WINDOW_SECURITIES: {
|
|
663
622
|
START: 0.2,
|
|
664
|
-
END: 0.1
|
|
623
|
+
END: 0.1
|
|
665
624
|
},
|
|
666
625
|
/**
|
|
667
626
|
* Maximum interval at which text tracks are refreshed in an "html"
|
|
@@ -678,8 +637,7 @@ var DEFAULT_CONFIG = {
|
|
|
678
637
|
* interval.
|
|
679
638
|
*
|
|
680
639
|
* @type {Number}
|
|
681
|
-
*/
|
|
682
|
-
MAXIMUM_HTML_TEXT_TRACK_UPDATE_INTERVAL: 50,
|
|
640
|
+
*/ MAXIMUM_HTML_TEXT_TRACK_UPDATE_INTERVAL: 50,
|
|
683
641
|
/**
|
|
684
642
|
* On browsers with no ResizeObserver API, this will be the interval in
|
|
685
643
|
* milliseconds at which we should check if the text track element has
|
|
@@ -695,8 +653,7 @@ var DEFAULT_CONFIG = {
|
|
|
695
653
|
* changed the element's size (e.g. when going to fullscreen mode).
|
|
696
654
|
*
|
|
697
655
|
* @type {Number}
|
|
698
|
-
*/
|
|
699
|
-
TEXT_TRACK_SIZE_CHECKS_INTERVAL: 250,
|
|
656
|
+
*/ TEXT_TRACK_SIZE_CHECKS_INTERVAL: 250,
|
|
700
657
|
/**
|
|
701
658
|
* The Buffer padding is a time offset from the current time that affects
|
|
702
659
|
* the buffer.
|
|
@@ -713,11 +670,10 @@ var DEFAULT_CONFIG = {
|
|
|
713
670
|
* Keeping the padding too high would delay visible quality increase.
|
|
714
671
|
*
|
|
715
672
|
* @type {Object}
|
|
716
|
-
*/
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
other: 1, // tracks which are not audio/video (like text).
|
|
673
|
+
*/ BUFFER_PADDING: {
|
|
674
|
+
audio: 1,
|
|
675
|
+
video: 3,
|
|
676
|
+
other: 1
|
|
721
677
|
},
|
|
722
678
|
/**
|
|
723
679
|
* Segments of different types are downloaded by steps:
|
|
@@ -781,15 +737,14 @@ var DEFAULT_CONFIG = {
|
|
|
781
737
|
* before Segments of a newer step begin.
|
|
782
738
|
*
|
|
783
739
|
* @type {Array.<Number>}
|
|
784
|
-
*/
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
], // 6th Step (priority number = 5): 18-25
|
|
740
|
+
*/ SEGMENT_PRIORITIES_STEPS: [
|
|
741
|
+
2,
|
|
742
|
+
4,
|
|
743
|
+
8,
|
|
744
|
+
12,
|
|
745
|
+
18,
|
|
746
|
+
25
|
|
747
|
+
],
|
|
793
748
|
// 7th Step (priority number = 6): >= 25
|
|
794
749
|
/**
|
|
795
750
|
* Some segment requests are said to be "high priority".
|
|
@@ -801,8 +756,7 @@ var DEFAULT_CONFIG = {
|
|
|
801
756
|
* Enter here the last priority number that is considered high priority
|
|
802
757
|
* (beginning by the first step, which has the priority number `0`).
|
|
803
758
|
* @type {number}
|
|
804
|
-
*/
|
|
805
|
-
MAX_HIGH_PRIORITY_LEVEL: 1, // priority number 1 and lower is high priority
|
|
759
|
+
*/ MAX_HIGH_PRIORITY_LEVEL: 1,
|
|
806
760
|
/**
|
|
807
761
|
* Enter here the first priority step (see `SEGMENT_PRIORITIES_STEPS`) that
|
|
808
762
|
* will be considered as low priority.
|
|
@@ -814,20 +768,18 @@ var DEFAULT_CONFIG = {
|
|
|
814
768
|
* This number should be strictly superior to the value indicated in
|
|
815
769
|
* `MAX_HIGH_PRIORITY_LEVEL`.
|
|
816
770
|
* @type {number}
|
|
817
|
-
*/
|
|
818
|
-
MIN_CANCELABLE_PRIORITY: 3, // priority number 3 onward can be cancelled
|
|
771
|
+
*/ MIN_CANCELABLE_PRIORITY: 3,
|
|
819
772
|
/**
|
|
820
773
|
* Codecs used in the videoCapabilities of the MediaKeySystemConfiguration
|
|
821
774
|
* (DRM).
|
|
822
775
|
*
|
|
823
776
|
* Defined in order of importance (first will be tested first etc.)
|
|
824
777
|
* @type {Array.<string>}
|
|
825
|
-
*/
|
|
826
|
-
EME_DEFAULT_VIDEO_CODECS: [
|
|
778
|
+
*/ EME_DEFAULT_VIDEO_CODECS: [
|
|
827
779
|
'video/mp4;codecs="avc1.4d401e"',
|
|
828
780
|
'video/mp4;codecs="avc1.42e01e"',
|
|
829
781
|
'video/mp4;codecs="hvc1.1.6.L93.B0"',
|
|
830
|
-
'video/webm;codecs="vp8"'
|
|
782
|
+
'video/webm;codecs="vp8"'
|
|
831
783
|
],
|
|
832
784
|
/**
|
|
833
785
|
* Codecs used in the audioCapabilities of the MediaKeySystemConfiguration
|
|
@@ -835,11 +787,10 @@ var DEFAULT_CONFIG = {
|
|
|
835
787
|
*
|
|
836
788
|
* Defined in order of importance (first will be tested first etc.)
|
|
837
789
|
* @type {Array.<string>}
|
|
838
|
-
*/
|
|
839
|
-
EME_DEFAULT_AUDIO_CODECS: [
|
|
790
|
+
*/ EME_DEFAULT_AUDIO_CODECS: [
|
|
840
791
|
'audio/mp4;codecs="mp4a.40.2"',
|
|
841
792
|
'audio/webm;codecs="opus"',
|
|
842
|
-
'audio/mp4;codecs="ec-3"'
|
|
793
|
+
'audio/mp4;codecs="ec-3"'
|
|
843
794
|
],
|
|
844
795
|
/**
|
|
845
796
|
* Robustnesses used in the {audio,video}Capabilities of the
|
|
@@ -849,13 +800,12 @@ var DEFAULT_CONFIG = {
|
|
|
849
800
|
*
|
|
850
801
|
* Defined in order of importance (first will be tested first etc.)
|
|
851
802
|
* @type {Array.<string>}
|
|
852
|
-
*/
|
|
853
|
-
EME_DEFAULT_WIDEVINE_ROBUSTNESSES: [
|
|
803
|
+
*/ EME_DEFAULT_WIDEVINE_ROBUSTNESSES: [
|
|
854
804
|
"HW_SECURE_ALL",
|
|
855
805
|
"HW_SECURE_DECODE",
|
|
856
806
|
"HW_SECURE_CRYPTO",
|
|
857
807
|
"SW_SECURE_DECODE",
|
|
858
|
-
"SW_SECURE_CRYPTO"
|
|
808
|
+
"SW_SECURE_CRYPTO"
|
|
859
809
|
],
|
|
860
810
|
/**
|
|
861
811
|
* Robustnesses used in the {audio,video}Capabilities of the
|
|
@@ -865,25 +815,33 @@ var DEFAULT_CONFIG = {
|
|
|
865
815
|
*
|
|
866
816
|
* Defined in order of importance (first will be tested first etc.)
|
|
867
817
|
* @type {Array.<string>}
|
|
868
|
-
*/
|
|
869
|
-
|
|
818
|
+
*/ EME_DEFAULT_PLAYREADY_RECOMMENDATION_ROBUSTNESSES: [
|
|
819
|
+
"3000",
|
|
820
|
+
"2000"
|
|
821
|
+
],
|
|
870
822
|
/**
|
|
871
823
|
* Link canonical key systems names to their respective reverse domain name,
|
|
872
824
|
* used in the EME APIs.
|
|
873
825
|
* This allows to have a simpler API, where users just need to set "widevine"
|
|
874
826
|
* or "playready" as a keySystem.
|
|
875
827
|
* @type {Object}
|
|
876
|
-
*/
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
828
|
+
*/ EME_KEY_SYSTEMS: {
|
|
829
|
+
clearkey: [
|
|
830
|
+
"webkit-org.w3.clearkey",
|
|
831
|
+
"org.w3.clearkey"
|
|
832
|
+
],
|
|
833
|
+
widevine: [
|
|
834
|
+
"com.widevine.alpha"
|
|
835
|
+
],
|
|
880
836
|
playready: [
|
|
881
837
|
"com.microsoft.playready.recommendation",
|
|
882
838
|
"com.microsoft.playready",
|
|
883
839
|
"com.chromecast.playready",
|
|
884
|
-
"com.youtube.playready"
|
|
840
|
+
"com.youtube.playready"
|
|
885
841
|
],
|
|
886
|
-
fairplay: [
|
|
842
|
+
fairplay: [
|
|
843
|
+
"com.apple.fps.1_0"
|
|
844
|
+
]
|
|
887
845
|
},
|
|
888
846
|
/**
|
|
889
847
|
* The Manifest parsing logic has a notion of "unsafeMode" which allows to
|
|
@@ -894,22 +852,19 @@ var DEFAULT_CONFIG = {
|
|
|
894
852
|
* while.
|
|
895
853
|
* This value defines how many consecutive time maximum the "unsafeMode"
|
|
896
854
|
* parsing can be done.
|
|
897
|
-
*/
|
|
898
|
-
MAX_CONSECUTIVE_MANIFEST_PARSING_IN_UNSAFE_MODE: 10,
|
|
855
|
+
*/ MAX_CONSECUTIVE_MANIFEST_PARSING_IN_UNSAFE_MODE: 10,
|
|
899
856
|
/**
|
|
900
857
|
* Minimum time spent parsing the Manifest before we can authorize parsing
|
|
901
858
|
* it in an "unsafeMode", to speed-up the process with a little risk.
|
|
902
859
|
* Please note that this parsing time also sometimes includes idle time such
|
|
903
860
|
* as when the parser is waiting for a request to finish.
|
|
904
|
-
*/
|
|
905
|
-
MIN_MANIFEST_PARSING_TIME_TO_ENTER_UNSAFE_MODE: 200,
|
|
861
|
+
*/ MIN_MANIFEST_PARSING_TIME_TO_ENTER_UNSAFE_MODE: 200,
|
|
906
862
|
/**
|
|
907
863
|
* Minimum amount of <S> elements in a DASH MPD's <SegmentTimeline> element
|
|
908
864
|
* necessary to begin parsing the current SegmentTimeline element in an
|
|
909
865
|
* unsafe manner (meaning: with risks of de-synchronization).
|
|
910
866
|
* This is only done when the "unsafeMode" parsing mode is enabled.
|
|
911
|
-
*/
|
|
912
|
-
MIN_DASH_S_ELEMENTS_TO_PARSE_UNSAFELY: 300,
|
|
867
|
+
*/ MIN_DASH_S_ELEMENTS_TO_PARSE_UNSAFELY: 300,
|
|
913
868
|
/**
|
|
914
869
|
* When we detect that the local Manifest might be out-of-sync with the
|
|
915
870
|
* server's one, we schedule a Manifest refresh.
|
|
@@ -919,8 +874,7 @@ var DEFAULT_CONFIG = {
|
|
|
919
874
|
* This value indicates which delay we want. Note that the Manifest could
|
|
920
875
|
* still be refreshed before this delay for other reasons.
|
|
921
876
|
* @type {Number}
|
|
922
|
-
*/
|
|
923
|
-
OUT_OF_SYNC_MANIFEST_REFRESH_DELAY: 3000,
|
|
877
|
+
*/ OUT_OF_SYNC_MANIFEST_REFRESH_DELAY: 3000,
|
|
924
878
|
/**
|
|
925
879
|
* When a partial Manifest update (that is an update with a partial sub-set
|
|
926
880
|
* of the Manifest) fails, we will perform an update with the whole Manifest
|
|
@@ -928,8 +882,7 @@ var DEFAULT_CONFIG = {
|
|
|
928
882
|
* To not overload the client - as parsing a Manifest can be resource heavy -
|
|
929
883
|
* we set a minimum delay to wait before doing the corresponding request.
|
|
930
884
|
* @type {Number}
|
|
931
|
-
*/
|
|
932
|
-
FAILED_PARTIAL_UPDATE_MANIFEST_REFRESH_DELAY: 3000,
|
|
885
|
+
*/ FAILED_PARTIAL_UPDATE_MANIFEST_REFRESH_DELAY: 3000,
|
|
933
886
|
/**
|
|
934
887
|
* DASH Manifest based on a SegmentTimeline should normally have an
|
|
935
888
|
* MPD@minimumUpdatePeriod attribute which should be sufficient to
|
|
@@ -943,8 +896,7 @@ var DEFAULT_CONFIG = {
|
|
|
943
896
|
* We prefer to refresh in average at a regular interval when we do not have
|
|
944
897
|
* this information.
|
|
945
898
|
* /!\ This value is expressed in seconds.
|
|
946
|
-
*/
|
|
947
|
-
DASH_FALLBACK_LIFETIME_WHEN_MINIMUM_UPDATE_PERIOD_EQUAL_0: 3,
|
|
899
|
+
*/ DASH_FALLBACK_LIFETIME_WHEN_MINIMUM_UPDATE_PERIOD_EQUAL_0: 3,
|
|
948
900
|
/**
|
|
949
901
|
* Default value for the maximum number of simultaneous MediaKeySessions that
|
|
950
902
|
* will be kept in a cache (linked to the MediaKeys instance) to avoid doing
|
|
@@ -955,8 +907,7 @@ var DEFAULT_CONFIG = {
|
|
|
955
907
|
* Another value can be configured through the API, in which case this default
|
|
956
908
|
* will be overwritten.
|
|
957
909
|
* @type {Number}
|
|
958
|
-
*/
|
|
959
|
-
EME_DEFAULT_MAX_SIMULTANEOUS_MEDIA_KEY_SESSIONS: 15,
|
|
910
|
+
*/ EME_DEFAULT_MAX_SIMULTANEOUS_MEDIA_KEY_SESSIONS: 15,
|
|
960
911
|
/**
|
|
961
912
|
* When playing contents with a persistent license, we will usually store some
|
|
962
913
|
* information related to that MediaKeySession, to be able to play it at a
|
|
@@ -987,8 +938,7 @@ var DEFAULT_CONFIG = {
|
|
|
987
938
|
* amount which seemed the most sensible one).
|
|
988
939
|
*
|
|
989
940
|
* This wasn't battle-tested however.
|
|
990
|
-
*/
|
|
991
|
-
EME_MAX_STORED_PERSISTENT_SESSION_INFORMATION: 1000,
|
|
941
|
+
*/ EME_MAX_STORED_PERSISTENT_SESSION_INFORMATION: 1000,
|
|
992
942
|
/**
|
|
993
943
|
* After loading a persistent MediaKeySession, the RxPlayer needs to ensure
|
|
994
944
|
* that its keys still allow to decrypt a content.
|
|
@@ -1001,8 +951,7 @@ var DEFAULT_CONFIG = {
|
|
|
1001
951
|
* maximum time we will wait after a persistent session is loaded.
|
|
1002
952
|
* If after that time, the `keyStatuses` property is still empty, we will
|
|
1003
953
|
* consider that session as not usable.
|
|
1004
|
-
*/
|
|
1005
|
-
EME_WAITING_DELAY_LOADED_SESSION_EMPTY_KEYSTATUSES: 100,
|
|
954
|
+
*/ EME_WAITING_DELAY_LOADED_SESSION_EMPTY_KEYSTATUSES: 100,
|
|
1006
955
|
/**
|
|
1007
956
|
* The player relies on browser events and properties to update its status to
|
|
1008
957
|
* "ENDED".
|
|
@@ -1019,8 +968,7 @@ var DEFAULT_CONFIG = {
|
|
|
1019
968
|
* browser events.
|
|
1020
969
|
*
|
|
1021
970
|
* @type {Number|null}
|
|
1022
|
-
*/
|
|
1023
|
-
FORCED_ENDED_THRESHOLD: 0.0008,
|
|
971
|
+
*/ FORCED_ENDED_THRESHOLD: 0.0008,
|
|
1024
972
|
/**
|
|
1025
973
|
* Maximum duration from the current position we will let in the buffer when
|
|
1026
974
|
* switching an Adaptation/Representations of a given type.
|
|
@@ -1032,11 +980,19 @@ var DEFAULT_CONFIG = {
|
|
|
1032
980
|
* This is to allow smooth transitions and avoid de-synchronization that
|
|
1033
981
|
* can happen when removing the content being decoded.
|
|
1034
982
|
* @type {Object}
|
|
1035
|
-
*/
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
983
|
+
*/ ADAP_REP_SWITCH_BUFFER_PADDINGS: {
|
|
984
|
+
video: {
|
|
985
|
+
before: 5,
|
|
986
|
+
after: 5
|
|
987
|
+
},
|
|
988
|
+
audio: {
|
|
989
|
+
before: 2,
|
|
990
|
+
after: 2.5
|
|
991
|
+
},
|
|
992
|
+
text: {
|
|
993
|
+
before: 0,
|
|
994
|
+
after: 0
|
|
995
|
+
}
|
|
1040
996
|
},
|
|
1041
997
|
/**
|
|
1042
998
|
* Interval, in milliseconds, at which we should manually flush
|
|
@@ -1048,8 +1004,7 @@ var DEFAULT_CONFIG = {
|
|
|
1048
1004
|
* This interval is here to check at regular intervals if the underlying
|
|
1049
1005
|
* SourceBuffer is currently updating.
|
|
1050
1006
|
* @type {Number}
|
|
1051
|
-
*/
|
|
1052
|
-
SOURCE_BUFFER_FLUSHING_INTERVAL: 500,
|
|
1007
|
+
*/ SOURCE_BUFFER_FLUSHING_INTERVAL: 500,
|
|
1053
1008
|
/**
|
|
1054
1009
|
* Any already-pushed segment starting before or at the current position +
|
|
1055
1010
|
* CONTENT_REPLACEMENT_PADDING won't be replaced by new segments.
|
|
@@ -1057,19 +1012,16 @@ var DEFAULT_CONFIG = {
|
|
|
1057
1012
|
* This allows to avoid overwriting segments that are currently being decoded
|
|
1058
1013
|
* as we encountered many decoding issues when doing so.
|
|
1059
1014
|
* @type {Number} - in seconds
|
|
1060
|
-
*/
|
|
1061
|
-
CONTENT_REPLACEMENT_PADDING: 1.2,
|
|
1015
|
+
*/ CONTENT_REPLACEMENT_PADDING: 1.2,
|
|
1062
1016
|
/**
|
|
1063
1017
|
* For video and audio segments, determines two thresholds below which :
|
|
1064
1018
|
* - The segment is considered as loaded from cache
|
|
1065
1019
|
* - The segment may be loaded from cache depending on the previous request
|
|
1066
|
-
*/
|
|
1067
|
-
CACHE_LOAD_DURATION_THRESHOLDS: {
|
|
1020
|
+
*/ CACHE_LOAD_DURATION_THRESHOLDS: {
|
|
1068
1021
|
video: 50,
|
|
1069
|
-
audio: 10
|
|
1022
|
+
audio: 10
|
|
1070
1023
|
},
|
|
1071
|
-
/** Interval we will use to poll for checking if an event shall be emitted */
|
|
1072
|
-
STREAM_EVENT_EMITTER_POLL_INTERVAL: 250,
|
|
1024
|
+
/** Interval we will use to poll for checking if an event shall be emitted */ STREAM_EVENT_EMITTER_POLL_INTERVAL: 250,
|
|
1073
1025
|
/**
|
|
1074
1026
|
* In Javascript, numbers are encoded in a way that a floating number may be
|
|
1075
1027
|
* represented internally with a rounding error. When multiplying times in
|
|
@@ -1085,8 +1037,7 @@ var DEFAULT_CONFIG = {
|
|
|
1085
1037
|
* Thus, we consider that our max tolerable rounding error is 1ms.
|
|
1086
1038
|
* It is much more than max rounding errors when seen into practice,
|
|
1087
1039
|
* and not significant from the media loss perspective.
|
|
1088
|
-
*/
|
|
1089
|
-
DEFAULT_MAXIMUM_TIME_ROUNDING_ERROR: 1 / 1000,
|
|
1040
|
+
*/ DEFAULT_MAXIMUM_TIME_ROUNDING_ERROR: 1 / 1000,
|
|
1090
1041
|
/**
|
|
1091
1042
|
* RxPlayer's media buffers have a linked history registering recent events
|
|
1092
1043
|
* that happened on those.
|
|
@@ -1095,8 +1046,7 @@ var DEFAULT_CONFIG = {
|
|
|
1095
1046
|
*
|
|
1096
1047
|
* The `BUFFERED_HISTORY_RETENTION_TIME` is the minimum age an entry of
|
|
1097
1048
|
* that history can have before being removed from the history.
|
|
1098
|
-
*/
|
|
1099
|
-
BUFFERED_HISTORY_RETENTION_TIME: 60000,
|
|
1049
|
+
*/ BUFFERED_HISTORY_RETENTION_TIME: 60000,
|
|
1100
1050
|
/**
|
|
1101
1051
|
* RxPlayer's media buffers have a linked history registering recent events
|
|
1102
1052
|
* that happened on those.
|
|
@@ -1105,47 +1055,40 @@ var DEFAULT_CONFIG = {
|
|
|
1105
1055
|
*
|
|
1106
1056
|
* The `BUFFERED_HISTORY_RETENTION_TIME` is the maximum number of entries
|
|
1107
1057
|
* there can be in that history.
|
|
1108
|
-
*/
|
|
1109
|
-
BUFFERED_HISTORY_MAXIMUM_ENTRIES: 200,
|
|
1058
|
+
*/ BUFFERED_HISTORY_MAXIMUM_ENTRIES: 200,
|
|
1110
1059
|
/**
|
|
1111
1060
|
* Minimum buffer in seconds ahead relative to current time
|
|
1112
1061
|
* we should be able to download, even in cases of saturated memory.
|
|
1113
|
-
*/
|
|
1114
|
-
MIN_BUFFER_AHEAD: 5,
|
|
1062
|
+
*/ MIN_BUFFER_AHEAD: 5,
|
|
1115
1063
|
/**
|
|
1116
1064
|
* Distance in seconds behind the current position
|
|
1117
1065
|
* the player will free up to in the case we agressively free up memory
|
|
1118
1066
|
* It is set to avoid playback issues
|
|
1119
|
-
*/
|
|
1120
|
-
UPTO_CURRENT_POSITION_CLEANUP: 5,
|
|
1067
|
+
*/ UPTO_CURRENT_POSITION_CLEANUP: 5,
|
|
1121
1068
|
/**
|
|
1122
1069
|
* Default "switching mode" used when locking video Representations.
|
|
1123
1070
|
* That is, which behavior the RxPlayer should have by default when
|
|
1124
1071
|
* explicitely and manually switching from a previous set of video
|
|
1125
1072
|
* Representations to a new one.
|
|
1126
|
-
*/
|
|
1127
|
-
DEFAULT_VIDEO_REPRESENTATIONS_SWITCHING_MODE: "seamless",
|
|
1073
|
+
*/ DEFAULT_VIDEO_REPRESENTATIONS_SWITCHING_MODE: "seamless",
|
|
1128
1074
|
/**
|
|
1129
1075
|
* Default "switching mode" used when locking audio Representations.
|
|
1130
1076
|
* That is, which behavior the RxPlayer should have by default when
|
|
1131
1077
|
* explicitely and manually switching from a previous set of audio
|
|
1132
1078
|
* Representations to a new one.
|
|
1133
|
-
*/
|
|
1134
|
-
DEFAULT_AUDIO_REPRESENTATIONS_SWITCHING_MODE: "seamless",
|
|
1079
|
+
*/ DEFAULT_AUDIO_REPRESENTATIONS_SWITCHING_MODE: "seamless",
|
|
1135
1080
|
/**
|
|
1136
1081
|
* Default "switching mode" used when switching between video tracks.
|
|
1137
1082
|
* That is, which behavior the RxPlayer should have by default when
|
|
1138
1083
|
* explicitely and manually switching from a previous video track to a new
|
|
1139
1084
|
* one.
|
|
1140
|
-
*/
|
|
1141
|
-
DEFAULT_VIDEO_TRACK_SWITCHING_MODE: "reload",
|
|
1085
|
+
*/ DEFAULT_VIDEO_TRACK_SWITCHING_MODE: "reload",
|
|
1142
1086
|
/**
|
|
1143
1087
|
* Default "switching mode" used when switching between audio tracks.
|
|
1144
1088
|
* That is, which behavior the RxPlayer should have by default when
|
|
1145
1089
|
* explicitely and manually switching from a previous audio track to a new
|
|
1146
1090
|
* one.
|
|
1147
|
-
*/
|
|
1148
|
-
DEFAULT_AUDIO_TRACK_SWITCHING_MODE: "seamless",
|
|
1091
|
+
*/ DEFAULT_AUDIO_TRACK_SWITCHING_MODE: "seamless",
|
|
1149
1092
|
/**
|
|
1150
1093
|
* The default number of times a thumbnail request will be re-performed when
|
|
1151
1094
|
* on error which justify a retry.
|
|
@@ -1155,92 +1098,74 @@ var DEFAULT_CONFIG = {
|
|
|
1155
1098
|
* - if the error is an HTTP error code, but not a 500-smthg or a 404, no
|
|
1156
1099
|
* retry will be performed.
|
|
1157
1100
|
* @type Number
|
|
1158
|
-
*/
|
|
1159
|
-
DEFAULT_MAX_THUMBNAIL_REQUESTS_RETRY_ON_ERROR: 1,
|
|
1101
|
+
*/ DEFAULT_MAX_THUMBNAIL_REQUESTS_RETRY_ON_ERROR: 1,
|
|
1160
1102
|
/**
|
|
1161
1103
|
* Default time interval after which a thumbnail request will timeout, in ms.
|
|
1162
1104
|
* @type {Number}
|
|
1163
|
-
*/
|
|
1164
|
-
DEFAULT_THUMBNAIL_REQUEST_TIMEOUT: 10 * 1000,
|
|
1105
|
+
*/ DEFAULT_THUMBNAIL_REQUEST_TIMEOUT: 10 * 1000,
|
|
1165
1106
|
/**
|
|
1166
1107
|
* Default connection time after which a thumbnail request conncection will
|
|
1167
1108
|
* timeout, in ms.
|
|
1168
1109
|
* @type {Number}
|
|
1169
|
-
*/
|
|
1170
|
-
DEFAULT_THUMBNAIL_CONNECTION_TIMEOUT: 7 * 1000,
|
|
1110
|
+
*/ DEFAULT_THUMBNAIL_CONNECTION_TIMEOUT: 7 * 1000,
|
|
1171
1111
|
// Compatibility toggles:
|
|
1172
1112
|
/**
|
|
1173
1113
|
* If set to `true`, we will not patch out a `pssh` box if found in an
|
|
1174
1114
|
* ISOBMFF segment.
|
|
1175
|
-
*/
|
|
1176
|
-
PREVENT_PSSH_PATCHING: false,
|
|
1115
|
+
*/ PREVENT_PSSH_PATCHING: false,
|
|
1177
1116
|
/**
|
|
1178
1117
|
* If set to `true`, we'll always try to check thoroughly that a
|
|
1179
1118
|
* `MediaKeySystemAccess` can be relied on.
|
|
1180
|
-
*/
|
|
1181
|
-
FORCE_CANNOT_RELY_ON_REQUEST_MEDIA_KEY_SYSTEM_ACCESS: false,
|
|
1119
|
+
*/ FORCE_CANNOT_RELY_ON_REQUEST_MEDIA_KEY_SYSTEM_ACCESS: false,
|
|
1182
1120
|
/**
|
|
1183
1121
|
* If set to `true`, we'll always re-create a `MediaKeys` instance for each
|
|
1184
1122
|
* encrypted content where we need one.
|
|
1185
|
-
*/
|
|
1186
|
-
FORCE_CANNOT_REUSE_MEDIA_KEYS: false,
|
|
1123
|
+
*/ FORCE_CANNOT_REUSE_MEDIA_KEYS: false,
|
|
1187
1124
|
/**
|
|
1188
1125
|
* If set to `true`, force work-around for devices which have issues with
|
|
1189
1126
|
* `MediaSource` objects with a high `duration` property.
|
|
1190
|
-
*/
|
|
1191
|
-
FORCE_HAS_ISSUES_WITH_HIGH_MEDIA_SOURCE_DURATION: false,
|
|
1127
|
+
*/ FORCE_HAS_ISSUES_WITH_HIGH_MEDIA_SOURCE_DURATION: false,
|
|
1192
1128
|
/**
|
|
1193
1129
|
* If set to `true`, the device might seek before what we actually tell it to,
|
|
1194
1130
|
* breaking other RxPlayer behaviors in the process.
|
|
1195
1131
|
* Setting it to `true` allows to enable work-arounds.
|
|
1196
|
-
*/
|
|
1197
|
-
FORCE_IS_SEEKING_APPROXIMATE: false,
|
|
1132
|
+
*/ FORCE_IS_SEEKING_APPROXIMATE: false,
|
|
1198
1133
|
/**
|
|
1199
1134
|
* If set to `true`, the device might fail directly after uncountering
|
|
1200
1135
|
* decipherable data.
|
|
1201
|
-
*/
|
|
1202
|
-
FORCE_MEDIA_ELEMENT_FAIL_ON_UNDECIPHERABLE_DATA: false,
|
|
1136
|
+
*/ FORCE_MEDIA_ELEMENT_FAIL_ON_UNDECIPHERABLE_DATA: false,
|
|
1203
1137
|
/**
|
|
1204
1138
|
* If set to `true` we'll await a `MediaKeys` attachment on a given
|
|
1205
1139
|
* `HTMLMediaElement` before trying to set a new one.
|
|
1206
|
-
*/
|
|
1207
|
-
|
|
1208
|
-
/** If set to `true` we'll rely on Safari's Webkit flavor of the EME API. */
|
|
1209
|
-
FORCE_SHOULD_FAVOUR_CUSTOM_SAFARI_EME: false,
|
|
1140
|
+
*/ FORCE_SHOULD_AWAIT_SET_MEDIA_KEYS: false,
|
|
1141
|
+
/** If set to `true` we'll rely on Safari's Webkit flavor of the EME API. */ FORCE_SHOULD_FAVOUR_CUSTOM_SAFARI_EME: false,
|
|
1210
1142
|
/**
|
|
1211
1143
|
* If `true`, we'll reload if unencrypted data is encountered close to
|
|
1212
1144
|
* the current position.
|
|
1213
|
-
*/
|
|
1214
|
-
|
|
1215
|
-
/** If `true`, we'll
|
|
1216
|
-
FORCE_SHOULD_RENEW_MEDIA_KEY_SYSTEM_ACCESS: false,
|
|
1217
|
-
/** If `true`, we'll unset the `MediaKeys` at each stop. */
|
|
1218
|
-
FORCE_SHOULD_UNSET_MEDIA_KEYS: false,
|
|
1145
|
+
*/ FORCE_SHOULD_RELOAD_MEDIA_SOURCE_ON_DECIPHERABILITY_UPDATE: false,
|
|
1146
|
+
/** If `true`, we'll for each content re-create a `MediaKeySystemAccess`. */ FORCE_SHOULD_RENEW_MEDIA_KEY_SYSTEM_ACCESS: false,
|
|
1147
|
+
/** If `true`, we'll unset the `MediaKeys` at each stop. */ FORCE_SHOULD_UNSET_MEDIA_KEYS: false,
|
|
1219
1148
|
/**
|
|
1220
1149
|
* If `true`, we cannot trust that a `loadedmetadata` event from the
|
|
1221
1150
|
* `HTMLMediaElement` is sent after the browser has parsed key metadata such
|
|
1222
1151
|
* as the content's duration.
|
|
1223
|
-
*/
|
|
1224
|
-
FORCE_SHOULD_VALIDATE_METADATA: false,
|
|
1152
|
+
*/ FORCE_SHOULD_VALIDATE_METADATA: false,
|
|
1225
1153
|
/**
|
|
1226
1154
|
* If `true`, we have to announce the content as loaded even if no data is
|
|
1227
1155
|
* actually loaded, because that target do not preload, meaning a `play` call
|
|
1228
1156
|
* is required.
|
|
1229
|
-
*/
|
|
1230
|
-
FORCE_DONT_WAIT_FOR_DATA_BEFORE_LOADED: false,
|
|
1157
|
+
*/ FORCE_DONT_WAIT_FOR_DATA_BEFORE_LOADED: false,
|
|
1231
1158
|
/**
|
|
1232
1159
|
* If `true`, we have to wait for the `HAVE_ENOUGH_DATA` `readyState` before
|
|
1233
1160
|
* announcing the content as loaded.
|
|
1234
|
-
*/
|
|
1235
|
-
FORCE_WAIT_FOR_HAVE_ENOUGH_DATA: false,
|
|
1161
|
+
*/ FORCE_WAIT_FOR_HAVE_ENOUGH_DATA: false,
|
|
1236
1162
|
/**
|
|
1237
1163
|
* If `true`, forces an initial seek to 0. Mainly needed for Safari HLS,
|
|
1238
1164
|
* where the player may start at the live position instead of 0.
|
|
1239
|
-
*/
|
|
1240
|
-
FORCE_INITIAL_SEEK_TO_ZERO: false,
|
|
1165
|
+
*/ FORCE_INITIAL_SEEK_TO_ZERO: false
|
|
1241
1166
|
};
|
|
1242
|
-
|
|
1167
|
+
var _default = DEFAULT_CONFIG;
|
|
1243
1168
|
function checkIsSerializable(_conf) {
|
|
1244
|
-
|
|
1169
|
+
// noop
|
|
1245
1170
|
}
|
|
1246
1171
|
checkIsSerializable(DEFAULT_CONFIG);
|