rx-player 4.0.0 → 4.1.0-dev.2024031100
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/.prettierrc +4 -0
- package/CHANGELOG.md +1500 -996
- package/MAINTAINERS.md +9 -12
- package/README.md +107 -122
- package/VERSION +1 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.js +1 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_worker.js +1 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_worker_es5.d.ts +3 -0
- package/dist/commonjs/__GENERATED_CODE/embedded_worker_es5.js +6 -0
- package/dist/commonjs/__GENERATED_CODE/index.d.ts +1 -0
- package/dist/commonjs/__GENERATED_CODE/index.js +3 -1
- package/dist/commonjs/compat/add_class_name.js +4 -3
- package/dist/commonjs/compat/add_text_track.d.ts +1 -1
- package/dist/commonjs/compat/add_text_track.js +3 -2
- package/dist/commonjs/compat/browser_compatibility_types.js +13 -7
- package/dist/commonjs/compat/browser_detection.d.ts +3 -1
- package/dist/commonjs/compat/browser_detection.js +16 -12
- package/dist/commonjs/compat/can_seek_directly_after_loaded_metadata.d.ts +7 -0
- package/dist/commonjs/compat/can_seek_directly_after_loaded_metadata.js +10 -0
- package/dist/commonjs/compat/change_source_buffer_type.d.ts +1 -1
- package/dist/commonjs/compat/eme/close_session.d.ts +1 -1
- package/dist/commonjs/compat/eme/close_session.js +16 -12
- package/dist/commonjs/compat/eme/custom_key_system_access.d.ts +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.d.ts +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.js +14 -9
- package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +1 -1
- 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.js +13 -11
- package/dist/commonjs/compat/eme/custom_media_keys/types.d.ts +1 -1
- 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.js +5 -11
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +2 -2
- package/dist/commonjs/compat/eme/eme-api-implementation.d.ts +3 -3
- package/dist/commonjs/compat/eme/eme-api-implementation.js +13 -9
- package/dist/commonjs/compat/eme/generate_key_request.d.ts +1 -1
- package/dist/commonjs/compat/eme/generate_key_request.js +16 -19
- package/dist/commonjs/compat/eme/get_init_data.js +5 -7
- package/dist/commonjs/compat/eme/get_uuid_kid_from_keystatus_kid.js +1 -2
- package/dist/commonjs/compat/eme/get_webkit_fairplay_initdata.js +10 -11
- package/dist/commonjs/compat/eme/load_session.d.ts +1 -1
- package/dist/commonjs/compat/eme/set_media_keys.d.ts +9 -0
- package/dist/commonjs/compat/eme/set_media_keys.js +37 -0
- package/dist/commonjs/compat/enable_audio_track.d.ts +1 -1
- package/dist/commonjs/compat/event_listeners.d.ts +4 -4
- package/dist/commonjs/compat/event_listeners.js +42 -33
- package/dist/commonjs/compat/has_webassembly.js +1 -2
- package/dist/commonjs/compat/has_worker_api.d.ts +9 -0
- package/dist/commonjs/compat/has_worker_api.js +17 -0
- package/dist/commonjs/compat/is_codec_supported.js +2 -1
- package/dist/commonjs/compat/is_vtt_cue.d.ts +1 -1
- package/dist/commonjs/compat/make_vtt_cue.d.ts +1 -1
- package/dist/commonjs/compat/may_media_element_fail_on_undecipherable_data.d.ts +16 -0
- package/dist/commonjs/compat/may_media_element_fail_on_undecipherable_data.js +19 -0
- package/dist/commonjs/compat/on_height_width_change.d.ts +2 -2
- package/dist/commonjs/compat/patch_webkit_source_buffer.js +29 -29
- package/dist/commonjs/compat/should_await_set_media_keys.d.ts +16 -0
- package/dist/commonjs/compat/should_await_set_media_keys.js +22 -0
- package/dist/commonjs/compat/should_reload_media_source_on_decipherability_update.js +1 -2
- package/dist/commonjs/config.d.ts +1 -1
- package/dist/commonjs/core/adaptive/adaptive_representation_selector.d.ts +25 -22
- package/dist/commonjs/core/adaptive/adaptive_representation_selector.js +47 -25
- package/dist/commonjs/core/adaptive/buffer_based_chooser.d.ts +1 -1
- package/dist/commonjs/core/adaptive/buffer_based_chooser.js +13 -11
- package/dist/commonjs/core/adaptive/guess_based_chooser.d.ts +6 -6
- package/dist/commonjs/core/adaptive/guess_based_chooser.js +7 -6
- package/dist/commonjs/core/adaptive/index.d.ts +2 -2
- package/dist/commonjs/core/adaptive/network_analyzer.d.ts +6 -6
- package/dist/commonjs/core/adaptive/network_analyzer.js +44 -40
- package/dist/commonjs/core/adaptive/utils/bandwidth_estimator.js +1 -1
- package/dist/commonjs/core/adaptive/utils/ewma.js +1 -2
- package/dist/commonjs/core/adaptive/utils/filter_by_bitrate.d.ts +2 -2
- package/dist/commonjs/core/adaptive/utils/filter_by_resolution.d.ts +2 -2
- package/dist/commonjs/core/adaptive/utils/filter_by_resolution.js +2 -4
- package/dist/commonjs/core/adaptive/utils/get_buffer_levels.js +7 -4
- package/dist/commonjs/core/adaptive/utils/last_estimate_storage.d.ts +3 -3
- package/dist/commonjs/core/adaptive/utils/pending_requests_store.d.ts +5 -5
- package/dist/commonjs/core/adaptive/utils/pending_requests_store.js +4 -3
- package/dist/commonjs/core/adaptive/utils/representation_score_calculator.d.ts +7 -7
- package/dist/commonjs/core/adaptive/utils/representation_score_calculator.js +11 -8
- package/dist/commonjs/core/adaptive/utils/select_optimal_representation.d.ts +4 -4
- package/dist/commonjs/core/adaptive/utils/select_optimal_representation.js +2 -2
- package/dist/commonjs/core/fetchers/cdn_prioritizer.d.ts +2 -2
- package/dist/commonjs/core/fetchers/cdn_prioritizer.js +5 -6
- package/dist/commonjs/core/fetchers/manifest/index.d.ts +1 -1
- package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.d.ts +3 -3
- package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.js +80 -65
- package/dist/commonjs/core/fetchers/segment/index.d.ts +1 -1
- package/dist/commonjs/core/fetchers/segment/initialization_segment_cache.d.ts +4 -4
- package/dist/commonjs/core/fetchers/segment/prioritized_segment_fetcher.d.ts +4 -3
- package/dist/commonjs/core/fetchers/segment/segment_fetcher.d.ts +12 -12
- package/dist/commonjs/core/fetchers/segment/segment_fetcher.js +49 -32
- package/dist/commonjs/core/fetchers/segment/segment_fetcher_creator.d.ts +5 -5
- package/dist/commonjs/core/fetchers/segment/segment_fetcher_creator.js +4 -2
- package/dist/commonjs/core/fetchers/segment/task_prioritizer.d.ts +1 -1
- package/dist/commonjs/core/fetchers/segment/task_prioritizer.js +18 -17
- package/dist/commonjs/core/fetchers/utils/error_selector.d.ts +1 -2
- package/dist/commonjs/core/fetchers/utils/error_selector.js +0 -1
- package/dist/commonjs/core/fetchers/utils/schedule_request.d.ts +3 -3
- package/dist/commonjs/core/fetchers/utils/schedule_request.js +20 -21
- package/dist/commonjs/core/main/common/DecipherabilityFreezeDetector.d.ts +79 -0
- package/dist/commonjs/core/main/common/DecipherabilityFreezeDetector.js +127 -0
- package/dist/commonjs/core/main/common/content_time_boundaries_observer.d.ts +191 -0
- package/dist/commonjs/core/main/common/content_time_boundaries_observer.js +519 -0
- package/dist/commonjs/core/main/common/create_content_time_boundaries_observer.d.ts +27 -0
- package/dist/commonjs/core/main/common/create_content_time_boundaries_observer.js +48 -0
- package/dist/commonjs/core/main/common/get_buffered_data_per_media_buffer.d.ts +14 -0
- package/dist/commonjs/core/main/common/get_buffered_data_per_media_buffer.js +37 -0
- package/dist/commonjs/core/main/worker/content_preparer.d.ts +93 -0
- package/dist/commonjs/core/main/worker/content_preparer.js +273 -0
- package/dist/commonjs/core/main/worker/globals.d.ts +13 -0
- package/dist/commonjs/core/main/worker/globals.js +26 -0
- package/dist/commonjs/core/main/worker/index.d.ts +2 -0
- package/dist/commonjs/core/main/worker/index.js +4 -0
- package/dist/commonjs/core/main/worker/send_message.d.ts +3 -0
- package/dist/commonjs/core/main/worker/send_message.js +25 -0
- package/dist/commonjs/core/main/worker/track_choice_setter.d.ts +19 -0
- package/dist/commonjs/core/main/worker/track_choice_setter.js +140 -0
- package/dist/commonjs/core/main/worker/worker_main.d.ts +1 -0
- package/dist/commonjs/core/main/worker/worker_main.js +784 -0
- package/dist/commonjs/core/main/worker/worker_text_displayer_interface.d.ts +64 -0
- package/dist/commonjs/core/main/worker/worker_text_displayer_interface.js +126 -0
- package/dist/commonjs/core/segment_sinks/garbage_collector.d.ts +43 -0
- package/dist/commonjs/core/segment_sinks/garbage_collector.js +226 -0
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/audio_video_segment_buffer.d.ts +135 -0
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/audio_video_segment_buffer.js +358 -0
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/index.d.ts +17 -0
- package/dist/commonjs/core/segment_sinks/implementations/index.d.ts +19 -0
- package/dist/commonjs/core/segment_sinks/implementations/index.js +35 -0
- package/dist/commonjs/core/segment_sinks/implementations/text/index.d.ts +3 -0
- package/dist/commonjs/core/segment_sinks/implementations/text/text_segment_buffer.d.ts +90 -0
- package/dist/commonjs/core/segment_sinks/implementations/text/text_segment_buffer.js +257 -0
- package/dist/commonjs/core/segment_sinks/implementations/types.d.ts +307 -0
- package/dist/commonjs/core/segment_sinks/implementations/types.js +117 -0
- package/dist/commonjs/core/segment_sinks/index.d.ts +21 -0
- package/dist/commonjs/core/segment_sinks/index.js +28 -0
- package/dist/commonjs/core/segment_sinks/inventory/buffered_history.d.ts +89 -0
- package/dist/commonjs/core/segment_sinks/inventory/index.d.ts +21 -0
- package/dist/commonjs/core/segment_sinks/inventory/segment_inventory.d.ts +238 -0
- package/dist/commonjs/core/segment_sinks/inventory/segment_inventory.js +917 -0
- package/dist/commonjs/core/segment_sinks/inventory/types.d.ts +27 -0
- package/dist/commonjs/core/segment_sinks/inventory/utils.d.ts +33 -0
- package/dist/commonjs/core/segment_sinks/inventory/utils.js +53 -0
- package/dist/commonjs/core/segment_sinks/segment_buffers_store.d.ts +171 -0
- package/dist/commonjs/core/segment_sinks/segment_buffers_store.js +288 -0
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.d.ts +4 -4
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.js +52 -24
- package/dist/commonjs/core/stream/adaptation/get_representations_switch_strategy.d.ts +11 -11
- package/dist/commonjs/core/stream/adaptation/get_representations_switch_strategy.js +32 -33
- package/dist/commonjs/core/stream/adaptation/types.d.ts +18 -18
- package/dist/commonjs/core/stream/index.d.ts +1 -1
- package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.d.ts +5 -5
- package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.js +5 -5
- package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.d.ts +20 -19
- package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.js +76 -52
- package/dist/commonjs/core/stream/period/period_stream.d.ts +5 -5
- package/dist/commonjs/core/stream/period/period_stream.js +85 -47
- package/dist/commonjs/core/stream/period/types.d.ts +23 -21
- package/dist/commonjs/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +13 -13
- package/dist/commonjs/core/stream/period/utils/get_adaptation_switch_strategy.js +34 -38
- package/dist/commonjs/core/stream/representation/representation_stream.d.ts +5 -5
- package/dist/commonjs/core/stream/representation/representation_stream.js +58 -32
- package/dist/commonjs/core/stream/representation/types.d.ts +24 -24
- package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.d.ts +9 -9
- package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.js +12 -13
- package/dist/commonjs/core/stream/representation/utils/check_for_discontinuity.d.ts +7 -7
- package/dist/commonjs/core/stream/representation/utils/check_for_discontinuity.js +16 -18
- package/dist/commonjs/core/stream/representation/utils/downloading_queue.d.ts +10 -10
- package/dist/commonjs/core/stream/representation/utils/downloading_queue.js +11 -11
- package/dist/commonjs/core/stream/representation/utils/get_buffer_status.d.ts +11 -11
- package/dist/commonjs/core/stream/representation/utils/get_buffer_status.js +50 -29
- package/dist/commonjs/core/stream/representation/utils/get_needed_segments.d.ts +6 -7
- package/dist/commonjs/core/stream/representation/utils/get_needed_segments.js +29 -30
- package/dist/commonjs/core/stream/representation/utils/push_init_segment.d.ts +13 -13
- package/dist/commonjs/core/stream/representation/utils/push_init_segment.js +10 -8
- package/dist/commonjs/core/stream/representation/utils/push_media_segment.d.ts +14 -14
- package/dist/commonjs/core/stream/representation/utils/push_media_segment.js +16 -13
- package/dist/commonjs/core/types.d.ts +8 -0
- package/dist/commonjs/default_config.js +21 -18
- package/dist/commonjs/errors/encrypted_media_error.d.ts +2 -2
- package/dist/commonjs/errors/encrypted_media_error.js +4 -2
- package/dist/commonjs/errors/error_codes.d.ts +3 -3
- package/dist/commonjs/errors/error_codes.js +1 -0
- package/dist/commonjs/errors/format_error.d.ts +2 -2
- package/dist/commonjs/errors/format_error.js +1 -2
- package/dist/commonjs/errors/is_known_error.d.ts +1 -1
- package/dist/commonjs/errors/is_known_error.js +2 -2
- package/dist/commonjs/errors/media_error.d.ts +2 -2
- package/dist/commonjs/errors/media_error.js +4 -2
- package/dist/commonjs/errors/network_error.d.ts +2 -2
- package/dist/commonjs/errors/network_error.js +6 -4
- package/dist/commonjs/errors/other_error.d.ts +1 -1
- package/dist/commonjs/errors/other_error.js +1 -3
- package/dist/commonjs/errors/source_buffer_error.js +4 -2
- package/dist/commonjs/experimental/features/local.d.ts +1 -1
- package/dist/commonjs/experimental/features/local.js +1 -2
- package/dist/commonjs/experimental/features/metaplaylist.d.ts +1 -1
- package/dist/commonjs/experimental/features/metaplaylist.js +1 -2
- package/dist/commonjs/experimental/features/multi_thread.d.ts +1 -1
- package/dist/commonjs/experimental/features/multi_thread.js +1 -2
- package/dist/commonjs/experimental/index.d.ts +1 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/dash.d.ts +1 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts +1 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/index.d.ts +1 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +3 -3
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +2 -2
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +5 -5
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +1 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +2 -2
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/types.d.ts +6 -6
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts +3 -3
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +11 -18
- package/dist/commonjs/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +13 -23
- package/dist/commonjs/experimental/tools/createMetaplaylist/index.d.ts +1 -1
- package/dist/commonjs/experimental/tools/createMetaplaylist/index.js +8 -7
- package/dist/commonjs/experimental/tools/index.d.ts +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/index.d.ts +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/index.js +9 -15
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.d.ts +4 -3
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.js +6 -3
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/capabilities.d.ts +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/capabilities.js +9 -46
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.d.ts +2 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.js +8 -5
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts +2 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.js +21 -13
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts +2 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +21 -17
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.js +12 -12
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/index.d.ts +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts +2 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.js +7 -8
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.d.ts +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.js +6 -11
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.d.ts +2 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.js +1 -2
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts +2 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +3 -3
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/types.d.ts +2 -2
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/utils.d.ts +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/utils.js +8 -7
- package/dist/commonjs/features/add_features.d.ts +1 -1
- package/dist/commonjs/features/features_object.d.ts +1 -1
- package/dist/commonjs/features/features_object.js +4 -3
- package/dist/commonjs/features/index.d.ts +1 -1
- package/dist/commonjs/features/list/dash.d.ts +1 -1
- package/dist/commonjs/features/list/dash.js +3 -4
- package/dist/commonjs/features/list/dash_wasm.d.ts +2 -2
- package/dist/commonjs/features/list/dash_wasm.js +1 -2
- package/dist/commonjs/features/list/debug_element.d.ts +1 -1
- package/dist/commonjs/features/list/debug_element.js +1 -1
- package/dist/commonjs/features/list/directfile.d.ts +1 -1
- package/dist/commonjs/features/list/directfile.js +2 -3
- package/dist/commonjs/features/list/eme.d.ts +1 -1
- package/dist/commonjs/features/list/eme.js +1 -1
- package/dist/commonjs/features/list/html_sami_parser.d.ts +1 -1
- package/dist/commonjs/features/list/html_sami_parser.js +4 -4
- package/dist/commonjs/features/list/html_srt_parser.d.ts +1 -1
- package/dist/commonjs/features/list/html_srt_parser.js +4 -4
- package/dist/commonjs/features/list/html_text_buffer.d.ts +1 -1
- package/dist/commonjs/features/list/html_text_buffer.js +1 -1
- package/dist/commonjs/features/list/html_ttml_parser.d.ts +1 -1
- package/dist/commonjs/features/list/html_ttml_parser.js +4 -4
- package/dist/commonjs/features/list/html_vtt_parser.d.ts +1 -1
- package/dist/commonjs/features/list/html_vtt_parser.js +4 -4
- package/dist/commonjs/features/list/media_source_main.d.ts +1 -1
- package/dist/commonjs/features/list/media_source_main.js +1 -2
- package/dist/commonjs/features/list/native_sami_parser.d.ts +1 -1
- package/dist/commonjs/features/list/native_sami_parser.js +4 -4
- package/dist/commonjs/features/list/native_srt_parser.d.ts +1 -1
- package/dist/commonjs/features/list/native_srt_parser.js +4 -4
- package/dist/commonjs/features/list/native_text_buffer.d.ts +1 -1
- package/dist/commonjs/features/list/native_text_buffer.js +1 -1
- package/dist/commonjs/features/list/native_ttml_parser.d.ts +1 -1
- package/dist/commonjs/features/list/native_ttml_parser.js +4 -4
- package/dist/commonjs/features/list/native_vtt_parser.d.ts +1 -1
- package/dist/commonjs/features/list/native_vtt_parser.js +4 -4
- package/dist/commonjs/features/list/smooth.d.ts +1 -1
- package/dist/commonjs/features/list/smooth.js +1 -2
- package/dist/commonjs/features/types.d.ts +28 -23
- package/dist/commonjs/index.d.ts +1 -1
- package/dist/commonjs/index.js +3 -1
- package/dist/commonjs/main_thread/api/debug/buffer_graph.d.ts +28 -0
- package/dist/commonjs/main_thread/api/debug/buffer_graph.js +168 -0
- package/dist/commonjs/main_thread/api/debug/buffer_size_graph.js +131 -0
- package/dist/commonjs/main_thread/api/debug/modules/general_info.d.ts +3 -0
- package/dist/commonjs/main_thread/api/debug/modules/general_info.js +236 -0
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_content.d.ts +4 -0
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_content.js +127 -0
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_size.d.ts +3 -0
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_size.js +38 -0
- package/dist/commonjs/main_thread/api/debug/render.d.ts +3 -0
- package/dist/commonjs/main_thread/api/index.d.ts +17 -0
- package/dist/commonjs/main_thread/api/index.js +19 -0
- package/dist/commonjs/main_thread/api/option_utils.d.ts +124 -0
- package/dist/commonjs/main_thread/api/option_utils.js +335 -0
- package/dist/commonjs/main_thread/api/public_api.d.ts +768 -0
- package/dist/commonjs/main_thread/api/public_api.js +2557 -0
- package/dist/commonjs/main_thread/api/utils.d.ts +66 -0
- package/dist/commonjs/main_thread/api/utils.js +178 -0
- package/dist/commonjs/main_thread/decrypt/__tests__/__global__/utils.d.ts +184 -0
- package/dist/commonjs/main_thread/decrypt/__tests__/__global__/utils.js +439 -0
- package/dist/commonjs/main_thread/decrypt/attach_media_keys.d.ts +53 -0
- package/dist/commonjs/main_thread/decrypt/attach_media_keys.js +124 -0
- package/dist/commonjs/main_thread/decrypt/clear_on_stop.js +43 -0
- package/dist/commonjs/main_thread/decrypt/content_decryptor.d.ts +185 -0
- package/dist/commonjs/main_thread/decrypt/content_decryptor.js +1053 -0
- package/dist/commonjs/main_thread/decrypt/create_or_load_session.d.ts +64 -0
- package/dist/commonjs/main_thread/decrypt/create_or_load_session.js +135 -0
- package/dist/commonjs/main_thread/decrypt/create_session.d.ts +54 -0
- package/dist/commonjs/main_thread/decrypt/create_session.js +215 -0
- package/dist/commonjs/main_thread/decrypt/dispose_decryption_resources.js +83 -0
- package/dist/commonjs/main_thread/decrypt/find_key_system.d.ts +48 -0
- package/dist/commonjs/main_thread/decrypt/find_key_system.js +375 -0
- package/dist/commonjs/main_thread/decrypt/get_media_keys.d.ts +44 -0
- package/dist/commonjs/main_thread/decrypt/get_media_keys.js +165 -0
- package/dist/commonjs/main_thread/decrypt/index.d.ts +26 -0
- package/dist/commonjs/main_thread/decrypt/init_media_keys.d.ts +26 -0
- package/dist/commonjs/main_thread/decrypt/init_media_keys.js +87 -0
- package/dist/commonjs/main_thread/decrypt/session_events_listener.d.ts +75 -0
- package/dist/commonjs/main_thread/decrypt/session_events_listener.js +325 -0
- package/dist/commonjs/main_thread/decrypt/set_server_certificate.d.ts +51 -0
- package/dist/commonjs/main_thread/decrypt/set_server_certificate.js +145 -0
- package/dist/commonjs/main_thread/decrypt/types.d.ts +374 -0
- package/dist/commonjs/main_thread/decrypt/utils/are_init_values_compatible.js +144 -0
- package/dist/commonjs/main_thread/decrypt/utils/check_key_statuses.d.ts +52 -0
- package/dist/commonjs/main_thread/decrypt/utils/check_key_statuses.js +211 -0
- package/dist/commonjs/main_thread/decrypt/utils/clean_old_loaded_sessions.d.ts +26 -0
- package/dist/commonjs/main_thread/decrypt/utils/clean_old_stored_persistent_info.d.ts +32 -0
- package/dist/commonjs/main_thread/decrypt/utils/init_data_values_container.d.ts +69 -0
- package/dist/commonjs/main_thread/decrypt/utils/init_data_values_container.js +137 -0
- package/dist/commonjs/main_thread/decrypt/utils/is_session_usable.d.ts +24 -0
- package/dist/commonjs/main_thread/decrypt/utils/is_session_usable.js +51 -0
- package/dist/commonjs/main_thread/decrypt/utils/key_session_record.d.ts +104 -0
- package/dist/commonjs/main_thread/decrypt/utils/key_session_record.js +189 -0
- package/dist/commonjs/main_thread/decrypt/utils/loaded_sessions_store.d.ts +213 -0
- package/dist/commonjs/main_thread/decrypt/utils/loaded_sessions_store.js +518 -0
- package/dist/commonjs/main_thread/decrypt/utils/media_keys_infos_store.d.ts +56 -0
- package/dist/commonjs/main_thread/decrypt/utils/media_keys_infos_store.js +45 -0
- package/dist/commonjs/main_thread/decrypt/utils/persistent_sessions_store.d.ts +94 -0
- package/dist/commonjs/main_thread/decrypt/utils/persistent_sessions_store.js +356 -0
- package/dist/commonjs/main_thread/decrypt/utils/serializable_bytes.d.ts +44 -0
- package/dist/commonjs/main_thread/decrypt/utils/serializable_bytes.js +50 -0
- package/dist/commonjs/main_thread/decrypt/utils/server_certificate_store.d.ts +64 -0
- package/dist/commonjs/main_thread/decrypt/utils/server_certificate_store.js +123 -0
- package/dist/commonjs/main_thread/init/directfile_content_initializer.d.ts +97 -0
- package/dist/commonjs/main_thread/init/directfile_content_initializer.js +264 -0
- package/dist/commonjs/main_thread/init/media_source_content_initializer.d.ts +166 -0
- package/dist/commonjs/main_thread/init/media_source_content_initializer.js +918 -0
- package/dist/commonjs/main_thread/init/multi_thread_content_initializer.d.ts +222 -0
- package/dist/commonjs/main_thread/init/multi_thread_content_initializer.js +1477 -0
- package/dist/commonjs/main_thread/init/send_message.d.ts +2 -0
- package/dist/commonjs/main_thread/init/send_message.js +13 -0
- package/dist/commonjs/main_thread/init/types.d.ts +221 -0
- package/dist/commonjs/main_thread/init/utils/create_core_playback_observer.d.ts +83 -0
- package/dist/commonjs/main_thread/init/utils/create_core_playback_observer.js +105 -0
- package/dist/commonjs/main_thread/init/utils/create_media_source.d.ts +37 -0
- package/dist/commonjs/main_thread/init/utils/create_media_source.js +106 -0
- package/dist/commonjs/main_thread/init/utils/get_initial_time.d.ts +76 -0
- package/dist/commonjs/main_thread/init/utils/get_initial_time.js +109 -0
- package/dist/commonjs/main_thread/init/utils/get_loaded_reference.d.ts +28 -0
- package/dist/commonjs/main_thread/init/utils/get_loaded_reference.js +67 -0
- package/dist/commonjs/main_thread/init/utils/initial_seek_and_play.d.ts +61 -0
- package/dist/commonjs/main_thread/init/utils/initial_seek_and_play.js +204 -0
- package/dist/commonjs/main_thread/init/utils/initialize_content_decryption.d.ts +87 -0
- package/dist/commonjs/main_thread/init/utils/initialize_content_decryption.js +119 -0
- package/dist/commonjs/main_thread/init/utils/main_thread_text_displayer_interface.d.ts +35 -0
- package/dist/commonjs/main_thread/init/utils/rebuffering_controller.d.ts +114 -0
- package/dist/commonjs/main_thread/init/utils/rebuffering_controller.js +450 -0
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/are_same_stream_events.js +35 -0
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/index.d.ts +18 -0
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +25 -0
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +98 -0
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts +53 -0
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/stream_events_emitter.js +230 -0
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/types.d.ts +41 -0
- package/dist/commonjs/main_thread/init/utils/throw_on_media_error.d.ts +23 -0
- package/dist/commonjs/main_thread/init/utils/throw_on_media_error.js +66 -0
- package/dist/commonjs/main_thread/text_displayer/html/html_parsers.js +25 -0
- package/dist/commonjs/main_thread/text_displayer/html/html_text_displayer.d.ts +100 -0
- package/dist/commonjs/main_thread/text_displayer/html/html_text_displayer.js +318 -0
- package/dist/commonjs/main_thread/text_displayer/html/text_track_cues_store.d.ts +65 -0
- package/dist/commonjs/main_thread/text_displayer/html/text_track_cues_store.js +378 -0
- package/dist/commonjs/main_thread/text_displayer/html/update_proportional_elements.js +64 -0
- package/dist/commonjs/main_thread/text_displayer/html/utils.js +119 -0
- package/dist/commonjs/main_thread/text_displayer/index.d.ts +2 -0
- package/dist/commonjs/main_thread/text_displayer/manual_time_ranges.js +52 -0
- package/dist/commonjs/main_thread/text_displayer/native/native_parsers.d.ts +11 -0
- package/dist/commonjs/main_thread/text_displayer/native/native_parsers.js +25 -0
- package/dist/commonjs/main_thread/text_displayer/native/native_text_displayer.d.ts +56 -0
- package/dist/commonjs/main_thread/text_displayer/native/native_text_displayer.js +207 -0
- package/dist/commonjs/main_thread/text_displayer/types.d.ts +71 -0
- package/dist/commonjs/main_thread/text_displayer/types.js +2 -0
- package/dist/commonjs/main_thread/tracks_store/index.d.ts +20 -0
- package/dist/commonjs/main_thread/tracks_store/media_element_tracks_store.d.ts +197 -0
- package/dist/commonjs/main_thread/tracks_store/media_element_tracks_store.js +691 -0
- package/dist/commonjs/main_thread/tracks_store/track_dispatcher.d.ts +101 -0
- package/dist/commonjs/main_thread/tracks_store/track_dispatcher.js +198 -0
- package/dist/commonjs/main_thread/tracks_store/tracks_store.d.ts +448 -0
- package/dist/commonjs/main_thread/tracks_store/tracks_store.js +1096 -0
- package/dist/commonjs/main_thread/types.d.ts +5 -0
- package/dist/commonjs/main_thread/types.js +2 -0
- package/dist/commonjs/manifest/classes/adaptation.d.ts +134 -0
- package/dist/commonjs/manifest/classes/adaptation.js +237 -0
- package/dist/commonjs/manifest/classes/index.d.ts +25 -0
- package/dist/commonjs/manifest/classes/index.js +46 -0
- package/dist/commonjs/manifest/classes/manifest.d.ts +391 -0
- package/dist/commonjs/manifest/classes/manifest.js +494 -0
- package/dist/commonjs/manifest/classes/period.d.ts +106 -0
- package/dist/commonjs/manifest/classes/period.js +235 -0
- package/dist/commonjs/manifest/classes/representation.d.ts +238 -0
- package/dist/commonjs/manifest/classes/representation.js +382 -0
- package/dist/commonjs/manifest/classes/representation_index/index.d.ts +18 -0
- package/dist/commonjs/manifest/classes/representation_index/static.d.ts +101 -0
- package/dist/commonjs/manifest/classes/representation_index/static.js +147 -0
- package/dist/commonjs/manifest/classes/representation_index/types.d.ts +420 -0
- package/dist/commonjs/manifest/classes/types.d.ts +29 -0
- package/dist/commonjs/manifest/classes/types.js +33 -0
- package/dist/commonjs/manifest/classes/update_period_in_place.d.ts +53 -0
- package/dist/commonjs/manifest/classes/update_period_in_place.js +172 -0
- package/dist/commonjs/manifest/classes/update_periods.d.ts +50 -0
- package/dist/commonjs/manifest/classes/update_periods.js +229 -0
- package/dist/commonjs/manifest/classes/utils.d.ts +39 -0
- package/dist/commonjs/manifest/classes/utils.js +54 -0
- package/dist/commonjs/manifest/index.d.ts +15 -25
- package/dist/commonjs/manifest/index.js +5 -46
- package/dist/commonjs/manifest/types.d.ts +2 -31
- package/dist/commonjs/manifest/types.js +0 -16
- package/dist/commonjs/manifest/utils.d.ts +11 -49
- package/dist/commonjs/manifest/utils.js +55 -79
- package/dist/commonjs/minimal.d.ts +1 -1
- package/dist/commonjs/minimal.js +6 -1
- package/dist/commonjs/mse/main_codec_support_prober.d.ts +1 -1
- package/dist/commonjs/mse/main_media_source_interface.d.ts +2 -2
- package/dist/commonjs/mse/main_media_source_interface.js +59 -34
- package/dist/commonjs/mse/types.d.ts +3 -3
- package/dist/commonjs/mse/utils/end_of_stream.d.ts +33 -0
- package/dist/commonjs/mse/utils/end_of_stream.js +114 -0
- package/dist/commonjs/mse/utils/media_source_duration_updater.js +272 -0
- package/dist/commonjs/mse/worker_codec_support_prober.d.ts +1 -1
- package/dist/commonjs/mse/worker_media_source_interface.d.ts +4 -4
- package/dist/commonjs/mse/worker_media_source_interface.js +19 -17
- package/dist/commonjs/multithread_types.d.ts +15 -18
- package/dist/commonjs/parsers/containers/isobmff/create_box.d.ts +1 -1
- package/dist/commonjs/parsers/containers/isobmff/create_box.js +4 -3
- package/dist/commonjs/parsers/containers/isobmff/drm/playready.js +1 -2
- package/dist/commonjs/parsers/containers/isobmff/extract_complete_chunks.js +95 -0
- package/dist/commonjs/parsers/containers/isobmff/find_complete_box.js +57 -0
- package/dist/commonjs/parsers/containers/isobmff/get_box.js +2 -4
- package/dist/commonjs/parsers/containers/isobmff/index.d.ts +5 -3
- package/dist/commonjs/parsers/containers/isobmff/index.js +5 -1
- package/dist/commonjs/parsers/containers/isobmff/read.d.ts +1 -1
- package/dist/commonjs/parsers/containers/isobmff/read.js +7 -7
- package/dist/commonjs/parsers/containers/isobmff/take_pssh_out.js +3 -4
- package/dist/commonjs/parsers/containers/isobmff/utils.js +64 -40
- package/dist/commonjs/parsers/containers/matroska/index.d.ts +1 -1
- package/dist/commonjs/parsers/containers/matroska/utils.js +42 -29
- package/dist/commonjs/parsers/images/bif.js +17 -4
- package/dist/commonjs/parsers/manifest/dash/common/attach_trickmode_track.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/convert_supplemental_codecs.js +1 -3
- package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.js +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/get_hdr_information.js +4 -12
- 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.js +4 -5
- 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.js +5 -2
- 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.js +14 -10
- package/dist/commonjs/parsers/manifest/dash/common/index.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/base.d.ts +5 -5
- package/dist/commonjs/parsers/manifest/dash/common/indexes/base.js +39 -29
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_init_segment.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_init_segment.js +8 -4
- 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.js +14 -10
- package/dist/commonjs/parsers/manifest/dash/common/indexes/list.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/common/indexes/list.js +33 -20
- package/dist/commonjs/parsers/manifest/dash/common/indexes/template.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/dash/common/indexes/template.js +58 -57
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +5 -4
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +13 -10
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +3 -2
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +23 -18
- 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.js +16 -9
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +4 -3
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +47 -26
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts +11 -2
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/parse_s_element.js +74 -3
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +9 -8
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +85 -66
- package/dist/commonjs/parsers/manifest/dash/common/indexes/tokens.js +2 -4
- package/dist/commonjs/parsers/manifest/dash/common/infer_adaptation_type.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/infer_adaptation_type.js +2 -2
- package/dist/commonjs/parsers/manifest/dash/common/manifest_bounds_calculator.js +9 -10
- package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.d.ts +5 -5
- package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.js +63 -56
- package/dist/commonjs/parsers/manifest/dash/common/parse_availability_start_time.d.ts +3 -2
- package/dist/commonjs/parsers/manifest/dash/common/parse_availability_start_time.js +5 -3
- package/dist/commonjs/parsers/manifest/dash/common/parse_mpd.d.ts +6 -6
- package/dist/commonjs/parsers/manifest/dash/common/parse_mpd.js +67 -41
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.d.ts +5 -5
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.js +46 -29
- package/dist/commonjs/parsers/manifest/dash/common/parse_representation_index.d.ts +5 -5
- package/dist/commonjs/parsers/manifest/dash/common/parse_representation_index.js +4 -6
- package/dist/commonjs/parsers/manifest/dash/common/parse_representations.d.ts +5 -5
- package/dist/commonjs/parsers/manifest/dash/common/parse_representations.js +66 -64
- package/dist/commonjs/parsers/manifest/dash/common/resolve_base_urls.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/resolve_base_urls.js +4 -2
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/index.d.ts +17 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/index.js +19 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/AdaptationSet.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/AdaptationSet.js +400 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/BaseURL.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/BaseURL.js +33 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/ContentComponent.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/ContentComponent.js +70 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/ContentProtection.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/ContentProtection.js +118 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/EventStream.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/EventStream.js +154 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Initialization.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Initialization.js +70 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/MPD.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/MPD.js +221 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Period.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Period.js +179 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Representation.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/Representation.js +256 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentBase.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentBase.js +152 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentList.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentList.js +60 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTemplate.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTemplate.js +125 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTimeline.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTimeline.js +36 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentURL.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentURL.js +82 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/utils.d.ts +176 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/node_parsers/utils.js +382 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/parse_from_xml_string.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/fast-js-parser/parse_from_xml_string.js +142 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/AdaptationSet.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/AdaptationSet.js +374 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/BaseURL.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/BaseURL.js +32 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/ContentComponent.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/ContentProtection.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/EventStream.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/EventStream.js +119 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/Initialization.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/Initialization.js +44 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/MPD.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/MPD.js +181 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/Period.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/Period.js +138 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/Representation.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/Representation.js +230 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/SegmentBase.d.ts +22 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/SegmentBase.js +126 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/SegmentList.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/SegmentTemplate.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/SegmentTemplate.js +102 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/SegmentTimeline.d.ts +21 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/SegmentURL.d.ts +23 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/SegmentURL.js +56 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/utils.d.ts +169 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/node_parsers/utils.js +346 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/parse_from_document.d.ts +24 -0
- package/dist/commonjs/parsers/manifest/dash/native-parser/parse_from_document.js +136 -0
- package/dist/commonjs/parsers/manifest/dash/node_parser_types.d.ts +5 -3
- package/dist/commonjs/parsers/manifest/dash/parsers_types.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +31 -17
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts +3 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +21 -25
- 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/ContentComponent.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.js +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +4 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts +3 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.js +2 -4
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts +3 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +4 -4
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts +3 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +9 -6
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts +3 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +13 -15
- 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.js +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.js +5 -10
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts +3 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.js +11 -18
- 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.js +2 -4
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts +3 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/XLink.js +4 -4
- 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.js +7 -3
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/parsers_stack.js +5 -2
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/utils.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/utils.js +7 -3
- package/dist/commonjs/parsers/manifest/local/parse_local_manifest.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/local/parse_local_manifest.js +25 -16
- package/dist/commonjs/parsers/manifest/local/representation_index.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/local/representation_index.js +8 -10
- package/dist/commonjs/parsers/manifest/metaplaylist/index.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts +4 -4
- package/dist/commonjs/parsers/manifest/metaplaylist/metaplaylist_parser.js +48 -43
- package/dist/commonjs/parsers/manifest/metaplaylist/representation_index.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/metaplaylist/representation_index.js +10 -7
- package/dist/commonjs/parsers/manifest/smooth/create_parser.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/smooth/create_parser.js +130 -108
- package/dist/commonjs/parsers/manifest/smooth/get_codecs.js +3 -3
- package/dist/commonjs/parsers/manifest/smooth/index.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/smooth/parse_C_nodes.js +9 -9
- package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.js +12 -8
- package/dist/commonjs/parsers/manifest/smooth/representation_index.d.ts +3 -3
- package/dist/commonjs/parsers/manifest/smooth/representation_index.js +37 -37
- package/dist/commonjs/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/smooth/shared_smooth_segment_timeline.js +8 -9
- package/dist/commonjs/parsers/manifest/smooth/utils/add_segment_infos.js +10 -7
- package/dist/commonjs/parsers/manifest/smooth/utils/parseBoolean.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/smooth/utils/parseBoolean.js +1 -1
- package/dist/commonjs/parsers/manifest/smooth/utils/tokens.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/smooth/utils/tokens.js +1 -2
- package/dist/commonjs/parsers/manifest/types.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/utils/check_manifest_ids.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/utils/clear_timeline_from_position.d.ts +3 -2
- package/dist/commonjs/parsers/manifest/utils/clear_timeline_from_position.js +11 -7
- 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.js +5 -4
- 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.js +5 -4
- package/dist/commonjs/parsers/manifest/utils/get_maximum_positions.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/utils/get_maximum_positions.js +11 -17
- package/dist/commonjs/parsers/manifest/utils/get_minimum_position.d.ts +2 -2
- package/dist/commonjs/parsers/manifest/utils/get_minimum_position.js +5 -11
- package/dist/commonjs/parsers/manifest/utils/index_helpers.js +4 -5
- package/dist/commonjs/parsers/manifest/utils/update_segment_timeline.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/utils/update_segment_timeline.js +17 -17
- package/dist/commonjs/parsers/texttracks/index.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/sami/html.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/sami/html.js +17 -16
- package/dist/commonjs/parsers/texttracks/sami/native.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/sami/native.js +12 -18
- package/dist/commonjs/parsers/texttracks/srt/html.js +12 -10
- package/dist/commonjs/parsers/texttracks/srt/native.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/srt/native.js +2 -8
- package/dist/commonjs/parsers/texttracks/srt/parse_cue.js +4 -8
- package/dist/commonjs/parsers/texttracks/ttml/get_parameters.js +7 -8
- package/dist/commonjs/parsers/texttracks/ttml/get_time_delimiters.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/get_time_delimiters.js +9 -10
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.js +2 -2
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_extent.js +5 -9
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_font_size.js +6 -7
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_line_height.js +2 -2
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_origin.js +5 -9
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_padding.js +7 -11
- package/dist/commonjs/parsers/texttracks/ttml/html/create_element.d.ts +2 -2
- package/dist/commonjs/parsers/texttracks/ttml/html/create_element.js +29 -22
- package/dist/commonjs/parsers/texttracks/ttml/html/generate_css_test_outline.js +2 -2
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_cue.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_cue.js +5 -3
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/ttml_color_to_css_color.js +39 -23
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_cue.d.ts +2 -2
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_cue.js +14 -13
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/parse_ttml.d.ts +3 -3
- package/dist/commonjs/parsers/texttracks/ttml/parse_ttml.js +27 -15
- package/dist/commonjs/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/time_parsing.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/ttml/time_parsing.js +2 -2
- package/dist/commonjs/parsers/texttracks/ttml/xml_utils.js +2 -1
- package/dist/commonjs/parsers/texttracks/types.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/get_style_blocks.js +2 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_default_style_elements.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_style_attribute.js +6 -12
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_styled_element.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_styled_element.js +7 -8
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_style_block.js +4 -4
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_to_div.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_to_div.js +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/to_html.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/to_html.js +4 -10
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_vtt_to_cues.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_vtt_to_cues.js +5 -9
- package/dist/commonjs/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts +1 -1
- package/dist/commonjs/parsers/texttracks/webvtt/native/to_native_cue.d.ts +2 -2
- package/dist/commonjs/parsers/texttracks/webvtt/native/to_native_cue.js +3 -3
- package/dist/commonjs/parsers/texttracks/webvtt/parse_cue_block.js +9 -5
- package/dist/commonjs/parsers/texttracks/webvtt/parse_timestamp.js +1 -2
- package/dist/commonjs/parsers/texttracks/webvtt/utils.js +6 -6
- package/dist/commonjs/playback_observer/index.d.ts +6 -0
- package/dist/commonjs/playback_observer/index.js +5 -0
- package/dist/commonjs/playback_observer/media_element_playback_observer.d.ts +203 -0
- package/dist/commonjs/playback_observer/media_element_playback_observer.js +685 -0
- package/dist/commonjs/playback_observer/types.d.ts +223 -0
- package/dist/commonjs/playback_observer/types.js +2 -0
- package/dist/commonjs/playback_observer/utils/generate_read_only_observer.d.ts +11 -0
- package/dist/commonjs/playback_observer/utils/generate_read_only_observer.js +44 -0
- package/dist/commonjs/playback_observer/utils/observation_position.d.ts +87 -0
- package/dist/commonjs/playback_observer/utils/observation_position.js +88 -0
- package/dist/commonjs/playback_observer/worker_playback_observer.d.ts +72 -0
- package/dist/commonjs/playback_observer/worker_playback_observer.js +49 -0
- package/dist/commonjs/public_types.d.ts +13 -16
- package/dist/commonjs/public_types.js +0 -1
- package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.d.ts +2 -2
- package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.js +10 -7
- package/dist/commonjs/tools/index.d.ts +1 -1
- package/dist/commonjs/tools/parseBIFThumbnails/index.js +5 -4
- package/dist/commonjs/transports/dash/add_segment_integrity_checks_to_loader.d.ts +1 -1
- package/dist/commonjs/transports/dash/add_segment_integrity_checks_to_loader.js +2 -3
- package/dist/commonjs/transports/dash/construct_segment_url.d.ts +2 -2
- package/dist/commonjs/transports/dash/construct_segment_url.js +7 -3
- package/dist/commonjs/transports/dash/get_events_out_of_emsgs.d.ts +2 -2
- package/dist/commonjs/transports/dash/get_events_out_of_emsgs.js +12 -10
- package/dist/commonjs/transports/dash/init_segment_loader.d.ts +3 -3
- package/dist/commonjs/transports/dash/init_segment_loader.js +46 -22
- package/dist/commonjs/transports/dash/low_latency_segment_loader.d.ts +2 -2
- package/dist/commonjs/transports/dash/low_latency_segment_loader.js +18 -11
- package/dist/commonjs/transports/dash/manifest_parser.d.ts +2 -2
- package/dist/commonjs/transports/dash/manifest_parser.js +69 -28
- package/dist/commonjs/transports/dash/pipelines.d.ts +1 -1
- package/dist/commonjs/transports/dash/pipelines.js +15 -12
- package/dist/commonjs/transports/dash/segment_loader.d.ts +4 -4
- package/dist/commonjs/transports/dash/segment_loader.js +35 -21
- package/dist/commonjs/transports/dash/segment_parser.d.ts +2 -2
- package/dist/commonjs/transports/dash/segment_parser.js +54 -22
- package/dist/commonjs/transports/dash/text_loader.d.ts +2 -2
- package/dist/commonjs/transports/dash/text_loader.js +21 -18
- package/dist/commonjs/transports/dash/text_parser.d.ts +2 -2
- package/dist/commonjs/transports/dash/text_parser.js +49 -23
- package/dist/commonjs/transports/index.d.ts +1 -1
- package/dist/commonjs/transports/index.js +0 -15
- package/dist/commonjs/transports/local/pipelines.d.ts +1 -1
- package/dist/commonjs/transports/local/pipelines.js +15 -10
- package/dist/commonjs/transports/local/segment_loader.d.ts +3 -3
- package/dist/commonjs/transports/local/segment_loader.js +14 -6
- package/dist/commonjs/transports/local/segment_parser.d.ts +1 -1
- package/dist/commonjs/transports/local/segment_parser.js +30 -12
- package/dist/commonjs/transports/local/text_parser.d.ts +1 -1
- package/dist/commonjs/transports/local/text_parser.js +48 -18
- package/dist/commonjs/transports/metaplaylist/manifest_loader.d.ts +4 -4
- package/dist/commonjs/transports/metaplaylist/manifest_loader.js +9 -5
- package/dist/commonjs/transports/metaplaylist/pipelines.d.ts +1 -1
- package/dist/commonjs/transports/metaplaylist/pipelines.js +38 -22
- package/dist/commonjs/transports/smooth/extract_timings_infos.d.ts +2 -2
- package/dist/commonjs/transports/smooth/extract_timings_infos.js +14 -13
- package/dist/commonjs/transports/smooth/is_mp4_embedded_track.d.ts +1 -1
- package/dist/commonjs/transports/smooth/is_mp4_embedded_track.js +1 -1
- package/dist/commonjs/transports/smooth/isobmff/create_audio_init_segment.d.ts +0 -1
- package/dist/commonjs/transports/smooth/isobmff/create_audio_init_segment.js +3 -4
- package/dist/commonjs/transports/smooth/isobmff/create_boxes.js +22 -31
- package/dist/commonjs/transports/smooth/isobmff/create_init_segment.js +1 -1
- package/dist/commonjs/transports/smooth/isobmff/get_aaces_header.js +4 -16
- package/dist/commonjs/transports/smooth/isobmff/parse_tfrf.js +1 -1
- package/dist/commonjs/transports/smooth/isobmff/parse_tfxd.js +1 -1
- package/dist/commonjs/transports/smooth/isobmff/patch_segment.js +12 -11
- package/dist/commonjs/transports/smooth/pipelines.d.ts +1 -1
- package/dist/commonjs/transports/smooth/pipelines.js +101 -60
- package/dist/commonjs/transports/smooth/segment_loader.d.ts +3 -3
- package/dist/commonjs/transports/smooth/segment_loader.js +50 -27
- package/dist/commonjs/transports/smooth/utils.d.ts +4 -4
- package/dist/commonjs/transports/smooth/utils.js +9 -5
- package/dist/commonjs/transports/types.d.ts +22 -27
- package/dist/commonjs/transports/utils/byte_range.js +1 -2
- package/dist/commonjs/transports/utils/call_custom_manifest_loader.d.ts +3 -3
- package/dist/commonjs/transports/utils/call_custom_manifest_loader.js +10 -6
- package/dist/commonjs/transports/utils/check_isobmff_integrity.js +5 -5
- package/dist/commonjs/transports/utils/generate_manifest_loader.d.ts +3 -3
- package/dist/commonjs/transports/utils/generate_manifest_loader.js +18 -6
- package/dist/commonjs/transports/utils/get_isobmff_timing_infos.d.ts +2 -2
- package/dist/commonjs/transports/utils/get_isobmff_timing_infos.js +12 -11
- package/dist/commonjs/transports/utils/infer_segment_container.d.ts +1 -1
- package/dist/commonjs/transports/utils/infer_segment_container.js +1 -3
- package/dist/commonjs/transports/utils/parse_text_track.d.ts +4 -4
- package/dist/commonjs/transports/utils/parse_text_track.js +4 -7
- package/dist/commonjs/utils/array_includes.js +2 -6
- package/dist/commonjs/utils/assert.js +3 -6
- package/dist/commonjs/utils/base64.js +87 -29
- package/dist/commonjs/utils/byte_parsing.js +64 -56
- package/dist/commonjs/utils/cancellable_sleep.d.ts +1 -1
- package/dist/commonjs/utils/create_cancellable_promise.d.ts +1 -1
- package/dist/commonjs/utils/deep_merge.js +4 -4
- package/dist/commonjs/utils/event_emitter.d.ts +1 -1
- package/dist/commonjs/utils/event_emitter.js +1 -2
- package/dist/commonjs/utils/get_fuzzed_delay.js +1 -1
- package/dist/commonjs/utils/global_scope.d.ts +1 -1
- package/dist/commonjs/utils/global_scope.js +10 -3
- package/dist/commonjs/utils/hash_buffer.js +1 -1
- package/dist/commonjs/utils/languages/normalize.js +4 -2
- package/dist/commonjs/utils/logger.js +21 -31
- package/dist/commonjs/utils/monotonic_timestamp.d.ts +6 -9
- package/dist/commonjs/utils/monotonic_timestamp.js +15 -6
- package/dist/commonjs/utils/object_assign.d.ts +6 -3
- package/dist/commonjs/utils/object_assign.js +5 -7
- package/dist/commonjs/utils/object_values.d.ts +1 -1
- package/dist/commonjs/utils/object_values.js +2 -3
- package/dist/commonjs/utils/queue_microtask.js +3 -3
- package/dist/commonjs/utils/ranges.js +22 -29
- package/dist/commonjs/utils/reference.d.ts +1 -1
- package/dist/commonjs/utils/reference.js +1 -3
- package/dist/commonjs/utils/request/fetch.d.ts +1 -1
- package/dist/commonjs/utils/request/fetch.js +33 -22
- package/dist/commonjs/utils/request/request_error.js +2 -2
- package/dist/commonjs/utils/request/xhr.d.ts +1 -1
- package/dist/commonjs/utils/request/xhr.js +28 -17
- package/dist/commonjs/utils/retry_promise_with_backoff.d.ts +10 -1
- package/dist/commonjs/utils/retry_promise_with_backoff.js +18 -4
- package/dist/commonjs/utils/slice_uint8array.js +3 -3
- package/dist/commonjs/utils/starts_with.js +3 -3
- package/dist/commonjs/utils/string_parsing.js +16 -18
- package/dist/commonjs/utils/sync_or_async.js +6 -2
- package/dist/commonjs/utils/task_canceller.js +1 -2
- package/dist/commonjs/utils/wrapInPromise.d.ts +1 -1
- package/dist/commonjs/utils/xml-parser.d.ts +70 -0
- package/dist/commonjs/utils/xml-parser.js +357 -0
- package/dist/commonjs/worker_entry_point.js +1 -1
- package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.js +1 -1
- package/dist/es2017/__GENERATED_CODE/embedded_worker.js +1 -1
- package/dist/es2017/__GENERATED_CODE/embedded_worker_es5.d.ts +3 -0
- package/dist/es2017/__GENERATED_CODE/embedded_worker_es5.js +3 -0
- package/dist/es2017/__GENERATED_CODE/index.d.ts +1 -0
- package/dist/es2017/__GENERATED_CODE/index.js +1 -0
- package/dist/es2017/compat/add_class_name.js +4 -3
- package/dist/es2017/compat/add_text_track.d.ts +1 -1
- package/dist/es2017/compat/add_text_track.js +3 -2
- package/dist/es2017/compat/browser_compatibility_types.js +13 -7
- package/dist/es2017/compat/browser_detection.d.ts +3 -1
- package/dist/es2017/compat/browser_detection.js +15 -12
- package/dist/es2017/compat/can_reuse_media_keys.js +1 -1
- package/dist/es2017/compat/can_seek_directly_after_loaded_metadata.d.ts +7 -0
- package/dist/es2017/compat/can_seek_directly_after_loaded_metadata.js +8 -0
- package/dist/es2017/compat/change_source_buffer_type.d.ts +1 -1
- package/dist/es2017/compat/eme/close_session.d.ts +1 -1
- package/dist/es2017/compat/eme/close_session.js +17 -13
- package/dist/es2017/compat/eme/custom_key_system_access.d.ts +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.d.ts +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.js +14 -7
- package/dist/es2017/compat/eme/custom_media_keys/index.js +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +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.js +10 -10
- package/dist/es2017/compat/eme/custom_media_keys/types.d.ts +1 -1
- 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.js +5 -9
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +3 -3
- package/dist/es2017/compat/eme/eme-api-implementation.d.ts +3 -3
- package/dist/es2017/compat/eme/eme-api-implementation.js +13 -12
- package/dist/es2017/compat/eme/generate_key_request.d.ts +1 -1
- package/dist/es2017/compat/eme/generate_key_request.js +17 -20
- package/dist/es2017/compat/eme/get_init_data.js +5 -7
- package/dist/es2017/compat/eme/get_uuid_kid_from_keystatus_kid.js +2 -3
- package/dist/es2017/compat/eme/get_webkit_fairplay_initdata.js +12 -13
- package/dist/es2017/compat/eme/load_session.d.ts +1 -1
- package/dist/es2017/compat/eme/set_media_keys.d.ts +9 -0
- package/dist/es2017/compat/eme/set_media_keys.js +33 -0
- package/dist/es2017/compat/enable_audio_track.d.ts +1 -1
- package/dist/es2017/compat/event_listeners.d.ts +4 -4
- package/dist/es2017/compat/event_listeners.js +39 -36
- package/dist/es2017/compat/has_webassembly.js +1 -2
- package/dist/es2017/compat/has_worker_api.d.ts +9 -0
- package/dist/es2017/compat/has_worker_api.js +14 -0
- package/dist/es2017/compat/is_codec_supported.js +2 -1
- package/dist/es2017/compat/is_vtt_cue.d.ts +1 -1
- package/dist/es2017/compat/make_vtt_cue.d.ts +1 -1
- package/dist/es2017/compat/may_media_element_fail_on_undecipherable_data.d.ts +16 -0
- package/dist/es2017/compat/may_media_element_fail_on_undecipherable_data.js +17 -0
- package/dist/es2017/compat/on_height_width_change.d.ts +2 -2
- package/dist/es2017/compat/on_height_width_change.js +1 -1
- package/dist/es2017/compat/patch_webkit_source_buffer.js +28 -28
- package/dist/es2017/compat/should_await_set_media_keys.d.ts +16 -0
- package/dist/es2017/compat/should_await_set_media_keys.js +19 -0
- package/dist/es2017/compat/should_favour_custom_safari_EME.js +2 -2
- package/dist/es2017/compat/should_reload_media_source_on_decipherability_update.js +1 -2
- package/dist/es2017/config.d.ts +1 -1
- package/dist/es2017/core/adaptive/adaptive_representation_selector.d.ts +25 -22
- package/dist/es2017/core/adaptive/adaptive_representation_selector.js +40 -28
- package/dist/es2017/core/adaptive/buffer_based_chooser.d.ts +1 -1
- package/dist/es2017/core/adaptive/buffer_based_chooser.js +14 -12
- package/dist/es2017/core/adaptive/guess_based_chooser.d.ts +6 -6
- package/dist/es2017/core/adaptive/guess_based_chooser.js +8 -7
- package/dist/es2017/core/adaptive/index.d.ts +2 -2
- package/dist/es2017/core/adaptive/network_analyzer.d.ts +6 -6
- package/dist/es2017/core/adaptive/network_analyzer.js +45 -41
- package/dist/es2017/core/adaptive/utils/bandwidth_estimator.js +1 -1
- package/dist/es2017/core/adaptive/utils/ewma.js +1 -2
- package/dist/es2017/core/adaptive/utils/filter_by_bitrate.d.ts +2 -2
- package/dist/es2017/core/adaptive/utils/filter_by_resolution.d.ts +2 -2
- package/dist/es2017/core/adaptive/utils/filter_by_resolution.js +2 -4
- package/dist/es2017/core/adaptive/utils/get_buffer_levels.js +8 -5
- package/dist/es2017/core/adaptive/utils/last_estimate_storage.d.ts +3 -3
- package/dist/es2017/core/adaptive/utils/pending_requests_store.d.ts +5 -5
- package/dist/es2017/core/adaptive/utils/pending_requests_store.js +5 -6
- package/dist/es2017/core/adaptive/utils/representation_score_calculator.d.ts +7 -7
- package/dist/es2017/core/adaptive/utils/representation_score_calculator.js +10 -8
- package/dist/es2017/core/adaptive/utils/select_optimal_representation.d.ts +4 -4
- package/dist/es2017/core/adaptive/utils/select_optimal_representation.js +2 -2
- package/dist/es2017/core/fetchers/cdn_prioritizer.d.ts +2 -2
- package/dist/es2017/core/fetchers/cdn_prioritizer.js +5 -6
- package/dist/es2017/core/fetchers/manifest/index.d.ts +1 -1
- package/dist/es2017/core/fetchers/manifest/manifest_fetcher.d.ts +3 -3
- package/dist/es2017/core/fetchers/manifest/manifest_fetcher.js +76 -76
- package/dist/es2017/core/fetchers/segment/index.d.ts +1 -1
- package/dist/es2017/core/fetchers/segment/initialization_segment_cache.d.ts +4 -4
- package/dist/es2017/core/fetchers/segment/initialization_segment_cache.js +1 -1
- package/dist/es2017/core/fetchers/segment/prioritized_segment_fetcher.d.ts +4 -3
- package/dist/es2017/core/fetchers/segment/segment_fetcher.d.ts +12 -12
- package/dist/es2017/core/fetchers/segment/segment_fetcher.js +52 -37
- package/dist/es2017/core/fetchers/segment/segment_fetcher_creator.d.ts +5 -5
- package/dist/es2017/core/fetchers/segment/segment_fetcher_creator.js +5 -3
- package/dist/es2017/core/fetchers/segment/task_prioritizer.d.ts +1 -1
- package/dist/es2017/core/fetchers/segment/task_prioritizer.js +22 -21
- package/dist/es2017/core/fetchers/utils/error_selector.d.ts +1 -2
- package/dist/es2017/core/fetchers/utils/error_selector.js +1 -2
- package/dist/es2017/core/fetchers/utils/schedule_request.d.ts +3 -3
- package/dist/es2017/core/fetchers/utils/schedule_request.js +22 -23
- package/dist/es2017/core/main/common/DecipherabilityFreezeDetector.d.ts +79 -0
- package/dist/es2017/core/main/common/DecipherabilityFreezeDetector.js +91 -0
- package/dist/es2017/core/main/common/content_time_boundaries_observer.d.ts +191 -0
- package/dist/es2017/core/main/common/content_time_boundaries_observer.js +467 -0
- package/dist/es2017/core/main/common/create_content_time_boundaries_observer.d.ts +27 -0
- package/dist/es2017/core/main/common/create_content_time_boundaries_observer.js +41 -0
- package/dist/es2017/core/main/common/get_buffered_data_per_media_buffer.d.ts +14 -0
- package/dist/es2017/core/main/common/get_buffered_data_per_media_buffer.js +34 -0
- package/dist/es2017/core/main/worker/content_preparer.d.ts +93 -0
- package/dist/es2017/core/main/worker/content_preparer.js +239 -0
- package/dist/es2017/core/main/worker/globals.d.ts +13 -0
- package/dist/es2017/core/main/worker/globals.js +18 -0
- package/dist/es2017/core/main/worker/index.d.ts +2 -0
- package/dist/es2017/core/main/worker/index.js +2 -0
- package/dist/es2017/core/main/worker/send_message.d.ts +3 -0
- package/dist/es2017/core/main/worker/send_message.js +20 -0
- package/dist/es2017/core/main/worker/track_choice_setter.d.ts +19 -0
- package/dist/es2017/core/main/worker/track_choice_setter.js +114 -0
- package/dist/es2017/core/main/worker/worker_main.d.ts +1 -0
- package/dist/es2017/core/main/worker/worker_main.js +699 -0
- package/dist/es2017/core/main/worker/worker_text_displayer_interface.d.ts +64 -0
- package/dist/es2017/core/main/worker/worker_text_displayer_interface.js +120 -0
- package/dist/es2017/core/segment_sinks/garbage_collector.d.ts +43 -0
- package/dist/es2017/core/segment_sinks/garbage_collector.js +143 -0
- package/dist/es2017/core/segment_sinks/implementations/audio_video/audio_video_segment_buffer.d.ts +135 -0
- package/dist/es2017/core/segment_sinks/implementations/audio_video/audio_video_segment_buffer.js +265 -0
- package/dist/es2017/core/segment_sinks/implementations/audio_video/index.d.ts +17 -0
- package/dist/es2017/core/segment_sinks/implementations/audio_video/index.js +17 -0
- package/dist/es2017/core/segment_sinks/implementations/index.d.ts +19 -0
- package/dist/es2017/core/segment_sinks/implementations/index.js +18 -0
- package/dist/es2017/core/segment_sinks/implementations/text/index.d.ts +3 -0
- package/dist/es2017/core/segment_sinks/implementations/text/index.js +2 -0
- package/dist/es2017/core/segment_sinks/implementations/text/text_segment_buffer.d.ts +90 -0
- package/dist/es2017/core/segment_sinks/implementations/text/text_segment_buffer.js +156 -0
- package/dist/es2017/core/segment_sinks/implementations/types.d.ts +307 -0
- package/dist/es2017/core/segment_sinks/implementations/types.js +112 -0
- package/dist/es2017/core/segment_sinks/implementations/utils/manual_time_ranges.js +63 -0
- package/dist/es2017/core/segment_sinks/index.d.ts +21 -0
- package/dist/es2017/core/segment_sinks/index.js +21 -0
- package/dist/es2017/core/segment_sinks/inventory/buffered_history.d.ts +89 -0
- package/dist/es2017/core/segment_sinks/inventory/buffered_history.js +88 -0
- package/dist/es2017/core/segment_sinks/inventory/index.d.ts +21 -0
- package/dist/es2017/core/segment_sinks/inventory/index.js +18 -0
- package/dist/es2017/core/segment_sinks/inventory/segment_inventory.d.ts +238 -0
- package/dist/es2017/core/segment_sinks/inventory/segment_inventory.js +868 -0
- package/dist/es2017/core/segment_sinks/inventory/types.d.ts +27 -0
- package/dist/es2017/core/segment_sinks/inventory/utils.d.ts +33 -0
- package/dist/es2017/core/segment_sinks/inventory/utils.js +48 -0
- package/dist/es2017/core/segment_sinks/segment_buffers_store.d.ts +171 -0
- package/dist/es2017/core/segment_sinks/segment_buffers_store.js +281 -0
- package/dist/es2017/core/stream/adaptation/adaptation_stream.d.ts +4 -4
- package/dist/es2017/core/stream/adaptation/adaptation_stream.js +43 -32
- package/dist/es2017/core/stream/adaptation/get_representations_switch_strategy.d.ts +11 -11
- package/dist/es2017/core/stream/adaptation/get_representations_switch_strategy.js +31 -32
- package/dist/es2017/core/stream/adaptation/types.d.ts +18 -18
- package/dist/es2017/core/stream/index.d.ts +1 -1
- package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.d.ts +5 -5
- package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.js +6 -6
- package/dist/es2017/core/stream/orchestrator/stream_orchestrator.d.ts +20 -19
- package/dist/es2017/core/stream/orchestrator/stream_orchestrator.js +68 -57
- package/dist/es2017/core/stream/period/period_stream.d.ts +5 -5
- package/dist/es2017/core/stream/period/period_stream.js +78 -58
- package/dist/es2017/core/stream/period/types.d.ts +23 -21
- package/dist/es2017/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +13 -13
- package/dist/es2017/core/stream/period/utils/get_adaptation_switch_strategy.js +34 -38
- package/dist/es2017/core/stream/representation/representation_stream.d.ts +5 -5
- package/dist/es2017/core/stream/representation/representation_stream.js +48 -35
- package/dist/es2017/core/stream/representation/types.d.ts +24 -24
- package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.d.ts +9 -9
- package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.js +13 -14
- package/dist/es2017/core/stream/representation/utils/check_for_discontinuity.d.ts +7 -7
- package/dist/es2017/core/stream/representation/utils/check_for_discontinuity.js +16 -18
- package/dist/es2017/core/stream/representation/utils/downloading_queue.d.ts +10 -10
- package/dist/es2017/core/stream/representation/utils/downloading_queue.js +11 -11
- package/dist/es2017/core/stream/representation/utils/get_buffer_status.d.ts +11 -11
- package/dist/es2017/core/stream/representation/utils/get_buffer_status.js +40 -31
- package/dist/es2017/core/stream/representation/utils/get_needed_segments.d.ts +6 -7
- package/dist/es2017/core/stream/representation/utils/get_needed_segments.js +26 -31
- package/dist/es2017/core/stream/representation/utils/push_init_segment.d.ts +13 -13
- package/dist/es2017/core/stream/representation/utils/push_init_segment.js +8 -9
- package/dist/es2017/core/stream/representation/utils/push_media_segment.d.ts +14 -14
- package/dist/es2017/core/stream/representation/utils/push_media_segment.js +14 -15
- package/dist/es2017/core/types.d.ts +8 -0
- package/dist/es2017/default_config.js +21 -18
- package/dist/es2017/errors/encrypted_media_error.d.ts +2 -2
- package/dist/es2017/errors/encrypted_media_error.js +5 -3
- package/dist/es2017/errors/error_codes.d.ts +3 -3
- package/dist/es2017/errors/error_codes.js +2 -1
- package/dist/es2017/errors/format_error.d.ts +2 -2
- package/dist/es2017/errors/format_error.js +2 -3
- package/dist/es2017/errors/is_known_error.d.ts +1 -1
- package/dist/es2017/errors/is_known_error.js +2 -2
- package/dist/es2017/errors/media_error.d.ts +2 -2
- package/dist/es2017/errors/media_error.js +5 -3
- package/dist/es2017/errors/network_error.d.ts +2 -2
- package/dist/es2017/errors/network_error.js +7 -5
- package/dist/es2017/errors/other_error.d.ts +1 -1
- package/dist/es2017/errors/other_error.js +2 -4
- package/dist/es2017/errors/source_buffer_error.js +4 -2
- package/dist/es2017/experimental/features/local.d.ts +1 -1
- package/dist/es2017/experimental/features/local.js +1 -2
- package/dist/es2017/experimental/features/metaplaylist.d.ts +1 -1
- package/dist/es2017/experimental/features/metaplaylist.js +1 -2
- package/dist/es2017/experimental/features/multi_thread.d.ts +1 -1
- package/dist/es2017/experimental/features/multi_thread.js +1 -2
- package/dist/es2017/experimental/index.d.ts +1 -1
- package/dist/es2017/experimental/index.js +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/dash.d.ts +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/index.d.ts +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/index.js +2 -2
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +3 -3
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +2 -2
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +5 -5
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +1 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +2 -2
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/types.d.ts +6 -6
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts +3 -3
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +14 -22
- package/dist/es2017/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +13 -23
- package/dist/es2017/experimental/tools/createMetaplaylist/index.d.ts +1 -1
- package/dist/es2017/experimental/tools/createMetaplaylist/index.js +8 -14
- package/dist/es2017/experimental/tools/index.d.ts +1 -1
- package/dist/es2017/experimental/tools/index.js +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/index.d.ts +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/index.js +9 -13
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.d.ts +4 -3
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.js +7 -4
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/capabilities.d.ts +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/capabilities.js +10 -47
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.d.ts +2 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.js +9 -6
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts +2 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.js +22 -14
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts +2 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +22 -18
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.js +10 -10
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/index.d.ts +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts +2 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.js +6 -7
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.d.ts +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.js +6 -11
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.d.ts +2 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.js +2 -3
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts +2 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +4 -4
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/types.d.ts +2 -2
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/utils.d.ts +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/utils.js +8 -7
- package/dist/es2017/features/add_features.d.ts +1 -1
- package/dist/es2017/features/features_object.d.ts +1 -1
- package/dist/es2017/features/features_object.js +4 -3
- package/dist/es2017/features/index.d.ts +1 -1
- package/dist/es2017/features/index.js +1 -1
- package/dist/es2017/features/list/dash.d.ts +1 -1
- package/dist/es2017/features/list/dash.js +3 -4
- package/dist/es2017/features/list/dash_wasm.d.ts +2 -2
- package/dist/es2017/features/list/dash_wasm.js +1 -2
- package/dist/es2017/features/list/debug_element.d.ts +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.js +3 -5
- package/dist/es2017/features/list/eme.d.ts +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.js +1 -1
- package/dist/es2017/features/list/html_srt_parser.d.ts +1 -1
- package/dist/es2017/features/list/html_srt_parser.js +1 -1
- package/dist/es2017/features/list/html_text_buffer.d.ts +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.js +1 -1
- package/dist/es2017/features/list/html_vtt_parser.d.ts +1 -1
- package/dist/es2017/features/list/html_vtt_parser.js +1 -1
- package/dist/es2017/features/list/media_source_main.d.ts +1 -1
- package/dist/es2017/features/list/media_source_main.js +1 -2
- package/dist/es2017/features/list/native_sami_parser.d.ts +1 -1
- package/dist/es2017/features/list/native_sami_parser.js +1 -1
- package/dist/es2017/features/list/native_srt_parser.d.ts +1 -1
- package/dist/es2017/features/list/native_srt_parser.js +1 -1
- package/dist/es2017/features/list/native_text_buffer.d.ts +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.js +1 -1
- package/dist/es2017/features/list/native_vtt_parser.d.ts +1 -1
- package/dist/es2017/features/list/native_vtt_parser.js +1 -1
- package/dist/es2017/features/list/smooth.d.ts +1 -1
- package/dist/es2017/features/list/smooth.js +1 -2
- package/dist/es2017/features/types.d.ts +28 -23
- package/dist/es2017/index.d.ts +1 -1
- package/dist/es2017/index.js +3 -1
- package/dist/es2017/main_thread/api/debug/buffer_graph.d.ts +28 -0
- package/dist/es2017/main_thread/api/debug/buffer_graph.js +164 -0
- package/dist/es2017/main_thread/api/debug/buffer_size_graph.js +102 -0
- package/dist/es2017/main_thread/api/debug/modules/general_info.d.ts +3 -0
- package/dist/es2017/main_thread/api/debug/modules/general_info.js +192 -0
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_content.d.ts +4 -0
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_content.js +124 -0
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_size.d.ts +3 -0
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_size.js +35 -0
- package/dist/es2017/main_thread/api/debug/render.d.ts +3 -0
- package/dist/es2017/main_thread/api/debug/render.js +32 -0
- package/dist/es2017/main_thread/api/debug/utils.js +54 -0
- package/dist/es2017/main_thread/api/index.d.ts +17 -0
- package/dist/es2017/main_thread/api/index.js +17 -0
- package/dist/es2017/main_thread/api/option_utils.d.ts +124 -0
- package/dist/es2017/main_thread/api/option_utils.js +308 -0
- package/dist/es2017/main_thread/api/public_api.d.ts +768 -0
- package/dist/es2017/main_thread/api/public_api.js +2386 -0
- package/dist/es2017/main_thread/api/utils.d.ts +66 -0
- package/dist/es2017/main_thread/api/utils.js +170 -0
- package/dist/es2017/main_thread/decrypt/__tests__/__global__/utils.d.ts +184 -0
- package/dist/es2017/main_thread/decrypt/__tests__/__global__/utils.js +378 -0
- package/dist/es2017/main_thread/decrypt/attach_media_keys.d.ts +53 -0
- package/dist/es2017/main_thread/decrypt/attach_media_keys.js +72 -0
- package/dist/es2017/main_thread/decrypt/clear_on_stop.js +40 -0
- package/dist/es2017/main_thread/decrypt/content_decryptor.d.ts +185 -0
- package/dist/es2017/main_thread/decrypt/content_decryptor.js +799 -0
- package/dist/es2017/main_thread/decrypt/create_or_load_session.d.ts +64 -0
- package/dist/es2017/main_thread/decrypt/create_or_load_session.js +83 -0
- package/dist/es2017/main_thread/decrypt/create_session.d.ts +54 -0
- package/dist/es2017/main_thread/decrypt/create_session.js +150 -0
- package/dist/es2017/main_thread/decrypt/dispose_decryption_resources.js +34 -0
- package/dist/es2017/main_thread/decrypt/find_key_system.d.ts +48 -0
- package/dist/es2017/main_thread/decrypt/find_key_system.js +287 -0
- package/dist/es2017/main_thread/decrypt/get_media_keys.d.ts +44 -0
- package/dist/es2017/main_thread/decrypt/get_media_keys.js +103 -0
- package/dist/es2017/main_thread/decrypt/index.d.ts +26 -0
- package/dist/es2017/main_thread/decrypt/index.js +26 -0
- package/dist/es2017/main_thread/decrypt/init_media_keys.d.ts +26 -0
- package/dist/es2017/main_thread/decrypt/init_media_keys.js +37 -0
- package/dist/es2017/main_thread/decrypt/session_events_listener.d.ts +75 -0
- package/dist/es2017/main_thread/decrypt/session_events_listener.js +246 -0
- package/dist/es2017/main_thread/decrypt/set_server_certificate.d.ts +51 -0
- package/dist/es2017/main_thread/decrypt/set_server_certificate.js +82 -0
- package/dist/es2017/main_thread/decrypt/types.d.ts +374 -0
- package/dist/es2017/main_thread/decrypt/utils/are_init_values_compatible.js +141 -0
- package/dist/es2017/main_thread/decrypt/utils/check_key_statuses.d.ts +52 -0
- package/dist/es2017/main_thread/decrypt/utils/check_key_statuses.js +163 -0
- package/dist/es2017/main_thread/decrypt/utils/clean_old_loaded_sessions.d.ts +26 -0
- package/dist/es2017/main_thread/decrypt/utils/clean_old_stored_persistent_info.d.ts +32 -0
- package/dist/es2017/main_thread/decrypt/utils/init_data_values_container.d.ts +69 -0
- package/dist/es2017/main_thread/decrypt/utils/init_data_values_container.js +105 -0
- package/dist/es2017/main_thread/decrypt/utils/is_session_usable.d.ts +24 -0
- package/dist/es2017/main_thread/decrypt/utils/is_session_usable.js +48 -0
- package/dist/es2017/main_thread/decrypt/utils/key_id_comparison.js +48 -0
- package/dist/es2017/main_thread/decrypt/utils/key_session_record.d.ts +104 -0
- package/dist/es2017/main_thread/decrypt/utils/key_session_record.js +152 -0
- package/dist/es2017/main_thread/decrypt/utils/loaded_sessions_store.d.ts +213 -0
- package/dist/es2017/main_thread/decrypt/utils/loaded_sessions_store.js +365 -0
- package/dist/es2017/main_thread/decrypt/utils/media_keys_infos_store.d.ts +56 -0
- package/dist/es2017/main_thread/decrypt/utils/media_keys_infos_store.js +43 -0
- package/dist/es2017/main_thread/decrypt/utils/persistent_sessions_store.d.ts +94 -0
- package/dist/es2017/main_thread/decrypt/utils/persistent_sessions_store.js +325 -0
- package/dist/es2017/main_thread/decrypt/utils/serializable_bytes.d.ts +44 -0
- package/dist/es2017/main_thread/decrypt/utils/serializable_bytes.js +46 -0
- package/dist/es2017/main_thread/decrypt/utils/server_certificate_store.d.ts +64 -0
- package/dist/es2017/main_thread/decrypt/utils/server_certificate_store.js +121 -0
- package/dist/es2017/main_thread/init/directfile_content_initializer.d.ts +97 -0
- package/dist/es2017/main_thread/init/directfile_content_initializer.js +233 -0
- package/dist/es2017/main_thread/init/media_source_content_initializer.d.ts +166 -0
- package/dist/es2017/main_thread/init/media_source_content_initializer.js +712 -0
- package/dist/es2017/main_thread/init/multi_thread_content_initializer.d.ts +222 -0
- package/dist/es2017/main_thread/init/multi_thread_content_initializer.js +1394 -0
- package/dist/es2017/main_thread/init/send_message.d.ts +2 -0
- package/dist/es2017/main_thread/init/send_message.js +10 -0
- package/dist/es2017/main_thread/init/types.d.ts +221 -0
- package/dist/es2017/main_thread/init/utils/create_core_playback_observer.d.ts +83 -0
- package/dist/es2017/main_thread/init/utils/create_core_playback_observer.js +98 -0
- package/dist/es2017/main_thread/init/utils/create_media_source.d.ts +37 -0
- package/dist/es2017/main_thread/init/utils/create_media_source.js +101 -0
- package/dist/es2017/main_thread/init/utils/get_initial_time.d.ts +76 -0
- package/dist/es2017/main_thread/init/utils/get_initial_time.js +106 -0
- package/dist/es2017/main_thread/init/utils/get_loaded_reference.d.ts +28 -0
- package/dist/es2017/main_thread/init/utils/get_loaded_reference.js +64 -0
- package/dist/es2017/main_thread/init/utils/initial_seek_and_play.d.ts +61 -0
- package/dist/es2017/main_thread/init/utils/initial_seek_and_play.js +200 -0
- package/dist/es2017/main_thread/init/utils/initialize_content_decryption.d.ts +87 -0
- package/dist/es2017/main_thread/init/utils/initialize_content_decryption.js +116 -0
- package/dist/es2017/main_thread/init/utils/main_thread_text_displayer_interface.d.ts +35 -0
- package/dist/es2017/main_thread/init/utils/rebuffering_controller.d.ts +114 -0
- package/dist/es2017/main_thread/init/utils/rebuffering_controller.js +426 -0
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/are_same_stream_events.js +33 -0
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/index.d.ts +18 -0
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +25 -0
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +84 -0
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts +53 -0
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/stream_events_emitter.js +175 -0
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/types.d.ts +41 -0
- package/dist/es2017/main_thread/init/utils/throw_on_media_error.d.ts +23 -0
- package/dist/es2017/main_thread/init/utils/throw_on_media_error.js +63 -0
- package/dist/es2017/main_thread/text_displayer/html/html_parsers.js +22 -0
- package/dist/es2017/main_thread/text_displayer/html/html_text_displayer.d.ts +100 -0
- package/dist/es2017/main_thread/text_displayer/html/html_text_displayer.js +312 -0
- package/dist/es2017/main_thread/text_displayer/html/text_track_cues_store.d.ts +65 -0
- package/dist/es2017/main_thread/text_displayer/html/text_track_cues_store.js +358 -0
- package/dist/es2017/main_thread/text_displayer/html/update_proportional_elements.js +61 -0
- package/dist/es2017/main_thread/text_displayer/html/utils.js +111 -0
- package/dist/es2017/main_thread/text_displayer/index.d.ts +2 -0
- package/dist/es2017/main_thread/text_displayer/manual_time_ranges.js +48 -0
- package/dist/es2017/main_thread/text_displayer/native/native_parsers.d.ts +11 -0
- package/dist/es2017/main_thread/text_displayer/native/native_parsers.js +22 -0
- package/dist/es2017/main_thread/text_displayer/native/native_text_displayer.d.ts +56 -0
- package/dist/es2017/main_thread/text_displayer/native/native_text_displayer.js +203 -0
- package/dist/es2017/main_thread/text_displayer/types.d.ts +71 -0
- package/dist/es2017/main_thread/text_displayer/types.js +1 -0
- package/dist/es2017/main_thread/tracks_store/index.d.ts +20 -0
- package/dist/es2017/main_thread/tracks_store/media_element_tracks_store.d.ts +197 -0
- package/dist/es2017/main_thread/tracks_store/media_element_tracks_store.js +663 -0
- package/dist/es2017/main_thread/tracks_store/track_dispatcher.d.ts +101 -0
- package/dist/es2017/main_thread/tracks_store/track_dispatcher.js +175 -0
- package/dist/es2017/main_thread/tracks_store/tracks_store.d.ts +448 -0
- package/dist/es2017/main_thread/tracks_store/tracks_store.js +998 -0
- package/dist/es2017/main_thread/types.d.ts +5 -0
- package/dist/es2017/main_thread/types.js +1 -0
- package/dist/es2017/manifest/classes/adaptation.d.ts +134 -0
- package/dist/es2017/manifest/classes/adaptation.js +193 -0
- package/dist/es2017/manifest/classes/index.d.ts +25 -0
- package/dist/es2017/manifest/classes/index.js +28 -0
- package/dist/es2017/manifest/classes/manifest.d.ts +391 -0
- package/dist/es2017/manifest/classes/manifest.js +381 -0
- package/dist/es2017/manifest/classes/period.d.ts +106 -0
- package/dist/es2017/manifest/classes/period.js +194 -0
- package/dist/es2017/manifest/classes/representation.d.ts +238 -0
- package/dist/es2017/manifest/classes/representation.js +346 -0
- package/dist/es2017/manifest/classes/representation_index/index.d.ts +18 -0
- package/dist/es2017/manifest/classes/representation_index/static.d.ts +101 -0
- package/dist/es2017/manifest/classes/representation_index/static.js +143 -0
- package/dist/es2017/manifest/classes/representation_index/types.d.ts +420 -0
- package/dist/es2017/manifest/classes/types.d.ts +29 -0
- package/dist/es2017/manifest/classes/types.js +30 -0
- package/dist/es2017/manifest/classes/update_period_in_place.d.ts +53 -0
- package/dist/es2017/manifest/classes/update_period_in_place.js +109 -0
- package/dist/es2017/manifest/classes/update_periods.d.ts +50 -0
- package/dist/es2017/manifest/classes/update_periods.js +193 -0
- package/dist/es2017/manifest/classes/utils.d.ts +39 -0
- package/dist/es2017/manifest/classes/utils.js +49 -0
- package/dist/es2017/manifest/index.d.ts +15 -25
- package/dist/es2017/manifest/index.js +3 -28
- package/dist/es2017/manifest/types.d.ts +2 -31
- package/dist/es2017/manifest/types.js +1 -15
- package/dist/es2017/manifest/utils.d.ts +11 -49
- package/dist/es2017/manifest/utils.js +46 -88
- package/dist/es2017/minimal.d.ts +1 -1
- package/dist/es2017/minimal.js +6 -1
- package/dist/es2017/mse/main_codec_support_prober.d.ts +1 -1
- package/dist/es2017/mse/main_media_source_interface.d.ts +2 -2
- package/dist/es2017/mse/main_media_source_interface.js +61 -36
- package/dist/es2017/mse/types.d.ts +3 -3
- package/dist/es2017/mse/utils/end_of_stream.d.ts +33 -0
- package/dist/es2017/mse/utils/end_of_stream.js +87 -0
- package/dist/es2017/mse/utils/media_source_duration_updater.js +265 -0
- package/dist/es2017/mse/worker_codec_support_prober.d.ts +1 -1
- package/dist/es2017/mse/worker_media_source_interface.d.ts +4 -4
- package/dist/es2017/mse/worker_media_source_interface.js +21 -19
- package/dist/es2017/multithread_types.d.ts +15 -18
- package/dist/es2017/parsers/containers/isobmff/create_box.d.ts +1 -1
- package/dist/es2017/parsers/containers/isobmff/create_box.js +6 -5
- package/dist/es2017/parsers/containers/isobmff/drm/playready.js +2 -3
- package/dist/es2017/parsers/containers/isobmff/extract_complete_chunks.js +67 -0
- package/dist/es2017/parsers/containers/isobmff/find_complete_box.js +54 -0
- package/dist/es2017/parsers/containers/isobmff/get_box.js +3 -5
- package/dist/es2017/parsers/containers/isobmff/index.d.ts +5 -3
- package/dist/es2017/parsers/containers/isobmff/index.js +6 -4
- package/dist/es2017/parsers/containers/isobmff/read.d.ts +1 -1
- package/dist/es2017/parsers/containers/isobmff/read.js +9 -9
- package/dist/es2017/parsers/containers/isobmff/take_pssh_out.js +4 -5
- package/dist/es2017/parsers/containers/isobmff/utils.js +60 -45
- package/dist/es2017/parsers/containers/matroska/index.d.ts +1 -1
- package/dist/es2017/parsers/containers/matroska/index.js +1 -1
- package/dist/es2017/parsers/containers/matroska/utils.js +42 -29
- package/dist/es2017/parsers/images/bif.js +10 -6
- package/dist/es2017/parsers/manifest/dash/common/attach_trickmode_track.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/common/convert_supplemental_codecs.js +1 -3
- package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.js +1 -1
- package/dist/es2017/parsers/manifest/dash/common/get_hdr_information.js +4 -12
- 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.js +4 -5
- 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.js +4 -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.js +15 -13
- package/dist/es2017/parsers/manifest/dash/common/index.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/base.d.ts +5 -5
- package/dist/es2017/parsers/manifest/dash/common/indexes/base.js +36 -31
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_init_segment.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_init_segment.js +6 -4
- 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.js +10 -10
- package/dist/es2017/parsers/manifest/dash/common/indexes/list.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/list.js +23 -20
- package/dist/es2017/parsers/manifest/dash/common/indexes/template.d.ts +3 -3
- package/dist/es2017/parsers/manifest/dash/common/indexes/template.js +54 -59
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +5 -4
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +14 -11
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +3 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +25 -20
- 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.js +15 -10
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +4 -3
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +43 -27
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts +11 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/parse_s_element.js +49 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +9 -8
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +77 -69
- package/dist/es2017/parsers/manifest/dash/common/indexes/tokens.js +2 -4
- package/dist/es2017/parsers/manifest/dash/common/infer_adaptation_type.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/common/infer_adaptation_type.js +2 -2
- package/dist/es2017/parsers/manifest/dash/common/manifest_bounds_calculator.js +9 -10
- package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.d.ts +5 -5
- package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.js +61 -66
- package/dist/es2017/parsers/manifest/dash/common/parse_availability_start_time.d.ts +3 -2
- package/dist/es2017/parsers/manifest/dash/common/parse_availability_start_time.js +5 -3
- package/dist/es2017/parsers/manifest/dash/common/parse_mpd.d.ts +6 -6
- package/dist/es2017/parsers/manifest/dash/common/parse_mpd.js +54 -42
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.d.ts +5 -5
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.js +33 -34
- package/dist/es2017/parsers/manifest/dash/common/parse_representation_index.d.ts +5 -5
- package/dist/es2017/parsers/manifest/dash/common/parse_representation_index.js +5 -7
- package/dist/es2017/parsers/manifest/dash/common/parse_representations.d.ts +5 -5
- package/dist/es2017/parsers/manifest/dash/common/parse_representations.js +63 -68
- package/dist/es2017/parsers/manifest/dash/common/resolve_base_urls.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/common/resolve_base_urls.js +5 -3
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/index.d.ts +17 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/index.js +17 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/AdaptationSet.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/AdaptationSet.js +358 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/BaseURL.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/BaseURL.js +30 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/ContentComponent.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/ContentComponent.js +45 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/ContentProtection.d.ts +22 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/ContentProtection.js +77 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/EventStream.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/EventStream.js +101 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Initialization.d.ts +22 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Initialization.js +45 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/MPD.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/MPD.js +179 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Period.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Period.js +137 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Representation.d.ts +22 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/Representation.js +214 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentBase.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentBase.js +111 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentList.d.ts +22 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentList.js +41 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTemplate.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTemplate.js +84 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTimeline.d.ts +22 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentTimeline.js +33 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentURL.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/SegmentURL.js +57 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/utils.d.ts +176 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/node_parsers/utils.js +310 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/parse_from_xml_string.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/fast-js-parser/parse_from_xml_string.js +114 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/AdaptationSet.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/AdaptationSet.js +354 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/BaseURL.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/BaseURL.js +29 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/ContentComponent.d.ts +22 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/ContentProtection.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/EventStream.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/EventStream.js +100 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/Initialization.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/Initialization.js +41 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/MPD.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/MPD.js +161 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/Period.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/Period.js +118 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/Representation.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/Representation.js +210 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/SegmentBase.d.ts +22 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/SegmentBase.js +107 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/SegmentList.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/SegmentTemplate.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/SegmentTemplate.js +83 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/SegmentTimeline.d.ts +21 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/SegmentURL.d.ts +23 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/SegmentURL.js +53 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/utils.d.ts +169 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/node_parsers/utils.js +297 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/parse_from_document.d.ts +24 -0
- package/dist/es2017/parsers/manifest/dash/native-parser/parse_from_document.js +108 -0
- package/dist/es2017/parsers/manifest/dash/node_parser_types.d.ts +5 -3
- package/dist/es2017/parsers/manifest/dash/parsers_types.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +29 -18
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts +3 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +22 -26
- 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/ContentComponent.d.ts +3 -3
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.js +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts +3 -3
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +4 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts +3 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.js +2 -4
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts +3 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +5 -5
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts +3 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +9 -6
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts +3 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +13 -15
- 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.js +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.js +5 -10
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts +3 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts +2 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.js +11 -18
- 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.js +2 -4
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts +3 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/XLink.js +5 -5
- 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.js +8 -4
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/parsers_stack.js +4 -2
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/utils.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/utils.js +8 -4
- package/dist/es2017/parsers/manifest/local/parse_local_manifest.d.ts +2 -2
- package/dist/es2017/parsers/manifest/local/parse_local_manifest.js +21 -16
- package/dist/es2017/parsers/manifest/local/representation_index.d.ts +2 -2
- package/dist/es2017/parsers/manifest/local/representation_index.js +7 -7
- package/dist/es2017/parsers/manifest/metaplaylist/index.d.ts +1 -1
- package/dist/es2017/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts +4 -4
- package/dist/es2017/parsers/manifest/metaplaylist/metaplaylist_parser.js +41 -43
- package/dist/es2017/parsers/manifest/metaplaylist/representation_index.d.ts +3 -3
- package/dist/es2017/parsers/manifest/metaplaylist/representation_index.js +10 -7
- package/dist/es2017/parsers/manifest/smooth/create_parser.d.ts +2 -2
- package/dist/es2017/parsers/manifest/smooth/create_parser.js +120 -121
- package/dist/es2017/parsers/manifest/smooth/get_codecs.js +3 -3
- package/dist/es2017/parsers/manifest/smooth/index.d.ts +1 -1
- package/dist/es2017/parsers/manifest/smooth/index.js +1 -1
- package/dist/es2017/parsers/manifest/smooth/parse_C_nodes.js +9 -9
- package/dist/es2017/parsers/manifest/smooth/parse_protection_node.js +12 -8
- package/dist/es2017/parsers/manifest/smooth/representation_index.d.ts +3 -3
- package/dist/es2017/parsers/manifest/smooth/representation_index.js +35 -38
- package/dist/es2017/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts +1 -1
- package/dist/es2017/parsers/manifest/smooth/shared_smooth_segment_timeline.js +8 -9
- package/dist/es2017/parsers/manifest/smooth/utils/add_segment_infos.js +10 -7
- package/dist/es2017/parsers/manifest/smooth/utils/parseBoolean.d.ts +1 -1
- package/dist/es2017/parsers/manifest/smooth/utils/parseBoolean.js +1 -1
- package/dist/es2017/parsers/manifest/smooth/utils/tokens.d.ts +1 -1
- package/dist/es2017/parsers/manifest/smooth/utils/tokens.js +2 -3
- package/dist/es2017/parsers/manifest/types.d.ts +2 -2
- package/dist/es2017/parsers/manifest/utils/check_manifest_ids.d.ts +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 +3 -2
- package/dist/es2017/parsers/manifest/utils/clear_timeline_from_position.js +11 -7
- 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.js +5 -4
- 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.js +5 -4
- package/dist/es2017/parsers/manifest/utils/get_maximum_positions.d.ts +2 -2
- package/dist/es2017/parsers/manifest/utils/get_maximum_positions.js +11 -17
- package/dist/es2017/parsers/manifest/utils/get_minimum_position.d.ts +2 -2
- package/dist/es2017/parsers/manifest/utils/get_minimum_position.js +5 -11
- package/dist/es2017/parsers/manifest/utils/index_helpers.js +4 -5
- package/dist/es2017/parsers/manifest/utils/update_segment_timeline.d.ts +1 -1
- package/dist/es2017/parsers/manifest/utils/update_segment_timeline.js +17 -16
- package/dist/es2017/parsers/texttracks/index.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/sami/html.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/sami/html.js +17 -16
- package/dist/es2017/parsers/texttracks/sami/native.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/sami/native.js +11 -17
- package/dist/es2017/parsers/texttracks/srt/html.js +12 -10
- package/dist/es2017/parsers/texttracks/srt/native.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/srt/native.js +1 -7
- package/dist/es2017/parsers/texttracks/srt/parse_cue.js +4 -9
- package/dist/es2017/parsers/texttracks/ttml/get_parameters.js +8 -13
- package/dist/es2017/parsers/texttracks/ttml/get_time_delimiters.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/ttml/get_time_delimiters.js +9 -10
- package/dist/es2017/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.js +2 -2
- package/dist/es2017/parsers/texttracks/ttml/html/apply_extent.js +3 -7
- package/dist/es2017/parsers/texttracks/ttml/html/apply_font_size.js +4 -5
- package/dist/es2017/parsers/texttracks/ttml/html/apply_line_height.js +1 -1
- package/dist/es2017/parsers/texttracks/ttml/html/apply_origin.js +3 -7
- package/dist/es2017/parsers/texttracks/ttml/html/apply_padding.js +3 -7
- package/dist/es2017/parsers/texttracks/ttml/html/create_element.d.ts +2 -2
- package/dist/es2017/parsers/texttracks/ttml/html/create_element.js +30 -23
- package/dist/es2017/parsers/texttracks/ttml/html/generate_css_test_outline.js +2 -2
- package/dist/es2017/parsers/texttracks/ttml/html/parse_cue.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/ttml/html/parse_cue.js +5 -4
- package/dist/es2017/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/ttml/html/ttml_color_to_css_color.js +39 -23
- package/dist/es2017/parsers/texttracks/ttml/native/parse_cue.d.ts +2 -2
- package/dist/es2017/parsers/texttracks/ttml/native/parse_cue.js +14 -13
- package/dist/es2017/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/ttml/parse_ttml.d.ts +3 -3
- package/dist/es2017/parsers/texttracks/ttml/parse_ttml.js +22 -19
- package/dist/es2017/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/ttml/time_parsing.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/ttml/time_parsing.js +2 -2
- package/dist/es2017/parsers/texttracks/ttml/xml_utils.js +2 -1
- package/dist/es2017/parsers/texttracks/types.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/get_cue_blocks.js +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/get_style_blocks.js +2 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/create_default_style_elements.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/create_style_attribute.js +6 -12
- package/dist/es2017/parsers/texttracks/webvtt/html/create_styled_element.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/create_styled_element.js +8 -9
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_style_block.js +4 -4
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_to_div.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_to_div.js +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/to_html.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/to_html.js +5 -13
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_vtt_to_cues.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_vtt_to_cues.js +4 -8
- package/dist/es2017/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts +1 -1
- package/dist/es2017/parsers/texttracks/webvtt/native/to_native_cue.d.ts +2 -2
- package/dist/es2017/parsers/texttracks/webvtt/native/to_native_cue.js +2 -2
- package/dist/es2017/parsers/texttracks/webvtt/parse_cue_block.js +7 -8
- package/dist/es2017/parsers/texttracks/webvtt/parse_timestamp.js +1 -2
- package/dist/es2017/parsers/texttracks/webvtt/utils.js +6 -6
- package/dist/es2017/playback_observer/index.d.ts +6 -0
- package/dist/es2017/playback_observer/index.js +2 -0
- package/dist/es2017/playback_observer/media_element_playback_observer.d.ts +203 -0
- package/dist/es2017/playback_observer/media_element_playback_observer.js +678 -0
- package/dist/es2017/playback_observer/types.d.ts +223 -0
- package/dist/es2017/playback_observer/types.js +1 -0
- package/dist/es2017/playback_observer/utils/generate_read_only_observer.d.ts +11 -0
- package/dist/es2017/playback_observer/utils/generate_read_only_observer.js +41 -0
- package/dist/es2017/playback_observer/utils/observation_position.d.ts +87 -0
- package/dist/es2017/playback_observer/utils/observation_position.js +84 -0
- package/dist/es2017/playback_observer/worker_playback_observer.d.ts +72 -0
- package/dist/es2017/playback_observer/worker_playback_observer.js +45 -0
- package/dist/es2017/public_types.d.ts +13 -16
- package/dist/es2017/public_types.js +0 -1
- package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.d.ts +2 -2
- package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.js +11 -9
- package/dist/es2017/tools/index.d.ts +1 -1
- package/dist/es2017/tools/index.js +1 -1
- package/dist/es2017/tools/parseBIFThumbnails/index.js +6 -5
- package/dist/es2017/transports/dash/add_segment_integrity_checks_to_loader.d.ts +1 -1
- package/dist/es2017/transports/dash/add_segment_integrity_checks_to_loader.js +2 -3
- package/dist/es2017/transports/dash/construct_segment_url.d.ts +2 -2
- package/dist/es2017/transports/dash/construct_segment_url.js +7 -3
- package/dist/es2017/transports/dash/get_events_out_of_emsgs.d.ts +2 -2
- package/dist/es2017/transports/dash/get_events_out_of_emsgs.js +12 -10
- package/dist/es2017/transports/dash/init_segment_loader.d.ts +3 -3
- package/dist/es2017/transports/dash/init_segment_loader.js +29 -23
- package/dist/es2017/transports/dash/low_latency_segment_loader.d.ts +2 -2
- package/dist/es2017/transports/dash/low_latency_segment_loader.js +14 -11
- package/dist/es2017/transports/dash/manifest_parser.d.ts +2 -2
- package/dist/es2017/transports/dash/manifest_parser.js +68 -32
- package/dist/es2017/transports/dash/pipelines.d.ts +1 -1
- package/dist/es2017/transports/dash/pipelines.js +15 -12
- package/dist/es2017/transports/dash/segment_loader.d.ts +4 -4
- package/dist/es2017/transports/dash/segment_loader.js +31 -23
- package/dist/es2017/transports/dash/segment_parser.d.ts +2 -2
- package/dist/es2017/transports/dash/segment_parser.js +40 -25
- package/dist/es2017/transports/dash/text_loader.d.ts +2 -2
- package/dist/es2017/transports/dash/text_loader.js +19 -20
- package/dist/es2017/transports/dash/text_parser.d.ts +2 -2
- package/dist/es2017/transports/dash/text_parser.js +44 -26
- package/dist/es2017/transports/index.d.ts +1 -1
- package/dist/es2017/transports/index.js +1 -1
- package/dist/es2017/transports/local/pipelines.d.ts +1 -1
- package/dist/es2017/transports/local/pipelines.js +14 -9
- package/dist/es2017/transports/local/segment_loader.d.ts +3 -3
- package/dist/es2017/transports/local/segment_loader.js +14 -6
- package/dist/es2017/transports/local/segment_parser.d.ts +1 -1
- package/dist/es2017/transports/local/segment_parser.js +24 -14
- package/dist/es2017/transports/local/text_parser.d.ts +1 -1
- package/dist/es2017/transports/local/text_parser.js +36 -18
- package/dist/es2017/transports/metaplaylist/manifest_loader.d.ts +4 -4
- package/dist/es2017/transports/metaplaylist/manifest_loader.js +8 -6
- package/dist/es2017/transports/metaplaylist/pipelines.d.ts +1 -1
- package/dist/es2017/transports/metaplaylist/pipelines.js +35 -24
- package/dist/es2017/transports/smooth/extract_timings_infos.d.ts +2 -2
- package/dist/es2017/transports/smooth/extract_timings_infos.js +17 -19
- package/dist/es2017/transports/smooth/is_mp4_embedded_track.d.ts +1 -1
- package/dist/es2017/transports/smooth/is_mp4_embedded_track.js +1 -1
- package/dist/es2017/transports/smooth/isobmff/create_audio_init_segment.d.ts +0 -1
- package/dist/es2017/transports/smooth/isobmff/create_audio_init_segment.js +3 -4
- package/dist/es2017/transports/smooth/isobmff/create_boxes.js +23 -32
- package/dist/es2017/transports/smooth/isobmff/create_init_segment.js +2 -2
- package/dist/es2017/transports/smooth/isobmff/create_traf_box.js +2 -2
- package/dist/es2017/transports/smooth/isobmff/get_aaces_header.js +4 -16
- package/dist/es2017/transports/smooth/isobmff/parse_tfrf.js +2 -2
- package/dist/es2017/transports/smooth/isobmff/parse_tfxd.js +1 -1
- package/dist/es2017/transports/smooth/isobmff/patch_segment.js +12 -11
- package/dist/es2017/transports/smooth/pipelines.d.ts +1 -1
- package/dist/es2017/transports/smooth/pipelines.js +84 -61
- package/dist/es2017/transports/smooth/segment_loader.d.ts +3 -3
- package/dist/es2017/transports/smooth/segment_loader.js +44 -29
- package/dist/es2017/transports/smooth/utils.d.ts +4 -4
- package/dist/es2017/transports/smooth/utils.js +10 -6
- package/dist/es2017/transports/types.d.ts +22 -27
- package/dist/es2017/transports/utils/byte_range.js +1 -2
- package/dist/es2017/transports/utils/call_custom_manifest_loader.d.ts +3 -3
- package/dist/es2017/transports/utils/call_custom_manifest_loader.js +10 -8
- package/dist/es2017/transports/utils/check_isobmff_integrity.js +4 -4
- package/dist/es2017/transports/utils/generate_manifest_loader.d.ts +3 -3
- package/dist/es2017/transports/utils/generate_manifest_loader.js +12 -6
- package/dist/es2017/transports/utils/get_isobmff_timing_infos.d.ts +2 -2
- package/dist/es2017/transports/utils/get_isobmff_timing_infos.js +12 -11
- package/dist/es2017/transports/utils/infer_segment_container.d.ts +1 -1
- package/dist/es2017/transports/utils/infer_segment_container.js +1 -3
- package/dist/es2017/transports/utils/parse_text_track.d.ts +4 -4
- package/dist/es2017/transports/utils/parse_text_track.js +6 -16
- package/dist/es2017/utils/array_includes.js +2 -6
- package/dist/es2017/utils/assert.js +3 -6
- package/dist/es2017/utils/base64.js +87 -29
- package/dist/es2017/utils/byte_parsing.js +64 -56
- package/dist/es2017/utils/cancellable_sleep.d.ts +1 -1
- package/dist/es2017/utils/create_cancellable_promise.d.ts +1 -1
- package/dist/es2017/utils/deep_merge.js +4 -4
- package/dist/es2017/utils/event_emitter.d.ts +1 -1
- package/dist/es2017/utils/event_emitter.js +1 -2
- package/dist/es2017/utils/get_fuzzed_delay.js +1 -1
- package/dist/es2017/utils/global_scope.d.ts +1 -1
- package/dist/es2017/utils/global_scope.js +10 -3
- package/dist/es2017/utils/hash_buffer.js +1 -1
- package/dist/es2017/utils/languages/normalize.js +5 -5
- package/dist/es2017/utils/logger.js +12 -22
- package/dist/es2017/utils/monotonic_timestamp.d.ts +6 -9
- package/dist/es2017/utils/monotonic_timestamp.js +13 -5
- package/dist/es2017/utils/object_assign.d.ts +6 -3
- package/dist/es2017/utils/object_assign.js +5 -7
- package/dist/es2017/utils/object_values.d.ts +1 -1
- package/dist/es2017/utils/object_values.js +4 -4
- package/dist/es2017/utils/queue_microtask.js +3 -3
- package/dist/es2017/utils/ranges.js +22 -29
- package/dist/es2017/utils/reference.d.ts +1 -1
- package/dist/es2017/utils/reference.js +1 -3
- package/dist/es2017/utils/request/fetch.d.ts +1 -1
- package/dist/es2017/utils/request/fetch.js +24 -23
- package/dist/es2017/utils/request/request_error.js +2 -2
- package/dist/es2017/utils/request/xhr.d.ts +1 -1
- package/dist/es2017/utils/request/xhr.js +19 -17
- package/dist/es2017/utils/retry_promise_with_backoff.d.ts +10 -1
- package/dist/es2017/utils/retry_promise_with_backoff.js +15 -3
- package/dist/es2017/utils/slice_uint8array.js +3 -3
- package/dist/es2017/utils/starts_with.js +3 -3
- package/dist/es2017/utils/string_parsing.js +16 -18
- package/dist/es2017/utils/sync_or_async.js +6 -2
- package/dist/es2017/utils/task_canceller.js +1 -2
- package/dist/es2017/utils/wrapInPromise.d.ts +1 -1
- package/dist/es2017/utils/xml-parser.d.ts +70 -0
- package/dist/es2017/utils/xml-parser.js +322 -0
- package/dist/es2017/worker_entry_point.js +2 -2
- package/dist/mpd-parser.wasm +0 -0
- package/dist/rx-player.js +46203 -45666
- package/dist/rx-player.min.js +1 -1
- package/dist/worker.es5.js +2 -0
- package/dist/worker.es5.js.LICENSE.txt +1 -0
- package/dist/worker.js +8 -3
- package/package.json +20 -10
- package/dist/commonjs/compat/index.d.ts +0 -36
- package/dist/commonjs/compat/index.js +0 -64
- package/dist/commonjs/core/api/debug/buffer_graph.d.ts +0 -28
- package/dist/commonjs/core/api/debug/buffer_graph.js +0 -173
- package/dist/commonjs/core/api/debug/buffer_size_graph.js +0 -132
- package/dist/commonjs/core/api/debug/modules/general_info.d.ts +0 -3
- package/dist/commonjs/core/api/debug/modules/general_info.js +0 -232
- package/dist/commonjs/core/api/debug/modules/segment_buffer_content.d.ts +0 -4
- package/dist/commonjs/core/api/debug/modules/segment_buffer_content.js +0 -125
- package/dist/commonjs/core/api/debug/modules/segment_buffer_size.d.ts +0 -3
- package/dist/commonjs/core/api/debug/modules/segment_buffer_size.js +0 -38
- package/dist/commonjs/core/api/debug/render.d.ts +0 -3
- package/dist/commonjs/core/api/index.d.ts +0 -20
- package/dist/commonjs/core/api/index.js +0 -22
- package/dist/commonjs/core/api/option_utils.d.ts +0 -124
- package/dist/commonjs/core/api/option_utils.js +0 -318
- package/dist/commonjs/core/api/playback_observer.d.ts +0 -521
- package/dist/commonjs/core/api/playback_observer.js +0 -771
- package/dist/commonjs/core/api/public_api.d.ts +0 -751
- package/dist/commonjs/core/api/public_api.js +0 -2458
- package/dist/commonjs/core/api/track_management/index.d.ts +0 -18
- package/dist/commonjs/core/api/track_management/media_element_tracks_store.d.ts +0 -197
- package/dist/commonjs/core/api/track_management/media_element_tracks_store.js +0 -688
- package/dist/commonjs/core/api/track_management/track_dispatcher.d.ts +0 -100
- package/dist/commonjs/core/api/track_management/track_dispatcher.js +0 -184
- package/dist/commonjs/core/api/track_management/tracks_store.d.ts +0 -441
- package/dist/commonjs/core/api/track_management/tracks_store.js +0 -1066
- package/dist/commonjs/core/api/utils.d.ts +0 -66
- package/dist/commonjs/core/api/utils.js +0 -175
- package/dist/commonjs/core/decrypt/__tests__/__global__/utils.d.ts +0 -178
- package/dist/commonjs/core/decrypt/__tests__/__global__/utils.js +0 -413
- package/dist/commonjs/core/decrypt/attach_media_keys.d.ts +0 -53
- package/dist/commonjs/core/decrypt/attach_media_keys.js +0 -121
- package/dist/commonjs/core/decrypt/clear_on_stop.js +0 -43
- package/dist/commonjs/core/decrypt/content_decryptor.d.ts +0 -184
- package/dist/commonjs/core/decrypt/content_decryptor.js +0 -1035
- package/dist/commonjs/core/decrypt/create_or_load_session.d.ts +0 -63
- package/dist/commonjs/core/decrypt/create_or_load_session.js +0 -127
- package/dist/commonjs/core/decrypt/create_session.d.ts +0 -53
- package/dist/commonjs/core/decrypt/create_session.js +0 -215
- package/dist/commonjs/core/decrypt/dispose_decryption_resources.js +0 -91
- package/dist/commonjs/core/decrypt/find_key_system.d.ts +0 -48
- package/dist/commonjs/core/decrypt/find_key_system.js +0 -369
- package/dist/commonjs/core/decrypt/get_media_keys.d.ts +0 -44
- package/dist/commonjs/core/decrypt/get_media_keys.js +0 -156
- package/dist/commonjs/core/decrypt/index.d.ts +0 -26
- package/dist/commonjs/core/decrypt/init_media_keys.d.ts +0 -26
- package/dist/commonjs/core/decrypt/init_media_keys.js +0 -93
- package/dist/commonjs/core/decrypt/session_events_listener.d.ts +0 -75
- package/dist/commonjs/core/decrypt/session_events_listener.js +0 -330
- package/dist/commonjs/core/decrypt/set_server_certificate.d.ts +0 -51
- package/dist/commonjs/core/decrypt/set_server_certificate.js +0 -146
- package/dist/commonjs/core/decrypt/types.d.ts +0 -374
- package/dist/commonjs/core/decrypt/utils/are_init_values_compatible.js +0 -116
- package/dist/commonjs/core/decrypt/utils/check_key_statuses.d.ts +0 -52
- package/dist/commonjs/core/decrypt/utils/check_key_statuses.js +0 -211
- package/dist/commonjs/core/decrypt/utils/clean_old_loaded_sessions.d.ts +0 -26
- package/dist/commonjs/core/decrypt/utils/clean_old_stored_persistent_info.d.ts +0 -32
- package/dist/commonjs/core/decrypt/utils/init_data_values_container.d.ts +0 -69
- package/dist/commonjs/core/decrypt/utils/init_data_values_container.js +0 -126
- package/dist/commonjs/core/decrypt/utils/is_session_usable.d.ts +0 -24
- package/dist/commonjs/core/decrypt/utils/is_session_usable.js +0 -52
- package/dist/commonjs/core/decrypt/utils/key_session_record.d.ts +0 -104
- package/dist/commonjs/core/decrypt/utils/key_session_record.js +0 -190
- package/dist/commonjs/core/decrypt/utils/loaded_sessions_store.d.ts +0 -215
- package/dist/commonjs/core/decrypt/utils/loaded_sessions_store.js +0 -515
- package/dist/commonjs/core/decrypt/utils/media_keys_infos_store.d.ts +0 -56
- package/dist/commonjs/core/decrypt/utils/media_keys_infos_store.js +0 -46
- package/dist/commonjs/core/decrypt/utils/persistent_sessions_store.d.ts +0 -94
- package/dist/commonjs/core/decrypt/utils/persistent_sessions_store.js +0 -346
- package/dist/commonjs/core/decrypt/utils/serializable_bytes.d.ts +0 -44
- package/dist/commonjs/core/decrypt/utils/serializable_bytes.js +0 -50
- package/dist/commonjs/core/decrypt/utils/server_certificate_store.d.ts +0 -64
- package/dist/commonjs/core/decrypt/utils/server_certificate_store.js +0 -114
- package/dist/commonjs/core/init/directfile_content_initializer.d.ts +0 -97
- package/dist/commonjs/core/init/directfile_content_initializer.js +0 -267
- package/dist/commonjs/core/init/media_source_content_initializer.d.ts +0 -165
- package/dist/commonjs/core/init/media_source_content_initializer.js +0 -865
- package/dist/commonjs/core/init/multithread/main_thread/multi_thread_content_initializer.d.ts +0 -167
- package/dist/commonjs/core/init/multithread/main_thread/multi_thread_content_initializer.js +0 -1393
- package/dist/commonjs/core/init/multithread/main_thread/send_message.d.ts +0 -2
- package/dist/commonjs/core/init/multithread/main_thread/send_message.js +0 -13
- package/dist/commonjs/core/init/multithread/worker/content_preparer.d.ts +0 -92
- package/dist/commonjs/core/init/multithread/worker/content_preparer.js +0 -259
- package/dist/commonjs/core/init/multithread/worker/globals.d.ts +0 -13
- package/dist/commonjs/core/init/multithread/worker/globals.js +0 -26
- package/dist/commonjs/core/init/multithread/worker/index.d.ts +0 -2
- package/dist/commonjs/core/init/multithread/worker/index.js +0 -4
- package/dist/commonjs/core/init/multithread/worker/send_message.d.ts +0 -3
- package/dist/commonjs/core/init/multithread/worker/send_message.js +0 -25
- package/dist/commonjs/core/init/multithread/worker/track_choice_setter.d.ts +0 -19
- package/dist/commonjs/core/init/multithread/worker/track_choice_setter.js +0 -140
- package/dist/commonjs/core/init/multithread/worker/worker_playback_observer.d.ts +0 -21
- package/dist/commonjs/core/init/multithread/worker/worker_playback_observer.js +0 -47
- package/dist/commonjs/core/init/multithread/worker/worker_portal.d.ts +0 -1
- package/dist/commonjs/core/init/multithread/worker/worker_portal.js +0 -727
- package/dist/commonjs/core/init/multithread/worker/worker_text_displayer_interface.d.ts +0 -64
- package/dist/commonjs/core/init/multithread/worker/worker_text_displayer_interface.js +0 -127
- package/dist/commonjs/core/init/types.d.ts +0 -226
- package/dist/commonjs/core/init/utils/DecipherabilityFreezeDetector.d.ts +0 -54
- package/dist/commonjs/core/init/utils/DecipherabilityFreezeDetector.js +0 -129
- package/dist/commonjs/core/init/utils/content_time_boundaries_observer.d.ts +0 -192
- package/dist/commonjs/core/init/utils/content_time_boundaries_observer.js +0 -518
- package/dist/commonjs/core/init/utils/create_content_time_boundaries_observer.d.ts +0 -28
- package/dist/commonjs/core/init/utils/create_content_time_boundaries_observer.js +0 -48
- package/dist/commonjs/core/init/utils/create_core_playback_observer.d.ts +0 -61
- package/dist/commonjs/core/init/utils/create_core_playback_observer.js +0 -130
- package/dist/commonjs/core/init/utils/create_media_source.d.ts +0 -37
- package/dist/commonjs/core/init/utils/create_media_source.js +0 -108
- package/dist/commonjs/core/init/utils/end_of_stream.d.ts +0 -33
- package/dist/commonjs/core/init/utils/end_of_stream.js +0 -115
- package/dist/commonjs/core/init/utils/get_initial_time.d.ts +0 -76
- package/dist/commonjs/core/init/utils/get_initial_time.js +0 -116
- package/dist/commonjs/core/init/utils/get_loaded_reference.d.ts +0 -28
- package/dist/commonjs/core/init/utils/get_loaded_reference.js +0 -61
- package/dist/commonjs/core/init/utils/initial_seek_and_play.d.ts +0 -61
- package/dist/commonjs/core/init/utils/initial_seek_and_play.js +0 -210
- package/dist/commonjs/core/init/utils/initialize_content_decryption.d.ts +0 -86
- package/dist/commonjs/core/init/utils/initialize_content_decryption.js +0 -113
- package/dist/commonjs/core/init/utils/main_thread_text_displayer_interface.d.ts +0 -35
- package/dist/commonjs/core/init/utils/media_source_duration_updater.js +0 -270
- package/dist/commonjs/core/init/utils/rebuffering_controller.d.ts +0 -114
- package/dist/commonjs/core/init/utils/rebuffering_controller.js +0 -445
- package/dist/commonjs/core/init/utils/stream_events_emitter/are_same_stream_events.js +0 -37
- package/dist/commonjs/core/init/utils/stream_events_emitter/index.d.ts +0 -18
- package/dist/commonjs/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +0 -25
- package/dist/commonjs/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +0 -91
- package/dist/commonjs/core/init/utils/stream_events_emitter/stream_events_emitter.d.ts +0 -53
- package/dist/commonjs/core/init/utils/stream_events_emitter/stream_events_emitter.js +0 -234
- package/dist/commonjs/core/init/utils/stream_events_emitter/types.d.ts +0 -41
- package/dist/commonjs/core/init/utils/throw_on_media_error.d.ts +0 -23
- package/dist/commonjs/core/init/utils/throw_on_media_error.js +0 -61
- package/dist/commonjs/core/segment_buffers/garbage_collector.d.ts +0 -43
- package/dist/commonjs/core/segment_buffers/garbage_collector.js +0 -220
- package/dist/commonjs/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.d.ts +0 -134
- package/dist/commonjs/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.js +0 -350
- package/dist/commonjs/core/segment_buffers/implementations/audio_video/index.d.ts +0 -17
- package/dist/commonjs/core/segment_buffers/implementations/index.d.ts +0 -19
- package/dist/commonjs/core/segment_buffers/implementations/index.js +0 -35
- package/dist/commonjs/core/segment_buffers/implementations/text/index.d.ts +0 -3
- package/dist/commonjs/core/segment_buffers/implementations/text/text_segment_buffer.d.ts +0 -89
- package/dist/commonjs/core/segment_buffers/implementations/text/text_segment_buffer.js +0 -253
- package/dist/commonjs/core/segment_buffers/implementations/types.d.ts +0 -309
- package/dist/commonjs/core/segment_buffers/implementations/types.js +0 -117
- package/dist/commonjs/core/segment_buffers/index.d.ts +0 -21
- package/dist/commonjs/core/segment_buffers/index.js +0 -28
- package/dist/commonjs/core/segment_buffers/inventory/buffered_history.d.ts +0 -89
- package/dist/commonjs/core/segment_buffers/inventory/index.d.ts +0 -21
- package/dist/commonjs/core/segment_buffers/inventory/segment_inventory.d.ts +0 -238
- package/dist/commonjs/core/segment_buffers/inventory/segment_inventory.js +0 -906
- package/dist/commonjs/core/segment_buffers/inventory/types.d.ts +0 -27
- package/dist/commonjs/core/segment_buffers/inventory/utils.d.ts +0 -33
- package/dist/commonjs/core/segment_buffers/inventory/utils.js +0 -54
- package/dist/commonjs/core/segment_buffers/segment_buffers_store.d.ts +0 -171
- package/dist/commonjs/core/segment_buffers/segment_buffers_store.js +0 -292
- package/dist/commonjs/manifest/adaptation.d.ts +0 -135
- package/dist/commonjs/manifest/adaptation.js +0 -242
- package/dist/commonjs/manifest/manifest.d.ts +0 -388
- package/dist/commonjs/manifest/manifest.js +0 -496
- package/dist/commonjs/manifest/period.d.ts +0 -106
- package/dist/commonjs/manifest/period.js +0 -236
- package/dist/commonjs/manifest/representation.d.ts +0 -238
- package/dist/commonjs/manifest/representation.js +0 -376
- package/dist/commonjs/manifest/representation_index/index.d.ts +0 -18
- package/dist/commonjs/manifest/representation_index/static.d.ts +0 -101
- package/dist/commonjs/manifest/representation_index/static.js +0 -143
- package/dist/commonjs/manifest/representation_index/types.d.ts +0 -420
- package/dist/commonjs/manifest/update_period_in_place.d.ts +0 -52
- package/dist/commonjs/manifest/update_period_in_place.js +0 -172
- package/dist/commonjs/manifest/update_periods.d.ts +0 -50
- package/dist/commonjs/manifest/update_periods.js +0 -228
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts +0 -23
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +0 -331
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts +0 -23
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/BaseURL.js +0 -33
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts +0 -22
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts +0 -21
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts +0 -23
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/EventStream.js +0 -113
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts +0 -21
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Initialization.js +0 -42
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts +0 -21
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/MPD.js +0 -164
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts +0 -21
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Period.js +0 -132
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts +0 -21
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Representation.js +0 -209
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts +0 -22
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.js +0 -108
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts +0 -21
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts +0 -23
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.js +0 -92
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts +0 -21
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts +0 -23
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.js +0 -52
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts +0 -187
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/utils.js +0 -354
- package/dist/commonjs/parsers/manifest/dash/js-parser/parse_from_document.d.ts +0 -24
- package/dist/commonjs/parsers/manifest/dash/js-parser/parse_from_document.js +0 -131
- package/dist/commonjs/text_displayer/html/html_parsers.js +0 -25
- package/dist/commonjs/text_displayer/html/html_text_displayer.d.ts +0 -100
- package/dist/commonjs/text_displayer/html/html_text_displayer.js +0 -317
- package/dist/commonjs/text_displayer/html/text_track_cues_store.d.ts +0 -65
- package/dist/commonjs/text_displayer/html/text_track_cues_store.js +0 -378
- package/dist/commonjs/text_displayer/html/update_proportional_elements.js +0 -65
- package/dist/commonjs/text_displayer/html/utils.js +0 -115
- package/dist/commonjs/text_displayer/index.d.ts +0 -2
- package/dist/commonjs/text_displayer/manual_time_ranges.js +0 -52
- package/dist/commonjs/text_displayer/native/native_parsers.d.ts +0 -11
- package/dist/commonjs/text_displayer/native/native_parsers.js +0 -25
- package/dist/commonjs/text_displayer/native/native_text_displayer.d.ts +0 -56
- package/dist/commonjs/text_displayer/native/native_text_displayer.js +0 -207
- package/dist/commonjs/text_displayer/types.d.ts +0 -74
- package/dist/commonjs/transports/dash/extract_complete_chunks.js +0 -91
- package/dist/commonjs/transports/utils/find_complete_box.js +0 -56
- package/dist/es2017/compat/index.d.ts +0 -36
- package/dist/es2017/compat/index.js +0 -42
- package/dist/es2017/core/api/debug/buffer_graph.d.ts +0 -28
- package/dist/es2017/core/api/debug/buffer_graph.js +0 -169
- package/dist/es2017/core/api/debug/buffer_size_graph.js +0 -103
- package/dist/es2017/core/api/debug/modules/general_info.d.ts +0 -3
- package/dist/es2017/core/api/debug/modules/general_info.js +0 -188
- package/dist/es2017/core/api/debug/modules/segment_buffer_content.d.ts +0 -4
- package/dist/es2017/core/api/debug/modules/segment_buffer_content.js +0 -122
- package/dist/es2017/core/api/debug/modules/segment_buffer_size.d.ts +0 -3
- package/dist/es2017/core/api/debug/modules/segment_buffer_size.js +0 -35
- package/dist/es2017/core/api/debug/render.d.ts +0 -3
- package/dist/es2017/core/api/debug/render.js +0 -32
- package/dist/es2017/core/api/debug/utils.js +0 -54
- package/dist/es2017/core/api/index.d.ts +0 -20
- package/dist/es2017/core/api/index.js +0 -19
- package/dist/es2017/core/api/option_utils.d.ts +0 -124
- package/dist/es2017/core/api/option_utils.js +0 -315
- package/dist/es2017/core/api/playback_observer.d.ts +0 -521
- package/dist/es2017/core/api/playback_observer.js +0 -770
- package/dist/es2017/core/api/public_api.d.ts +0 -751
- package/dist/es2017/core/api/public_api.js +0 -2346
- package/dist/es2017/core/api/track_management/index.d.ts +0 -18
- package/dist/es2017/core/api/track_management/media_element_tracks_store.d.ts +0 -197
- package/dist/es2017/core/api/track_management/media_element_tracks_store.js +0 -669
- package/dist/es2017/core/api/track_management/track_dispatcher.d.ts +0 -100
- package/dist/es2017/core/api/track_management/track_dispatcher.js +0 -166
- package/dist/es2017/core/api/track_management/tracks_store.d.ts +0 -441
- package/dist/es2017/core/api/track_management/tracks_store.js +0 -981
- package/dist/es2017/core/api/utils.d.ts +0 -66
- package/dist/es2017/core/api/utils.js +0 -167
- package/dist/es2017/core/decrypt/__tests__/__global__/utils.d.ts +0 -178
- package/dist/es2017/core/decrypt/__tests__/__global__/utils.js +0 -363
- package/dist/es2017/core/decrypt/attach_media_keys.d.ts +0 -53
- package/dist/es2017/core/decrypt/attach_media_keys.js +0 -72
- package/dist/es2017/core/decrypt/clear_on_stop.js +0 -40
- package/dist/es2017/core/decrypt/content_decryptor.d.ts +0 -184
- package/dist/es2017/core/decrypt/content_decryptor.js +0 -792
- package/dist/es2017/core/decrypt/create_or_load_session.d.ts +0 -63
- package/dist/es2017/core/decrypt/create_or_load_session.js +0 -75
- package/dist/es2017/core/decrypt/create_session.d.ts +0 -53
- package/dist/es2017/core/decrypt/create_session.js +0 -150
- package/dist/es2017/core/decrypt/dispose_decryption_resources.js +0 -42
- package/dist/es2017/core/decrypt/find_key_system.d.ts +0 -48
- package/dist/es2017/core/decrypt/find_key_system.js +0 -281
- package/dist/es2017/core/decrypt/get_media_keys.d.ts +0 -44
- package/dist/es2017/core/decrypt/get_media_keys.js +0 -100
- package/dist/es2017/core/decrypt/index.d.ts +0 -26
- package/dist/es2017/core/decrypt/index.js +0 -26
- package/dist/es2017/core/decrypt/init_media_keys.d.ts +0 -26
- package/dist/es2017/core/decrypt/init_media_keys.js +0 -47
- package/dist/es2017/core/decrypt/session_events_listener.d.ts +0 -75
- package/dist/es2017/core/decrypt/session_events_listener.js +0 -249
- package/dist/es2017/core/decrypt/set_server_certificate.d.ts +0 -51
- package/dist/es2017/core/decrypt/set_server_certificate.js +0 -83
- package/dist/es2017/core/decrypt/types.d.ts +0 -374
- package/dist/es2017/core/decrypt/utils/are_init_values_compatible.js +0 -113
- package/dist/es2017/core/decrypt/utils/check_key_statuses.d.ts +0 -52
- package/dist/es2017/core/decrypt/utils/check_key_statuses.js +0 -165
- package/dist/es2017/core/decrypt/utils/clean_old_loaded_sessions.d.ts +0 -26
- package/dist/es2017/core/decrypt/utils/clean_old_stored_persistent_info.d.ts +0 -32
- package/dist/es2017/core/decrypt/utils/init_data_values_container.d.ts +0 -69
- package/dist/es2017/core/decrypt/utils/init_data_values_container.js +0 -96
- package/dist/es2017/core/decrypt/utils/is_session_usable.d.ts +0 -24
- package/dist/es2017/core/decrypt/utils/is_session_usable.js +0 -49
- package/dist/es2017/core/decrypt/utils/key_id_comparison.js +0 -48
- package/dist/es2017/core/decrypt/utils/key_session_record.d.ts +0 -104
- package/dist/es2017/core/decrypt/utils/key_session_record.js +0 -153
- package/dist/es2017/core/decrypt/utils/loaded_sessions_store.d.ts +0 -215
- package/dist/es2017/core/decrypt/utils/loaded_sessions_store.js +0 -365
- package/dist/es2017/core/decrypt/utils/media_keys_infos_store.d.ts +0 -56
- package/dist/es2017/core/decrypt/utils/media_keys_infos_store.js +0 -44
- package/dist/es2017/core/decrypt/utils/persistent_sessions_store.d.ts +0 -94
- package/dist/es2017/core/decrypt/utils/persistent_sessions_store.js +0 -321
- package/dist/es2017/core/decrypt/utils/serializable_bytes.d.ts +0 -44
- package/dist/es2017/core/decrypt/utils/serializable_bytes.js +0 -46
- package/dist/es2017/core/decrypt/utils/server_certificate_store.d.ts +0 -64
- package/dist/es2017/core/decrypt/utils/server_certificate_store.js +0 -112
- package/dist/es2017/core/init/directfile_content_initializer.d.ts +0 -97
- package/dist/es2017/core/init/directfile_content_initializer.js +0 -238
- package/dist/es2017/core/init/media_source_content_initializer.d.ts +0 -165
- package/dist/es2017/core/init/media_source_content_initializer.js +0 -685
- package/dist/es2017/core/init/multithread/main_thread/multi_thread_content_initializer.d.ts +0 -167
- package/dist/es2017/core/init/multithread/main_thread/multi_thread_content_initializer.js +0 -1317
- package/dist/es2017/core/init/multithread/main_thread/send_message.d.ts +0 -2
- package/dist/es2017/core/init/multithread/main_thread/send_message.js +0 -10
- package/dist/es2017/core/init/multithread/worker/content_preparer.d.ts +0 -92
- package/dist/es2017/core/init/multithread/worker/content_preparer.js +0 -236
- package/dist/es2017/core/init/multithread/worker/globals.d.ts +0 -13
- package/dist/es2017/core/init/multithread/worker/globals.js +0 -18
- package/dist/es2017/core/init/multithread/worker/index.d.ts +0 -2
- package/dist/es2017/core/init/multithread/worker/index.js +0 -2
- package/dist/es2017/core/init/multithread/worker/send_message.d.ts +0 -3
- package/dist/es2017/core/init/multithread/worker/send_message.js +0 -20
- package/dist/es2017/core/init/multithread/worker/track_choice_setter.d.ts +0 -19
- package/dist/es2017/core/init/multithread/worker/track_choice_setter.js +0 -114
- package/dist/es2017/core/init/multithread/worker/worker_playback_observer.d.ts +0 -21
- package/dist/es2017/core/init/multithread/worker/worker_playback_observer.js +0 -43
- package/dist/es2017/core/init/multithread/worker/worker_portal.d.ts +0 -1
- package/dist/es2017/core/init/multithread/worker/worker_portal.js +0 -671
- package/dist/es2017/core/init/multithread/worker/worker_text_displayer_interface.d.ts +0 -64
- package/dist/es2017/core/init/multithread/worker/worker_text_displayer_interface.js +0 -121
- package/dist/es2017/core/init/types.d.ts +0 -226
- package/dist/es2017/core/init/utils/DecipherabilityFreezeDetector.d.ts +0 -54
- package/dist/es2017/core/init/utils/DecipherabilityFreezeDetector.js +0 -93
- package/dist/es2017/core/init/utils/content_time_boundaries_observer.d.ts +0 -192
- package/dist/es2017/core/init/utils/content_time_boundaries_observer.js +0 -468
- package/dist/es2017/core/init/utils/create_content_time_boundaries_observer.d.ts +0 -28
- package/dist/es2017/core/init/utils/create_content_time_boundaries_observer.js +0 -41
- package/dist/es2017/core/init/utils/create_core_playback_observer.d.ts +0 -61
- package/dist/es2017/core/init/utils/create_core_playback_observer.js +0 -122
- package/dist/es2017/core/init/utils/create_media_source.d.ts +0 -37
- package/dist/es2017/core/init/utils/create_media_source.js +0 -103
- package/dist/es2017/core/init/utils/end_of_stream.d.ts +0 -33
- package/dist/es2017/core/init/utils/end_of_stream.js +0 -88
- package/dist/es2017/core/init/utils/get_initial_time.d.ts +0 -76
- package/dist/es2017/core/init/utils/get_initial_time.js +0 -113
- package/dist/es2017/core/init/utils/get_loaded_reference.d.ts +0 -28
- package/dist/es2017/core/init/utils/get_loaded_reference.js +0 -58
- package/dist/es2017/core/init/utils/initial_seek_and_play.d.ts +0 -61
- package/dist/es2017/core/init/utils/initial_seek_and_play.js +0 -206
- package/dist/es2017/core/init/utils/initialize_content_decryption.d.ts +0 -86
- package/dist/es2017/core/init/utils/initialize_content_decryption.js +0 -110
- package/dist/es2017/core/init/utils/main_thread_text_displayer_interface.d.ts +0 -35
- package/dist/es2017/core/init/utils/media_source_duration_updater.js +0 -263
- package/dist/es2017/core/init/utils/rebuffering_controller.d.ts +0 -114
- package/dist/es2017/core/init/utils/rebuffering_controller.js +0 -421
- package/dist/es2017/core/init/utils/stream_events_emitter/are_same_stream_events.js +0 -35
- package/dist/es2017/core/init/utils/stream_events_emitter/index.d.ts +0 -18
- package/dist/es2017/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +0 -25
- package/dist/es2017/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +0 -85
- package/dist/es2017/core/init/utils/stream_events_emitter/stream_events_emitter.d.ts +0 -53
- package/dist/es2017/core/init/utils/stream_events_emitter/stream_events_emitter.js +0 -180
- package/dist/es2017/core/init/utils/stream_events_emitter/types.d.ts +0 -41
- package/dist/es2017/core/init/utils/throw_on_media_error.d.ts +0 -23
- package/dist/es2017/core/init/utils/throw_on_media_error.js +0 -58
- package/dist/es2017/core/segment_buffers/garbage_collector.d.ts +0 -43
- package/dist/es2017/core/segment_buffers/garbage_collector.js +0 -137
- package/dist/es2017/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.d.ts +0 -134
- package/dist/es2017/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.js +0 -259
- package/dist/es2017/core/segment_buffers/implementations/audio_video/index.d.ts +0 -17
- package/dist/es2017/core/segment_buffers/implementations/audio_video/index.js +0 -17
- package/dist/es2017/core/segment_buffers/implementations/index.d.ts +0 -19
- package/dist/es2017/core/segment_buffers/implementations/index.js +0 -18
- package/dist/es2017/core/segment_buffers/implementations/text/index.d.ts +0 -3
- package/dist/es2017/core/segment_buffers/implementations/text/index.js +0 -2
- package/dist/es2017/core/segment_buffers/implementations/text/text_segment_buffer.d.ts +0 -89
- package/dist/es2017/core/segment_buffers/implementations/text/text_segment_buffer.js +0 -152
- package/dist/es2017/core/segment_buffers/implementations/types.d.ts +0 -309
- package/dist/es2017/core/segment_buffers/implementations/types.js +0 -112
- package/dist/es2017/core/segment_buffers/implementations/utils/manual_time_ranges.js +0 -63
- package/dist/es2017/core/segment_buffers/index.d.ts +0 -21
- package/dist/es2017/core/segment_buffers/index.js +0 -21
- package/dist/es2017/core/segment_buffers/inventory/buffered_history.d.ts +0 -89
- package/dist/es2017/core/segment_buffers/inventory/buffered_history.js +0 -90
- package/dist/es2017/core/segment_buffers/inventory/index.d.ts +0 -21
- package/dist/es2017/core/segment_buffers/inventory/index.js +0 -18
- package/dist/es2017/core/segment_buffers/inventory/segment_inventory.d.ts +0 -238
- package/dist/es2017/core/segment_buffers/inventory/segment_inventory.js +0 -863
- package/dist/es2017/core/segment_buffers/inventory/types.d.ts +0 -27
- package/dist/es2017/core/segment_buffers/inventory/utils.d.ts +0 -33
- package/dist/es2017/core/segment_buffers/inventory/utils.js +0 -49
- package/dist/es2017/core/segment_buffers/segment_buffers_store.d.ts +0 -171
- package/dist/es2017/core/segment_buffers/segment_buffers_store.js +0 -281
- package/dist/es2017/manifest/adaptation.d.ts +0 -135
- package/dist/es2017/manifest/adaptation.js +0 -195
- package/dist/es2017/manifest/manifest.d.ts +0 -388
- package/dist/es2017/manifest/manifest.js +0 -383
- package/dist/es2017/manifest/period.d.ts +0 -106
- package/dist/es2017/manifest/period.js +0 -194
- package/dist/es2017/manifest/representation.d.ts +0 -238
- package/dist/es2017/manifest/representation.js +0 -344
- package/dist/es2017/manifest/representation_index/index.d.ts +0 -18
- package/dist/es2017/manifest/representation_index/static.d.ts +0 -101
- package/dist/es2017/manifest/representation_index/static.js +0 -139
- package/dist/es2017/manifest/representation_index/types.d.ts +0 -420
- package/dist/es2017/manifest/update_period_in_place.d.ts +0 -52
- package/dist/es2017/manifest/update_period_in_place.js +0 -110
- package/dist/es2017/manifest/update_periods.d.ts +0 -50
- package/dist/es2017/manifest/update_periods.js +0 -192
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts +0 -23
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +0 -311
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts +0 -23
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/BaseURL.js +0 -30
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts +0 -22
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts +0 -21
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts +0 -23
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/EventStream.js +0 -94
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts +0 -21
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Initialization.js +0 -39
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts +0 -21
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/MPD.js +0 -144
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts +0 -21
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Period.js +0 -112
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts +0 -21
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Representation.js +0 -189
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts +0 -22
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.js +0 -89
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts +0 -21
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts +0 -23
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.js +0 -73
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts +0 -21
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts +0 -23
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.js +0 -49
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts +0 -187
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/utils.js +0 -306
- package/dist/es2017/parsers/manifest/dash/js-parser/parse_from_document.d.ts +0 -24
- package/dist/es2017/parsers/manifest/dash/js-parser/parse_from_document.js +0 -106
- package/dist/es2017/text_displayer/html/html_parsers.js +0 -22
- package/dist/es2017/text_displayer/html/html_text_displayer.d.ts +0 -100
- package/dist/es2017/text_displayer/html/html_text_displayer.js +0 -311
- package/dist/es2017/text_displayer/html/text_track_cues_store.d.ts +0 -65
- package/dist/es2017/text_displayer/html/text_track_cues_store.js +0 -358
- package/dist/es2017/text_displayer/html/update_proportional_elements.js +0 -62
- package/dist/es2017/text_displayer/html/utils.js +0 -107
- package/dist/es2017/text_displayer/index.d.ts +0 -2
- package/dist/es2017/text_displayer/manual_time_ranges.js +0 -48
- package/dist/es2017/text_displayer/native/native_parsers.d.ts +0 -11
- package/dist/es2017/text_displayer/native/native_parsers.js +0 -22
- package/dist/es2017/text_displayer/native/native_text_displayer.d.ts +0 -56
- package/dist/es2017/text_displayer/native/native_text_displayer.js +0 -203
- package/dist/es2017/text_displayer/types.d.ts +0 -74
- package/dist/es2017/transports/dash/extract_complete_chunks.js +0 -63
- package/dist/es2017/transports/utils/find_complete_box.js +0 -53
- /package/dist/commonjs/core/{segment_buffers → segment_sinks}/implementations/audio_video/index.js +0 -0
- /package/dist/commonjs/core/{segment_buffers → segment_sinks}/implementations/text/index.js +0 -0
- /package/dist/commonjs/core/{segment_buffers → segment_sinks}/implementations/utils/manual_time_ranges.d.ts +0 -0
- /package/dist/commonjs/core/{segment_buffers → segment_sinks}/implementations/utils/manual_time_ranges.js +0 -0
- /package/dist/commonjs/core/{segment_buffers → segment_sinks}/inventory/buffered_history.js +0 -0
- /package/dist/commonjs/core/{segment_buffers → segment_sinks}/inventory/index.js +0 -0
- /package/dist/commonjs/core/{init/utils/stream_events_emitter → segment_sinks/inventory}/types.js +0 -0
- /package/dist/commonjs/{text_displayer → core}/types.js +0 -0
- /package/dist/commonjs/{core → main_thread}/api/debug/buffer_size_graph.d.ts +0 -0
- /package/dist/commonjs/{core → main_thread}/api/debug/constants.d.ts +0 -0
- /package/dist/commonjs/{core → main_thread}/api/debug/constants.js +0 -0
- /package/dist/commonjs/{core → main_thread}/api/debug/index.d.ts +0 -0
- /package/dist/commonjs/{core → main_thread}/api/debug/index.js +0 -0
- /package/dist/commonjs/{core → main_thread}/api/debug/render.js +0 -0
- /package/dist/commonjs/{core → main_thread}/api/debug/utils.d.ts +0 -0
- /package/dist/commonjs/{core → main_thread}/api/debug/utils.js +0 -0
- /package/dist/commonjs/{core → main_thread}/decrypt/clear_on_stop.d.ts +0 -0
- /package/dist/commonjs/{core → main_thread}/decrypt/dispose_decryption_resources.d.ts +0 -0
- /package/dist/commonjs/{core → main_thread}/decrypt/get_key_system_configuration.d.ts +0 -0
- /package/dist/commonjs/{core → main_thread}/decrypt/get_key_system_configuration.js +0 -0
- /package/dist/commonjs/{core → main_thread}/decrypt/index.js +0 -0
- /package/dist/commonjs/{core → main_thread}/decrypt/types.js +0 -0
- /package/dist/commonjs/{core → main_thread}/decrypt/utils/are_init_values_compatible.d.ts +0 -0
- /package/dist/commonjs/{core → main_thread}/decrypt/utils/clean_old_loaded_sessions.js +0 -0
- /package/dist/commonjs/{core → main_thread}/decrypt/utils/clean_old_stored_persistent_info.js +0 -0
- /package/dist/commonjs/{core → main_thread}/decrypt/utils/get_drm_system_id.d.ts +0 -0
- /package/dist/commonjs/{core → main_thread}/decrypt/utils/get_drm_system_id.js +0 -0
- /package/dist/commonjs/{core → main_thread}/decrypt/utils/key_id_comparison.d.ts +0 -0
- /package/dist/commonjs/{core → main_thread}/decrypt/utils/key_id_comparison.js +0 -0
- /package/dist/commonjs/{core → main_thread}/init/index.d.ts +0 -0
- /package/dist/commonjs/{core → main_thread}/init/index.js +0 -0
- /package/dist/commonjs/{core → main_thread}/init/types.js +0 -0
- /package/dist/commonjs/{core → main_thread}/init/utils/main_thread_text_displayer_interface.js +0 -0
- /package/dist/commonjs/{core → main_thread}/init/utils/stream_events_emitter/are_same_stream_events.d.ts +0 -0
- /package/dist/commonjs/{core → main_thread}/init/utils/stream_events_emitter/index.js +0 -0
- /package/dist/commonjs/{core/segment_buffers/inventory → main_thread/init/utils/stream_events_emitter}/types.js +0 -0
- /package/dist/commonjs/{text_displayer → main_thread/text_displayer}/html/html_parsers.d.ts +0 -0
- /package/dist/commonjs/{text_displayer → main_thread/text_displayer}/html/index.d.ts +0 -0
- /package/dist/commonjs/{text_displayer → main_thread/text_displayer}/html/index.js +0 -0
- /package/dist/commonjs/{text_displayer → main_thread/text_displayer}/html/update_proportional_elements.d.ts +0 -0
- /package/dist/commonjs/{text_displayer → main_thread/text_displayer}/html/utils.d.ts +0 -0
- /package/dist/commonjs/{text_displayer → main_thread/text_displayer}/index.js +0 -0
- /package/dist/commonjs/{text_displayer → main_thread/text_displayer}/manual_time_ranges.d.ts +0 -0
- /package/dist/commonjs/{text_displayer → main_thread/text_displayer}/native/index.d.ts +0 -0
- /package/dist/commonjs/{text_displayer → main_thread/text_displayer}/native/index.js +0 -0
- /package/dist/commonjs/{core/api/track_management → main_thread/tracks_store}/index.js +0 -0
- /package/dist/commonjs/manifest/{representation_index → classes/representation_index}/index.js +0 -0
- /package/dist/commonjs/manifest/{representation_index → classes/representation_index}/types.js +0 -0
- /package/dist/commonjs/{core/init → mse}/utils/media_source_duration_updater.d.ts +0 -0
- /package/dist/commonjs/{transports/dash → parsers/containers/isobmff}/extract_complete_chunks.d.ts +0 -0
- /package/dist/commonjs/{transports/utils → parsers/containers/isobmff}/find_complete_box.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/index.d.ts +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/index.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/ContentComponent.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/ContentProtection.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentList.js +0 -0
- /package/dist/commonjs/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentTimeline.js +0 -0
- /package/dist/es2017/core/{segment_buffers → segment_sinks}/implementations/utils/manual_time_ranges.d.ts +0 -0
- /package/dist/es2017/core/{init/utils/stream_events_emitter → segment_sinks/inventory}/types.js +0 -0
- /package/dist/es2017/{text_displayer → core}/types.js +0 -0
- /package/dist/es2017/{core → main_thread}/api/debug/buffer_size_graph.d.ts +0 -0
- /package/dist/es2017/{core → main_thread}/api/debug/constants.d.ts +0 -0
- /package/dist/es2017/{core → main_thread}/api/debug/constants.js +0 -0
- /package/dist/es2017/{core → main_thread}/api/debug/index.d.ts +0 -0
- /package/dist/es2017/{core → main_thread}/api/debug/index.js +0 -0
- /package/dist/es2017/{core → main_thread}/api/debug/utils.d.ts +0 -0
- /package/dist/es2017/{core → main_thread}/decrypt/clear_on_stop.d.ts +0 -0
- /package/dist/es2017/{core → main_thread}/decrypt/dispose_decryption_resources.d.ts +0 -0
- /package/dist/es2017/{core → main_thread}/decrypt/get_key_system_configuration.d.ts +0 -0
- /package/dist/es2017/{core → main_thread}/decrypt/get_key_system_configuration.js +0 -0
- /package/dist/es2017/{core → main_thread}/decrypt/types.js +0 -0
- /package/dist/es2017/{core → main_thread}/decrypt/utils/are_init_values_compatible.d.ts +0 -0
- /package/dist/es2017/{core → main_thread}/decrypt/utils/clean_old_loaded_sessions.js +0 -0
- /package/dist/es2017/{core → main_thread}/decrypt/utils/clean_old_stored_persistent_info.js +0 -0
- /package/dist/es2017/{core → main_thread}/decrypt/utils/get_drm_system_id.d.ts +0 -0
- /package/dist/es2017/{core → main_thread}/decrypt/utils/get_drm_system_id.js +0 -0
- /package/dist/es2017/{core → main_thread}/decrypt/utils/key_id_comparison.d.ts +0 -0
- /package/dist/es2017/{core → main_thread}/init/index.d.ts +0 -0
- /package/dist/es2017/{core → main_thread}/init/index.js +0 -0
- /package/dist/es2017/{core → main_thread}/init/types.js +0 -0
- /package/dist/es2017/{core → main_thread}/init/utils/main_thread_text_displayer_interface.js +0 -0
- /package/dist/es2017/{core → main_thread}/init/utils/stream_events_emitter/are_same_stream_events.d.ts +0 -0
- /package/dist/es2017/{core → main_thread}/init/utils/stream_events_emitter/index.js +0 -0
- /package/dist/es2017/{core/segment_buffers/inventory → main_thread/init/utils/stream_events_emitter}/types.js +0 -0
- /package/dist/es2017/{text_displayer → main_thread/text_displayer}/html/html_parsers.d.ts +0 -0
- /package/dist/es2017/{text_displayer → main_thread/text_displayer}/html/index.d.ts +0 -0
- /package/dist/es2017/{text_displayer → main_thread/text_displayer}/html/index.js +0 -0
- /package/dist/es2017/{text_displayer → main_thread/text_displayer}/html/update_proportional_elements.d.ts +0 -0
- /package/dist/es2017/{text_displayer → main_thread/text_displayer}/html/utils.d.ts +0 -0
- /package/dist/es2017/{text_displayer → main_thread/text_displayer}/index.js +0 -0
- /package/dist/es2017/{text_displayer → main_thread/text_displayer}/manual_time_ranges.d.ts +0 -0
- /package/dist/es2017/{text_displayer → main_thread/text_displayer}/native/index.d.ts +0 -0
- /package/dist/es2017/{text_displayer → main_thread/text_displayer}/native/index.js +0 -0
- /package/dist/es2017/{core/api/track_management → main_thread/tracks_store}/index.js +0 -0
- /package/dist/es2017/manifest/{representation_index → classes/representation_index}/index.js +0 -0
- /package/dist/es2017/manifest/{representation_index → classes/representation_index}/types.js +0 -0
- /package/dist/es2017/{core/init → mse}/utils/media_source_duration_updater.d.ts +0 -0
- /package/dist/es2017/{transports/dash → parsers/containers/isobmff}/extract_complete_chunks.d.ts +0 -0
- /package/dist/es2017/{transports/utils → parsers/containers/isobmff}/find_complete_box.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/index.d.ts +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/index.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/ContentComponent.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/ContentProtection.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentList.js +0 -0
- /package/dist/es2017/parsers/manifest/dash/{js-parser → native-parser}/node_parsers/SegmentTimeline.js +0 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2015 CANAL+ Group
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import config from "../../../config";
|
|
17
|
+
import log from "../../../log";
|
|
18
|
+
import { getLivePosition, getMaximumSafePosition, getMinimumSafePosition, } from "../../../manifest";
|
|
19
|
+
import isNullOrUndefined from "../../../utils/is_null_or_undefined";
|
|
20
|
+
import getMonotonicTimeStamp from "../../../utils/monotonic_timestamp";
|
|
21
|
+
/**
|
|
22
|
+
* Returns the calculated initial time for the content described by the given
|
|
23
|
+
* Manifest:
|
|
24
|
+
* 1. if a start time is defined by user, calculate starting time from the
|
|
25
|
+
* manifest information
|
|
26
|
+
* 2. else if the media is live, use the live edge and suggested delays from
|
|
27
|
+
* it
|
|
28
|
+
* 3. else returns the minimum time announced in the manifest
|
|
29
|
+
* @param {Manifest} manifest
|
|
30
|
+
* @param {boolean} lowLatencyMode
|
|
31
|
+
* @param {Object} startAt
|
|
32
|
+
* @returns {Number}
|
|
33
|
+
*/
|
|
34
|
+
export default function getInitialTime(manifest, lowLatencyMode, startAt) {
|
|
35
|
+
var _a;
|
|
36
|
+
if (!isNullOrUndefined(startAt)) {
|
|
37
|
+
const min = getMinimumSafePosition(manifest);
|
|
38
|
+
const max = getMaximumSafePosition(manifest);
|
|
39
|
+
if (!isNullOrUndefined(startAt.position)) {
|
|
40
|
+
log.debug("Init: using startAt.minimumPosition");
|
|
41
|
+
return Math.max(Math.min(startAt.position, max), min);
|
|
42
|
+
}
|
|
43
|
+
else if (!isNullOrUndefined(startAt.wallClockTime)) {
|
|
44
|
+
log.debug("Init: using startAt.wallClockTime");
|
|
45
|
+
const ast = manifest.availabilityStartTime === undefined ? 0 : manifest.availabilityStartTime;
|
|
46
|
+
const position = startAt.wallClockTime - ast;
|
|
47
|
+
return Math.max(Math.min(position, max), min);
|
|
48
|
+
}
|
|
49
|
+
else if (!isNullOrUndefined(startAt.fromFirstPosition)) {
|
|
50
|
+
log.debug("Init: using startAt.fromFirstPosition");
|
|
51
|
+
const { fromFirstPosition } = startAt;
|
|
52
|
+
return fromFirstPosition <= 0 ? min : Math.min(max, min + fromFirstPosition);
|
|
53
|
+
}
|
|
54
|
+
else if (!isNullOrUndefined(startAt.fromLastPosition)) {
|
|
55
|
+
log.debug("Init: using startAt.fromLastPosition");
|
|
56
|
+
const { fromLastPosition } = startAt;
|
|
57
|
+
return fromLastPosition >= 0 ? max : Math.max(min, max + fromLastPosition);
|
|
58
|
+
}
|
|
59
|
+
else if (!isNullOrUndefined(startAt.fromLivePosition)) {
|
|
60
|
+
log.debug("Init: using startAt.fromLivePosition");
|
|
61
|
+
const livePosition = (_a = getLivePosition(manifest)) !== null && _a !== void 0 ? _a : max;
|
|
62
|
+
const { fromLivePosition } = startAt;
|
|
63
|
+
return fromLivePosition >= 0
|
|
64
|
+
? livePosition
|
|
65
|
+
: Math.max(min, livePosition + fromLivePosition);
|
|
66
|
+
}
|
|
67
|
+
else if (!isNullOrUndefined(startAt.percentage)) {
|
|
68
|
+
log.debug("Init: using startAt.percentage");
|
|
69
|
+
const { percentage } = startAt;
|
|
70
|
+
if (percentage > 100) {
|
|
71
|
+
return max;
|
|
72
|
+
}
|
|
73
|
+
else if (percentage < 0) {
|
|
74
|
+
return min;
|
|
75
|
+
}
|
|
76
|
+
const ratio = +percentage / 100;
|
|
77
|
+
const extent = max - min;
|
|
78
|
+
return min + extent * ratio;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
const minimumPosition = getMinimumSafePosition(manifest);
|
|
82
|
+
if (manifest.isLive) {
|
|
83
|
+
const { suggestedPresentationDelay, clockOffset } = manifest;
|
|
84
|
+
const maximumPosition = getMaximumSafePosition(manifest);
|
|
85
|
+
let liveTime;
|
|
86
|
+
const { DEFAULT_LIVE_GAP } = config.getCurrent();
|
|
87
|
+
if (clockOffset === undefined) {
|
|
88
|
+
log.info("Init: no clock offset found for a live content, " +
|
|
89
|
+
"starting close to maximum available position");
|
|
90
|
+
liveTime = maximumPosition;
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
log.info("Init: clock offset found for a live content, " +
|
|
94
|
+
"checking if we can start close to it");
|
|
95
|
+
const ast = manifest.availabilityStartTime === undefined ? 0 : manifest.availabilityStartTime;
|
|
96
|
+
const clockRelativeLiveTime = (getMonotonicTimeStamp() + clockOffset) / 1000 - ast;
|
|
97
|
+
liveTime = Math.min(maximumPosition, clockRelativeLiveTime);
|
|
98
|
+
}
|
|
99
|
+
const diffFromLiveTime = suggestedPresentationDelay !== null && suggestedPresentationDelay !== void 0 ? suggestedPresentationDelay : (lowLatencyMode ? DEFAULT_LIVE_GAP.LOW_LATENCY : DEFAULT_LIVE_GAP.DEFAULT);
|
|
100
|
+
log.debug(`Init: ${liveTime} defined as the live time, applying a live gap` +
|
|
101
|
+
` of ${diffFromLiveTime}`);
|
|
102
|
+
return Math.max(liveTime - diffFromLiveTime, minimumPosition);
|
|
103
|
+
}
|
|
104
|
+
log.info("Init: starting at the minimum available position:", minimumPosition);
|
|
105
|
+
return minimumPosition;
|
|
106
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2015 CANAL+ Group
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { IPlaybackObservation, IReadOnlyPlaybackObserver } from "../../../playback_observer";
|
|
17
|
+
import type { IReadOnlySharedReference } from "../../../utils/reference";
|
|
18
|
+
import type { CancellationSignal } from "../../../utils/task_canceller";
|
|
19
|
+
/**
|
|
20
|
+
* Returns an `IReadOnlySharedReference` that switches to `true` once the
|
|
21
|
+
* content is considered loaded (i.e. once it can begin to be played).
|
|
22
|
+
* @param {Object} playbackObserver
|
|
23
|
+
* @param {HTMLMediaElement} mediaElement
|
|
24
|
+
* @param {boolean} isDirectfile - `true` if this is a directfile content
|
|
25
|
+
* @param {Object} cancelSignal
|
|
26
|
+
* @returns {Object}
|
|
27
|
+
*/
|
|
28
|
+
export default function getLoadedReference(playbackObserver: IReadOnlyPlaybackObserver<IPlaybackObservation>, mediaElement: HTMLMediaElement, isDirectfile: boolean, cancelSignal: CancellationSignal): IReadOnlySharedReference<boolean>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2015 CANAL+ Group
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import shouldValidateMetadata from "../../../compat/should_validate_metadata";
|
|
17
|
+
import shouldWaitForDataBeforeLoaded from "../../../compat/should_wait_for_data_before_loaded";
|
|
18
|
+
import shouldWaitForHaveEnoughData from "../../../compat/should_wait_for_have_enough_data";
|
|
19
|
+
import SharedReference from "../../../utils/reference";
|
|
20
|
+
import TaskCanceller from "../../../utils/task_canceller";
|
|
21
|
+
/**
|
|
22
|
+
* Returns an `IReadOnlySharedReference` that switches to `true` once the
|
|
23
|
+
* content is considered loaded (i.e. once it can begin to be played).
|
|
24
|
+
* @param {Object} playbackObserver
|
|
25
|
+
* @param {HTMLMediaElement} mediaElement
|
|
26
|
+
* @param {boolean} isDirectfile - `true` if this is a directfile content
|
|
27
|
+
* @param {Object} cancelSignal
|
|
28
|
+
* @returns {Object}
|
|
29
|
+
*/
|
|
30
|
+
export default function getLoadedReference(playbackObserver, mediaElement, isDirectfile, cancelSignal) {
|
|
31
|
+
const listenCanceller = new TaskCanceller();
|
|
32
|
+
listenCanceller.linkToSignal(cancelSignal);
|
|
33
|
+
const isLoaded = new SharedReference(false, listenCanceller.signal);
|
|
34
|
+
playbackObserver.listen((observation) => {
|
|
35
|
+
if (observation.rebuffering !== null ||
|
|
36
|
+
observation.freezing !== null ||
|
|
37
|
+
observation.readyState === 0) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (!shouldWaitForDataBeforeLoaded(isDirectfile, mediaElement.hasAttribute("playsinline"))) {
|
|
41
|
+
// The duration is NaN if no media data is available,
|
|
42
|
+
// which means media is not loaded yet.
|
|
43
|
+
if (isNaN(mediaElement.duration)) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (mediaElement.duration > 0) {
|
|
47
|
+
isLoaded.setValue(true);
|
|
48
|
+
listenCanceller.cancel();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const minReadyState = shouldWaitForHaveEnoughData() ? 4 : 3;
|
|
53
|
+
if (observation.readyState >= minReadyState) {
|
|
54
|
+
if (observation.currentRange !== null || observation.ended) {
|
|
55
|
+
if (!shouldValidateMetadata() || mediaElement.duration > 0) {
|
|
56
|
+
isLoaded.setValue(true);
|
|
57
|
+
listenCanceller.cancel();
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}, { includeLastObservation: true, clearSignal: listenCanceller.signal });
|
|
63
|
+
return isLoaded;
|
|
64
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2015 CANAL+ Group
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { IMediaElementPlaybackObserver } from "../../../playback_observer";
|
|
17
|
+
import type { IPlayerError } from "../../../public_types";
|
|
18
|
+
import type { IReadOnlySharedReference } from "../../../utils/reference";
|
|
19
|
+
import type { CancellationSignal } from "../../../utils/task_canceller";
|
|
20
|
+
/** Event emitted when trying to perform the initial `play`. */
|
|
21
|
+
export type IInitialPlayEvent =
|
|
22
|
+
/** Autoplay is not enabled, but all required steps to do so are there. */
|
|
23
|
+
{
|
|
24
|
+
type: "skipped";
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Tried to play, but autoplay is blocked by the browser.
|
|
28
|
+
* A corresponding warning should have already been sent.
|
|
29
|
+
*/
|
|
30
|
+
| {
|
|
31
|
+
type: "autoplay-blocked";
|
|
32
|
+
}
|
|
33
|
+
/** Autoplay was done with success. */
|
|
34
|
+
| {
|
|
35
|
+
type: "autoplay";
|
|
36
|
+
};
|
|
37
|
+
/** Object returned by `initialSeekAndPlay`. */
|
|
38
|
+
export interface IInitialSeekAndPlayObject {
|
|
39
|
+
/** Emit the result of the auto-play operation, once performed. */
|
|
40
|
+
autoPlayResult: Promise<IInitialPlayEvent>;
|
|
41
|
+
/**
|
|
42
|
+
* Shared reference whose value becomes `true` once the initial play has
|
|
43
|
+
* been considered / has been done by `performInitialSeekAndPlay`.
|
|
44
|
+
*/
|
|
45
|
+
initialPlayPerformed: IReadOnlySharedReference<boolean>;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Seek as soon as possible at the initially wanted position and play if
|
|
49
|
+
* autoPlay is wanted.
|
|
50
|
+
* @param {Object} args
|
|
51
|
+
* @param {Object} cancelSignal
|
|
52
|
+
* @returns {Object}
|
|
53
|
+
*/
|
|
54
|
+
export default function performInitialSeekAndPlay({ mediaElement, playbackObserver, startTime, mustAutoPlay, isDirectfile, onWarning, }: {
|
|
55
|
+
mediaElement: HTMLMediaElement;
|
|
56
|
+
playbackObserver: IMediaElementPlaybackObserver;
|
|
57
|
+
startTime: number | (() => number);
|
|
58
|
+
mustAutoPlay: boolean;
|
|
59
|
+
isDirectfile: boolean;
|
|
60
|
+
onWarning: (err: IPlayerError) => void;
|
|
61
|
+
}, cancelSignal: CancellationSignal): IInitialSeekAndPlayObject;
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2015 CANAL+ Group
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import canSeekDirectlyAfterLoadedMetadata from "../../../compat/can_seek_directly_after_loaded_metadata";
|
|
17
|
+
import shouldValidateMetadata from "../../../compat/should_validate_metadata";
|
|
18
|
+
import { MediaError } from "../../../errors";
|
|
19
|
+
import log from "../../../log";
|
|
20
|
+
import SharedReference from "../../../utils/reference";
|
|
21
|
+
/**
|
|
22
|
+
* Seek as soon as possible at the initially wanted position and play if
|
|
23
|
+
* autoPlay is wanted.
|
|
24
|
+
* @param {Object} args
|
|
25
|
+
* @param {Object} cancelSignal
|
|
26
|
+
* @returns {Object}
|
|
27
|
+
*/
|
|
28
|
+
export default function performInitialSeekAndPlay({ mediaElement, playbackObserver, startTime, mustAutoPlay, isDirectfile, onWarning, }, cancelSignal) {
|
|
29
|
+
const initialPlayPerformed = new SharedReference(false, cancelSignal);
|
|
30
|
+
const autoPlayResult = new Promise((resolveAutoPlay, rejectAutoPlay) => {
|
|
31
|
+
const deregisterCancellation = cancelSignal.register((err) => {
|
|
32
|
+
rejectAutoPlay(err);
|
|
33
|
+
});
|
|
34
|
+
if (cancelSignal.isCancelled()) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
/** `true` if we asked the `PlaybackObserver` to perform an initial seek. */
|
|
38
|
+
let hasAskedForInitialSeek = false;
|
|
39
|
+
const performInitialSeek = (initialSeekTime) => {
|
|
40
|
+
playbackObserver.setCurrentTime(initialSeekTime);
|
|
41
|
+
hasAskedForInitialSeek = true;
|
|
42
|
+
};
|
|
43
|
+
// `startTime` defined as a function might depend on metadata to make its
|
|
44
|
+
// choice, such as the content duration, minimum and/or maximum position.
|
|
45
|
+
//
|
|
46
|
+
// The RxPlayer might already know those through the Manifest file for
|
|
47
|
+
// non-Directfile contents, yet only through the `HTMLMediaElement` once a
|
|
48
|
+
// a sufficient `readyState` has been reached for directfile contents.
|
|
49
|
+
// So let's divide the two possibilities here.
|
|
50
|
+
if (!isDirectfile || typeof startTime === "number") {
|
|
51
|
+
const initiallySeekedTime = typeof startTime === "number" ? startTime : startTime();
|
|
52
|
+
if (initiallySeekedTime !== 0) {
|
|
53
|
+
performInitialSeek(initiallySeekedTime);
|
|
54
|
+
}
|
|
55
|
+
waitForSeekable();
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
playbackObserver.listen((obs, stopListening) => {
|
|
59
|
+
if (obs.readyState >= 1) {
|
|
60
|
+
stopListening();
|
|
61
|
+
const initiallySeekedTime = typeof startTime === "number" ? startTime : startTime();
|
|
62
|
+
if (initiallySeekedTime !== 0) {
|
|
63
|
+
if (canSeekDirectlyAfterLoadedMetadata) {
|
|
64
|
+
performInitialSeek(initiallySeekedTime);
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
setTimeout(() => {
|
|
68
|
+
performInitialSeek(initiallySeekedTime);
|
|
69
|
+
}, 0);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
waitForSeekable();
|
|
73
|
+
}
|
|
74
|
+
}, { includeLastObservation: true, clearSignal: cancelSignal });
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Logic that should be run once the initial seek has been asked to the
|
|
78
|
+
* PlaybackObserver.
|
|
79
|
+
*
|
|
80
|
+
* Actually wait until the seek has been performed, wait for the right moment
|
|
81
|
+
* to perform autoplay, resolve the promise once everything has been done and
|
|
82
|
+
* potentially send warning if a minor issue is detected.
|
|
83
|
+
*/
|
|
84
|
+
function waitForSeekable() {
|
|
85
|
+
/**
|
|
86
|
+
* We only want to continue to `play` when a `seek` has actually been
|
|
87
|
+
* performed (if it has been asked). This boolean keep track of if the
|
|
88
|
+
* seek arised.
|
|
89
|
+
*/
|
|
90
|
+
let hasStartedSeeking = false;
|
|
91
|
+
playbackObserver.listen((obs, stopListening) => {
|
|
92
|
+
if (!hasStartedSeeking && obs.seeking !== 0 /* SeekingState.None */) {
|
|
93
|
+
hasStartedSeeking = true;
|
|
94
|
+
}
|
|
95
|
+
if ((hasAskedForInitialSeek && !hasStartedSeeking) || obs.readyState === 0) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
stopListening();
|
|
99
|
+
if (shouldValidateMetadata() && mediaElement.duration === 0) {
|
|
100
|
+
const error = new MediaError("MEDIA_ERR_NOT_LOADED_METADATA", "Cannot load automatically: your browser " +
|
|
101
|
+
"falsely announced having loaded the content.");
|
|
102
|
+
onWarning(error);
|
|
103
|
+
}
|
|
104
|
+
if (cancelSignal.isCancelled()) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
waitForPlayable();
|
|
108
|
+
}, { includeLastObservation: true, clearSignal: cancelSignal });
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Logic that should be run once the initial seek has been properly performed.
|
|
112
|
+
*
|
|
113
|
+
* Wait for the media being playable before performing the autoplay operation
|
|
114
|
+
* if asked. Potentially send warning if a minor issue has been detected while
|
|
115
|
+
* doing so.
|
|
116
|
+
*/
|
|
117
|
+
function waitForPlayable() {
|
|
118
|
+
playbackObserver.listen((observation, stopListening) => {
|
|
119
|
+
if (observation.seeking === 0 /* SeekingState.None */ &&
|
|
120
|
+
observation.rebuffering === null &&
|
|
121
|
+
observation.readyState >= 1) {
|
|
122
|
+
stopListening();
|
|
123
|
+
onPlayable();
|
|
124
|
+
}
|
|
125
|
+
}, { includeLastObservation: true, clearSignal: cancelSignal });
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Callback called once the content is considered "playable".
|
|
129
|
+
*
|
|
130
|
+
* Perform the autoplay if needed, handling potential issues and resolve the
|
|
131
|
+
* Promise when done.
|
|
132
|
+
* Might also send warnings if minor issues arise.
|
|
133
|
+
*/
|
|
134
|
+
function onPlayable() {
|
|
135
|
+
var _a;
|
|
136
|
+
log.info("Init: Can begin to play content");
|
|
137
|
+
if (!mustAutoPlay) {
|
|
138
|
+
if (mediaElement.autoplay) {
|
|
139
|
+
log.warn("Init: autoplay is enabled on HTML media element. " +
|
|
140
|
+
"Media will play as soon as possible.");
|
|
141
|
+
}
|
|
142
|
+
initialPlayPerformed.setValue(true);
|
|
143
|
+
initialPlayPerformed.finish();
|
|
144
|
+
deregisterCancellation();
|
|
145
|
+
return resolveAutoPlay({ type: "skipped" });
|
|
146
|
+
}
|
|
147
|
+
else if (mediaElement.ended) {
|
|
148
|
+
// the video has ended state to true, executing VideoElement.play() will
|
|
149
|
+
// restart the video from the start, which is not wanted in most cases.
|
|
150
|
+
// returning "skipped" prevents the call to play() and fix the issue
|
|
151
|
+
log.warn("Init: autoplay is enabled but the video is ended. " +
|
|
152
|
+
"Skipping autoplay to prevent video to start again");
|
|
153
|
+
initialPlayPerformed.setValue(true);
|
|
154
|
+
initialPlayPerformed.finish();
|
|
155
|
+
deregisterCancellation();
|
|
156
|
+
return resolveAutoPlay({ type: "skipped" });
|
|
157
|
+
}
|
|
158
|
+
let playResult;
|
|
159
|
+
try {
|
|
160
|
+
playResult = (_a = mediaElement.play()) !== null && _a !== void 0 ? _a : Promise.resolve();
|
|
161
|
+
}
|
|
162
|
+
catch (playError) {
|
|
163
|
+
deregisterCancellation();
|
|
164
|
+
return rejectAutoPlay(playError);
|
|
165
|
+
}
|
|
166
|
+
playResult
|
|
167
|
+
.then(() => {
|
|
168
|
+
if (cancelSignal.isCancelled()) {
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
initialPlayPerformed.setValue(true);
|
|
172
|
+
initialPlayPerformed.finish();
|
|
173
|
+
deregisterCancellation();
|
|
174
|
+
return resolveAutoPlay({ type: "autoplay" });
|
|
175
|
+
})
|
|
176
|
+
.catch((playError) => {
|
|
177
|
+
deregisterCancellation();
|
|
178
|
+
if (cancelSignal.isCancelled()) {
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
if (playError instanceof Error && playError.name === "NotAllowedError") {
|
|
182
|
+
// auto-play was probably prevented.
|
|
183
|
+
log.warn("Init: Media element can't play." +
|
|
184
|
+
" It may be due to browser auto-play policies.");
|
|
185
|
+
const error = new MediaError("MEDIA_ERR_BLOCKED_AUTOPLAY", "Cannot trigger auto-play automatically: " +
|
|
186
|
+
"your browser does not allow it.");
|
|
187
|
+
onWarning(error);
|
|
188
|
+
if (cancelSignal.isCancelled()) {
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
return resolveAutoPlay({ type: "autoplay-blocked" });
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
rejectAutoPlay(playError);
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
return { autoPlayResult, initialPlayPerformed };
|
|
200
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { IKeySystemOption, IPlayerError } from "../../../public_types";
|
|
2
|
+
import type { IReadOnlySharedReference } from "../../../utils/reference";
|
|
3
|
+
import SharedReference from "../../../utils/reference";
|
|
4
|
+
import type { CancellationSignal } from "../../../utils/task_canceller";
|
|
5
|
+
import type { IContentProtection, IProcessedProtectionData } from "../../decrypt";
|
|
6
|
+
/**
|
|
7
|
+
* Initialize content decryption capabilities on the given `HTMLMediaElement`.
|
|
8
|
+
*
|
|
9
|
+
* You can call this function even if you don't want decrytpion capabilities, in
|
|
10
|
+
* which case you can just set the `keySystems` option as an empty array.
|
|
11
|
+
* In this situation, the returned object will directly correspond to an
|
|
12
|
+
* "`initialized`" state and the `onError` callback will be triggered as soon
|
|
13
|
+
* as protection information is received.
|
|
14
|
+
*
|
|
15
|
+
* @param {HTMLMediaElement} mediaElement - `HTMLMediaElement` on which content
|
|
16
|
+
* decryption may be wanted.
|
|
17
|
+
* @param {Array.<Object>} keySystems - Key system configuration(s) wanted
|
|
18
|
+
* Empty array if no content decryption capability is wanted.
|
|
19
|
+
* @param {Object} protectionRef - Reference through which content
|
|
20
|
+
* protection initialization data will be sent through.
|
|
21
|
+
* @param {Object} callbacks - Callbacks called at various decryption-related
|
|
22
|
+
* events.
|
|
23
|
+
* @param {Object} cancelSignal - When that signal emits, this function will
|
|
24
|
+
* stop listening to various events as well as items sent through the
|
|
25
|
+
* `protectionRef` parameter.
|
|
26
|
+
* @returns {Object} - Reference emitting the current status regarding DRM
|
|
27
|
+
* initialization.
|
|
28
|
+
*/
|
|
29
|
+
export default function initializeContentDecryption(mediaElement: HTMLMediaElement, keySystems: IKeySystemOption[], protectionRef: IReadOnlySharedReference<null | IContentProtection>, callbacks: {
|
|
30
|
+
onWarning: (err: IPlayerError) => void;
|
|
31
|
+
onError: (err: Error) => void;
|
|
32
|
+
onBlackListProtectionData: (val: IProcessedProtectionData) => void;
|
|
33
|
+
onKeyIdsCompatibilityUpdate: (updates: {
|
|
34
|
+
whitelistedKeyIds: Uint8Array[];
|
|
35
|
+
blacklistedKeyIds: Uint8Array[];
|
|
36
|
+
delistedKeyIds: Uint8Array[];
|
|
37
|
+
}) => void;
|
|
38
|
+
}, cancelSignal: CancellationSignal): IReadOnlySharedReference<IDrmInitializationStatus>;
|
|
39
|
+
/** Status of content decryption initialization. */
|
|
40
|
+
interface IDrmInitializationStatus {
|
|
41
|
+
/** Current initialization state the decryption logic is in. */
|
|
42
|
+
initializationState: IDecryptionInitializationState;
|
|
43
|
+
/**
|
|
44
|
+
* If set, corresponds to the hex string describing the current key system
|
|
45
|
+
* used.
|
|
46
|
+
* `undefined` if unknown or if it does not apply.
|
|
47
|
+
*/
|
|
48
|
+
drmSystemId: string | undefined;
|
|
49
|
+
}
|
|
50
|
+
/** Initialization steps to add decryption capabilities to an `HTMLMediaElement`. */
|
|
51
|
+
type IDecryptionInitializationState =
|
|
52
|
+
/**
|
|
53
|
+
* Decryption capabilities have not been initialized yet.
|
|
54
|
+
* You should wait before performing any action on the concerned
|
|
55
|
+
* `HTMLMediaElement` (such as linking a content / `MediaSource` to it).
|
|
56
|
+
*/
|
|
57
|
+
{
|
|
58
|
+
type: "uninitialized";
|
|
59
|
+
value: null;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* The `MediaSource` or media url has to be linked to the `HTMLMediaElement`
|
|
63
|
+
* before continuing.
|
|
64
|
+
* Once it has been linked with success (e.g. the `MediaSource` has "opened"),
|
|
65
|
+
* the `isMediaLinked` `SharedReference` should be set to `true`.
|
|
66
|
+
*
|
|
67
|
+
* In the `MediaSource` case, you should wait until the `"initialized"`
|
|
68
|
+
* state before pushing segment.
|
|
69
|
+
*
|
|
70
|
+
* Note that the `"awaiting-media-link"` is an optional state. It can be
|
|
71
|
+
* skipped to directly `"initialized"` instead.
|
|
72
|
+
*/
|
|
73
|
+
| {
|
|
74
|
+
type: "awaiting-media-link";
|
|
75
|
+
value: {
|
|
76
|
+
isMediaLinked: SharedReference<boolean>;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The `MediaSource` or media url can be linked AND segments can be pushed to
|
|
81
|
+
* the `HTMLMediaElement` on which decryption capabilities were wanted.
|
|
82
|
+
*/
|
|
83
|
+
| {
|
|
84
|
+
type: "initialized";
|
|
85
|
+
value: null;
|
|
86
|
+
};
|
|
87
|
+
export {};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { EncryptedMediaError } from "../../../errors";
|
|
2
|
+
import features from "../../../features";
|
|
3
|
+
import log from "../../../log";
|
|
4
|
+
import SharedReference from "../../../utils/reference";
|
|
5
|
+
import TaskCanceller from "../../../utils/task_canceller";
|
|
6
|
+
import { ContentDecryptorState } from "../../decrypt";
|
|
7
|
+
/**
|
|
8
|
+
* Initialize content decryption capabilities on the given `HTMLMediaElement`.
|
|
9
|
+
*
|
|
10
|
+
* You can call this function even if you don't want decrytpion capabilities, in
|
|
11
|
+
* which case you can just set the `keySystems` option as an empty array.
|
|
12
|
+
* In this situation, the returned object will directly correspond to an
|
|
13
|
+
* "`initialized`" state and the `onError` callback will be triggered as soon
|
|
14
|
+
* as protection information is received.
|
|
15
|
+
*
|
|
16
|
+
* @param {HTMLMediaElement} mediaElement - `HTMLMediaElement` on which content
|
|
17
|
+
* decryption may be wanted.
|
|
18
|
+
* @param {Array.<Object>} keySystems - Key system configuration(s) wanted
|
|
19
|
+
* Empty array if no content decryption capability is wanted.
|
|
20
|
+
* @param {Object} protectionRef - Reference through which content
|
|
21
|
+
* protection initialization data will be sent through.
|
|
22
|
+
* @param {Object} callbacks - Callbacks called at various decryption-related
|
|
23
|
+
* events.
|
|
24
|
+
* @param {Object} cancelSignal - When that signal emits, this function will
|
|
25
|
+
* stop listening to various events as well as items sent through the
|
|
26
|
+
* `protectionRef` parameter.
|
|
27
|
+
* @returns {Object} - Reference emitting the current status regarding DRM
|
|
28
|
+
* initialization.
|
|
29
|
+
*/
|
|
30
|
+
export default function initializeContentDecryption(mediaElement, keySystems, protectionRef, callbacks, cancelSignal) {
|
|
31
|
+
if (keySystems.length === 0) {
|
|
32
|
+
return createEmeDisabledReference("No `keySystems` option given.");
|
|
33
|
+
}
|
|
34
|
+
else if (features.decrypt === null) {
|
|
35
|
+
return createEmeDisabledReference("EME feature not activated.");
|
|
36
|
+
}
|
|
37
|
+
const decryptorCanceller = new TaskCanceller();
|
|
38
|
+
decryptorCanceller.linkToSignal(cancelSignal);
|
|
39
|
+
const drmStatusRef = new SharedReference({
|
|
40
|
+
initializationState: { type: "uninitialized", value: null },
|
|
41
|
+
drmSystemId: undefined,
|
|
42
|
+
}, cancelSignal);
|
|
43
|
+
const ContentDecryptor = features.decrypt;
|
|
44
|
+
if (!ContentDecryptor.hasEmeApis()) {
|
|
45
|
+
return createEmeDisabledReference("EME API not available on the current page.");
|
|
46
|
+
}
|
|
47
|
+
log.debug("Init: Creating ContentDecryptor");
|
|
48
|
+
const contentDecryptor = new ContentDecryptor(mediaElement, keySystems);
|
|
49
|
+
contentDecryptor.addEventListener("stateChange", (state) => {
|
|
50
|
+
if (state === ContentDecryptorState.WaitingForAttachment) {
|
|
51
|
+
const isMediaLinked = new SharedReference(false);
|
|
52
|
+
isMediaLinked.onUpdate((isAttached, stopListening) => {
|
|
53
|
+
if (isAttached) {
|
|
54
|
+
stopListening();
|
|
55
|
+
if (state === ContentDecryptorState.WaitingForAttachment) {
|
|
56
|
+
contentDecryptor.attach();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}, { clearSignal: decryptorCanceller.signal });
|
|
60
|
+
drmStatusRef.setValue({
|
|
61
|
+
initializationState: {
|
|
62
|
+
type: "awaiting-media-link",
|
|
63
|
+
value: { isMediaLinked },
|
|
64
|
+
},
|
|
65
|
+
drmSystemId: contentDecryptor.systemId,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
else if (state === ContentDecryptorState.ReadyForContent) {
|
|
69
|
+
drmStatusRef.setValue({
|
|
70
|
+
initializationState: { type: "initialized", value: null },
|
|
71
|
+
drmSystemId: contentDecryptor.systemId,
|
|
72
|
+
});
|
|
73
|
+
contentDecryptor.removeEventListener("stateChange");
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
contentDecryptor.addEventListener("error", (error) => {
|
|
77
|
+
decryptorCanceller.cancel();
|
|
78
|
+
callbacks.onError(error);
|
|
79
|
+
});
|
|
80
|
+
contentDecryptor.addEventListener("warning", (error) => {
|
|
81
|
+
callbacks.onWarning(error);
|
|
82
|
+
});
|
|
83
|
+
contentDecryptor.addEventListener("blackListProtectionData", (x) => {
|
|
84
|
+
callbacks.onBlackListProtectionData(x);
|
|
85
|
+
});
|
|
86
|
+
contentDecryptor.addEventListener("keyIdsCompatibilityUpdate", (x) => {
|
|
87
|
+
callbacks.onKeyIdsCompatibilityUpdate(x);
|
|
88
|
+
});
|
|
89
|
+
protectionRef.onUpdate((data) => {
|
|
90
|
+
if (data === null) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
contentDecryptor.onInitializationData(data);
|
|
94
|
+
}, { clearSignal: decryptorCanceller.signal });
|
|
95
|
+
decryptorCanceller.signal.register(() => {
|
|
96
|
+
contentDecryptor.dispose();
|
|
97
|
+
});
|
|
98
|
+
return drmStatusRef;
|
|
99
|
+
function createEmeDisabledReference(errMsg) {
|
|
100
|
+
protectionRef.onUpdate((data, stopListening) => {
|
|
101
|
+
if (data === null) {
|
|
102
|
+
// initial value
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
stopListening();
|
|
106
|
+
const err = new EncryptedMediaError("MEDIA_IS_ENCRYPTED_ERROR", errMsg);
|
|
107
|
+
callbacks.onError(err);
|
|
108
|
+
}, { clearSignal: cancelSignal });
|
|
109
|
+
const ref = new SharedReference({
|
|
110
|
+
initializationState: { type: "initialized", value: null },
|
|
111
|
+
drmSystemId: undefined,
|
|
112
|
+
});
|
|
113
|
+
ref.finish(); // We know that no new value will be triggered
|
|
114
|
+
return ref;
|
|
115
|
+
}
|
|
116
|
+
}
|