rx-player 4.0.0-dev.2023121900 → 4.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +79 -108
- package/VERSION +1 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.d.ts +3 -0
- package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.js +6 -0
- package/dist/commonjs/__GENERATED_CODE/embedded_worker.d.ts +3 -0
- package/dist/commonjs/__GENERATED_CODE/embedded_worker.js +6 -0
- package/dist/commonjs/__GENERATED_CODE/index.d.ts +2 -0
- package/dist/commonjs/__GENERATED_CODE/index.js +7 -0
- package/dist/commonjs/compat/browser_compatibility_types.js +1 -1
- package/dist/commonjs/compat/browser_detection.d.ts +3 -1
- package/dist/commonjs/compat/browser_detection.js +27 -6
- package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.js +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/ms_media_keys_constructor.js +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 +1 -2
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +1 -1
- package/dist/commonjs/compat/eme/eme-api-implementation.js +4 -3
- package/dist/commonjs/compat/event_listeners.js +1 -1
- package/dist/commonjs/compat/has_mse_in_worker.d.ts +2 -0
- package/dist/commonjs/compat/has_mse_in_worker.js +6 -0
- package/dist/commonjs/compat/has_webassembly.d.ts +6 -0
- package/dist/commonjs/compat/has_webassembly.js +9 -0
- package/dist/commonjs/compat/index.d.ts +1 -2
- package/dist/commonjs/compat/index.js +1 -3
- package/dist/commonjs/compat/is_codec_supported.js +5 -0
- package/dist/commonjs/compat/is_vtt_cue.js +1 -1
- package/dist/commonjs/compat/make_vtt_cue.js +1 -1
- package/dist/commonjs/compat/on_height_width_change.js +1 -1
- package/dist/commonjs/compat/patch_webkit_source_buffer.js +2 -2
- package/dist/commonjs/config.d.ts +6 -17
- package/dist/commonjs/config.js +4 -12
- package/dist/commonjs/core/adaptive/adaptive_representation_selector.d.ts +2 -1
- package/dist/commonjs/core/adaptive/adaptive_representation_selector.js +1 -1
- package/dist/commonjs/core/api/debug/buffer_graph.js +3 -3
- package/dist/commonjs/core/api/debug/modules/general_info.js +23 -11
- package/dist/commonjs/core/api/debug/modules/segment_buffer_content.js +5 -4
- package/dist/commonjs/core/api/option_utils.d.ts +3 -2
- package/dist/commonjs/core/api/option_utils.js +14 -4
- package/dist/commonjs/core/api/playback_observer.d.ts +55 -24
- package/dist/commonjs/core/api/playback_observer.js +105 -72
- package/dist/commonjs/core/api/public_api.d.ts +35 -12
- package/dist/commonjs/core/api/public_api.js +351 -154
- package/dist/commonjs/core/api/track_management/track_dispatcher.d.ts +12 -8
- package/dist/commonjs/core/api/track_management/track_dispatcher.js +28 -22
- package/dist/commonjs/core/api/track_management/tracks_store.d.ts +26 -14
- package/dist/commonjs/core/api/track_management/tracks_store.js +134 -66
- package/dist/commonjs/core/decrypt/attach_media_keys.d.ts +2 -1
- package/dist/commonjs/core/decrypt/attach_media_keys.js +2 -1
- package/dist/commonjs/core/decrypt/content_decryptor.js +70 -181
- package/dist/commonjs/core/decrypt/init_media_keys.js +13 -5
- package/dist/commonjs/core/decrypt/types.d.ts +11 -5
- package/dist/commonjs/core/decrypt/utils/check_key_statuses.js +4 -4
- package/dist/commonjs/core/fetchers/segment/initialization_segment_cache.d.ts +42 -0
- package/dist/commonjs/core/fetchers/segment/segment_fetcher.js +2 -2
- package/dist/commonjs/core/fetchers/utils/error_selector.js +2 -1
- package/dist/commonjs/core/fetchers/utils/schedule_request.js +2 -1
- package/dist/commonjs/core/init/directfile_content_initializer.js +8 -3
- package/dist/commonjs/core/init/media_source_content_initializer.d.ts +7 -22
- package/dist/commonjs/core/init/media_source_content_initializer.js +313 -115
- package/dist/commonjs/core/init/multithread/main_thread/multi_thread_content_initializer.d.ts +167 -0
- package/dist/commonjs/core/init/multithread/main_thread/multi_thread_content_initializer.js +1393 -0
- package/dist/commonjs/core/init/multithread/main_thread/send_message.d.ts +2 -0
- package/dist/commonjs/core/init/multithread/main_thread/send_message.js +13 -0
- package/dist/commonjs/core/init/multithread/worker/content_preparer.d.ts +92 -0
- package/dist/commonjs/core/init/multithread/worker/content_preparer.js +259 -0
- package/dist/commonjs/core/init/multithread/worker/globals.d.ts +13 -0
- package/dist/commonjs/core/init/multithread/worker/globals.js +26 -0
- package/dist/commonjs/core/init/multithread/worker/index.d.ts +2 -0
- package/dist/commonjs/core/init/multithread/worker/index.js +4 -0
- package/dist/commonjs/core/init/multithread/worker/send_message.d.ts +3 -0
- package/dist/commonjs/core/init/multithread/worker/send_message.js +25 -0
- package/dist/commonjs/core/init/multithread/worker/track_choice_setter.d.ts +19 -0
- package/dist/commonjs/core/init/multithread/worker/track_choice_setter.js +140 -0
- package/dist/commonjs/core/init/multithread/worker/worker_playback_observer.d.ts +21 -0
- package/dist/commonjs/core/init/multithread/worker/worker_playback_observer.js +47 -0
- package/dist/commonjs/core/init/multithread/worker/worker_portal.d.ts +1 -0
- package/dist/commonjs/core/init/multithread/worker/worker_portal.js +727 -0
- package/dist/commonjs/core/init/multithread/worker/worker_text_displayer_interface.d.ts +64 -0
- package/dist/commonjs/core/init/multithread/worker/worker_text_displayer_interface.js +127 -0
- package/dist/commonjs/core/init/types.d.ts +21 -12
- package/dist/commonjs/core/init/types.js +0 -1
- package/dist/commonjs/core/init/utils/DecipherabilityFreezeDetector.d.ts +54 -0
- package/dist/commonjs/core/init/utils/DecipherabilityFreezeDetector.js +129 -0
- package/dist/commonjs/core/init/utils/create_content_time_boundaries_observer.d.ts +28 -0
- package/dist/commonjs/core/init/utils/create_content_time_boundaries_observer.js +48 -0
- package/dist/commonjs/core/init/utils/create_core_playback_observer.d.ts +61 -0
- package/dist/commonjs/core/init/utils/create_core_playback_observer.js +130 -0
- package/dist/commonjs/core/init/utils/create_media_source.d.ts +3 -3
- package/dist/commonjs/core/init/utils/create_media_source.js +29 -38
- package/dist/commonjs/core/init/utils/get_initial_time.d.ts +2 -2
- package/dist/commonjs/core/init/utils/get_initial_time.js +6 -5
- package/dist/commonjs/core/init/utils/get_loaded_reference.js +7 -5
- package/dist/commonjs/core/init/utils/initial_seek_and_play.js +55 -6
- package/dist/commonjs/core/init/utils/initialize_content_decryption.d.ts +7 -1
- package/dist/commonjs/core/init/utils/initialize_content_decryption.js +6 -0
- package/dist/commonjs/core/init/utils/main_thread_text_displayer_interface.d.ts +35 -0
- package/dist/commonjs/core/init/utils/main_thread_text_displayer_interface.js +54 -0
- package/dist/commonjs/core/init/utils/rebuffering_controller.d.ts +5 -38
- package/dist/commonjs/core/init/utils/rebuffering_controller.js +3 -112
- package/dist/commonjs/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +2 -2
- package/dist/commonjs/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +24 -1
- package/dist/commonjs/core/init/utils/stream_events_emitter/stream_events_emitter.d.ts +3 -2
- package/dist/commonjs/core/init/utils/stream_events_emitter/stream_events_emitter.js +4 -4
- package/dist/commonjs/core/segment_buffers/garbage_collector.d.ts +3 -1
- package/dist/commonjs/core/segment_buffers/garbage_collector.js +13 -4
- package/dist/commonjs/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.d.ts +26 -74
- package/dist/commonjs/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.js +183 -297
- package/dist/commonjs/core/segment_buffers/implementations/index.d.ts +2 -1
- package/dist/commonjs/core/segment_buffers/implementations/text/index.d.ts +3 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/index.js +4 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/text_segment_buffer.d.ts +89 -0
- package/dist/commonjs/core/segment_buffers/implementations/text/text_segment_buffer.js +253 -0
- package/dist/commonjs/core/segment_buffers/implementations/types.d.ts +46 -57
- package/dist/commonjs/core/segment_buffers/implementations/types.js +22 -29
- package/dist/commonjs/core/segment_buffers/index.d.ts +3 -3
- package/dist/commonjs/core/segment_buffers/inventory/segment_inventory.d.ts +23 -9
- package/dist/commonjs/core/segment_buffers/inventory/segment_inventory.js +53 -22
- package/dist/commonjs/core/segment_buffers/segment_buffers_store.d.ts +7 -16
- package/dist/commonjs/core/segment_buffers/segment_buffers_store.js +14 -24
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.js +15 -8
- package/dist/commonjs/core/stream/adaptation/get_representations_switch_strategy.d.ts +19 -5
- package/dist/commonjs/core/stream/adaptation/get_representations_switch_strategy.js +62 -57
- package/dist/commonjs/core/stream/adaptation/types.d.ts +17 -28
- package/dist/commonjs/core/stream/index.d.ts +2 -1
- package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.d.ts +4 -4
- package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.js +1 -2
- package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.js +11 -2
- package/dist/commonjs/core/stream/period/period_stream.js +55 -21
- package/dist/commonjs/core/stream/period/types.d.ts +11 -4
- package/dist/commonjs/core/stream/period/utils/get_adaptation_switch_strategy.js +75 -72
- package/dist/commonjs/core/stream/representation/representation_stream.js +4 -4
- package/dist/commonjs/core/stream/representation/types.d.ts +30 -3
- package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.d.ts +5 -2
- package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.js +36 -19
- package/dist/commonjs/core/stream/representation/utils/get_buffer_status.d.ts +2 -2
- package/dist/commonjs/core/stream/representation/utils/get_buffer_status.js +22 -12
- package/dist/commonjs/core/stream/representation/utils/get_needed_segments.d.ts +2 -2
- package/dist/commonjs/core/stream/representation/utils/get_needed_segments.js +2 -6
- package/dist/commonjs/core/stream/representation/utils/push_init_segment.d.ts +3 -1
- package/dist/commonjs/core/stream/representation/utils/push_init_segment.js +3 -4
- package/dist/commonjs/core/stream/representation/utils/push_media_segment.d.ts +3 -1
- package/dist/commonjs/core/stream/representation/utils/push_media_segment.js +3 -4
- package/dist/commonjs/default_config.d.ts +31 -34
- package/dist/commonjs/default_config.js +44 -47
- package/dist/commonjs/errors/encrypted_media_error.d.ts +17 -0
- package/dist/commonjs/errors/encrypted_media_error.js +13 -0
- package/dist/commonjs/errors/error_codes.d.ts +4 -3
- package/dist/commonjs/errors/error_codes.js +3 -8
- package/dist/commonjs/errors/index.d.ts +7 -8
- package/dist/commonjs/errors/index.js +3 -5
- package/dist/commonjs/errors/media_error.d.ts +21 -18
- package/dist/commonjs/errors/media_error.js +15 -19
- package/dist/commonjs/errors/network_error.d.ts +15 -1
- package/dist/commonjs/errors/network_error.js +12 -0
- package/dist/commonjs/errors/other_error.d.ts +14 -0
- package/dist/commonjs/errors/other_error.js +12 -0
- package/dist/commonjs/errors/source_buffer_error.d.ts +40 -0
- package/dist/commonjs/errors/source_buffer_error.js +62 -0
- package/dist/commonjs/errors/worker_initialization_error.d.ts +19 -0
- package/dist/commonjs/errors/worker_initialization_error.js +43 -0
- package/dist/commonjs/experimental/features/index.d.ts +1 -2
- package/dist/commonjs/experimental/features/index.js +3 -5
- package/dist/commonjs/experimental/features/local.js +3 -1
- package/dist/commonjs/experimental/features/metaplaylist.js +3 -1
- package/dist/commonjs/experimental/features/multi_thread.d.ts +8 -0
- package/dist/commonjs/experimental/features/multi_thread.js +14 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +3 -3
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +13 -14
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +3 -3
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +24 -17
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +3 -5
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +4 -5
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +17 -12
- package/dist/commonjs/experimental/tools/index.d.ts +1 -2
- package/dist/commonjs/experimental/tools/index.js +1 -3
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/index.d.ts +2 -0
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +4 -4
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.js +1 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +1 -1
- package/dist/commonjs/features/features_object.js +5 -3
- package/dist/commonjs/features/list/dash.js +3 -1
- package/dist/commonjs/features/list/dash_wasm.js +39 -0
- package/dist/commonjs/features/list/html_sami_parser.js +4 -4
- package/dist/commonjs/features/list/html_srt_parser.js +4 -4
- package/dist/commonjs/features/list/html_text_buffer.js +2 -2
- package/dist/commonjs/features/list/html_ttml_parser.js +4 -4
- package/dist/commonjs/features/list/html_vtt_parser.js +4 -4
- package/dist/commonjs/features/list/index.d.ts +3 -0
- package/dist/commonjs/features/list/index.js +7 -1
- package/dist/commonjs/features/list/media_source_main.d.ts +8 -0
- package/dist/commonjs/features/list/media_source_main.js +14 -0
- package/dist/commonjs/features/list/native_sami_parser.js +4 -5
- package/dist/commonjs/features/list/native_srt_parser.js +4 -5
- package/dist/commonjs/features/list/native_text_buffer.js +2 -3
- package/dist/commonjs/features/list/native_ttml_parser.js +4 -5
- package/dist/commonjs/features/list/native_vtt_parser.js +4 -5
- package/dist/commonjs/features/list/smooth.d.ts +1 -1
- package/dist/commonjs/features/list/smooth.js +7 -3
- package/dist/commonjs/features/types.d.ts +28 -5
- package/dist/commonjs/manifest/adaptation.d.ts +66 -44
- package/dist/commonjs/manifest/adaptation.js +97 -78
- package/dist/commonjs/manifest/index.d.ts +4 -3
- package/dist/commonjs/manifest/index.js +16 -1
- package/dist/commonjs/manifest/manifest.d.ts +132 -9
- package/dist/commonjs/manifest/manifest.js +115 -72
- package/dist/commonjs/manifest/period.d.ts +41 -3
- package/dist/commonjs/manifest/period.js +120 -24
- package/dist/commonjs/manifest/representation.d.ts +61 -74
- package/dist/commonjs/manifest/representation.js +125 -45
- package/dist/commonjs/manifest/types.d.ts +382 -0
- package/dist/commonjs/manifest/types.js +0 -15
- package/dist/commonjs/manifest/update_period_in_place.d.ts +12 -9
- package/dist/commonjs/manifest/update_period_in_place.js +10 -6
- package/dist/commonjs/manifest/update_periods.d.ts +7 -4
- package/dist/commonjs/manifest/update_periods.js +53 -14
- package/dist/commonjs/manifest/utils.d.ts +156 -0
- package/dist/commonjs/manifest/utils.js +689 -1
- package/dist/commonjs/minimal.d.ts +3 -0
- package/dist/commonjs/minimal.js +6 -0
- package/dist/commonjs/mse/index.d.ts +1 -0
- package/dist/commonjs/mse/index.js +2 -0
- package/dist/commonjs/mse/main_codec_support_prober.d.ts +26 -0
- package/dist/commonjs/mse/main_codec_support_prober.js +44 -0
- package/dist/commonjs/mse/main_media_source_interface.d.ts +112 -0
- package/dist/commonjs/mse/main_media_source_interface.js +504 -0
- package/dist/commonjs/mse/types.d.ts +301 -0
- package/dist/commonjs/mse/types.js +2 -0
- package/dist/commonjs/mse/worker_codec_support_prober.d.ts +42 -0
- package/dist/commonjs/mse/worker_codec_support_prober.js +61 -0
- package/dist/commonjs/mse/worker_media_source_interface.d.ts +105 -0
- package/dist/commonjs/mse/worker_media_source_interface.js +368 -0
- package/dist/commonjs/multithread_types.d.ts +818 -0
- package/dist/commonjs/multithread_types.js +7 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.js +14 -16
- package/dist/commonjs/parsers/manifest/dash/js-parser/parse_from_document.js +2 -2
- 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 +22 -7
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/types.d.ts +55 -55
- package/dist/commonjs/parsers/manifest/metaplaylist/metaplaylist_parser.js +13 -1
- package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.js +1 -1
- package/dist/commonjs/parsers/manifest/types.d.ts +8 -1
- package/dist/commonjs/public_types.d.ts +66 -21
- package/dist/commonjs/public_types.js +3 -13
- package/dist/commonjs/text_displayer/html/html_parsers.d.ts +15 -0
- package/dist/commonjs/text_displayer/html/html_parsers.js +25 -0
- package/dist/commonjs/text_displayer/html/html_text_displayer.d.ts +100 -0
- package/dist/commonjs/text_displayer/html/html_text_displayer.js +317 -0
- package/dist/commonjs/text_displayer/html/index.d.ts +2 -0
- package/dist/commonjs/text_displayer/html/index.js +4 -0
- package/dist/commonjs/text_displayer/html/text_track_cues_store.d.ts +65 -0
- package/dist/commonjs/text_displayer/html/text_track_cues_store.js +378 -0
- package/dist/commonjs/text_displayer/html/update_proportional_elements.d.ts +15 -0
- package/dist/commonjs/text_displayer/html/update_proportional_elements.js +65 -0
- package/dist/commonjs/text_displayer/html/utils.d.ts +39 -0
- package/dist/commonjs/text_displayer/html/utils.js +115 -0
- package/dist/commonjs/text_displayer/index.d.ts +2 -0
- package/dist/commonjs/text_displayer/index.js +2 -0
- package/dist/commonjs/text_displayer/manual_time_ranges.d.ts +14 -0
- package/dist/commonjs/text_displayer/manual_time_ranges.js +52 -0
- package/dist/commonjs/text_displayer/native/index.d.ts +2 -0
- package/dist/commonjs/text_displayer/native/index.js +4 -0
- package/dist/commonjs/text_displayer/native/native_parsers.d.ts +11 -0
- package/dist/commonjs/text_displayer/native/native_parsers.js +25 -0
- package/dist/commonjs/text_displayer/native/native_text_displayer.d.ts +56 -0
- package/dist/commonjs/text_displayer/native/native_text_displayer.js +207 -0
- package/dist/commonjs/text_displayer/types.d.ts +74 -0
- package/dist/commonjs/text_displayer/types.js +2 -0
- package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.d.ts +1 -1
- package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.js +11 -15
- package/dist/commonjs/tools/index.d.ts +2 -1
- package/dist/commonjs/tools/index.js +3 -1
- package/dist/commonjs/tools/parseBIFThumbnails/index.js +32 -0
- package/dist/commonjs/transports/dash/extract_complete_chunks.d.ts +1 -1
- package/dist/commonjs/transports/dash/extract_complete_chunks.js +35 -6
- package/dist/commonjs/transports/dash/get_events_out_of_emsgs.js +0 -1
- package/dist/commonjs/transports/dash/low_latency_segment_loader.js +2 -2
- package/dist/commonjs/transports/utils/generate_manifest_loader.js +2 -2
- package/dist/commonjs/utils/assert.d.ts +41 -0
- package/dist/commonjs/utils/assert.js +69 -3
- package/dist/commonjs/utils/event_emitter.js +8 -2
- package/dist/commonjs/utils/languages/ISO_639-1_to_ISO_639-3.js +182 -182
- package/dist/commonjs/utils/languages/ISO_639-2_to_ISO_639-3.js +19 -19
- package/dist/commonjs/utils/logger.d.ts +13 -3
- package/dist/commonjs/utils/logger.js +78 -21
- package/dist/commonjs/utils/monotonic_timestamp.d.ts +20 -4
- package/dist/commonjs/utils/monotonic_timestamp.js +22 -5
- package/dist/commonjs/utils/object_assign.d.ts +26 -5
- package/dist/commonjs/utils/object_assign.js +14 -3
- package/dist/commonjs/utils/request/fetch.js +8 -8
- package/dist/commonjs/utils/request/index.d.ts +2 -1
- package/dist/commonjs/utils/request/index.js +4 -1
- package/dist/commonjs/utils/request/request_error.d.ts +47 -0
- package/dist/commonjs/utils/request/request_error.js +87 -0
- package/dist/commonjs/utils/request/xhr.d.ts +4 -4
- package/dist/commonjs/utils/request/xhr.js +7 -7
- package/dist/commonjs/utils/retry_promise_with_backoff.d.ts +1 -2
- package/dist/commonjs/utils/string_parsing.js +1 -1
- package/dist/commonjs/utils/sync_or_async.d.ts +70 -0
- package/dist/commonjs/utils/sync_or_async.js +47 -0
- package/dist/commonjs/worker_entry_point.d.ts +5 -0
- package/dist/commonjs/worker_entry_point.js +8 -0
- package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.d.ts +3 -0
- package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.js +3 -0
- package/dist/es2017/__GENERATED_CODE/embedded_worker.d.ts +3 -0
- package/dist/es2017/__GENERATED_CODE/embedded_worker.js +3 -0
- package/dist/es2017/__GENERATED_CODE/index.d.ts +2 -0
- package/dist/es2017/__GENERATED_CODE/index.js +2 -0
- package/dist/es2017/compat/browser_compatibility_types.js +1 -1
- package/dist/es2017/compat/browser_detection.d.ts +3 -1
- package/dist/es2017/compat/browser_detection.js +26 -6
- package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.js +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/ms_media_keys_constructor.js +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.js +1 -2
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +1 -1
- package/dist/es2017/compat/eme/eme-api-implementation.js +4 -3
- package/dist/es2017/compat/event_listeners.js +1 -1
- package/dist/es2017/compat/has_mse_in_worker.d.ts +2 -0
- package/dist/es2017/compat/has_mse_in_worker.js +4 -0
- package/dist/es2017/compat/has_webassembly.d.ts +6 -0
- package/dist/es2017/compat/has_webassembly.js +7 -0
- package/dist/es2017/compat/index.d.ts +1 -2
- package/dist/es2017/compat/index.js +1 -2
- package/dist/es2017/compat/is_codec_supported.js +5 -0
- package/dist/es2017/compat/is_vtt_cue.js +1 -1
- package/dist/es2017/compat/make_vtt_cue.js +1 -1
- package/dist/es2017/compat/on_height_width_change.js +1 -1
- package/dist/es2017/compat/patch_webkit_source_buffer.js +2 -2
- package/dist/es2017/config.d.ts +6 -17
- package/dist/es2017/config.js +4 -12
- package/dist/es2017/core/adaptive/adaptive_representation_selector.d.ts +2 -1
- package/dist/es2017/core/adaptive/adaptive_representation_selector.js +2 -2
- package/dist/es2017/core/api/debug/buffer_graph.js +3 -3
- package/dist/es2017/core/api/debug/modules/general_info.js +20 -8
- package/dist/es2017/core/api/debug/modules/segment_buffer_content.js +5 -4
- package/dist/es2017/core/api/option_utils.d.ts +3 -2
- package/dist/es2017/core/api/option_utils.js +15 -4
- package/dist/es2017/core/api/playback_observer.d.ts +55 -24
- package/dist/es2017/core/api/playback_observer.js +103 -75
- package/dist/es2017/core/api/public_api.d.ts +35 -12
- package/dist/es2017/core/api/public_api.js +353 -143
- package/dist/es2017/core/api/track_management/track_dispatcher.d.ts +12 -8
- package/dist/es2017/core/api/track_management/track_dispatcher.js +30 -23
- package/dist/es2017/core/api/track_management/tracks_store.d.ts +26 -14
- package/dist/es2017/core/api/track_management/tracks_store.js +95 -58
- package/dist/es2017/core/decrypt/attach_media_keys.d.ts +2 -1
- package/dist/es2017/core/decrypt/attach_media_keys.js +2 -1
- package/dist/es2017/core/decrypt/content_decryptor.js +35 -89
- package/dist/es2017/core/decrypt/init_media_keys.js +11 -1
- package/dist/es2017/core/decrypt/types.d.ts +11 -5
- package/dist/es2017/core/decrypt/utils/check_key_statuses.js +1 -1
- package/dist/es2017/core/fetchers/segment/initialization_segment_cache.d.ts +42 -0
- package/dist/es2017/core/fetchers/segment/segment_fetcher.js +2 -2
- package/dist/es2017/core/fetchers/utils/error_selector.js +2 -1
- package/dist/es2017/core/fetchers/utils/schedule_request.js +2 -1
- package/dist/es2017/core/init/directfile_content_initializer.js +8 -3
- package/dist/es2017/core/init/media_source_content_initializer.d.ts +7 -22
- package/dist/es2017/core/init/media_source_content_initializer.js +214 -106
- package/dist/es2017/core/init/multithread/main_thread/multi_thread_content_initializer.d.ts +167 -0
- package/dist/es2017/core/init/multithread/main_thread/multi_thread_content_initializer.js +1317 -0
- package/dist/es2017/core/init/multithread/main_thread/send_message.d.ts +2 -0
- package/dist/es2017/core/init/multithread/main_thread/send_message.js +10 -0
- package/dist/es2017/core/init/multithread/worker/content_preparer.d.ts +92 -0
- package/dist/es2017/core/init/multithread/worker/content_preparer.js +236 -0
- package/dist/es2017/core/init/multithread/worker/globals.d.ts +13 -0
- package/dist/es2017/core/init/multithread/worker/globals.js +18 -0
- package/dist/es2017/core/init/multithread/worker/index.d.ts +2 -0
- package/dist/es2017/core/init/multithread/worker/index.js +2 -0
- package/dist/es2017/core/init/multithread/worker/send_message.d.ts +3 -0
- package/dist/es2017/core/init/multithread/worker/send_message.js +20 -0
- package/dist/es2017/core/init/multithread/worker/track_choice_setter.d.ts +19 -0
- package/dist/es2017/core/init/multithread/worker/track_choice_setter.js +114 -0
- package/dist/es2017/core/init/multithread/worker/worker_playback_observer.d.ts +21 -0
- package/dist/es2017/core/init/multithread/worker/worker_playback_observer.js +43 -0
- package/dist/es2017/core/init/multithread/worker/worker_portal.d.ts +1 -0
- package/dist/es2017/core/init/multithread/worker/worker_portal.js +671 -0
- package/dist/es2017/core/init/multithread/worker/worker_text_displayer_interface.d.ts +64 -0
- package/dist/es2017/core/init/multithread/worker/worker_text_displayer_interface.js +121 -0
- package/dist/es2017/core/init/types.d.ts +21 -12
- package/dist/es2017/core/init/types.js +0 -1
- package/dist/es2017/core/init/utils/DecipherabilityFreezeDetector.d.ts +54 -0
- package/dist/es2017/core/init/utils/DecipherabilityFreezeDetector.js +93 -0
- package/dist/es2017/core/init/utils/create_content_time_boundaries_observer.d.ts +28 -0
- package/dist/es2017/core/init/utils/create_content_time_boundaries_observer.js +41 -0
- package/dist/es2017/core/init/utils/create_core_playback_observer.d.ts +61 -0
- package/dist/es2017/core/init/utils/create_core_playback_observer.js +122 -0
- package/dist/es2017/core/init/utils/create_media_source.d.ts +3 -3
- package/dist/es2017/core/init/utils/create_media_source.js +28 -37
- package/dist/es2017/core/init/utils/get_initial_time.d.ts +2 -2
- package/dist/es2017/core/init/utils/get_initial_time.js +6 -5
- package/dist/es2017/core/init/utils/get_loaded_reference.js +7 -5
- package/dist/es2017/core/init/utils/initial_seek_and_play.js +55 -6
- package/dist/es2017/core/init/utils/initialize_content_decryption.d.ts +7 -1
- package/dist/es2017/core/init/utils/initialize_content_decryption.js +6 -0
- package/dist/es2017/core/init/utils/main_thread_text_displayer_interface.d.ts +35 -0
- package/dist/es2017/core/init/utils/main_thread_text_displayer_interface.js +50 -0
- package/dist/es2017/core/init/utils/rebuffering_controller.d.ts +5 -38
- package/dist/es2017/core/init/utils/rebuffering_controller.js +3 -80
- package/dist/es2017/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +2 -2
- package/dist/es2017/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +24 -1
- package/dist/es2017/core/init/utils/stream_events_emitter/stream_events_emitter.d.ts +3 -2
- package/dist/es2017/core/init/utils/stream_events_emitter/stream_events_emitter.js +4 -4
- package/dist/es2017/core/segment_buffers/garbage_collector.d.ts +3 -1
- package/dist/es2017/core/segment_buffers/garbage_collector.js +14 -5
- package/dist/es2017/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.d.ts +26 -74
- package/dist/es2017/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.js +111 -294
- package/dist/es2017/core/segment_buffers/implementations/index.d.ts +2 -1
- package/dist/es2017/core/segment_buffers/implementations/index.js +1 -1
- package/dist/es2017/core/segment_buffers/implementations/text/index.d.ts +3 -0
- package/dist/es2017/core/segment_buffers/implementations/text/index.js +2 -0
- package/dist/es2017/core/segment_buffers/implementations/text/text_segment_buffer.d.ts +89 -0
- package/dist/es2017/core/segment_buffers/implementations/text/text_segment_buffer.js +152 -0
- package/dist/es2017/core/segment_buffers/implementations/types.d.ts +46 -57
- package/dist/es2017/core/segment_buffers/implementations/types.js +22 -29
- package/dist/es2017/core/segment_buffers/index.d.ts +3 -3
- package/dist/es2017/core/segment_buffers/inventory/segment_inventory.d.ts +23 -9
- package/dist/es2017/core/segment_buffers/inventory/segment_inventory.js +53 -21
- package/dist/es2017/core/segment_buffers/segment_buffers_store.d.ts +7 -16
- package/dist/es2017/core/segment_buffers/segment_buffers_store.js +14 -23
- package/dist/es2017/core/stream/adaptation/adaptation_stream.js +14 -7
- package/dist/es2017/core/stream/adaptation/get_representations_switch_strategy.d.ts +19 -5
- package/dist/es2017/core/stream/adaptation/get_representations_switch_strategy.js +33 -60
- package/dist/es2017/core/stream/adaptation/types.d.ts +17 -28
- package/dist/es2017/core/stream/index.d.ts +2 -1
- package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.d.ts +4 -4
- package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.js +1 -2
- package/dist/es2017/core/stream/orchestrator/stream_orchestrator.js +11 -2
- package/dist/es2017/core/stream/period/period_stream.js +55 -21
- package/dist/es2017/core/stream/period/types.d.ts +11 -4
- package/dist/es2017/core/stream/period/utils/get_adaptation_switch_strategy.js +44 -73
- package/dist/es2017/core/stream/representation/representation_stream.js +4 -2
- package/dist/es2017/core/stream/representation/types.d.ts +30 -3
- package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.d.ts +5 -2
- package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.js +28 -11
- package/dist/es2017/core/stream/representation/utils/get_buffer_status.d.ts +2 -2
- package/dist/es2017/core/stream/representation/utils/get_buffer_status.js +22 -12
- package/dist/es2017/core/stream/representation/utils/get_needed_segments.d.ts +2 -2
- package/dist/es2017/core/stream/representation/utils/get_needed_segments.js +2 -6
- package/dist/es2017/core/stream/representation/utils/push_init_segment.d.ts +3 -1
- package/dist/es2017/core/stream/representation/utils/push_init_segment.js +2 -3
- package/dist/es2017/core/stream/representation/utils/push_media_segment.d.ts +3 -1
- package/dist/es2017/core/stream/representation/utils/push_media_segment.js +2 -3
- package/dist/es2017/default_config.d.ts +31 -34
- package/dist/es2017/default_config.js +44 -47
- package/dist/es2017/errors/encrypted_media_error.d.ts +17 -0
- package/dist/es2017/errors/encrypted_media_error.js +13 -0
- package/dist/es2017/errors/error_codes.d.ts +4 -3
- package/dist/es2017/errors/error_codes.js +3 -7
- package/dist/es2017/errors/index.d.ts +7 -8
- package/dist/es2017/errors/index.js +2 -3
- package/dist/es2017/errors/media_error.d.ts +21 -18
- package/dist/es2017/errors/media_error.js +15 -19
- package/dist/es2017/errors/network_error.d.ts +15 -1
- package/dist/es2017/errors/network_error.js +12 -0
- package/dist/es2017/errors/other_error.d.ts +14 -0
- package/dist/es2017/errors/other_error.js +12 -0
- package/dist/es2017/errors/source_buffer_error.d.ts +40 -0
- package/dist/es2017/errors/source_buffer_error.js +41 -0
- package/dist/es2017/errors/worker_initialization_error.d.ts +19 -0
- package/dist/es2017/errors/worker_initialization_error.js +22 -0
- package/dist/es2017/experimental/features/index.d.ts +1 -2
- package/dist/es2017/experimental/features/index.js +1 -2
- package/dist/es2017/experimental/features/local.js +3 -1
- package/dist/es2017/experimental/features/metaplaylist.js +3 -1
- package/dist/es2017/experimental/features/multi_thread.d.ts +8 -0
- package/dist/es2017/experimental/features/multi_thread.js +11 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +3 -3
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +11 -15
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +3 -3
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +25 -18
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +3 -5
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +4 -5
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +17 -12
- package/dist/es2017/experimental/tools/index.d.ts +1 -2
- package/dist/es2017/experimental/tools/index.js +1 -2
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/index.d.ts +2 -0
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +4 -4
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.js +1 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +1 -1
- package/dist/es2017/features/features_object.js +5 -3
- package/dist/es2017/features/list/dash.js +3 -1
- package/dist/es2017/features/list/dash_wasm.js +36 -0
- package/dist/es2017/features/list/html_sami_parser.js +2 -2
- package/dist/es2017/features/list/html_srt_parser.js +2 -2
- package/dist/es2017/features/list/html_text_buffer.js +2 -2
- package/dist/es2017/features/list/html_ttml_parser.js +2 -2
- package/dist/es2017/features/list/html_vtt_parser.js +2 -2
- package/dist/es2017/features/list/index.d.ts +3 -0
- package/dist/es2017/features/list/index.js +3 -0
- package/dist/es2017/features/list/media_source_main.d.ts +8 -0
- package/dist/es2017/features/list/media_source_main.js +11 -0
- package/dist/es2017/features/list/native_sami_parser.js +2 -3
- package/dist/es2017/features/list/native_srt_parser.js +2 -3
- package/dist/es2017/features/list/native_text_buffer.js +2 -3
- package/dist/es2017/features/list/native_ttml_parser.js +2 -3
- package/dist/es2017/features/list/native_vtt_parser.js +2 -3
- package/dist/es2017/features/list/smooth.d.ts +1 -1
- package/dist/es2017/features/list/smooth.js +7 -3
- package/dist/es2017/features/types.d.ts +28 -5
- package/dist/es2017/manifest/adaptation.d.ts +66 -44
- package/dist/es2017/manifest/adaptation.js +61 -79
- package/dist/es2017/manifest/index.d.ts +4 -3
- package/dist/es2017/manifest/index.js +2 -2
- package/dist/es2017/manifest/manifest.d.ts +132 -9
- package/dist/es2017/manifest/manifest.js +74 -53
- package/dist/es2017/manifest/period.d.ts +41 -3
- package/dist/es2017/manifest/period.js +87 -24
- package/dist/es2017/manifest/representation.d.ts +61 -74
- package/dist/es2017/manifest/representation.js +111 -55
- package/dist/es2017/manifest/types.d.ts +382 -0
- package/dist/es2017/manifest/types.js +0 -15
- package/dist/es2017/manifest/update_period_in_place.d.ts +12 -9
- package/dist/es2017/manifest/update_period_in_place.js +11 -7
- package/dist/es2017/manifest/update_periods.d.ts +7 -4
- package/dist/es2017/manifest/update_periods.js +54 -15
- package/dist/es2017/manifest/utils.d.ts +156 -0
- package/dist/es2017/manifest/utils.js +470 -0
- package/dist/es2017/minimal.d.ts +3 -0
- package/dist/es2017/minimal.js +6 -0
- package/dist/es2017/mse/index.d.ts +1 -0
- package/dist/es2017/mse/main_codec_support_prober.d.ts +26 -0
- package/dist/es2017/mse/main_codec_support_prober.js +41 -0
- package/dist/es2017/mse/main_media_source_interface.d.ts +112 -0
- package/dist/es2017/mse/main_media_source_interface.js +406 -0
- package/dist/es2017/mse/types.d.ts +301 -0
- package/dist/es2017/mse/worker_codec_support_prober.d.ts +42 -0
- package/dist/es2017/mse/worker_codec_support_prober.js +58 -0
- package/dist/es2017/mse/worker_media_source_interface.d.ts +105 -0
- package/dist/es2017/mse/worker_media_source_interface.js +303 -0
- package/dist/es2017/multithread_types.d.ts +818 -0
- package/dist/es2017/multithread_types.js +6 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.js +15 -16
- package/dist/es2017/parsers/manifest/dash/js-parser/parse_from_document.js +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 +21 -5
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/types.d.ts +55 -55
- package/dist/es2017/parsers/manifest/metaplaylist/metaplaylist_parser.js +13 -1
- package/dist/es2017/parsers/manifest/smooth/parse_protection_node.js +1 -1
- package/dist/es2017/parsers/manifest/types.d.ts +8 -1
- package/dist/es2017/public_types.d.ts +66 -21
- package/dist/es2017/public_types.js +3 -13
- package/dist/es2017/text_displayer/html/html_parsers.d.ts +15 -0
- package/dist/es2017/text_displayer/html/html_parsers.js +22 -0
- package/dist/es2017/text_displayer/html/html_text_displayer.d.ts +100 -0
- package/dist/es2017/text_displayer/html/html_text_displayer.js +311 -0
- package/dist/es2017/text_displayer/html/index.d.ts +2 -0
- package/dist/es2017/text_displayer/html/index.js +2 -0
- package/dist/es2017/text_displayer/html/text_track_cues_store.d.ts +65 -0
- package/dist/es2017/text_displayer/html/text_track_cues_store.js +358 -0
- package/dist/es2017/text_displayer/html/update_proportional_elements.d.ts +15 -0
- package/dist/es2017/text_displayer/html/update_proportional_elements.js +62 -0
- package/dist/es2017/text_displayer/html/utils.d.ts +39 -0
- package/dist/es2017/text_displayer/html/utils.js +107 -0
- package/dist/es2017/text_displayer/index.d.ts +2 -0
- package/dist/es2017/text_displayer/manual_time_ranges.d.ts +14 -0
- package/dist/es2017/text_displayer/manual_time_ranges.js +48 -0
- package/dist/es2017/text_displayer/native/index.d.ts +2 -0
- package/dist/es2017/text_displayer/native/index.js +2 -0
- package/dist/es2017/text_displayer/native/native_parsers.d.ts +11 -0
- package/dist/es2017/text_displayer/native/native_parsers.js +22 -0
- package/dist/es2017/text_displayer/native/native_text_displayer.d.ts +56 -0
- package/dist/es2017/text_displayer/native/native_text_displayer.js +203 -0
- package/dist/es2017/text_displayer/types.d.ts +74 -0
- package/dist/es2017/text_displayer/types.js +1 -0
- package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.d.ts +1 -1
- package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.js +12 -17
- package/dist/es2017/tools/index.d.ts +2 -1
- package/dist/es2017/tools/index.js +4 -2
- package/dist/es2017/tools/parseBIFThumbnails/index.js +29 -0
- package/dist/es2017/transports/dash/extract_complete_chunks.d.ts +1 -1
- package/dist/es2017/transports/dash/extract_complete_chunks.js +11 -7
- package/dist/es2017/transports/dash/get_events_out_of_emsgs.js +0 -1
- package/dist/es2017/transports/dash/low_latency_segment_loader.js +2 -2
- package/dist/es2017/transports/utils/generate_manifest_loader.js +1 -1
- package/dist/es2017/utils/assert.d.ts +41 -0
- package/dist/es2017/utils/assert.js +47 -1
- package/dist/es2017/utils/event_emitter.js +8 -2
- package/dist/es2017/utils/languages/ISO_639-1_to_ISO_639-3.js +182 -182
- package/dist/es2017/utils/languages/ISO_639-2_to_ISO_639-3.js +19 -19
- package/dist/es2017/utils/logger.d.ts +13 -3
- package/dist/es2017/utils/logger.js +30 -14
- package/dist/es2017/utils/monotonic_timestamp.d.ts +20 -4
- package/dist/es2017/utils/monotonic_timestamp.js +21 -5
- package/dist/es2017/utils/object_assign.d.ts +26 -5
- package/dist/es2017/utils/object_assign.js +14 -3
- package/dist/es2017/utils/request/fetch.js +7 -7
- package/dist/es2017/utils/request/index.d.ts +2 -1
- package/dist/es2017/utils/request/index.js +2 -1
- package/dist/es2017/utils/request/request_error.d.ts +47 -0
- package/dist/es2017/utils/request/request_error.js +65 -0
- package/dist/es2017/utils/request/xhr.d.ts +4 -4
- package/dist/es2017/utils/request/xhr.js +7 -7
- package/dist/es2017/utils/retry_promise_with_backoff.d.ts +1 -2
- package/dist/es2017/utils/string_parsing.js +1 -1
- package/dist/es2017/utils/sync_or_async.d.ts +70 -0
- package/dist/es2017/utils/sync_or_async.js +45 -0
- package/dist/es2017/worker_entry_point.d.ts +5 -0
- package/dist/es2017/worker_entry_point.js +6 -0
- package/dist/mpd-parser.wasm +0 -0
- package/dist/rx-player.js +28252 -26269
- package/dist/rx-player.min.js +1 -1
- package/dist/worker.js +3 -0
- package/package.json +102 -86
- package/.editorconfig +0 -22
- package/.eslintrc.js +0 -415
- package/.github/workflows/checks.yml +0 -101
- package/.github/workflows/perfs.yml +0 -22
- package/.github/workflows/sonarcloud_analysis.yml +0 -20
- package/CONTRIBUTING.md +0 -272
- package/FILES.md +0 -277
- package/dist/_esm5.processed/compat/add_class_name.d.ts +0 -22
- package/dist/_esm5.processed/compat/add_class_name.js +0 -39
- package/dist/_esm5.processed/compat/add_text_track.d.ts +0 -33
- package/dist/_esm5.processed/compat/add_text_track.js +0 -50
- package/dist/_esm5.processed/compat/browser_compatibility_types.d.ts +0 -172
- package/dist/_esm5.processed/compat/browser_compatibility_types.js +0 -32
- package/dist/_esm5.processed/compat/browser_detection.d.ts +0 -42
- package/dist/_esm5.processed/compat/browser_detection.js +0 -103
- package/dist/_esm5.processed/compat/browser_version.d.ts +0 -24
- package/dist/_esm5.processed/compat/browser_version.js +0 -41
- package/dist/_esm5.processed/compat/can_patch_isobmff.d.ts +0 -25
- package/dist/_esm5.processed/compat/can_patch_isobmff.js +0 -28
- package/dist/_esm5.processed/compat/can_rely_on_video_visibility_and_size.d.ts +0 -37
- package/dist/_esm5.processed/compat/can_rely_on_video_visibility_and_size.js +0 -49
- package/dist/_esm5.processed/compat/can_reuse_media_keys.d.ts +0 -13
- package/dist/_esm5.processed/compat/can_reuse_media_keys.js +0 -16
- package/dist/_esm5.processed/compat/change_source_buffer_type.d.ts +0 -48
- package/dist/_esm5.processed/compat/change_source_buffer_type.js +0 -37
- package/dist/_esm5.processed/compat/clear_element_src.d.ts +0 -20
- package/dist/_esm5.processed/compat/clear_element_src.js +0 -53
- package/dist/_esm5.processed/compat/eme/close_session.d.ts +0 -30
- package/dist/_esm5.processed/compat/eme/close_session.js +0 -162
- package/dist/_esm5.processed/compat/eme/constants.d.ts +0 -16
- package/dist/_esm5.processed/compat/eme/constants.js +0 -19
- package/dist/_esm5.processed/compat/eme/custom_key_system_access.d.ts +0 -54
- package/dist/_esm5.processed/compat/eme/custom_key_system_access.js +0 -47
- package/dist/_esm5.processed/compat/eme/custom_media_keys/ie11_media_keys.d.ts +0 -31
- package/dist/_esm5.processed/compat/eme/custom_media_keys/ie11_media_keys.js +0 -170
- package/dist/_esm5.processed/compat/eme/custom_media_keys/index.d.ts +0 -7
- package/dist/_esm5.processed/compat/eme/custom_media_keys/index.js +0 -6
- package/dist/_esm5.processed/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +0 -27
- package/dist/_esm5.processed/compat/eme/custom_media_keys/moz_media_keys_constructor.js +0 -63
- package/dist/_esm5.processed/compat/eme/custom_media_keys/ms_media_keys_constructor.d.ts +0 -43
- package/dist/_esm5.processed/compat/eme/custom_media_keys/ms_media_keys_constructor.js +0 -30
- package/dist/_esm5.processed/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +0 -41
- package/dist/_esm5.processed/compat/eme/custom_media_keys/old_webkit_media_keys.js +0 -192
- package/dist/_esm5.processed/compat/eme/custom_media_keys/types.d.ts +0 -43
- package/dist/_esm5.processed/compat/eme/custom_media_keys/types.js +0 -16
- package/dist/_esm5.processed/compat/eme/custom_media_keys/webkit_media_keys.d.ts +0 -37
- package/dist/_esm5.processed/compat/eme/custom_media_keys/webkit_media_keys.js +0 -260
- package/dist/_esm5.processed/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts +0 -22
- package/dist/_esm5.processed/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +0 -32
- package/dist/_esm5.processed/compat/eme/eme-api-implementation.d.ts +0 -78
- package/dist/_esm5.processed/compat/eme/eme-api-implementation.js +0 -198
- package/dist/_esm5.processed/compat/eme/generate_key_request.d.ts +0 -54
- package/dist/_esm5.processed/compat/eme/generate_key_request.js +0 -147
- package/dist/_esm5.processed/compat/eme/get_init_data.d.ts +0 -57
- package/dist/_esm5.processed/compat/eme/get_init_data.js +0 -112
- package/dist/_esm5.processed/compat/eme/get_uuid_kid_from_keystatus_kid.d.ts +0 -23
- package/dist/_esm5.processed/compat/eme/get_uuid_kid_from_keystatus_kid.js +0 -31
- package/dist/_esm5.processed/compat/eme/get_webkit_fairplay_initdata.d.ts +0 -25
- package/dist/_esm5.processed/compat/eme/get_webkit_fairplay_initdata.js +0 -57
- package/dist/_esm5.processed/compat/eme/index.d.ts +0 -24
- package/dist/_esm5.processed/compat/eme/index.js +0 -22
- package/dist/_esm5.processed/compat/eme/load_session.d.ts +0 -30
- package/dist/_esm5.processed/compat/eme/load_session.js +0 -99
- package/dist/_esm5.processed/compat/enable_audio_track.d.ts +0 -11
- package/dist/_esm5.processed/compat/enable_audio_track.js +0 -26
- package/dist/_esm5.processed/compat/event_listeners.d.ts +0 -166
- package/dist/_esm5.processed/compat/event_listeners.js +0 -422
- package/dist/_esm5.processed/compat/fullscreen.d.ts +0 -32
- package/dist/_esm5.processed/compat/fullscreen.js +0 -78
- package/dist/_esm5.processed/compat/get_start_date.d.ts +0 -30
- package/dist/_esm5.processed/compat/get_start_date.js +0 -44
- package/dist/_esm5.processed/compat/has_issues_with_high_media_source_duration.d.ts +0 -21
- package/dist/_esm5.processed/compat/has_issues_with_high_media_source_duration.js +0 -26
- package/dist/_esm5.processed/compat/index.d.ts +0 -39
- package/dist/_esm5.processed/compat/index.js +0 -45
- package/dist/_esm5.processed/compat/is_codec_supported.d.ts +0 -25
- package/dist/_esm5.processed/compat/is_codec_supported.js +0 -36
- package/dist/_esm5.processed/compat/is_debug_mode_enabled.d.ts +0 -7
- package/dist/_esm5.processed/compat/is_debug_mode_enabled.js +0 -9
- package/dist/_esm5.processed/compat/is_node.d.ts +0 -17
- package/dist/_esm5.processed/compat/is_node.js +0 -17
- package/dist/_esm5.processed/compat/is_offline.d.ts +0 -39
- package/dist/_esm5.processed/compat/is_offline.js +0 -43
- package/dist/_esm5.processed/compat/is_seeking_approximate.d.ts +0 -28
- package/dist/_esm5.processed/compat/is_seeking_approximate.js +0 -29
- package/dist/_esm5.processed/compat/is_vtt_cue.d.ts +0 -22
- package/dist/_esm5.processed/compat/is_vtt_cue.js +0 -25
- package/dist/_esm5.processed/compat/make_vtt_cue.d.ts +0 -26
- package/dist/_esm5.processed/compat/make_vtt_cue.js +0 -43
- package/dist/_esm5.processed/compat/on_height_width_change.d.ts +0 -33
- package/dist/_esm5.processed/compat/on_height_width_change.js +0 -77
- package/dist/_esm5.processed/compat/patch_webkit_source_buffer.d.ts +0 -16
- package/dist/_esm5.processed/compat/patch_webkit_source_buffer.js +0 -74
- package/dist/_esm5.processed/compat/remove_cue.d.ts +0 -21
- package/dist/_esm5.processed/compat/remove_cue.js +0 -63
- package/dist/_esm5.processed/compat/should_favour_custom_safari_EME.d.ts +0 -23
- package/dist/_esm5.processed/compat/should_favour_custom_safari_EME.js +0 -27
- package/dist/_esm5.processed/compat/should_reload_media_source_on_decipherability_update.d.ts +0 -26
- package/dist/_esm5.processed/compat/should_reload_media_source_on_decipherability_update.js +0 -29
- package/dist/_esm5.processed/compat/should_renew_media_key_system_access.d.ts +0 -21
- package/dist/_esm5.processed/compat/should_renew_media_key_system_access.js +0 -24
- package/dist/_esm5.processed/compat/should_unset_media_keys.d.ts +0 -22
- package/dist/_esm5.processed/compat/should_unset_media_keys.js +0 -25
- package/dist/_esm5.processed/compat/should_validate_metadata.d.ts +0 -22
- package/dist/_esm5.processed/compat/should_validate_metadata.js +0 -25
- package/dist/_esm5.processed/compat/should_wait_for_data_before_loaded.d.ts +0 -24
- package/dist/_esm5.processed/compat/should_wait_for_data_before_loaded.js +0 -30
- package/dist/_esm5.processed/compat/should_wait_for_have_enough_data.d.ts +0 -13
- package/dist/_esm5.processed/compat/should_wait_for_have_enough_data.js +0 -16
- package/dist/_esm5.processed/config.d.ts +0 -191
- package/dist/_esm5.processed/config.js +0 -32
- package/dist/_esm5.processed/core/adaptive/adaptive_representation_selector.d.ts +0 -363
- package/dist/_esm5.processed/core/adaptive/adaptive_representation_selector.js +0 -399
- package/dist/_esm5.processed/core/adaptive/buffer_based_chooser.d.ts +0 -89
- package/dist/_esm5.processed/core/adaptive/buffer_based_chooser.js +0 -192
- package/dist/_esm5.processed/core/adaptive/guess_based_chooser.d.ts +0 -95
- package/dist/_esm5.processed/core/adaptive/guess_based_chooser.js +0 -242
- package/dist/_esm5.processed/core/adaptive/index.d.ts +0 -18
- package/dist/_esm5.processed/core/adaptive/index.js +0 -17
- package/dist/_esm5.processed/core/adaptive/network_analyzer.d.ts +0 -73
- package/dist/_esm5.processed/core/adaptive/network_analyzer.js +0 -336
- package/dist/_esm5.processed/core/adaptive/utils/bandwidth_estimator.d.ts +0 -47
- package/dist/_esm5.processed/core/adaptive/utils/bandwidth_estimator.js +0 -70
- package/dist/_esm5.processed/core/adaptive/utils/ewma.d.ts +0 -39
- package/dist/_esm5.processed/core/adaptive/utils/ewma.js +0 -52
- package/dist/_esm5.processed/core/adaptive/utils/filter_by_bitrate.d.ts +0 -25
- package/dist/_esm5.processed/core/adaptive/utils/filter_by_bitrate.js +0 -37
- package/dist/_esm5.processed/core/adaptive/utils/filter_by_width.d.ts +0 -25
- package/dist/_esm5.processed/core/adaptive/utils/filter_by_width.js +0 -42
- package/dist/_esm5.processed/core/adaptive/utils/get_buffer_levels.d.ts +0 -24
- package/dist/_esm5.processed/core/adaptive/utils/get_buffer_levels.js +0 -47
- package/dist/_esm5.processed/core/adaptive/utils/last_estimate_storage.d.ts +0 -61
- package/dist/_esm5.processed/core/adaptive/utils/last_estimate_storage.js +0 -37
- package/dist/_esm5.processed/core/adaptive/utils/pending_requests_store.d.ts +0 -100
- package/dist/_esm5.processed/core/adaptive/utils/pending_requests_store.js +0 -76
- package/dist/_esm5.processed/core/adaptive/utils/representation_score_calculator.d.ts +0 -104
- package/dist/_esm5.processed/core/adaptive/utils/representation_score_calculator.js +0 -114
- package/dist/_esm5.processed/core/adaptive/utils/select_optimal_representation.d.ts +0 -33
- package/dist/_esm5.processed/core/adaptive/utils/select_optimal_representation.js +0 -45
- package/dist/_esm5.processed/core/api/debug/buffer_graph.d.ts +0 -28
- package/dist/_esm5.processed/core/api/debug/buffer_graph.js +0 -171
- package/dist/_esm5.processed/core/api/debug/buffer_size_graph.d.ts +0 -10
- package/dist/_esm5.processed/core/api/debug/buffer_size_graph.js +0 -104
- package/dist/_esm5.processed/core/api/debug/constants.d.ts +0 -2
- package/dist/_esm5.processed/core/api/debug/constants.js +0 -2
- package/dist/_esm5.processed/core/api/debug/index.d.ts +0 -2
- package/dist/_esm5.processed/core/api/debug/index.js +0 -2
- package/dist/_esm5.processed/core/api/debug/modules/general_info.d.ts +0 -3
- package/dist/_esm5.processed/core/api/debug/modules/general_info.js +0 -209
- package/dist/_esm5.processed/core/api/debug/modules/segment_buffer_content.d.ts +0 -4
- package/dist/_esm5.processed/core/api/debug/modules/segment_buffer_content.js +0 -121
- package/dist/_esm5.processed/core/api/debug/modules/segment_buffer_size.d.ts +0 -3
- package/dist/_esm5.processed/core/api/debug/modules/segment_buffer_size.js +0 -35
- package/dist/_esm5.processed/core/api/debug/render.d.ts +0 -3
- package/dist/_esm5.processed/core/api/debug/render.js +0 -32
- package/dist/_esm5.processed/core/api/debug/utils.d.ts +0 -39
- package/dist/_esm5.processed/core/api/debug/utils.js +0 -57
- package/dist/_esm5.processed/core/api/index.d.ts +0 -20
- package/dist/_esm5.processed/core/api/index.js +0 -19
- package/dist/_esm5.processed/core/api/option_utils.d.ts +0 -142
- package/dist/_esm5.processed/core/api/option_utils.js +0 -476
- package/dist/_esm5.processed/core/api/playback_observer.d.ts +0 -364
- package/dist/_esm5.processed/core/api/playback_observer.js +0 -582
- package/dist/_esm5.processed/core/api/public_api.d.ts +0 -879
- package/dist/_esm5.processed/core/api/public_api.js +0 -2445
- package/dist/_esm5.processed/core/api/tracks_management/media_element_track_choice_manager.d.ts +0 -257
- package/dist/_esm5.processed/core/api/tracks_management/media_element_track_choice_manager.js +0 -805
- package/dist/_esm5.processed/core/api/tracks_management/track_choice_manager.d.ts +0 -258
- package/dist/_esm5.processed/core/api/tracks_management/track_choice_manager.js +0 -989
- package/dist/_esm5.processed/core/api/utils.d.ts +0 -65
- package/dist/_esm5.processed/core/api/utils.js +0 -156
- package/dist/_esm5.processed/core/decrypt/__tests__/__global__/utils.d.ts +0 -178
- package/dist/_esm5.processed/core/decrypt/__tests__/__global__/utils.js +0 -405
- package/dist/_esm5.processed/core/decrypt/attach_media_keys.d.ts +0 -52
- package/dist/_esm5.processed/core/decrypt/attach_media_keys.js +0 -115
- package/dist/_esm5.processed/core/decrypt/clear_on_stop.d.ts +0 -22
- package/dist/_esm5.processed/core/decrypt/clear_on_stop.js +0 -40
- package/dist/_esm5.processed/core/decrypt/content_decryptor.d.ts +0 -184
- package/dist/_esm5.processed/core/decrypt/content_decryptor.js +0 -967
- package/dist/_esm5.processed/core/decrypt/create_or_load_session.d.ts +0 -63
- package/dist/_esm5.processed/core/decrypt/create_or_load_session.js +0 -124
- package/dist/_esm5.processed/core/decrypt/create_session.d.ts +0 -53
- package/dist/_esm5.processed/core/decrypt/create_session.js +0 -212
- package/dist/_esm5.processed/core/decrypt/dispose_decryption_resources.d.ts +0 -21
- package/dist/_esm5.processed/core/decrypt/dispose_decryption_resources.js +0 -88
- package/dist/_esm5.processed/core/decrypt/find_key_system.d.ts +0 -48
- package/dist/_esm5.processed/core/decrypt/find_key_system.js +0 -333
- package/dist/_esm5.processed/core/decrypt/get_key_system_configuration.d.ts +0 -30
- package/dist/_esm5.processed/core/decrypt/get_key_system_configuration.js +0 -44
- package/dist/_esm5.processed/core/decrypt/get_media_keys.d.ts +0 -44
- package/dist/_esm5.processed/core/decrypt/get_media_keys.js +0 -156
- package/dist/_esm5.processed/core/decrypt/index.d.ts +0 -26
- package/dist/_esm5.processed/core/decrypt/index.js +0 -26
- package/dist/_esm5.processed/core/decrypt/init_media_keys.d.ts +0 -26
- package/dist/_esm5.processed/core/decrypt/init_media_keys.js +0 -82
- package/dist/_esm5.processed/core/decrypt/session_events_listener.d.ts +0 -75
- package/dist/_esm5.processed/core/decrypt/session_events_listener.js +0 -388
- package/dist/_esm5.processed/core/decrypt/set_server_certificate.d.ts +0 -51
- package/dist/_esm5.processed/core/decrypt/set_server_certificate.js +0 -141
- package/dist/_esm5.processed/core/decrypt/types.d.ts +0 -368
- package/dist/_esm5.processed/core/decrypt/types.js +0 -55
- package/dist/_esm5.processed/core/decrypt/utils/are_init_values_compatible.d.ts +0 -34
- package/dist/_esm5.processed/core/decrypt/utils/are_init_values_compatible.js +0 -113
- package/dist/_esm5.processed/core/decrypt/utils/check_key_statuses.d.ts +0 -52
- package/dist/_esm5.processed/core/decrypt/utils/check_key_statuses.js +0 -156
- package/dist/_esm5.processed/core/decrypt/utils/clean_old_loaded_sessions.d.ts +0 -26
- package/dist/_esm5.processed/core/decrypt/utils/clean_old_loaded_sessions.js +0 -86
- package/dist/_esm5.processed/core/decrypt/utils/clean_old_stored_persistent_info.d.ts +0 -32
- package/dist/_esm5.processed/core/decrypt/utils/clean_old_stored_persistent_info.js +0 -40
- package/dist/_esm5.processed/core/decrypt/utils/get_drm_system_id.d.ts +0 -20
- package/dist/_esm5.processed/core/decrypt/utils/get_drm_system_id.js +0 -37
- package/dist/_esm5.processed/core/decrypt/utils/init_data_values_container.d.ts +0 -69
- package/dist/_esm5.processed/core/decrypt/utils/init_data_values_container.js +0 -99
- package/dist/_esm5.processed/core/decrypt/utils/is_session_usable.d.ts +0 -24
- package/dist/_esm5.processed/core/decrypt/utils/is_session_usable.js +0 -49
- package/dist/_esm5.processed/core/decrypt/utils/key_id_comparison.d.ts +0 -31
- package/dist/_esm5.processed/core/decrypt/utils/key_id_comparison.js +0 -60
- package/dist/_esm5.processed/core/decrypt/utils/key_session_record.d.ts +0 -104
- package/dist/_esm5.processed/core/decrypt/utils/key_session_record.js +0 -157
- package/dist/_esm5.processed/core/decrypt/utils/loaded_sessions_store.d.ts +0 -215
- package/dist/_esm5.processed/core/decrypt/utils/loaded_sessions_store.js +0 -472
- package/dist/_esm5.processed/core/decrypt/utils/media_keys_infos_store.d.ts +0 -56
- package/dist/_esm5.processed/core/decrypt/utils/media_keys_infos_store.js +0 -44
- package/dist/_esm5.processed/core/decrypt/utils/persistent_sessions_store.d.ts +0 -94
- package/dist/_esm5.processed/core/decrypt/utils/persistent_sessions_store.js +0 -321
- package/dist/_esm5.processed/core/decrypt/utils/serializable_bytes.d.ts +0 -44
- package/dist/_esm5.processed/core/decrypt/utils/serializable_bytes.js +0 -48
- package/dist/_esm5.processed/core/decrypt/utils/server_certificate_store.d.ts +0 -64
- package/dist/_esm5.processed/core/decrypt/utils/server_certificate_store.js +0 -112
- package/dist/_esm5.processed/core/fetchers/cdn_prioritizer.d.ts +0 -107
- package/dist/_esm5.processed/core/fetchers/cdn_prioritizer.js +0 -177
- package/dist/_esm5.processed/core/fetchers/index.d.ts +0 -18
- package/dist/_esm5.processed/core/fetchers/index.js +0 -18
- package/dist/_esm5.processed/core/fetchers/manifest/index.d.ts +0 -18
- package/dist/_esm5.processed/core/fetchers/manifest/index.js +0 -17
- package/dist/_esm5.processed/core/fetchers/manifest/manifest_fetcher.d.ts +0 -223
- package/dist/_esm5.processed/core/fetchers/manifest/manifest_fetcher.js +0 -624
- package/dist/_esm5.processed/core/fetchers/segment/index.d.ts +0 -19
- package/dist/_esm5.processed/core/fetchers/segment/index.js +0 -17
- package/dist/_esm5.processed/core/fetchers/segment/prioritized_segment_fetcher.d.ts +0 -38
- package/dist/_esm5.processed/core/fetchers/segment/prioritized_segment_fetcher.js +0 -67
- package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher.d.ts +0 -154
- package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher.js +0 -308
- package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher_creator.d.ts +0 -79
- package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher_creator.js +0 -58
- package/dist/_esm5.processed/core/fetchers/segment/task_prioritizer.d.ts +0 -145
- package/dist/_esm5.processed/core/fetchers/segment/task_prioritizer.js +0 -323
- package/dist/_esm5.processed/core/fetchers/utils/error_selector.d.ts +0 -23
- package/dist/_esm5.processed/core/fetchers/utils/error_selector.js +0 -31
- package/dist/_esm5.processed/core/fetchers/utils/schedule_request.d.ts +0 -103
- package/dist/_esm5.processed/core/fetchers/utils/schedule_request.js +0 -424
- package/dist/_esm5.processed/core/init/directfile_content_initializer.d.ts +0 -97
- package/dist/_esm5.processed/core/init/directfile_content_initializer.js +0 -239
- package/dist/_esm5.processed/core/init/index.d.ts +0 -16
- package/dist/_esm5.processed/core/init/index.js +0 -16
- package/dist/_esm5.processed/core/init/media_source_content_initializer.d.ts +0 -181
- package/dist/_esm5.processed/core/init/media_source_content_initializer.js +0 -625
- package/dist/_esm5.processed/core/init/types.d.ts +0 -241
- package/dist/_esm5.processed/core/init/types.js +0 -51
- package/dist/_esm5.processed/core/init/utils/content_time_boundaries_observer.d.ts +0 -191
- package/dist/_esm5.processed/core/init/utils/content_time_boundaries_observer.js +0 -497
- package/dist/_esm5.processed/core/init/utils/create_media_source.d.ts +0 -37
- package/dist/_esm5.processed/core/init/utils/create_media_source.js +0 -112
- package/dist/_esm5.processed/core/init/utils/create_stream_playback_observer.d.ts +0 -45
- package/dist/_esm5.processed/core/init/utils/create_stream_playback_observer.js +0 -86
- package/dist/_esm5.processed/core/init/utils/end_of_stream.d.ts +0 -33
- package/dist/_esm5.processed/core/init/utils/end_of_stream.js +0 -89
- package/dist/_esm5.processed/core/init/utils/get_initial_time.d.ts +0 -62
- package/dist/_esm5.processed/core/init/utils/get_initial_time.js +0 -109
- package/dist/_esm5.processed/core/init/utils/get_loaded_reference.d.ts +0 -28
- package/dist/_esm5.processed/core/init/utils/get_loaded_reference.js +0 -56
- package/dist/_esm5.processed/core/init/utils/initial_seek_and_play.d.ts +0 -63
- package/dist/_esm5.processed/core/init/utils/initial_seek_and_play.js +0 -128
- package/dist/_esm5.processed/core/init/utils/initialize_content_decryption.d.ts +0 -80
- package/dist/_esm5.processed/core/init/utils/initialize_content_decryption.js +0 -104
- package/dist/_esm5.processed/core/init/utils/media_source_duration_updater.d.ts +0 -58
- package/dist/_esm5.processed/core/init/utils/media_source_duration_updater.js +0 -268
- package/dist/_esm5.processed/core/init/utils/rebuffering_controller.d.ts +0 -113
- package/dist/_esm5.processed/core/init/utils/rebuffering_controller.js +0 -483
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/are_same_stream_events.d.ts +0 -39
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/are_same_stream_events.js +0 -35
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/index.d.ts +0 -18
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/index.js +0 -17
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +0 -25
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +0 -66
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/stream_events_emitter.d.ts +0 -52
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/stream_events_emitter.js +0 -200
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/types.d.ts +0 -41
- package/dist/_esm5.processed/core/init/utils/stream_events_emitter/types.js +0 -16
- package/dist/_esm5.processed/core/init/utils/throw_on_media_error.d.ts +0 -23
- package/dist/_esm5.processed/core/init/utils/throw_on_media_error.js +0 -58
- package/dist/_esm5.processed/core/segment_buffers/garbage_collector.d.ts +0 -41
- package/dist/_esm5.processed/core/segment_buffers/garbage_collector.js +0 -183
- package/dist/_esm5.processed/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.d.ts +0 -182
- package/dist/_esm5.processed/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.js +0 -462
- package/dist/_esm5.processed/core/segment_buffers/implementations/audio_video/index.d.ts +0 -17
- package/dist/_esm5.processed/core/segment_buffers/implementations/audio_video/index.js +0 -17
- package/dist/_esm5.processed/core/segment_buffers/implementations/image/image_segment_buffer.d.ts +0 -75
- package/dist/_esm5.processed/core/segment_buffers/implementations/image/image_segment_buffer.js +0 -133
- package/dist/_esm5.processed/core/segment_buffers/implementations/image/index.d.ts +0 -17
- package/dist/_esm5.processed/core/segment_buffers/implementations/image/index.js +0 -17
- package/dist/_esm5.processed/core/segment_buffers/implementations/index.d.ts +0 -18
- package/dist/_esm5.processed/core/segment_buffers/implementations/index.js +0 -18
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/html_text_segment_buffer.d.ts +0 -141
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/html_text_segment_buffer.js +0 -405
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/index.d.ts +0 -21
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/index.js +0 -21
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/parsers.d.ts +0 -30
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/parsers.js +0 -37
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/text_track_cues_store.d.ts +0 -79
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/text_track_cues_store.js +0 -372
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/types.d.ts +0 -25
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/types.js +0 -16
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/update_proportional_elements.d.ts +0 -30
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/update_proportional_elements.js +0 -77
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/utils.d.ts +0 -45
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/utils.js +0 -124
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/index.d.ts +0 -17
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/index.js +0 -17
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/native_text_segment_buffer.d.ts +0 -84
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/native_text_segment_buffer.js +0 -272
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/parsers.d.ts +0 -26
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/parsers.js +0 -37
- package/dist/_esm5.processed/core/segment_buffers/implementations/types.d.ts +0 -320
- package/dist/_esm5.processed/core/segment_buffers/implementations/types.js +0 -121
- package/dist/_esm5.processed/core/segment_buffers/implementations/utils/manual_time_ranges.d.ts +0 -29
- package/dist/_esm5.processed/core/segment_buffers/implementations/utils/manual_time_ranges.js +0 -65
- package/dist/_esm5.processed/core/segment_buffers/index.d.ts +0 -21
- package/dist/_esm5.processed/core/segment_buffers/index.js +0 -20
- package/dist/_esm5.processed/core/segment_buffers/inventory/buffered_history.d.ts +0 -89
- package/dist/_esm5.processed/core/segment_buffers/inventory/buffered_history.js +0 -90
- package/dist/_esm5.processed/core/segment_buffers/inventory/index.d.ts +0 -20
- package/dist/_esm5.processed/core/segment_buffers/inventory/index.js +0 -17
- package/dist/_esm5.processed/core/segment_buffers/inventory/segment_inventory.d.ts +0 -224
- package/dist/_esm5.processed/core/segment_buffers/inventory/segment_inventory.js +0 -833
- package/dist/_esm5.processed/core/segment_buffers/inventory/types.d.ts +0 -27
- package/dist/_esm5.processed/core/segment_buffers/inventory/types.js +0 -16
- package/dist/_esm5.processed/core/segment_buffers/segment_buffers_store.d.ts +0 -181
- package/dist/_esm5.processed/core/segment_buffers/segment_buffers_store.js +0 -314
- package/dist/_esm5.processed/core/stream/adaptation/adaptation_stream.d.ts +0 -48
- package/dist/_esm5.processed/core/stream/adaptation/adaptation_stream.js +0 -292
- package/dist/_esm5.processed/core/stream/adaptation/index.d.ts +0 -18
- package/dist/_esm5.processed/core/stream/adaptation/index.js +0 -18
- package/dist/_esm5.processed/core/stream/adaptation/types.d.ts +0 -178
- package/dist/_esm5.processed/core/stream/adaptation/utils/create_representation_estimator.d.ts +0 -47
- package/dist/_esm5.processed/core/stream/adaptation/utils/create_representation_estimator.js +0 -70
- package/dist/_esm5.processed/core/stream/index.d.ts +0 -21
- package/dist/_esm5.processed/core/stream/index.js +0 -17
- package/dist/_esm5.processed/core/stream/orchestrator/get_time_ranges_for_content.d.ts +0 -30
- package/dist/_esm5.processed/core/stream/orchestrator/get_time_ranges_for_content.js +0 -60
- package/dist/_esm5.processed/core/stream/orchestrator/index.d.ts +0 -18
- package/dist/_esm5.processed/core/stream/orchestrator/index.js +0 -17
- package/dist/_esm5.processed/core/stream/orchestrator/stream_orchestrator.d.ts +0 -172
- package/dist/_esm5.processed/core/stream/orchestrator/stream_orchestrator.js +0 -481
- package/dist/_esm5.processed/core/stream/period/index.d.ts +0 -18
- package/dist/_esm5.processed/core/stream/period/index.js +0 -18
- package/dist/_esm5.processed/core/stream/period/period_stream.d.ts +0 -49
- package/dist/_esm5.processed/core/stream/period/period_stream.js +0 -384
- package/dist/_esm5.processed/core/stream/period/types.d.ts +0 -110
- package/dist/_esm5.processed/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +0 -70
- package/dist/_esm5.processed/core/stream/period/utils/get_adaptation_switch_strategy.js +0 -198
- package/dist/_esm5.processed/core/stream/representation/index.d.ts +0 -18
- package/dist/_esm5.processed/core/stream/representation/index.js +0 -18
- package/dist/_esm5.processed/core/stream/representation/representation_stream.d.ts +0 -53
- package/dist/_esm5.processed/core/stream/representation/representation_stream.js +0 -369
- package/dist/_esm5.processed/core/stream/representation/types.d.ts +0 -267
- package/dist/_esm5.processed/core/stream/representation/utils/append_segment_to_buffer.d.ts +0 -32
- package/dist/_esm5.processed/core/stream/representation/utils/append_segment_to_buffer.js +0 -114
- package/dist/_esm5.processed/core/stream/representation/utils/check_for_discontinuity.d.ts +0 -53
- package/dist/_esm5.processed/core/stream/representation/utils/check_for_discontinuity.js +0 -235
- package/dist/_esm5.processed/core/stream/representation/utils/downloading_queue.d.ts +0 -231
- package/dist/_esm5.processed/core/stream/representation/utils/downloading_queue.js +0 -388
- package/dist/_esm5.processed/core/stream/representation/utils/force_garbage_collection.d.ts +0 -29
- package/dist/_esm5.processed/core/stream/representation/utils/force_garbage_collection.js +0 -150
- package/dist/_esm5.processed/core/stream/representation/utils/get_buffer_status.d.ts +0 -72
- package/dist/_esm5.processed/core/stream/representation/utils/get_buffer_status.js +0 -203
- package/dist/_esm5.processed/core/stream/representation/utils/get_needed_segments.d.ts +0 -92
- package/dist/_esm5.processed/core/stream/representation/utils/get_needed_segments.js +0 -426
- package/dist/_esm5.processed/core/stream/representation/utils/get_segment_priority.d.ts +0 -28
- package/dist/_esm5.processed/core/stream/representation/utils/get_segment_priority.js +0 -38
- package/dist/_esm5.processed/core/stream/representation/utils/push_init_segment.d.ts +0 -39
- package/dist/_esm5.processed/core/stream/representation/utils/push_init_segment.js +0 -85
- package/dist/_esm5.processed/core/stream/representation/utils/push_media_segment.d.ts +0 -40
- package/dist/_esm5.processed/core/stream/representation/utils/push_media_segment.js +0 -108
- package/dist/_esm5.processed/default_config.d.ts +0 -1143
- package/dist/_esm5.processed/default_config.js +0 -1178
- package/dist/_esm5.processed/errors/assertion_error.d.ts +0 -31
- package/dist/_esm5.processed/errors/assertion_error.js +0 -54
- package/dist/_esm5.processed/errors/custom_loader_error.d.ts +0 -38
- package/dist/_esm5.processed/errors/custom_loader_error.js +0 -61
- package/dist/_esm5.processed/errors/encrypted_media_error.d.ts +0 -39
- package/dist/_esm5.processed/errors/encrypted_media_error.js +0 -57
- package/dist/_esm5.processed/errors/error_codes.d.ts +0 -31
- package/dist/_esm5.processed/errors/error_codes.js +0 -70
- package/dist/_esm5.processed/errors/error_message.d.ts +0 -23
- package/dist/_esm5.processed/errors/error_message.js +0 -25
- package/dist/_esm5.processed/errors/format_error.d.ts +0 -20
- package/dist/_esm5.processed/errors/format_error.js +0 -31
- package/dist/_esm5.processed/errors/index.d.ts +0 -26
- package/dist/_esm5.processed/errors/index.js +0 -26
- package/dist/_esm5.processed/errors/is_known_error.d.ts +0 -22
- package/dist/_esm5.processed/errors/is_known_error.js +0 -32
- package/dist/_esm5.processed/errors/media_error.d.ts +0 -56
- package/dist/_esm5.processed/errors/media_error.js +0 -71
- package/dist/_esm5.processed/errors/network_error.d.ts +0 -45
- package/dist/_esm5.processed/errors/network_error.js +0 -71
- package/dist/_esm5.processed/errors/other_error.d.ts +0 -32
- package/dist/_esm5.processed/errors/other_error.js +0 -56
- package/dist/_esm5.processed/errors/request_error.d.ts +0 -39
- package/dist/_esm5.processed/errors/request_error.js +0 -77
- package/dist/_esm5.processed/experimental/features/dash_wasm.js +0 -34
- package/dist/_esm5.processed/experimental/features/index.d.ts +0 -19
- package/dist/_esm5.processed/experimental/features/index.js +0 -19
- package/dist/_esm5.processed/experimental/features/local.d.ts +0 -19
- package/dist/_esm5.processed/experimental/features/local.js +0 -24
- package/dist/_esm5.processed/experimental/features/metaplaylist.d.ts +0 -19
- package/dist/_esm5.processed/experimental/features/metaplaylist.js +0 -24
- package/dist/_esm5.processed/experimental/index.d.ts +0 -2
- package/dist/_esm5.processed/experimental/index.js +0 -2
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/features/dash.d.ts +0 -17
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/features/dash.js +0 -20
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts +0 -17
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/features/metaplaylist.js +0 -20
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/index.d.ts +0 -18
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/index.js +0 -18
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +0 -26
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +0 -61
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +0 -25
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +0 -63
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +0 -30
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +0 -41
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/types.d.ts +0 -25
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/types.js +0 -16
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts +0 -54
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +0 -343
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.d.ts +0 -25
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.js +0 -48
- package/dist/_esm5.processed/experimental/tools/createMetaplaylist/get_duration_from_manifest.d.ts +0 -23
- package/dist/_esm5.processed/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +0 -169
- package/dist/_esm5.processed/experimental/tools/createMetaplaylist/index.d.ts +0 -30
- package/dist/_esm5.processed/experimental/tools/createMetaplaylist/index.js +0 -50
- package/dist/_esm5.processed/experimental/tools/index.d.ts +0 -20
- package/dist/_esm5.processed/experimental/tools/index.js +0 -20
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/api/index.d.ts +0 -60
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/api/index.js +0 -158
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.d.ts +0 -45
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.js +0 -102
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/capabilities.d.ts +0 -24
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/capabilities.js +0 -142
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/index.d.ts +0 -17
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/index.js +0 -17
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/log.d.ts +0 -18
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/log.js +0 -18
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.d.ts +0 -25
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.js +0 -50
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts +0 -22
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.js +0 -69
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts +0 -26
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +0 -79
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.d.ts +0 -29
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.js +0 -65
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/index.d.ts +0 -21
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/index.js +0 -30
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts +0 -21
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.js +0 -57
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.d.ts +0 -21
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.js +0 -89
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.d.ts +0 -26
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.js +0 -83
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts +0 -21
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +0 -45
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/types.d.ts +0 -69
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/types.js +0 -21
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/utils.d.ts +0 -31
- package/dist/_esm5.processed/experimental/tools/mediaCapabilitiesProber/utils.js +0 -83
- package/dist/_esm5.processed/experimental/tools/parseBIFThumbnails.d.ts +0 -29
- package/dist/_esm5.processed/experimental/tools/parseBIFThumbnails.js +0 -29
- package/dist/_esm5.processed/features/add_features.d.ts +0 -20
- package/dist/_esm5.processed/features/add_features.js +0 -35
- package/dist/_esm5.processed/features/features_object.d.ts +0 -22
- package/dist/_esm5.processed/features/features_object.js +0 -33
- package/dist/_esm5.processed/features/index.d.ts +0 -34
- package/dist/_esm5.processed/features/index.js +0 -33
- package/dist/_esm5.processed/features/list/bif_parser.d.ts +0 -23
- package/dist/_esm5.processed/features/list/bif_parser.js +0 -27
- package/dist/_esm5.processed/features/list/dash.d.ts +0 -23
- package/dist/_esm5.processed/features/list/dash.js +0 -32
- package/dist/_esm5.processed/features/list/directfile.d.ts +0 -24
- package/dist/_esm5.processed/features/list/directfile.js +0 -31
- package/dist/_esm5.processed/features/list/eme.d.ts +0 -23
- package/dist/_esm5.processed/features/list/eme.js +0 -25
- package/dist/_esm5.processed/features/list/html_sami_parser.d.ts +0 -23
- package/dist/_esm5.processed/features/list/html_sami_parser.js +0 -27
- package/dist/_esm5.processed/features/list/html_srt_parser.d.ts +0 -23
- package/dist/_esm5.processed/features/list/html_srt_parser.js +0 -27
- package/dist/_esm5.processed/features/list/html_text_buffer.d.ts +0 -23
- package/dist/_esm5.processed/features/list/html_text_buffer.js +0 -25
- package/dist/_esm5.processed/features/list/html_ttml_parser.d.ts +0 -23
- package/dist/_esm5.processed/features/list/html_ttml_parser.js +0 -27
- package/dist/_esm5.processed/features/list/html_vtt_parser.d.ts +0 -23
- package/dist/_esm5.processed/features/list/html_vtt_parser.js +0 -27
- package/dist/_esm5.processed/features/list/image_buffer.d.ts +0 -23
- package/dist/_esm5.processed/features/list/image_buffer.js +0 -25
- package/dist/_esm5.processed/features/list/index.d.ts +0 -31
- package/dist/_esm5.processed/features/list/index.js +0 -31
- package/dist/_esm5.processed/features/list/native_sami_parser.d.ts +0 -23
- package/dist/_esm5.processed/features/list/native_sami_parser.js +0 -28
- package/dist/_esm5.processed/features/list/native_srt_parser.d.ts +0 -23
- package/dist/_esm5.processed/features/list/native_srt_parser.js +0 -28
- package/dist/_esm5.processed/features/list/native_text_buffer.d.ts +0 -23
- package/dist/_esm5.processed/features/list/native_text_buffer.js +0 -26
- package/dist/_esm5.processed/features/list/native_ttml_parser.d.ts +0 -23
- package/dist/_esm5.processed/features/list/native_ttml_parser.js +0 -28
- package/dist/_esm5.processed/features/list/native_vtt_parser.d.ts +0 -23
- package/dist/_esm5.processed/features/list/native_vtt_parser.js +0 -28
- package/dist/_esm5.processed/features/list/smooth.d.ts +0 -23
- package/dist/_esm5.processed/features/list/smooth.js +0 -28
- package/dist/_esm5.processed/features/types.d.ts +0 -154
- package/dist/_esm5.processed/features/types.js +0 -16
- package/dist/_esm5.processed/log.d.ts +0 -18
- package/dist/_esm5.processed/log.js +0 -19
- package/dist/_esm5.processed/manifest/adaptation.d.ts +0 -115
- package/dist/_esm5.processed/manifest/adaptation.js +0 -208
- package/dist/_esm5.processed/manifest/index.d.ts +0 -25
- package/dist/_esm5.processed/manifest/index.js +0 -28
- package/dist/_esm5.processed/manifest/manifest.d.ts +0 -317
- package/dist/_esm5.processed/manifest/manifest.js +0 -487
- package/dist/_esm5.processed/manifest/period.d.ts +0 -74
- package/dist/_esm5.processed/manifest/period.js +0 -141
- package/dist/_esm5.processed/manifest/representation.d.ts +0 -246
- package/dist/_esm5.processed/manifest/representation.js +0 -265
- package/dist/_esm5.processed/manifest/representation_index/index.d.ts +0 -18
- package/dist/_esm5.processed/manifest/representation_index/index.js +0 -17
- package/dist/_esm5.processed/manifest/representation_index/static.d.ts +0 -99
- package/dist/_esm5.processed/manifest/representation_index/static.js +0 -135
- package/dist/_esm5.processed/manifest/representation_index/types.d.ts +0 -399
- package/dist/_esm5.processed/manifest/representation_index/types.js +0 -16
- package/dist/_esm5.processed/manifest/types.d.ts +0 -31
- package/dist/_esm5.processed/manifest/types.js +0 -30
- package/dist/_esm5.processed/manifest/update_period_in_place.d.ts +0 -49
- package/dist/_esm5.processed/manifest/update_period_in_place.js +0 -119
- package/dist/_esm5.processed/manifest/update_periods.d.ts +0 -47
- package/dist/_esm5.processed/manifest/update_periods.js +0 -168
- package/dist/_esm5.processed/manifest/utils.d.ts +0 -39
- package/dist/_esm5.processed/manifest/utils.js +0 -42
- package/dist/_esm5.processed/minimal.d.ts +0 -17
- package/dist/_esm5.processed/minimal.js +0 -31
- package/dist/_esm5.processed/parsers/containers/isobmff/constants.d.ts +0 -23
- package/dist/_esm5.processed/parsers/containers/isobmff/constants.js +0 -23
- package/dist/_esm5.processed/parsers/containers/isobmff/create_box.d.ts +0 -30
- package/dist/_esm5.processed/parsers/containers/isobmff/create_box.js +0 -64
- package/dist/_esm5.processed/parsers/containers/isobmff/drm/index.d.ts +0 -16
- package/dist/_esm5.processed/parsers/containers/isobmff/drm/index.js +0 -16
- package/dist/_esm5.processed/parsers/containers/isobmff/drm/playready.d.ts +0 -21
- package/dist/_esm5.processed/parsers/containers/isobmff/drm/playready.js +0 -36
- package/dist/_esm5.processed/parsers/containers/isobmff/get_box.d.ts +0 -107
- package/dist/_esm5.processed/parsers/containers/isobmff/get_box.js +0 -228
- package/dist/_esm5.processed/parsers/containers/isobmff/index.d.ts +0 -21
- package/dist/_esm5.processed/parsers/containers/isobmff/index.js +0 -21
- package/dist/_esm5.processed/parsers/containers/isobmff/read.d.ts +0 -57
- package/dist/_esm5.processed/parsers/containers/isobmff/read.js +0 -88
- package/dist/_esm5.processed/parsers/containers/isobmff/take_pssh_out.d.ts +0 -41
- package/dist/_esm5.processed/parsers/containers/isobmff/take_pssh_out.js +0 -83
- package/dist/_esm5.processed/parsers/containers/isobmff/utils.d.ts +0 -123
- package/dist/_esm5.processed/parsers/containers/isobmff/utils.js +0 -434
- package/dist/_esm5.processed/parsers/containers/matroska/index.d.ts +0 -16
- package/dist/_esm5.processed/parsers/containers/matroska/index.js +0 -16
- package/dist/_esm5.processed/parsers/containers/matroska/utils.d.ts +0 -34
- package/dist/_esm5.processed/parsers/containers/matroska/utils.js +0 -236
- package/dist/_esm5.processed/parsers/images/bif.d.ts +0 -39
- package/dist/_esm5.processed/parsers/images/bif.js +0 -88
- package/dist/_esm5.processed/parsers/manifest/dash/common/attach_trickmode_track.d.ts +0 -28
- package/dist/_esm5.processed/parsers/manifest/dash/common/attach_trickmode_track.js +0 -48
- package/dist/_esm5.processed/parsers/manifest/dash/common/convert_supplemental_codecs.d.ts +0 -17
- package/dist/_esm5.processed/parsers/manifest/dash/common/convert_supplemental_codecs.js +0 -26
- package/dist/_esm5.processed/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts +0 -43
- package/dist/_esm5.processed/parsers/manifest/dash/common/flatten_overlapping_periods.js +0 -79
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_clock_offset.d.ts +0 -29
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_clock_offset.js +0 -37
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_hdr_information.d.ts +0 -50
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_hdr_information.js +0 -58
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts +0 -21
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_http_utc-timing_url.js +0 -28
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts +0 -25
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_minimum_and_maximum_positions.js +0 -30
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_periods_time_infos.d.ts +0 -43
- package/dist/_esm5.processed/parsers/manifest/dash/common/get_periods_time_infos.js +0 -64
- package/dist/_esm5.processed/parsers/manifest/dash/common/index.d.ts +0 -20
- package/dist/_esm5.processed/parsers/manifest/dash/common/index.js +0 -19
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/base.d.ts +0 -260
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/base.js +0 -247
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/get_init_segment.d.ts +0 -32
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/get_init_segment.js +0 -40
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts +0 -36
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/get_segments_from_timeline.js +0 -94
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/index.d.ts +0 -20
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/index.js +0 -20
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/list.d.ts +0 -191
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/list.js +0 -192
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/template.d.ts +0 -258
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/template.js +0 -422
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +0 -26
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +0 -47
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +0 -17
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +0 -83
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts +0 -37
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.js +0 -56
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +0 -41
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +0 -127
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/index.d.ts +0 -17
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/index.js +0 -17
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts +0 -34
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/parse_s_element.js +0 -57
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +0 -334
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +0 -458
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/tokens.d.ts +0 -40
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/tokens.js +0 -109
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/utils.d.ts +0 -25
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/utils.js +0 -28
- package/dist/_esm5.processed/parsers/manifest/dash/common/infer_adaptation_type.d.ts +0 -42
- package/dist/_esm5.processed/parsers/manifest/dash/common/infer_adaptation_type.js +0 -114
- package/dist/_esm5.processed/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts +0 -88
- package/dist/_esm5.processed/parsers/manifest/dash/common/manifest_bounds_calculator.js +0 -111
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_adaptation_sets.d.ts +0 -49
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_adaptation_sets.js +0 -373
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_availability_start_time.d.ts +0 -22
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_availability_start_time.js +0 -29
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_mpd.d.ts +0 -97
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_mpd.js +0 -247
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_periods.d.ts +0 -63
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_periods.js +0 -259
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representation_index.d.ts +0 -75
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representation_index.js +0 -96
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representations.d.ts +0 -46
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representations.js +0 -268
- package/dist/_esm5.processed/parsers/manifest/dash/common/resolve_base_urls.d.ts +0 -26
- package/dist/_esm5.processed/parsers/manifest/dash/common/resolve_base_urls.js +0 -44
- package/dist/_esm5.processed/parsers/manifest/dash/index.d.ts +0 -16
- package/dist/_esm5.processed/parsers/manifest/dash/index.js +0 -16
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/index.d.ts +0 -17
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/index.js +0 -17
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts +0 -23
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +0 -307
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts +0 -23
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/BaseURL.js +0 -30
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts +0 -22
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.js +0 -41
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts +0 -21
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.js +0 -75
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts +0 -23
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/EventStream.js +0 -94
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts +0 -21
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Initialization.js +0 -39
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts +0 -21
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/MPD.js +0 -144
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts +0 -21
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Period.js +0 -112
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts +0 -21
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Representation.js +0 -187
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts +0 -22
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.js +0 -89
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts +0 -21
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentList.js +0 -40
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts +0 -23
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.js +0 -73
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts +0 -21
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.js +0 -30
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts +0 -23
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.js +0 -49
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts +0 -178
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/utils.js +0 -308
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/parse_from_document.d.ts +0 -24
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/parse_from_document.js +0 -103
- package/dist/_esm5.processed/parsers/manifest/dash/node_parser_types.d.ts +0 -395
- package/dist/_esm5.processed/parsers/manifest/dash/node_parser_types.js +0 -16
- package/dist/_esm5.processed/parsers/manifest/dash/parsers_types.d.ts +0 -83
- package/dist/_esm5.processed/parsers/manifest/dash/parsers_types.js +0 -16
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/index.d.ts +0 -18
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/index.js +0 -17
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +0 -111
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +0 -377
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts +0 -31
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +0 -277
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts +0 -24
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.js +0 -30
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts +0 -24
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.js +0 -41
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts +0 -23
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +0 -49
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts +0 -32
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.js +0 -112
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts +0 -27
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +0 -145
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts +0 -32
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +0 -130
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts +0 -31
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +0 -172
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts +0 -24
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.js +0 -35
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts +0 -18
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.js +0 -93
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts +0 -25
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.js +0 -45
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts +0 -18
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.js +0 -108
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts +0 -25
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.js +0 -54
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts +0 -28
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/XLink.js +0 -47
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts +0 -16
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/index.js +0 -16
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts +0 -27
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/root.js +0 -45
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts +0 -38
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/parsers_stack.js +0 -57
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/types.d.ts +0 -145
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/types.js +0 -16
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/utils.d.ts +0 -29
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/utils.js +0 -36
- package/dist/_esm5.processed/parsers/manifest/index.d.ts +0 -16
- package/dist/_esm5.processed/parsers/manifest/index.js +0 -16
- package/dist/_esm5.processed/parsers/manifest/local/index.d.ts +0 -18
- package/dist/_esm5.processed/parsers/manifest/local/index.js +0 -17
- package/dist/_esm5.processed/parsers/manifest/local/parse_local_manifest.d.ts +0 -22
- package/dist/_esm5.processed/parsers/manifest/local/parse_local_manifest.js +0 -125
- package/dist/_esm5.processed/parsers/manifest/local/representation_index.d.ts +0 -81
- package/dist/_esm5.processed/parsers/manifest/local/representation_index.js +0 -234
- package/dist/_esm5.processed/parsers/manifest/local/types.d.ts +0 -285
- package/dist/_esm5.processed/parsers/manifest/local/types.js +0 -16
- package/dist/_esm5.processed/parsers/manifest/metaplaylist/index.d.ts +0 -18
- package/dist/_esm5.processed/parsers/manifest/metaplaylist/index.js +0 -17
- package/dist/_esm5.processed/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts +0 -64
- package/dist/_esm5.processed/parsers/manifest/metaplaylist/metaplaylist_parser.js +0 -254
- package/dist/_esm5.processed/parsers/manifest/metaplaylist/representation_index.d.ts +0 -145
- package/dist/_esm5.processed/parsers/manifest/metaplaylist/representation_index.js +0 -216
- package/dist/_esm5.processed/parsers/manifest/smooth/create_parser.d.ts +0 -34
- package/dist/_esm5.processed/parsers/manifest/smooth/create_parser.js +0 -499
- package/dist/_esm5.processed/parsers/manifest/smooth/get_codecs.d.ts +0 -26
- package/dist/_esm5.processed/parsers/manifest/smooth/get_codecs.js +0 -50
- package/dist/_esm5.processed/parsers/manifest/smooth/index.d.ts +0 -19
- package/dist/_esm5.processed/parsers/manifest/smooth/index.js +0 -19
- package/dist/_esm5.processed/parsers/manifest/smooth/parse_C_nodes.d.ts +0 -26
- package/dist/_esm5.processed/parsers/manifest/smooth/parse_C_nodes.js +0 -60
- package/dist/_esm5.processed/parsers/manifest/smooth/parse_protection_node.d.ts +0 -29
- package/dist/_esm5.processed/parsers/manifest/smooth/parse_protection_node.js +0 -58
- package/dist/_esm5.processed/parsers/manifest/smooth/representation_index.d.ts +0 -288
- package/dist/_esm5.processed/parsers/manifest/smooth/representation_index.js +0 -454
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/add_segment_infos.d.ts +0 -41
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/add_segment_infos.js +0 -60
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/parseBoolean.d.ts +0 -20
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/parseBoolean.js +0 -30
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/reduceChildren.d.ts +0 -23
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/reduceChildren.js +0 -31
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/tokens.d.ts +0 -28
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/tokens.js +0 -35
- package/dist/_esm5.processed/parsers/manifest/types.d.ts +0 -379
- package/dist/_esm5.processed/parsers/manifest/types.js +0 -16
- package/dist/_esm5.processed/parsers/manifest/utils/check_manifest_ids.d.ts +0 -25
- package/dist/_esm5.processed/parsers/manifest/utils/check_manifest_ids.js +0 -76
- package/dist/_esm5.processed/parsers/manifest/utils/clear_timeline_from_position.d.ts +0 -24
- package/dist/_esm5.processed/parsers/manifest/utils/clear_timeline_from_position.js +0 -69
- package/dist/_esm5.processed/parsers/manifest/utils/get_first_time_from_adaptation.d.ts +0 -27
- package/dist/_esm5.processed/parsers/manifest/utils/get_first_time_from_adaptation.js +0 -43
- package/dist/_esm5.processed/parsers/manifest/utils/get_last_time_from_adaptation.d.ts +0 -29
- package/dist/_esm5.processed/parsers/manifest/utils/get_last_time_from_adaptation.js +0 -45
- package/dist/_esm5.processed/parsers/manifest/utils/get_maximum_positions.d.ts +0 -24
- package/dist/_esm5.processed/parsers/manifest/utils/get_maximum_positions.js +0 -72
- package/dist/_esm5.processed/parsers/manifest/utils/get_minimum_position.d.ts +0 -21
- package/dist/_esm5.processed/parsers/manifest/utils/get_minimum_position.js +0 -68
- package/dist/_esm5.processed/parsers/manifest/utils/index_helpers.d.ts +0 -88
- package/dist/_esm5.processed/parsers/manifest/utils/index_helpers.js +0 -147
- package/dist/_esm5.processed/parsers/manifest/utils/is_segment_still_available.d.ts +0 -29
- package/dist/_esm5.processed/parsers/manifest/utils/is_segment_still_available.js +0 -51
- package/dist/_esm5.processed/parsers/manifest/utils/update_segment_timeline.d.ts +0 -33
- package/dist/_esm5.processed/parsers/manifest/utils/update_segment_timeline.js +0 -138
- package/dist/_esm5.processed/parsers/texttracks/index.d.ts +0 -16
- package/dist/_esm5.processed/parsers/texttracks/index.js +0 -16
- package/dist/_esm5.processed/parsers/texttracks/sami/html.d.ts +0 -29
- package/dist/_esm5.processed/parsers/texttracks/sami/html.js +0 -189
- package/dist/_esm5.processed/parsers/texttracks/sami/native.d.ts +0 -34
- package/dist/_esm5.processed/parsers/texttracks/sami/native.js +0 -160
- package/dist/_esm5.processed/parsers/texttracks/srt/find_end_of_cue_block.d.ts +0 -29
- package/dist/_esm5.processed/parsers/texttracks/srt/find_end_of_cue_block.js +0 -39
- package/dist/_esm5.processed/parsers/texttracks/srt/get_cue_blocks.d.ts +0 -22
- package/dist/_esm5.processed/parsers/texttracks/srt/get_cue_blocks.js +0 -47
- package/dist/_esm5.processed/parsers/texttracks/srt/html.d.ts +0 -26
- package/dist/_esm5.processed/parsers/texttracks/srt/html.js +0 -153
- package/dist/_esm5.processed/parsers/texttracks/srt/native.d.ts +0 -28
- package/dist/_esm5.processed/parsers/texttracks/srt/native.js +0 -57
- package/dist/_esm5.processed/parsers/texttracks/srt/parse_cue.d.ts +0 -30
- package/dist/_esm5.processed/parsers/texttracks/srt/parse_cue.js +0 -60
- package/dist/_esm5.processed/parsers/texttracks/srt/parse_timestamp.d.ts +0 -21
- package/dist/_esm5.processed/parsers/texttracks/srt/parse_timestamp.js +0 -33
- package/dist/_esm5.processed/parsers/texttracks/ttml/get_parameters.d.ts +0 -32
- package/dist/_esm5.processed/parsers/texttracks/ttml/get_parameters.js +0 -84
- package/dist/_esm5.processed/parsers/texttracks/ttml/get_styling.d.ts +0 -41
- package/dist/_esm5.processed/parsers/texttracks/ttml/get_styling.js +0 -132
- package/dist/_esm5.processed/parsers/texttracks/ttml/get_time_delimiters.d.ts +0 -26
- package/dist/_esm5.processed/parsers/texttracks/ttml/get_time_delimiters.js +0 -41
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.d.ts +0 -48
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.js +0 -61
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_extent.d.ts +0 -21
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_extent.js +0 -61
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_font_size.d.ts +0 -21
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_font_size.js +0 -59
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_line_height.d.ts +0 -20
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_line_height.js +0 -45
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_origin.d.ts +0 -20
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_origin.js +0 -60
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_padding.d.ts +0 -20
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_padding.js +0 -139
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/create_element.d.ts +0 -32
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/create_element.js +0 -451
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/generate_css_test_outline.d.ts +0 -26
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/generate_css_test_outline.js +0 -41
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/index.d.ts +0 -21
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/index.js +0 -21
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/parse_cue.d.ts +0 -26
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/parse_cue.js +0 -38
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts +0 -34
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/parse_ttml_to_div.js +0 -50
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/ttml_color_to_css_color.d.ts +0 -21
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/ttml_color_to_css_color.js +0 -57
- package/dist/_esm5.processed/parsers/texttracks/ttml/native/index.d.ts +0 -21
- package/dist/_esm5.processed/parsers/texttracks/ttml/native/index.js +0 -21
- package/dist/_esm5.processed/parsers/texttracks/ttml/native/parse_cue.d.ts +0 -30
- package/dist/_esm5.processed/parsers/texttracks/ttml/native/parse_cue.js +0 -202
- package/dist/_esm5.processed/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts +0 -21
- package/dist/_esm5.processed/parsers/texttracks/ttml/native/parse_ttml_to_vtt.js +0 -33
- package/dist/_esm5.processed/parsers/texttracks/ttml/parse_ttml.d.ts +0 -43
- package/dist/_esm5.processed/parsers/texttracks/ttml/parse_ttml.js +0 -156
- package/dist/_esm5.processed/parsers/texttracks/ttml/regexps.d.ts +0 -28
- package/dist/_esm5.processed/parsers/texttracks/ttml/regexps.js +0 -35
- package/dist/_esm5.processed/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts +0 -49
- package/dist/_esm5.processed/parsers/texttracks/ttml/resolve_styles_inheritance.js +0 -83
- package/dist/_esm5.processed/parsers/texttracks/ttml/time_parsing.d.ts +0 -30
- package/dist/_esm5.processed/parsers/texttracks/ttml/time_parsing.js +0 -124
- package/dist/_esm5.processed/parsers/texttracks/ttml/xml_utils.d.ts +0 -70
- package/dist/_esm5.processed/parsers/texttracks/ttml/xml_utils.js +0 -149
- package/dist/_esm5.processed/parsers/texttracks/types.d.ts +0 -23
- package/dist/_esm5.processed/parsers/texttracks/types.js +0 -16
- package/dist/_esm5.processed/parsers/texttracks/webvtt/get_cue_blocks.d.ts +0 -24
- package/dist/_esm5.processed/parsers/texttracks/webvtt/get_cue_blocks.js +0 -44
- package/dist/_esm5.processed/parsers/texttracks/webvtt/get_style_blocks.d.ts +0 -24
- package/dist/_esm5.processed/parsers/texttracks/webvtt/get_style_blocks.js +0 -51
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts +0 -22
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/convert_payload_to_html.js +0 -35
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_default_style_elements.d.ts +0 -2
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_default_style_elements.js +0 -22
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_style_attribute.d.ts +0 -21
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_style_attribute.js +0 -175
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_styled_element.d.ts +0 -25
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/create_styled_element.js +0 -83
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/index.d.ts +0 -22
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/index.js +0 -21
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/parse_style_block.d.ts +0 -27
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/parse_style_block.js +0 -72
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/parse_webvtt_to_div.d.ts +0 -31
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/parse_webvtt_to_div.js +0 -55
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/to_html.d.ts +0 -43
- package/dist/_esm5.processed/parsers/texttracks/webvtt/html/to_html.js +0 -70
- package/dist/_esm5.processed/parsers/texttracks/webvtt/native/index.d.ts +0 -21
- package/dist/_esm5.processed/parsers/texttracks/webvtt/native/index.js +0 -21
- package/dist/_esm5.processed/parsers/texttracks/webvtt/native/parse_vtt_to_cues.d.ts +0 -28
- package/dist/_esm5.processed/parsers/texttracks/webvtt/native/parse_vtt_to_cues.js +0 -58
- package/dist/_esm5.processed/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts +0 -23
- package/dist/_esm5.processed/parsers/texttracks/webvtt/native/set_settings_on_cue.js +0 -80
- package/dist/_esm5.processed/parsers/texttracks/webvtt/native/to_native_cue.d.ts +0 -25
- package/dist/_esm5.processed/parsers/texttracks/webvtt/native/to_native_cue.js +0 -25
- package/dist/_esm5.processed/parsers/texttracks/webvtt/parse_cue_block.d.ts +0 -33
- package/dist/_esm5.processed/parsers/texttracks/webvtt/parse_cue_block.js +0 -96
- package/dist/_esm5.processed/parsers/texttracks/webvtt/parse_timestamp.d.ts +0 -21
- package/dist/_esm5.processed/parsers/texttracks/webvtt/parse_timestamp.js +0 -34
- package/dist/_esm5.processed/parsers/texttracks/webvtt/utils.d.ts +0 -56
- package/dist/_esm5.processed/parsers/texttracks/webvtt/utils.js +0 -113
- package/dist/_esm5.processed/public_types.d.ts +0 -737
- package/dist/_esm5.processed/public_types.js +0 -16
- package/dist/_esm5.processed/tools/TextTrackRenderer/index.d.ts +0 -22
- package/dist/_esm5.processed/tools/TextTrackRenderer/index.js +0 -22
- package/dist/_esm5.processed/tools/TextTrackRenderer/text_track_renderer.d.ts +0 -69
- package/dist/_esm5.processed/tools/TextTrackRenderer/text_track_renderer.js +0 -78
- package/dist/_esm5.processed/tools/index.d.ts +0 -18
- package/dist/_esm5.processed/tools/index.js +0 -19
- package/dist/_esm5.processed/tools/string_utils.d.ts +0 -16
- package/dist/_esm5.processed/tools/string_utils.js +0 -16
- package/dist/_esm5.processed/transports/dash/add_segment_integrity_checks_to_loader.d.ts +0 -24
- package/dist/_esm5.processed/transports/dash/add_segment_integrity_checks_to_loader.js +0 -93
- package/dist/_esm5.processed/transports/dash/construct_segment_url.d.ts +0 -18
- package/dist/_esm5.processed/transports/dash/construct_segment_url.js +0 -21
- package/dist/_esm5.processed/transports/dash/extract_complete_chunks.d.ts +0 -24
- package/dist/_esm5.processed/transports/dash/extract_complete_chunks.js +0 -59
- package/dist/_esm5.processed/transports/dash/get_events_out_of_emsgs.d.ts +0 -28
- package/dist/_esm5.processed/transports/dash/get_events_out_of_emsgs.js +0 -92
- package/dist/_esm5.processed/transports/dash/image_pipelines.d.ts +0 -38
- package/dist/_esm5.processed/transports/dash/image_pipelines.js +0 -129
- package/dist/_esm5.processed/transports/dash/index.d.ts +0 -21
- package/dist/_esm5.processed/transports/dash/index.js +0 -21
- package/dist/_esm5.processed/transports/dash/init_segment_loader.d.ts +0 -28
- package/dist/_esm5.processed/transports/dash/init_segment_loader.js +0 -68
- package/dist/_esm5.processed/transports/dash/low_latency_segment_loader.d.ts +0 -30
- package/dist/_esm5.processed/transports/dash/low_latency_segment_loader.js +0 -64
- package/dist/_esm5.processed/transports/dash/manifest_parser.d.ts +0 -18
- package/dist/_esm5.processed/transports/dash/manifest_parser.js +0 -277
- package/dist/_esm5.processed/transports/dash/pipelines.d.ts +0 -23
- package/dist/_esm5.processed/transports/dash/pipelines.js +0 -58
- package/dist/_esm5.processed/transports/dash/segment_loader.d.ts +0 -38
- package/dist/_esm5.processed/transports/dash/segment_loader.js +0 -162
- package/dist/_esm5.processed/transports/dash/segment_parser.d.ts +0 -23
- package/dist/_esm5.processed/transports/dash/segment_parser.js +0 -129
- package/dist/_esm5.processed/transports/dash/text_loader.d.ts +0 -25
- package/dist/_esm5.processed/transports/dash/text_loader.js +0 -82
- package/dist/_esm5.processed/transports/dash/text_parser.d.ts +0 -25
- package/dist/_esm5.processed/transports/dash/text_parser.js +0 -169
- package/dist/_esm5.processed/transports/index.d.ts +0 -16
- package/dist/_esm5.processed/transports/index.js +0 -16
- package/dist/_esm5.processed/transports/local/index.d.ts +0 -17
- package/dist/_esm5.processed/transports/local/index.js +0 -17
- package/dist/_esm5.processed/transports/local/pipelines.d.ts +0 -22
- package/dist/_esm5.processed/transports/local/pipelines.js +0 -73
- package/dist/_esm5.processed/transports/local/segment_loader.d.ts +0 -28
- package/dist/_esm5.processed/transports/local/segment_loader.js +0 -144
- package/dist/_esm5.processed/transports/local/segment_parser.d.ts +0 -20
- package/dist/_esm5.processed/transports/local/segment_parser.js +0 -69
- package/dist/_esm5.processed/transports/local/text_parser.d.ts +0 -27
- package/dist/_esm5.processed/transports/local/text_parser.js +0 -131
- package/dist/_esm5.processed/transports/metaplaylist/index.d.ts +0 -21
- package/dist/_esm5.processed/transports/metaplaylist/index.js +0 -21
- package/dist/_esm5.processed/transports/metaplaylist/manifest_loader.d.ts +0 -26
- package/dist/_esm5.processed/transports/metaplaylist/manifest_loader.js +0 -41
- package/dist/_esm5.processed/transports/metaplaylist/pipelines.d.ts +0 -17
- package/dist/_esm5.processed/transports/metaplaylist/pipelines.js +0 -254
- package/dist/_esm5.processed/transports/smooth/extract_timings_infos.d.ts +0 -62
- package/dist/_esm5.processed/transports/smooth/extract_timings_infos.js +0 -78
- package/dist/_esm5.processed/transports/smooth/index.d.ts +0 -21
- package/dist/_esm5.processed/transports/smooth/index.js +0 -21
- package/dist/_esm5.processed/transports/smooth/isobmff/create_audio_init_segment.d.ts +0 -29
- package/dist/_esm5.processed/transports/smooth/isobmff/create_audio_init_segment.js +0 -52
- package/dist/_esm5.processed/transports/smooth/isobmff/create_boxes.d.ts +0 -171
- package/dist/_esm5.processed/transports/smooth/isobmff/create_boxes.js +0 -328
- package/dist/_esm5.processed/transports/smooth/isobmff/create_init_segment.d.ts +0 -33
- package/dist/_esm5.processed/transports/smooth/isobmff/create_init_segment.js +0 -65
- package/dist/_esm5.processed/transports/smooth/isobmff/create_traf_box.d.ts +0 -16
- package/dist/_esm5.processed/transports/smooth/isobmff/create_traf_box.js +0 -24
- package/dist/_esm5.processed/transports/smooth/isobmff/create_video_init_segment.d.ts +0 -29
- package/dist/_esm5.processed/transports/smooth/isobmff/create_video_init_segment.js +0 -57
- package/dist/_esm5.processed/transports/smooth/isobmff/get_aaces_header.d.ts +0 -27
- package/dist/_esm5.processed/transports/smooth/isobmff/get_aaces_header.js +0 -55
- package/dist/_esm5.processed/transports/smooth/isobmff/index.d.ts +0 -21
- package/dist/_esm5.processed/transports/smooth/isobmff/index.js +0 -21
- package/dist/_esm5.processed/transports/smooth/isobmff/parse_tfrf.d.ts +0 -24
- package/dist/_esm5.processed/transports/smooth/isobmff/parse_tfrf.js +0 -47
- package/dist/_esm5.processed/transports/smooth/isobmff/parse_tfxd.d.ts +0 -24
- package/dist/_esm5.processed/transports/smooth/isobmff/parse_tfxd.js +0 -31
- package/dist/_esm5.processed/transports/smooth/isobmff/patch_segment.d.ts +0 -23
- package/dist/_esm5.processed/transports/smooth/isobmff/patch_segment.js +0 -127
- package/dist/_esm5.processed/transports/smooth/pipelines.d.ts +0 -17
- package/dist/_esm5.processed/transports/smooth/pipelines.js +0 -440
- package/dist/_esm5.processed/transports/smooth/segment_loader.d.ts +0 -27
- package/dist/_esm5.processed/transports/smooth/segment_loader.js +0 -198
- package/dist/_esm5.processed/transports/smooth/utils.d.ts +0 -51
- package/dist/_esm5.processed/transports/smooth/utils.js +0 -86
- package/dist/_esm5.processed/transports/types.d.ts +0 -687
- package/dist/_esm5.processed/transports/types.js +0 -16
- package/dist/_esm5.processed/transports/utils/byte_range.d.ts +0 -21
- package/dist/_esm5.processed/transports/utils/byte_range.js +0 -25
- package/dist/_esm5.processed/transports/utils/call_custom_manifest_loader.d.ts +0 -19
- package/dist/_esm5.processed/transports/utils/call_custom_manifest_loader.js +0 -91
- package/dist/_esm5.processed/transports/utils/check_isobmff_integrity.d.ts +0 -23
- package/dist/_esm5.processed/transports/utils/check_isobmff_integrity.js +0 -46
- package/dist/_esm5.processed/transports/utils/find_complete_box.d.ts +0 -25
- package/dist/_esm5.processed/transports/utils/find_complete_box.js +0 -53
- package/dist/_esm5.processed/transports/utils/generate_manifest_loader.d.ts +0 -26
- package/dist/_esm5.processed/transports/utils/generate_manifest_loader.js +0 -59
- package/dist/_esm5.processed/transports/utils/get_isobmff_timing_infos.d.ts +0 -29
- package/dist/_esm5.processed/transports/utils/get_isobmff_timing_infos.js +0 -66
- package/dist/_esm5.processed/transports/utils/infer_segment_container.d.ts +0 -29
- package/dist/_esm5.processed/transports/utils/infer_segment_container.js +0 -46
- package/dist/_esm5.processed/transports/utils/parse_text_track.d.ts +0 -60
- package/dist/_esm5.processed/transports/utils/parse_text_track.js +0 -136
- package/dist/_esm5.processed/utils/are_arrays_of_numbers_equal.d.ts +0 -22
- package/dist/_esm5.processed/utils/are_arrays_of_numbers_equal.js +0 -35
- package/dist/_esm5.processed/utils/are_codecs_compatible.d.ts +0 -25
- package/dist/_esm5.processed/utils/are_codecs_compatible.js +0 -44
- package/dist/_esm5.processed/utils/array_find.d.ts +0 -23
- package/dist/_esm5.processed/utils/array_find.js +0 -35
- package/dist/_esm5.processed/utils/array_find_index.d.ts +0 -23
- package/dist/_esm5.processed/utils/array_find_index.js +0 -34
- package/dist/_esm5.processed/utils/array_includes.d.ts +0 -53
- package/dist/_esm5.processed/utils/array_includes.js +0 -83
- package/dist/_esm5.processed/utils/assert.d.ts +0 -34
- package/dist/_esm5.processed/utils/assert.js +0 -52
- package/dist/_esm5.processed/utils/assert_unreachable.d.ts +0 -40
- package/dist/_esm5.processed/utils/assert_unreachable.js +0 -43
- package/dist/_esm5.processed/utils/base64.d.ts +0 -14
- package/dist/_esm5.processed/utils/base64.js +0 -147
- package/dist/_esm5.processed/utils/byte_parsing.d.ts +0 -123
- package/dist/_esm5.processed/utils/byte_parsing.js +0 -231
- package/dist/_esm5.processed/utils/cancellable_sleep.d.ts +0 -30
- package/dist/_esm5.processed/utils/cancellable_sleep.js +0 -35
- package/dist/_esm5.processed/utils/create_cancellable_promise.d.ts +0 -26
- package/dist/_esm5.processed/utils/create_cancellable_promise.js +0 -52
- package/dist/_esm5.processed/utils/deep_merge.d.ts +0 -9
- package/dist/_esm5.processed/utils/deep_merge.js +0 -54
- package/dist/_esm5.processed/utils/event_emitter.d.ts +0 -62
- package/dist/_esm5.processed/utils/event_emitter.js +0 -103
- package/dist/_esm5.processed/utils/flat_map.d.ts +0 -22
- package/dist/_esm5.processed/utils/flat_map.js +0 -37
- package/dist/_esm5.processed/utils/get_fuzzed_delay.d.ts +0 -21
- package/dist/_esm5.processed/utils/get_fuzzed_delay.js +0 -25
- package/dist/_esm5.processed/utils/hash_buffer.d.ts +0 -32
- package/dist/_esm5.processed/utils/hash_buffer.js +0 -41
- package/dist/_esm5.processed/utils/id_generator.d.ts +0 -21
- package/dist/_esm5.processed/utils/id_generator.js +0 -33
- package/dist/_esm5.processed/utils/initialization_segment_cache.d.ts +0 -42
- package/dist/_esm5.processed/utils/initialization_segment_cache.js +0 -51
- package/dist/_esm5.processed/utils/is_non_empty_string.d.ts +0 -20
- package/dist/_esm5.processed/utils/is_non_empty_string.js +0 -22
- package/dist/_esm5.processed/utils/is_null_or_undefined.d.ts +0 -24
- package/dist/_esm5.processed/utils/is_null_or_undefined.js +0 -26
- package/dist/_esm5.processed/utils/languages/ISO_639-1_to_ISO_639-3.d.ts +0 -22
- package/dist/_esm5.processed/utils/languages/ISO_639-1_to_ISO_639-3.js +0 -205
- package/dist/_esm5.processed/utils/languages/ISO_639-2_to_ISO_639-3.d.ts +0 -22
- package/dist/_esm5.processed/utils/languages/ISO_639-2_to_ISO_639-3.js +0 -41
- package/dist/_esm5.processed/utils/languages/index.d.ts +0 -18
- package/dist/_esm5.processed/utils/languages/index.js +0 -18
- package/dist/_esm5.processed/utils/languages/normalize.d.ts +0 -68
- package/dist/_esm5.processed/utils/languages/normalize.js +0 -117
- package/dist/_esm5.processed/utils/list_to_map.d.ts +0 -22
- package/dist/_esm5.processed/utils/list_to_map.js +0 -28
- package/dist/_esm5.processed/utils/logger.d.ts +0 -46
- package/dist/_esm5.processed/utils/logger.js +0 -79
- package/dist/_esm5.processed/utils/noop.d.ts +0 -23
- package/dist/_esm5.processed/utils/noop.js +0 -25
- package/dist/_esm5.processed/utils/object_assign.d.ts +0 -22
- package/dist/_esm5.processed/utils/object_assign.js +0 -44
- package/dist/_esm5.processed/utils/object_values.d.ts +0 -30
- package/dist/_esm5.processed/utils/object_values.js +0 -26
- package/dist/_esm5.processed/utils/ranges.d.ts +0 -170
- package/dist/_esm5.processed/utils/ranges.js +0 -427
- package/dist/_esm5.processed/utils/reference.d.ts +0 -214
- package/dist/_esm5.processed/utils/reference.js +0 -295
- package/dist/_esm5.processed/utils/request/fetch.d.ts +0 -76
- package/dist/_esm5.processed/utils/request/fetch.js +0 -181
- package/dist/_esm5.processed/utils/request/index.d.ts +0 -19
- package/dist/_esm5.processed/utils/request/index.js +0 -19
- package/dist/_esm5.processed/utils/request/xhr.d.ts +0 -95
- package/dist/_esm5.processed/utils/request/xhr.js +0 -152
- package/dist/_esm5.processed/utils/resolve_url.d.ts +0 -35
- package/dist/_esm5.processed/utils/resolve_url.js +0 -117
- package/dist/_esm5.processed/utils/retry_promise_with_backoff.d.ts +0 -46
- package/dist/_esm5.processed/utils/retry_promise_with_backoff.js +0 -119
- package/dist/_esm5.processed/utils/simple_set.d.ts +0 -51
- package/dist/_esm5.processed/utils/simple_set.js +0 -57
- package/dist/_esm5.processed/utils/sleep.d.ts +0 -10
- package/dist/_esm5.processed/utils/sleep.js +0 -14
- package/dist/_esm5.processed/utils/slice_uint8array.d.ts +0 -27
- package/dist/_esm5.processed/utils/slice_uint8array.js +0 -42
- package/dist/_esm5.processed/utils/sorted_list.d.ts +0 -127
- package/dist/_esm5.processed/utils/sorted_list.js +0 -183
- package/dist/_esm5.processed/utils/starts_with.d.ts +0 -26
- package/dist/_esm5.processed/utils/starts_with.js +0 -36
- package/dist/_esm5.processed/utils/string_parsing.d.ts +0 -88
- package/dist/_esm5.processed/utils/string_parsing.js +0 -372
- package/dist/_esm5.processed/utils/task_canceller.d.ts +0 -263
- package/dist/_esm5.processed/utils/task_canceller.js +0 -325
- package/dist/_esm5.processed/utils/uniq.d.ts +0 -36
- package/dist/_esm5.processed/utils/uniq.js +0 -43
- package/dist/_esm5.processed/utils/warn_once.d.ts +0 -23
- package/dist/_esm5.processed/utils/warn_once.js +0 -31
- package/dist/_esm5.processed/utils/weak_map_memory.d.ts +0 -70
- package/dist/_esm5.processed/utils/weak_map_memory.js +0 -86
- package/dist/_esm5.processed/utils/wrapInPromise.d.ts +0 -7
- package/dist/_esm5.processed/utils/wrapInPromise.js +0 -22
- package/dist/commonjs/core/init/utils/create_stream_playback_observer.d.ts +0 -41
- package/dist/commonjs/core/init/utils/create_stream_playback_observer.js +0 -91
- package/dist/commonjs/core/segment_buffers/implementations/text/html/html_text_segment_buffer.d.ts +0 -141
- package/dist/commonjs/core/segment_buffers/implementations/text/html/html_text_segment_buffer.js +0 -407
- package/dist/commonjs/core/segment_buffers/implementations/text/html/index.d.ts +0 -21
- package/dist/commonjs/core/segment_buffers/implementations/text/html/index.js +0 -23
- package/dist/commonjs/core/segment_buffers/implementations/text/html/parsers.d.ts +0 -30
- package/dist/commonjs/core/segment_buffers/implementations/text/html/parsers.js +0 -40
- package/dist/commonjs/core/segment_buffers/implementations/text/html/text_track_cues_store.d.ts +0 -79
- package/dist/commonjs/core/segment_buffers/implementations/text/html/text_track_cues_store.js +0 -390
- package/dist/commonjs/core/segment_buffers/implementations/text/html/types.d.ts +0 -25
- package/dist/commonjs/core/segment_buffers/implementations/text/html/types.js +0 -17
- package/dist/commonjs/core/segment_buffers/implementations/text/html/update_proportional_elements.d.ts +0 -30
- package/dist/commonjs/core/segment_buffers/implementations/text/html/update_proportional_elements.js +0 -80
- package/dist/commonjs/core/segment_buffers/implementations/text/html/utils.d.ts +0 -45
- package/dist/commonjs/core/segment_buffers/implementations/text/html/utils.js +0 -131
- package/dist/commonjs/core/segment_buffers/implementations/text/native/index.d.ts +0 -17
- package/dist/commonjs/core/segment_buffers/implementations/text/native/index.js +0 -19
- package/dist/commonjs/core/segment_buffers/implementations/text/native/native_text_segment_buffer.d.ts +0 -83
- package/dist/commonjs/core/segment_buffers/implementations/text/native/native_text_segment_buffer.js +0 -273
- package/dist/commonjs/core/segment_buffers/implementations/text/native/parsers.d.ts +0 -26
- package/dist/commonjs/core/segment_buffers/implementations/text/native/parsers.js +0 -40
- package/dist/commonjs/core/stream/representation/utils/force_garbage_collection.d.ts +0 -29
- package/dist/commonjs/core/stream/representation/utils/force_garbage_collection.js +0 -179
- package/dist/commonjs/errors/assertion_error.d.ts +0 -31
- package/dist/commonjs/errors/assertion_error.js +0 -56
- package/dist/commonjs/errors/request_error.d.ts +0 -38
- package/dist/commonjs/errors/request_error.js +0 -76
- package/dist/commonjs/experimental/features/dash_wasm.js +0 -37
- package/dist/commonjs/experimental/tools/parseBIFThumbnails/index.js +0 -32
- package/dist/commonjs/utils/assert_unreachable.d.ts +0 -40
- package/dist/commonjs/utils/assert_unreachable.js +0 -46
- package/dist/commonjs/utils/initialization_segment_cache.d.ts +0 -42
- package/dist/es2017/core/init/utils/create_stream_playback_observer.d.ts +0 -41
- package/dist/es2017/core/init/utils/create_stream_playback_observer.js +0 -87
- package/dist/es2017/core/segment_buffers/implementations/text/html/html_text_segment_buffer.d.ts +0 -141
- package/dist/es2017/core/segment_buffers/implementations/text/html/html_text_segment_buffer.js +0 -383
- package/dist/es2017/core/segment_buffers/implementations/text/html/index.d.ts +0 -21
- package/dist/es2017/core/segment_buffers/implementations/text/html/index.js +0 -21
- package/dist/es2017/core/segment_buffers/implementations/text/html/parsers.d.ts +0 -30
- package/dist/es2017/core/segment_buffers/implementations/text/html/parsers.js +0 -37
- package/dist/es2017/core/segment_buffers/implementations/text/html/text_track_cues_store.d.ts +0 -79
- package/dist/es2017/core/segment_buffers/implementations/text/html/text_track_cues_store.js +0 -370
- package/dist/es2017/core/segment_buffers/implementations/text/html/types.d.ts +0 -25
- package/dist/es2017/core/segment_buffers/implementations/text/html/types.js +0 -16
- package/dist/es2017/core/segment_buffers/implementations/text/html/update_proportional_elements.d.ts +0 -30
- package/dist/es2017/core/segment_buffers/implementations/text/html/update_proportional_elements.js +0 -77
- package/dist/es2017/core/segment_buffers/implementations/text/html/utils.d.ts +0 -45
- package/dist/es2017/core/segment_buffers/implementations/text/html/utils.js +0 -123
- package/dist/es2017/core/segment_buffers/implementations/text/native/index.d.ts +0 -17
- package/dist/es2017/core/segment_buffers/implementations/text/native/index.js +0 -17
- package/dist/es2017/core/segment_buffers/implementations/text/native/native_text_segment_buffer.d.ts +0 -83
- package/dist/es2017/core/segment_buffers/implementations/text/native/native_text_segment_buffer.js +0 -251
- package/dist/es2017/core/segment_buffers/implementations/text/native/parsers.d.ts +0 -26
- package/dist/es2017/core/segment_buffers/implementations/text/native/parsers.js +0 -37
- package/dist/es2017/core/stream/representation/utils/force_garbage_collection.d.ts +0 -29
- package/dist/es2017/core/stream/representation/utils/force_garbage_collection.js +0 -91
- package/dist/es2017/errors/assertion_error.d.ts +0 -31
- package/dist/es2017/errors/assertion_error.js +0 -35
- package/dist/es2017/errors/request_error.d.ts +0 -38
- package/dist/es2017/errors/request_error.js +0 -55
- package/dist/es2017/experimental/features/dash_wasm.d.ts +0 -23
- package/dist/es2017/experimental/features/dash_wasm.js +0 -34
- package/dist/es2017/experimental/features/debug_element.d.ts +0 -8
- package/dist/es2017/experimental/features/debug_element.js +0 -10
- package/dist/es2017/experimental/tools/parseBIFThumbnails/index.js +0 -29
- package/dist/es2017/utils/assert_unreachable.d.ts +0 -40
- package/dist/es2017/utils/assert_unreachable.js +0 -43
- package/dist/es2017/utils/initialization_segment_cache.d.ts +0 -42
- package/dist/rx-player.d.ts +0 -3
- package/dist/rx-player.min.d.ts +0 -3
- package/experimental/features/index.d.ts +0 -16
- package/experimental/features/index.js +0 -16
- package/experimental/index.d.ts +0 -16
- package/experimental/index.js +0 -16
- package/experimental/tools/VideoThumbnailLoader.d.ts +0 -18
- package/experimental/tools/VideoThumbnailLoader.js +0 -18
- package/experimental/tools/createMetaplaylist.d.ts +0 -18
- package/experimental/tools/createMetaplaylist.js +0 -18
- package/experimental/tools/index.d.ts +0 -16
- package/experimental/tools/index.js +0 -16
- package/experimental/tools/mediaCapabilitiesProber.d.ts +0 -18
- package/experimental/tools/mediaCapabilitiesProber.js +0 -18
- package/experimental/tools/parseBIFThumbnails.d.ts +0 -18
- package/experimental/tools/parseBIFThumbnails.js +0 -18
- package/features/index.d.ts +0 -16
- package/features/index.js +0 -16
- package/jest.config.js +0 -33
- package/logger/index.d.ts +0 -17
- package/logger/index.js +0 -17
- package/manifest.mpd +0 -149
- package/minimal/index.d.ts +0 -17
- package/minimal/index.js +0 -17
- package/scripts/README.md +0 -11
- package/scripts/build/generate_build.mjs +0 -194
- package/scripts/build/templates/experimental/features/index.d.ts +0 -16
- package/scripts/build/templates/experimental/features/index.js +0 -16
- package/scripts/build/templates/experimental/index.d.ts +0 -16
- package/scripts/build/templates/experimental/index.js +0 -16
- package/scripts/build/templates/experimental/tools/VideoThumbnailLoader.d.ts +0 -18
- package/scripts/build/templates/experimental/tools/VideoThumbnailLoader.js +0 -18
- package/scripts/build/templates/experimental/tools/createMetaplaylist.d.ts +0 -18
- package/scripts/build/templates/experimental/tools/createMetaplaylist.js +0 -18
- package/scripts/build/templates/experimental/tools/index.d.ts +0 -16
- package/scripts/build/templates/experimental/tools/index.js +0 -16
- package/scripts/build/templates/experimental/tools/mediaCapabilitiesProber.d.ts +0 -18
- package/scripts/build/templates/experimental/tools/mediaCapabilitiesProber.js +0 -18
- package/scripts/build/templates/experimental/tools/parseBIFThumbnails.d.ts +0 -18
- package/scripts/build/templates/experimental/tools/parseBIFThumbnails.js +0 -18
- package/scripts/build/templates/features/index.d.ts +0 -16
- package/scripts/build/templates/features/index.js +0 -16
- package/scripts/build/templates/logger/index.d.ts +0 -17
- package/scripts/build/templates/logger/index.js +0 -17
- package/scripts/build/templates/minimal/index.d.ts +0 -17
- package/scripts/build/templates/minimal/index.js +0 -17
- package/scripts/build/templates/tools/TextTrackRenderer.d.ts +0 -18
- package/scripts/build/templates/tools/TextTrackRenderer.js +0 -18
- package/scripts/build/templates/tools/index.d.ts +0 -16
- package/scripts/build/templates/tools/index.js +0 -16
- package/scripts/build/templates/tools/string-utils.d.ts +0 -18
- package/scripts/build/templates/tools/string-utils.js +0 -18
- package/scripts/build/templates/types/index.d.ts +0 -16
- package/scripts/build/templates/types/index.js +0 -15
- package/scripts/build_demo.mjs +0 -130
- package/scripts/canal-release.patch +0 -78
- package/scripts/check_nodejs_import_compatibility.js +0 -60
- package/scripts/deploy_new_demo +0 -123
- package/scripts/generate_certificate +0 -19
- package/scripts/generate_demo_list.mjs +0 -110
- package/scripts/generate_documentation_list.mjs +0 -114
- package/scripts/generate_standalone_demo.mjs +0 -109
- package/scripts/launch_static_server.mjs +0 -163
- package/scripts/list-npm-scripts.mjs +0 -207
- package/scripts/make-dev-releases +0 -65
- package/scripts/run_standalone_demo.mjs +0 -32
- package/scripts/start_demo_web_server.mjs +0 -59
- package/scripts/update-version +0 -45
- package/scripts/update_gh-pages_demo +0 -132
- package/scripts/update_gh-pages_doc +0 -106
- package/scripts/utils/display_webpack_errors.mjs +0 -33
- package/scripts/utils/get_human_readable_hours.mjs +0 -12
- package/scripts/utils/project_root_directory.mjs +0 -4
- package/scripts/wasm-strip.mjs +0 -364
- package/sonar-project.properties +0 -7
- package/src/README.md +0 -137
- package/src/compat/README.md +0 -29
- package/src/compat/__tests__/add_text_track.test.ts +0 -131
- package/src/compat/__tests__/browser_compatibility_types.test.ts +0 -131
- package/src/compat/__tests__/browser_version.test.ts +0 -84
- package/src/compat/__tests__/can_patch_isobmff.test.ts +0 -50
- package/src/compat/__tests__/can_rely_on_video_visibility_and_size.test.ts +0 -78
- package/src/compat/__tests__/can_reuse_media_keys.test.ts +0 -31
- package/src/compat/__tests__/change_source_buffer_type.test.ts +0 -60
- package/src/compat/__tests__/clear_element_src.test.ts +0 -252
- package/src/compat/__tests__/enable_audio_track.test.ts +0 -341
- package/src/compat/__tests__/is_codec_supported.test.ts +0 -78
- package/src/compat/__tests__/is_seeking_approximate.test.ts +0 -48
- package/src/compat/__tests__/is_vtt_cue.test.ts +0 -75
- package/src/compat/__tests__/make_vtt_cue.test.ts +0 -99
- package/src/compat/__tests__/patch_webkit_source_buffer.test.ts +0 -145
- package/src/compat/__tests__/remove_cue.test.ts +0 -229
- package/src/compat/__tests__/should_favour_custom_safari_EME.test.ts +0 -130
- package/src/compat/__tests__/should_reload_media_source_on_decipherability_update.test.ts +0 -50
- package/src/compat/__tests__/should_renew_media_key_system_access.test.ts +0 -55
- package/src/compat/__tests__/should_unset_media_keys.test.ts +0 -53
- package/src/compat/__tests__/should_validate_metadata.test.ts +0 -53
- package/src/compat/__tests__/should_wait_for_data_before_loaded.test.ts +0 -121
- package/src/compat/__tests__/should_wait_for_have_enough_data.test.ts +0 -36
- package/src/compat/add_class_name.ts +0 -41
- package/src/compat/add_text_track.ts +0 -54
- package/src/compat/browser_compatibility_types.ts +0 -208
- package/src/compat/browser_detection.ts +0 -155
- package/src/compat/browser_version.ts +0 -44
- package/src/compat/can_patch_isobmff.ts +0 -30
- package/src/compat/can_rely_on_video_visibility_and_size.ts +0 -52
- package/src/compat/can_reuse_media_keys.ts +0 -20
- package/src/compat/change_source_buffer_type.ts +0 -66
- package/src/compat/clear_element_src.ts +0 -55
- package/src/compat/eme/close_session.ts +0 -111
- package/src/compat/eme/constants.ts +0 -21
- package/src/compat/eme/custom_key_system_access.ts +0 -67
- package/src/compat/eme/custom_media_keys/ie11_media_keys.ts +0 -186
- package/src/compat/eme/custom_media_keys/index.ts +0 -28
- package/src/compat/eme/custom_media_keys/moz_media_keys_constructor.ts +0 -86
- package/src/compat/eme/custom_media_keys/ms_media_keys_constructor.ts +0 -67
- package/src/compat/eme/custom_media_keys/old_webkit_media_keys.ts +0 -235
- package/src/compat/eme/custom_media_keys/types.ts +0 -67
- package/src/compat/eme/custom_media_keys/webkit_media_keys.ts +0 -308
- package/src/compat/eme/custom_media_keys/webkit_media_keys_constructor.ts +0 -48
- package/src/compat/eme/eme-api-implementation.ts +0 -319
- package/src/compat/eme/generate_key_request.ts +0 -162
- package/src/compat/eme/get_init_data.ts +0 -159
- package/src/compat/eme/get_uuid_kid_from_keystatus_kid.ts +0 -37
- package/src/compat/eme/get_webkit_fairplay_initdata.ts +0 -75
- package/src/compat/eme/index.ts +0 -47
- package/src/compat/eme/load_session.ts +0 -67
- package/src/compat/enable_audio_track.ts +0 -33
- package/src/compat/event_listeners.ts +0 -589
- package/src/compat/get_start_date.ts +0 -48
- package/src/compat/global_scope.ts +0 -18
- package/src/compat/has_issues_with_high_media_source_duration.ts +0 -27
- package/src/compat/index.ts +0 -77
- package/src/compat/is_codec_supported.ts +0 -62
- package/src/compat/is_debug_mode_enabled.ts +0 -12
- package/src/compat/is_node.ts +0 -21
- package/src/compat/is_seeking_approximate.ts +0 -32
- package/src/compat/is_vtt_cue.ts +0 -31
- package/src/compat/is_worker.ts +0 -9
- package/src/compat/make_vtt_cue.ts +0 -52
- package/src/compat/on_height_width_change.ts +0 -114
- package/src/compat/patch_webkit_source_buffer.ts +0 -90
- package/src/compat/remove_cue.ts +0 -64
- package/src/compat/should_favour_custom_safari_EME.ts +0 -34
- package/src/compat/should_reload_media_source_on_decipherability_update.ts +0 -32
- package/src/compat/should_renew_media_key_system_access.ts +0 -26
- package/src/compat/should_unset_media_keys.ts +0 -27
- package/src/compat/should_validate_metadata.ts +0 -27
- package/src/compat/should_wait_for_data_before_loaded.ts +0 -35
- package/src/compat/should_wait_for_have_enough_data.ts +0 -17
- package/src/config.ts +0 -33
- package/src/core/README.md +0 -56
- package/src/core/adaptive/README.md +0 -147
- package/src/core/adaptive/__tests__/buffer_based_chooser.test.ts +0 -548
- package/src/core/adaptive/adaptive_representation_selector.ts +0 -800
- package/src/core/adaptive/buffer_based_chooser.ts +0 -265
- package/src/core/adaptive/guess_based_chooser.ts +0 -310
- package/src/core/adaptive/index.ts +0 -45
- package/src/core/adaptive/network_analyzer.ts +0 -421
- package/src/core/adaptive/utils/__tests__/bandwith_estimator.test.ts +0 -134
- package/src/core/adaptive/utils/__tests__/ewma.test.ts +0 -79
- package/src/core/adaptive/utils/__tests__/filter_by_bitrate.test.ts +0 -56
- package/src/core/adaptive/utils/__tests__/filter_by_resolution.test.ts +0 -82
- package/src/core/adaptive/utils/__tests__/get_buffer_levels.test.ts +0 -48
- package/src/core/adaptive/utils/__tests__/select_optimal_representation.test.ts +0 -67
- package/src/core/adaptive/utils/bandwidth_estimator.ts +0 -88
- package/src/core/adaptive/utils/ewma.ts +0 -59
- package/src/core/adaptive/utils/filter_by_bitrate.ts +0 -46
- package/src/core/adaptive/utils/filter_by_resolution.ts +0 -63
- package/src/core/adaptive/utils/get_buffer_levels.ts +0 -50
- package/src/core/adaptive/utils/last_estimate_storage.ts +0 -79
- package/src/core/adaptive/utils/pending_requests_store.ts +0 -157
- package/src/core/adaptive/utils/representation_score_calculator.ts +0 -168
- package/src/core/adaptive/utils/select_optimal_representation.ts +0 -43
- package/src/core/api/README.md +0 -36
- package/src/core/api/__tests__/option_utils.test.ts +0 -996
- package/src/core/api/__tests__/public_api.test.ts +0 -470
- package/src/core/api/__tests__/utils.test.ts +0 -195
- package/src/core/api/debug/buffer_graph.ts +0 -244
- package/src/core/api/debug/buffer_size_graph.ts +0 -132
- package/src/core/api/debug/constants.ts +0 -2
- package/src/core/api/debug/index.ts +0 -3
- package/src/core/api/debug/modules/general_info.ts +0 -189
- package/src/core/api/debug/modules/segment_buffer_content.ts +0 -155
- package/src/core/api/debug/modules/segment_buffer_size.ts +0 -48
- package/src/core/api/debug/render.ts +0 -40
- package/src/core/api/debug/utils.ts +0 -103
- package/src/core/api/index.ts +0 -28
- package/src/core/api/option_utils.ts +0 -438
- package/src/core/api/playback_observer.ts +0 -1221
- package/src/core/api/public_api.ts +0 -2908
- package/src/core/api/track_management/README.md +0 -15
- package/src/core/api/track_management/__tests__/media_element_tracks_store.test.ts +0 -184
- package/src/core/api/track_management/index.ts +0 -20
- package/src/core/api/track_management/media_element_tracks_store.ts +0 -806
- package/src/core/api/track_management/track_dispatcher.ts +0 -267
- package/src/core/api/track_management/tracks_store.ts +0 -1380
- package/src/core/api/utils.ts +0 -228
- package/src/core/decrypt/README.md +0 -22
- package/src/core/decrypt/__tests__/__global__/get_license.test.ts +0 -422
- package/src/core/decrypt/__tests__/__global__/init_data.test.ts +0 -677
- package/src/core/decrypt/__tests__/__global__/media_key_system_access.test.ts +0 -644
- package/src/core/decrypt/__tests__/__global__/media_keys.test.ts +0 -343
- package/src/core/decrypt/__tests__/__global__/server_certificate.test.ts +0 -264
- package/src/core/decrypt/__tests__/__global__/utils.ts +0 -491
- package/src/core/decrypt/attach_media_keys.ts +0 -118
- package/src/core/decrypt/clear_on_stop.ts +0 -47
- package/src/core/decrypt/content_decryptor.ts +0 -1246
- package/src/core/decrypt/create_or_load_session.ts +0 -133
- package/src/core/decrypt/create_session.ts +0 -214
- package/src/core/decrypt/dispose_decryption_resources.ts +0 -54
- package/src/core/decrypt/find_key_system.ts +0 -386
- package/src/core/decrypt/get_key_system_configuration.ts +0 -36
- package/src/core/decrypt/get_media_keys.ts +0 -142
- package/src/core/decrypt/index.ts +0 -33
- package/src/core/decrypt/init_media_keys.ts +0 -51
- package/src/core/decrypt/session_events_listener.ts +0 -343
- package/src/core/decrypt/set_server_certificate.ts +0 -105
- package/src/core/decrypt/types.ts +0 -404
- package/src/core/decrypt/utils/__tests__/are_init_values_compatible.test.ts +0 -261
- package/src/core/decrypt/utils/__tests__/clean_old_loaded_sessions.test.ts +0 -158
- package/src/core/decrypt/utils/__tests__/clean_old_stored_persistent_info.test.ts +0 -133
- package/src/core/decrypt/utils/are_init_values_compatible.ts +0 -140
- package/src/core/decrypt/utils/check_key_statuses.ts +0 -229
- package/src/core/decrypt/utils/clean_old_loaded_sessions.ts +0 -45
- package/src/core/decrypt/utils/clean_old_stored_persistent_info.ts +0 -48
- package/src/core/decrypt/utils/get_drm_system_id.ts +0 -42
- package/src/core/decrypt/utils/init_data_values_container.ts +0 -119
- package/src/core/decrypt/utils/is_session_usable.ts +0 -62
- package/src/core/decrypt/utils/key_id_comparison.ts +0 -57
- package/src/core/decrypt/utils/key_session_record.ts +0 -174
- package/src/core/decrypt/utils/loaded_sessions_store.ts +0 -505
- package/src/core/decrypt/utils/media_keys_infos_store.ts +0 -85
- package/src/core/decrypt/utils/persistent_sessions_store.ts +0 -360
- package/src/core/decrypt/utils/serializable_bytes.ts +0 -59
- package/src/core/decrypt/utils/server_certificate_store.ts +0 -133
- package/src/core/fetchers/README.md +0 -84
- package/src/core/fetchers/cdn_prioritizer.ts +0 -207
- package/src/core/fetchers/index.ts +0 -38
- package/src/core/fetchers/manifest/index.ts +0 -28
- package/src/core/fetchers/manifest/manifest_fetcher.ts +0 -792
- package/src/core/fetchers/segment/__tests__/task_prioritizer.test.ts +0 -763
- package/src/core/fetchers/segment/index.ts +0 -28
- package/src/core/fetchers/segment/prioritized_segment_fetcher.ts +0 -113
- package/src/core/fetchers/segment/segment_fetcher.ts +0 -499
- package/src/core/fetchers/segment/segment_fetcher_creator.ts +0 -128
- package/src/core/fetchers/segment/task_prioritizer.ts +0 -455
- package/src/core/fetchers/utils/error_selector.ts +0 -38
- package/src/core/fetchers/utils/schedule_request.ts +0 -442
- package/src/core/init/README.md +0 -81
- package/src/core/init/directfile_content_initializer.ts +0 -310
- package/src/core/init/index.ts +0 -22
- package/src/core/init/media_source_content_initializer.ts +0 -891
- package/src/core/init/types.ts +0 -247
- package/src/core/init/utils/__tests__/are_same_stream_events.test.ts +0 -84
- package/src/core/init/utils/__tests__/refresh_scheduled_events_list.test.ts +0 -94
- package/src/core/init/utils/content_time_boundaries_observer.ts +0 -646
- package/src/core/init/utils/create_media_source.ts +0 -139
- package/src/core/init/utils/create_stream_playback_observer.ts +0 -131
- package/src/core/init/utils/end_of_stream.ts +0 -108
- package/src/core/init/utils/get_initial_time.ts +0 -167
- package/src/core/init/utils/get_loaded_reference.ts +0 -80
- package/src/core/init/utils/initial_seek_and_play.ts +0 -215
- package/src/core/init/utils/initialize_content_decryption.ts +0 -172
- package/src/core/init/utils/media_source_duration_updater.ts +0 -349
- package/src/core/init/utils/rebuffering_controller.ts +0 -711
- package/src/core/init/utils/stream_events_emitter/are_same_stream_events.ts +0 -42
- package/src/core/init/utils/stream_events_emitter/index.ts +0 -22
- package/src/core/init/utils/stream_events_emitter/refresh_scheduled_events_list.ts +0 -74
- package/src/core/init/utils/stream_events_emitter/stream_events_emitter.ts +0 -255
- package/src/core/init/utils/stream_events_emitter/types.ts +0 -46
- package/src/core/init/utils/throw_on_media_error.ts +0 -74
- package/src/core/segment_buffers/README.md +0 -219
- package/src/core/segment_buffers/garbage_collector.ts +0 -177
- package/src/core/segment_buffers/implementations/audio_video/audio_video_segment_buffer.ts +0 -650
- package/src/core/segment_buffers/implementations/audio_video/index.ts +0 -18
- package/src/core/segment_buffers/implementations/index.ts +0 -20
- package/src/core/segment_buffers/implementations/text/html/__tests__/utils.test.ts +0 -343
- package/src/core/segment_buffers/implementations/text/html/html_text_segment_buffer.ts +0 -527
- package/src/core/segment_buffers/implementations/text/html/index.ts +0 -24
- package/src/core/segment_buffers/implementations/text/html/parsers.ts +0 -49
- package/src/core/segment_buffers/implementations/text/html/text_track_cues_store.ts +0 -391
- package/src/core/segment_buffers/implementations/text/html/types.ts +0 -23
- package/src/core/segment_buffers/implementations/text/html/update_proportional_elements.ts +0 -93
- package/src/core/segment_buffers/implementations/text/html/utils.ts +0 -139
- package/src/core/segment_buffers/implementations/text/native/index.ts +0 -19
- package/src/core/segment_buffers/implementations/text/native/native_text_segment_buffer.ts +0 -335
- package/src/core/segment_buffers/implementations/text/native/parsers.ts +0 -47
- package/src/core/segment_buffers/implementations/types.ts +0 -380
- package/src/core/segment_buffers/implementations/utils/manual_time_ranges.ts +0 -80
- package/src/core/segment_buffers/index.ts +0 -72
- package/src/core/segment_buffers/inventory/buffered_history.ts +0 -132
- package/src/core/segment_buffers/inventory/index.ts +0 -34
- package/src/core/segment_buffers/inventory/segment_inventory.ts +0 -1106
- package/src/core/segment_buffers/inventory/types.ts +0 -35
- package/src/core/segment_buffers/inventory/utils.ts +0 -61
- package/src/core/segment_buffers/segment_buffers_store.ts +0 -369
- package/src/core/stream/README.md +0 -59
- package/src/core/stream/adaptation/adaptation_stream.ts +0 -438
- package/src/core/stream/adaptation/get_representations_switch_strategy.ts +0 -203
- package/src/core/stream/adaptation/index.ts +0 -20
- package/src/core/stream/adaptation/types.ts +0 -229
- package/src/core/stream/index.ts +0 -40
- package/src/core/stream/orchestrator/README.md +0 -346
- package/src/core/stream/orchestrator/get_time_ranges_for_content.ts +0 -70
- package/src/core/stream/orchestrator/index.ts +0 -30
- package/src/core/stream/orchestrator/stream_orchestrator.ts +0 -726
- package/src/core/stream/period/index.ts +0 -20
- package/src/core/stream/period/period_stream.ts +0 -501
- package/src/core/stream/period/types.ts +0 -125
- package/src/core/stream/period/utils/get_adaptation_switch_strategy.ts +0 -248
- package/src/core/stream/representation/README.md +0 -16
- package/src/core/stream/representation/index.ts +0 -20
- package/src/core/stream/representation/representation_stream.ts +0 -480
- package/src/core/stream/representation/types.ts +0 -308
- package/src/core/stream/representation/utils/append_segment_to_buffer.ts +0 -77
- package/src/core/stream/representation/utils/check_for_discontinuity.ts +0 -305
- package/src/core/stream/representation/utils/downloading_queue.ts +0 -603
- package/src/core/stream/representation/utils/force_garbage_collection.ts +0 -113
- package/src/core/stream/representation/utils/get_buffer_status.ts +0 -321
- package/src/core/stream/representation/utils/get_needed_segments.ts +0 -617
- package/src/core/stream/representation/utils/get_segment_priority.ts +0 -43
- package/src/core/stream/representation/utils/push_init_segment.ts +0 -84
- package/src/core/stream/representation/utils/push_media_segment.ts +0 -113
- package/src/default_config.ts +0 -1200
- package/src/errors/README.md +0 -6
- package/src/errors/__tests__/assertion_error.test.ts +0 -26
- package/src/errors/__tests__/encrypted_media_error.test.ts +0 -45
- package/src/errors/__tests__/error_message.test.ts +0 -23
- package/src/errors/__tests__/format_error.test.ts +0 -62
- package/src/errors/__tests__/is_known_error.test.ts +0 -61
- package/src/errors/__tests__/media_error.test.ts +0 -55
- package/src/errors/__tests__/network_error.test.ts +0 -72
- package/src/errors/__tests__/other_error.test.ts +0 -53
- package/src/errors/__tests__/request_error.test.ts +0 -29
- package/src/errors/assertion_error.ts +0 -40
- package/src/errors/custom_loader_error.ts +0 -52
- package/src/errors/encrypted_media_error.ts +0 -73
- package/src/errors/error_codes.ts +0 -149
- package/src/errors/error_message.ts +0 -25
- package/src/errors/format_error.ts +0 -39
- package/src/errors/index.ts +0 -52
- package/src/errors/is_known_error.ts +0 -35
- package/src/errors/media_error.ts +0 -124
- package/src/errors/network_error.ts +0 -72
- package/src/errors/other_error.ts +0 -50
- package/src/errors/request_error.ts +0 -70
- package/src/experimental/README.md +0 -20
- package/src/experimental/features/__tests__/dash_wasm.test.ts +0 -44
- package/src/experimental/features/__tests__/debug_element.test.ts +0 -12
- package/src/experimental/features/__tests__/index.test.ts +0 -19
- package/src/experimental/features/__tests__/local.test.ts +0 -35
- package/src/experimental/features/__tests__/metaplaylist.test.ts +0 -35
- package/src/experimental/features/dash_wasm.ts +0 -41
- package/src/experimental/features/debug_element.ts +0 -13
- package/src/experimental/features/index.ts +0 -20
- package/src/experimental/features/local.ts +0 -28
- package/src/experimental/features/metaplaylist.ts +0 -28
- package/src/experimental/index.ts +0 -5
- package/src/experimental/tools/VideoThumbnailLoader/features/dash.ts +0 -23
- package/src/experimental/tools/VideoThumbnailLoader/features/metaplaylist.ts +0 -23
- package/src/experimental/tools/VideoThumbnailLoader/index.ts +0 -25
- package/src/experimental/tools/VideoThumbnailLoader/load_and_push_segment.ts +0 -77
- package/src/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.ts +0 -75
- package/src/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.ts +0 -54
- package/src/experimental/tools/VideoThumbnailLoader/types.ts +0 -39
- package/src/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.ts +0 -425
- package/src/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.ts +0 -34
- package/src/experimental/tools/createMetaplaylist/get_duration_from_manifest.ts +0 -143
- package/src/experimental/tools/createMetaplaylist/index.ts +0 -72
- package/src/experimental/tools/index.ts +0 -27
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/capabilities.test.ts +0 -37
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/DRMInfos.test.ts +0 -140
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/HDCPPolicy.test.ts +0 -153
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/decodingInfos.test.ts +0 -405
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/defaultCodecFinder.test.ts +0 -136
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/mediaContentType.test.ts +0 -294
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/mediaDisplayInfos.test.ts +0 -190
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/utils.test.ts +0 -361
- package/src/experimental/tools/mediaCapabilitiesProber/api/index.ts +0 -184
- package/src/experimental/tools/mediaCapabilitiesProber/api/probeMediaConfiguration.ts +0 -136
- package/src/experimental/tools/mediaCapabilitiesProber/capabilities.ts +0 -169
- package/src/experimental/tools/mediaCapabilitiesProber/index.ts +0 -18
- package/src/experimental/tools/mediaCapabilitiesProber/log.ts +0 -21
- package/src/experimental/tools/mediaCapabilitiesProber/probers/DRMInfos.ts +0 -67
- package/src/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.ts +0 -89
- package/src/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.ts +0 -100
- package/src/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.ts +0 -66
- package/src/experimental/tools/mediaCapabilitiesProber/probers/index.ts +0 -44
- package/src/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.ts +0 -66
- package/src/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/format.ts +0 -100
- package/src/experimental/tools/mediaCapabilitiesProber/probers/mediaContentTypeWithFeatures/index.ts +0 -106
- package/src/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.ts +0 -55
- package/src/experimental/tools/mediaCapabilitiesProber/types.ts +0 -75
- package/src/experimental/tools/mediaCapabilitiesProber/utils.ts +0 -107
- package/src/experimental/tools/parseBIFThumbnails/index.ts +0 -39
- package/src/features/README.md +0 -11
- package/src/features/__tests__/add_features.test.ts +0 -69
- package/src/features/add_features.ts +0 -37
- package/src/features/features_object.ts +0 -35
- package/src/features/index.ts +0 -40
- package/src/features/list/__tests__/dash.test.ts +0 -41
- package/src/features/list/__tests__/directfile.test.ts +0 -35
- package/src/features/list/__tests__/eme.test.ts +0 -28
- package/src/features/list/__tests__/html_sami_parser.test.ts +0 -33
- package/src/features/list/__tests__/html_srt_parser.test.ts +0 -33
- package/src/features/list/__tests__/html_text_buffer.test.ts +0 -29
- package/src/features/list/__tests__/html_ttml_parser.test.ts +0 -33
- package/src/features/list/__tests__/html_vtt_parser.test.ts +0 -33
- package/src/features/list/__tests__/index.test.ts +0 -49
- package/src/features/list/__tests__/native_sami_parser.test.ts +0 -33
- package/src/features/list/__tests__/native_srt_parser.test.ts +0 -33
- package/src/features/list/__tests__/native_text_buffer.test.ts +0 -29
- package/src/features/list/__tests__/native_ttml_parser.test.ts +0 -33
- package/src/features/list/__tests__/native_vtt_parser.test.ts +0 -33
- package/src/features/list/__tests__/smooth.test.ts +0 -36
- package/src/features/list/dash.ts +0 -36
- package/src/features/list/directfile.ts +0 -33
- package/src/features/list/eme.ts +0 -29
- package/src/features/list/html_sami_parser.ts +0 -31
- package/src/features/list/html_srt_parser.ts +0 -31
- package/src/features/list/html_text_buffer.ts +0 -29
- package/src/features/list/html_ttml_parser.ts +0 -31
- package/src/features/list/html_vtt_parser.ts +0 -31
- package/src/features/list/index.ts +0 -30
- package/src/features/list/native_sami_parser.ts +0 -32
- package/src/features/list/native_srt_parser.ts +0 -32
- package/src/features/list/native_text_buffer.ts +0 -30
- package/src/features/list/native_ttml_parser.ts +0 -32
- package/src/features/list/native_vtt_parser.ts +0 -32
- package/src/features/list/smooth.ts +0 -32
- package/src/features/types.ts +0 -156
- package/src/globals.dev.d.ts +0 -15
- package/src/globals.prod.d.ts +0 -15
- package/src/index.ts +0 -60
- package/src/log.ts +0 -22
- package/src/manifest/README.md +0 -55
- package/src/manifest/__tests__/adaptation.test.ts +0 -448
- package/src/manifest/__tests__/manifest.test.ts +0 -487
- package/src/manifest/__tests__/period.test.ts +0 -799
- package/src/manifest/__tests__/representation.test.ts +0 -297
- package/src/manifest/__tests__/update_period_in_place.test.ts +0 -1074
- package/src/manifest/__tests__/update_periods.test.ts +0 -845
- package/src/manifest/adaptation.ts +0 -308
- package/src/manifest/index.ts +0 -59
- package/src/manifest/manifest.ts +0 -650
- package/src/manifest/period.ts +0 -188
- package/src/manifest/representation.ts +0 -479
- package/src/manifest/representation_index/__tests__/static.test.ts +0 -74
- package/src/manifest/representation_index/index.ts +0 -29
- package/src/manifest/representation_index/static.ts +0 -166
- package/src/manifest/representation_index/types.ts +0 -458
- package/src/manifest/types.ts +0 -30
- package/src/manifest/update_period_in_place.ts +0 -142
- package/src/manifest/update_periods.ts +0 -201
- package/src/manifest/utils.ts +0 -60
- package/src/minimal.ts +0 -34
- package/src/parsers/README.md +0 -12
- package/src/parsers/containers/isobmff/constants.ts +0 -24
- package/src/parsers/containers/isobmff/create_box.ts +0 -81
- package/src/parsers/containers/isobmff/drm/index.ts +0 -17
- package/src/parsers/containers/isobmff/drm/playready.ts +0 -45
- package/src/parsers/containers/isobmff/get_box.ts +0 -278
- package/src/parsers/containers/isobmff/index.ts +0 -51
- package/src/parsers/containers/isobmff/read.ts +0 -105
- package/src/parsers/containers/isobmff/take_pssh_out.ts +0 -101
- package/src/parsers/containers/isobmff/utils.ts +0 -555
- package/src/parsers/containers/matroska/index.ts +0 -21
- package/src/parsers/containers/matroska/utils.ts +0 -313
- package/src/parsers/images/bif.ts +0 -128
- package/src/parsers/manifest/dash/common/__tests__/attach_trickmode_track.test.ts +0 -65
- package/src/parsers/manifest/dash/common/__tests__/convert_supplemental_codecs.test.ts +0 -37
- package/src/parsers/manifest/dash/common/__tests__/flatten_overlapping_period.test.ts +0 -162
- package/src/parsers/manifest/dash/common/__tests__/get_clock_offset.test.ts +0 -66
- package/src/parsers/manifest/dash/common/__tests__/get_http_utc-timing_url.test.ts +0 -165
- package/src/parsers/manifest/dash/common/__tests__/get_periods_time_infos.test.ts +0 -118
- package/src/parsers/manifest/dash/common/__tests__/manifest_bounds_calculator.test.ts +0 -290
- package/src/parsers/manifest/dash/common/__tests__/parse_availability_start_time.test.ts +0 -63
- package/src/parsers/manifest/dash/common/attach_trickmode_track.ts +0 -55
- package/src/parsers/manifest/dash/common/convert_supplemental_codecs.ts +0 -32
- package/src/parsers/manifest/dash/common/flatten_overlapping_periods.ts +0 -87
- package/src/parsers/manifest/dash/common/get_clock_offset.ts +0 -42
- package/src/parsers/manifest/dash/common/get_hdr_information.ts +0 -94
- package/src/parsers/manifest/dash/common/get_http_utc-timing_url.ts +0 -46
- package/src/parsers/manifest/dash/common/get_minimum_and_maximum_positions.ts +0 -39
- package/src/parsers/manifest/dash/common/get_periods_time_infos.ts +0 -91
- package/src/parsers/manifest/dash/common/index.ts +0 -40
- package/src/parsers/manifest/dash/common/indexes/__tests__/tokens.test.ts +0 -60
- package/src/parsers/manifest/dash/common/indexes/base.ts +0 -435
- package/src/parsers/manifest/dash/common/indexes/get_init_segment.ts +0 -55
- package/src/parsers/manifest/dash/common/indexes/get_segments_from_timeline.ts +0 -148
- package/src/parsers/manifest/dash/common/indexes/index.ts +0 -39
- package/src/parsers/manifest/dash/common/indexes/list.ts +0 -346
- package/src/parsers/manifest/dash/common/indexes/template.ts +0 -661
- package/src/parsers/manifest/dash/common/indexes/timeline/__tests__/parse_s_element.test.ts +0 -115
- package/src/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.ts +0 -54
- package/src/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.ts +0 -102
- package/src/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.ts +0 -66
- package/src/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.ts +0 -153
- package/src/parsers/manifest/dash/common/indexes/timeline/index.ts +0 -21
- package/src/parsers/manifest/dash/common/indexes/timeline/parse_s_element.ts +0 -72
- package/src/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.ts +0 -1060
- package/src/parsers/manifest/dash/common/indexes/tokens.ts +0 -127
- package/src/parsers/manifest/dash/common/indexes/utils.ts +0 -32
- package/src/parsers/manifest/dash/common/infer_adaptation_type.ts +0 -136
- package/src/parsers/manifest/dash/common/manifest_bounds_calculator.ts +0 -171
- package/src/parsers/manifest/dash/common/parse_adaptation_sets.ts +0 -568
- package/src/parsers/manifest/dash/common/parse_availability_start_time.ts +0 -35
- package/src/parsers/manifest/dash/common/parse_mpd.ts +0 -400
- package/src/parsers/manifest/dash/common/parse_periods.ts +0 -369
- package/src/parsers/manifest/dash/common/parse_representation_index.ts +0 -199
- package/src/parsers/manifest/dash/common/parse_representations.ts +0 -352
- package/src/parsers/manifest/dash/common/resolve_base_urls.ts +0 -58
- package/src/parsers/manifest/dash/index.ts +0 -22
- package/src/parsers/manifest/dash/js-parser/__tests__/parse_from_document.test.ts +0 -43
- package/src/parsers/manifest/dash/js-parser/index.ts +0 -18
- package/src/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.ts +0 -387
- package/src/parsers/manifest/dash/js-parser/node_parsers/BaseURL.ts +0 -35
- package/src/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.ts +0 -49
- package/src/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.ts +0 -94
- package/src/parsers/manifest/dash/js-parser/node_parsers/EventStream.ts +0 -117
- package/src/parsers/manifest/dash/js-parser/node_parsers/Initialization.ts +0 -48
- package/src/parsers/manifest/dash/js-parser/node_parsers/MPD.ts +0 -180
- package/src/parsers/manifest/dash/js-parser/node_parsers/Period.ts +0 -152
- package/src/parsers/manifest/dash/js-parser/node_parsers/Representation.ts +0 -237
- package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.ts +0 -112
- package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentList.ts +0 -50
- package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.ts +0 -98
- package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.ts +0 -35
- package/src/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.ts +0 -63
- package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/AdaptationSet.test.ts +0 -573
- package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/ContentComponent.test.ts +0 -67
- package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/ContentProtection.test.ts +0 -223
- package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/Initialization.test.ts +0 -139
- package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/SegmentTimeline.test.ts +0 -119
- package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/SegmentURL.test.ts +0 -205
- package/src/parsers/manifest/dash/js-parser/node_parsers/__tests__/utils.test.ts +0 -218
- package/src/parsers/manifest/dash/js-parser/node_parsers/utils.ts +0 -404
- package/src/parsers/manifest/dash/js-parser/parse_from_document.ts +0 -129
- package/src/parsers/manifest/dash/node_parser_types.ts +0 -431
- package/src/parsers/manifest/dash/parsers_types.ts +0 -91
- package/src/parsers/manifest/dash/wasm-parser/Cargo.lock +0 -25
- package/src/parsers/manifest/dash/wasm-parser/Cargo.toml +0 -16
- package/src/parsers/manifest/dash/wasm-parser/README.md +0 -267
- package/src/parsers/manifest/dash/wasm-parser/index.ts +0 -21
- package/src/parsers/manifest/dash/wasm-parser/rs/errors.rs +0 -28
- package/src/parsers/manifest/dash/wasm-parser/rs/events.rs +0 -383
- package/src/parsers/manifest/dash/wasm-parser/rs/lib.rs +0 -85
- package/src/parsers/manifest/dash/wasm-parser/rs/processor/attributes.rs +0 -414
- package/src/parsers/manifest/dash/wasm-parser/rs/processor/mod.rs +0 -472
- package/src/parsers/manifest/dash/wasm-parser/rs/processor/s_element.rs +0 -72
- package/src/parsers/manifest/dash/wasm-parser/rs/reader.rs +0 -17
- package/src/parsers/manifest/dash/wasm-parser/rs/reportable.rs +0 -147
- package/src/parsers/manifest/dash/wasm-parser/rs/utils.rs +0 -266
- package/src/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.ts +0 -478
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.ts +0 -340
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.ts +0 -38
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.ts +0 -53
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.ts +0 -62
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.ts +0 -144
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/MPD.ts +0 -183
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/Period.ts +0 -180
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/Representation.ts +0 -214
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.ts +0 -44
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.ts +0 -115
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.ts +0 -61
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.ts +0 -133
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.ts +0 -70
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/XLink.ts +0 -66
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/index.ts +0 -17
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/root.ts +0 -66
- package/src/parsers/manifest/dash/wasm-parser/ts/parsers_stack.ts +0 -80
- package/src/parsers/manifest/dash/wasm-parser/ts/types.ts +0 -298
- package/src/parsers/manifest/dash/wasm-parser/ts/utils.ts +0 -47
- package/src/parsers/manifest/index.ts +0 -17
- package/src/parsers/manifest/local/index.ts +0 -25
- package/src/parsers/manifest/local/parse_local_manifest.ts +0 -165
- package/src/parsers/manifest/local/representation_index.ts +0 -254
- package/src/parsers/manifest/local/types.ts +0 -291
- package/src/parsers/manifest/metaplaylist/index.ts +0 -28
- package/src/parsers/manifest/metaplaylist/metaplaylist_parser.ts +0 -336
- package/src/parsers/manifest/metaplaylist/representation_index.ts +0 -272
- package/src/parsers/manifest/smooth/create_parser.ts +0 -690
- package/src/parsers/manifest/smooth/get_codecs.ts +0 -55
- package/src/parsers/manifest/smooth/index.ts +0 -26
- package/src/parsers/manifest/smooth/parse_C_nodes.ts +0 -69
- package/src/parsers/manifest/smooth/parse_protection_node.ts +0 -72
- package/src/parsers/manifest/smooth/representation_index.ts +0 -563
- package/src/parsers/manifest/smooth/shared_smooth_segment_timeline.ts +0 -242
- package/src/parsers/manifest/smooth/utils/add_segment_infos.ts +0 -75
- package/src/parsers/manifest/smooth/utils/parseBoolean.ts +0 -31
- package/src/parsers/manifest/smooth/utils/reduceChildren.ts +0 -36
- package/src/parsers/manifest/smooth/utils/tokens.ts +0 -46
- package/src/parsers/manifest/types.ts +0 -394
- package/src/parsers/manifest/utils/__tests__/get_first_time_from_adaptations.test.ts +0 -163
- package/src/parsers/manifest/utils/__tests__/get_last_time_from_adaptation.test.ts +0 -163
- package/src/parsers/manifest/utils/__tests__/index_helpers.test.ts +0 -55
- package/src/parsers/manifest/utils/__tests__/update_segment_timeline.test.ts +0 -545
- package/src/parsers/manifest/utils/check_manifest_ids.ts +0 -83
- package/src/parsers/manifest/utils/clear_timeline_from_position.ts +0 -74
- package/src/parsers/manifest/utils/get_first_time_from_adaptation.ts +0 -48
- package/src/parsers/manifest/utils/get_last_time_from_adaptation.ts +0 -50
- package/src/parsers/manifest/utils/get_maximum_positions.ts +0 -87
- package/src/parsers/manifest/utils/get_minimum_position.ts +0 -80
- package/src/parsers/manifest/utils/index_helpers.ts +0 -204
- package/src/parsers/manifest/utils/update_segment_timeline.ts +0 -141
- package/src/parsers/texttracks/index.ts +0 -21
- package/src/parsers/texttracks/sami/html.ts +0 -219
- package/src/parsers/texttracks/sami/native.ts +0 -192
- package/src/parsers/texttracks/srt/__tests__/find_end_of_cue_block.test.ts +0 -99
- package/src/parsers/texttracks/srt/__tests__/get_cue_blocks.test.ts +0 -119
- package/src/parsers/texttracks/srt/__tests__/parse_cue.test.ts +0 -123
- package/src/parsers/texttracks/srt/__tests__/parse_timestamp.test.ts +0 -36
- package/src/parsers/texttracks/srt/find_end_of_cue_block.ts +0 -46
- package/src/parsers/texttracks/srt/get_cue_blocks.ts +0 -49
- package/src/parsers/texttracks/srt/html.ts +0 -182
- package/src/parsers/texttracks/srt/native.ts +0 -74
- package/src/parsers/texttracks/srt/parse_cue.ts +0 -76
- package/src/parsers/texttracks/srt/parse_timestamp.ts +0 -37
- package/src/parsers/texttracks/ttml/__tests__/resolve_styles_inheritance.test.ts +0 -248
- package/src/parsers/texttracks/ttml/get_parameters.ts +0 -106
- package/src/parsers/texttracks/ttml/get_styling.ts +0 -146
- package/src/parsers/texttracks/ttml/get_time_delimiters.ts +0 -49
- package/src/parsers/texttracks/ttml/html/__tests__/__global__/html_ttml_parser.test.test.ts +0 -191
- package/src/parsers/texttracks/ttml/html/__tests__/generate_css_test_outline.test.ts +0 -32
- package/src/parsers/texttracks/ttml/html/__tests__/ttml_color_to_css_color.test.ts +0 -62
- package/src/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.ts +0 -67
- package/src/parsers/texttracks/ttml/html/apply_extent.ts +0 -65
- package/src/parsers/texttracks/ttml/html/apply_font_size.ts +0 -62
- package/src/parsers/texttracks/ttml/html/apply_line_height.ts +0 -50
- package/src/parsers/texttracks/ttml/html/apply_origin.ts +0 -64
- package/src/parsers/texttracks/ttml/html/apply_padding.ts +0 -141
- package/src/parsers/texttracks/ttml/html/create_element.ts +0 -549
- package/src/parsers/texttracks/ttml/html/generate_css_test_outline.ts +0 -46
- package/src/parsers/texttracks/ttml/html/index.ts +0 -23
- package/src/parsers/texttracks/ttml/html/parse_cue.ts +0 -65
- package/src/parsers/texttracks/ttml/html/parse_ttml_to_div.ts +0 -58
- package/src/parsers/texttracks/ttml/html/ttml_color_to_css_color.ts +0 -68
- package/src/parsers/texttracks/ttml/native/index.ts +0 -23
- package/src/parsers/texttracks/ttml/native/parse_cue.ts +0 -245
- package/src/parsers/texttracks/ttml/native/parse_ttml_to_vtt.ts +0 -39
- package/src/parsers/texttracks/ttml/parse_ttml.ts +0 -206
- package/src/parsers/texttracks/ttml/regexps.ts +0 -65
- package/src/parsers/texttracks/ttml/resolve_styles_inheritance.ts +0 -84
- package/src/parsers/texttracks/ttml/time_parsing.ts +0 -156
- package/src/parsers/texttracks/ttml/xml_utils.ts +0 -166
- package/src/parsers/texttracks/types.ts +0 -34
- package/src/parsers/texttracks/webvtt/__tests__/get_cue_blocks.test.ts +0 -218
- package/src/parsers/texttracks/webvtt/__tests__/get_style_blocks.test.ts +0 -65
- package/src/parsers/texttracks/webvtt/__tests__/parse_cue_block.test.ts +0 -249
- package/src/parsers/texttracks/webvtt/__tests__/parse_timestamp.test.ts +0 -39
- package/src/parsers/texttracks/webvtt/__tests__/utils.test.ts +0 -401
- package/src/parsers/texttracks/webvtt/get_cue_blocks.ts +0 -51
- package/src/parsers/texttracks/webvtt/get_style_blocks.ts +0 -56
- package/src/parsers/texttracks/webvtt/html/__tests__/convert_payload_to_html.test.ts +0 -108
- package/src/parsers/texttracks/webvtt/html/__tests__/create_default_style_elements.test.ts +0 -44
- package/src/parsers/texttracks/webvtt/html/__tests__/create_style_attribute.test.ts +0 -139
- package/src/parsers/texttracks/webvtt/html/__tests__/create_styled_element.test.ts +0 -140
- package/src/parsers/texttracks/webvtt/html/__tests__/parse_style_block.test.ts +0 -345
- package/src/parsers/texttracks/webvtt/html/__tests__/parse_webvtt_to_div.test.ts +0 -181
- package/src/parsers/texttracks/webvtt/html/__tests__/to_html.test.ts +0 -234
- package/src/parsers/texttracks/webvtt/html/convert_payload_to_html.ts +0 -46
- package/src/parsers/texttracks/webvtt/html/create_default_style_elements.ts +0 -26
- package/src/parsers/texttracks/webvtt/html/create_style_attribute.ts +0 -222
- package/src/parsers/texttracks/webvtt/html/create_styled_element.ts +0 -95
- package/src/parsers/texttracks/webvtt/html/index.ts +0 -25
- package/src/parsers/texttracks/webvtt/html/parse_style_block.ts +0 -76
- package/src/parsers/texttracks/webvtt/html/parse_webvtt_to_div.ts +0 -67
- package/src/parsers/texttracks/webvtt/html/to_html.ts +0 -96
- package/src/parsers/texttracks/webvtt/native/index.ts +0 -23
- package/src/parsers/texttracks/webvtt/native/parse_vtt_to_cues.ts +0 -70
- package/src/parsers/texttracks/webvtt/native/set_settings_on_cue.ts +0 -95
- package/src/parsers/texttracks/webvtt/native/to_native_cue.ts +0 -34
- package/src/parsers/texttracks/webvtt/parse_cue_block.ts +0 -128
- package/src/parsers/texttracks/webvtt/parse_timestamp.ts +0 -40
- package/src/parsers/texttracks/webvtt/utils.ts +0 -135
- package/src/public_types.ts +0 -1040
- package/src/tools/README.md +0 -8
- package/src/tools/TextTrackRenderer/index.ts +0 -28
- package/src/tools/TextTrackRenderer/text_track_renderer.ts +0 -108
- package/src/tools/index.ts +0 -20
- package/src/tools/string_utils/index.ts +0 -24
- package/src/transports/README.md +0 -276
- package/src/transports/dash/add_segment_integrity_checks_to_loader.ts +0 -97
- package/src/transports/dash/construct_segment_url.ts +0 -28
- package/src/transports/dash/extract_complete_chunks.ts +0 -66
- package/src/transports/dash/get_events_out_of_emsgs.ts +0 -105
- package/src/transports/dash/index.ts +0 -23
- package/src/transports/dash/init_segment_loader.ts +0 -119
- package/src/transports/dash/low_latency_segment_loader.ts +0 -87
- package/src/transports/dash/manifest_parser.ts +0 -330
- package/src/transports/dash/pipelines.ts +0 -66
- package/src/transports/dash/segment_loader.ts +0 -255
- package/src/transports/dash/segment_parser.ts +0 -188
- package/src/transports/dash/text_loader.ts +0 -122
- package/src/transports/dash/text_parser.ts +0 -228
- package/src/transports/index.ts +0 -17
- package/src/transports/local/index.ts +0 -18
- package/src/transports/local/pipelines.ts +0 -91
- package/src/transports/local/segment_loader.ts +0 -196
- package/src/transports/local/segment_parser.ts +0 -102
- package/src/transports/local/text_parser.ts +0 -185
- package/src/transports/metaplaylist/README.md +0 -94
- package/src/transports/metaplaylist/index.ts +0 -23
- package/src/transports/metaplaylist/manifest_loader.ts +0 -63
- package/src/transports/metaplaylist/pipelines.ts +0 -381
- package/src/transports/smooth/extract_timings_infos.ts +0 -142
- package/src/transports/smooth/index.ts +0 -23
- package/src/transports/smooth/is_mp4_embedded_track.ts +0 -25
- package/src/transports/smooth/isobmff/__tests__/create_boxes.test.ts +0 -231
- package/src/transports/smooth/isobmff/create_audio_init_segment.ts +0 -84
- package/src/transports/smooth/isobmff/create_boxes.ts +0 -481
- package/src/transports/smooth/isobmff/create_init_segment.ts +0 -100
- package/src/transports/smooth/isobmff/create_traf_box.ts +0 -40
- package/src/transports/smooth/isobmff/create_video_init_segment.ts +0 -78
- package/src/transports/smooth/isobmff/get_aaces_header.ts +0 -62
- package/src/transports/smooth/isobmff/index.ts +0 -32
- package/src/transports/smooth/isobmff/parse_tfrf.ts +0 -57
- package/src/transports/smooth/isobmff/parse_tfxd.ts +0 -38
- package/src/transports/smooth/isobmff/patch_segment.ts +0 -171
- package/src/transports/smooth/pipelines.ts +0 -378
- package/src/transports/smooth/segment_loader.ts +0 -292
- package/src/transports/smooth/utils.ts +0 -45
- package/src/transports/types.ts +0 -820
- package/src/transports/utils/__tests__/byte_range.test.ts +0 -35
- package/src/transports/utils/__tests__/check_isobmff_integrity.test.ts +0 -148
- package/src/transports/utils/__tests__/find_complete_box.test.ts +0 -138
- package/src/transports/utils/__tests__/infer_segment_container.test.ts +0 -80
- package/src/transports/utils/byte_range.ts +0 -25
- package/src/transports/utils/call_custom_manifest_loader.ts +0 -146
- package/src/transports/utils/check_isobmff_integrity.ts +0 -50
- package/src/transports/utils/find_complete_box.ts +0 -63
- package/src/transports/utils/generate_manifest_loader.ts +0 -100
- package/src/transports/utils/get_isobmff_timing_infos.ts +0 -86
- package/src/transports/utils/infer_segment_container.ts +0 -50
- package/src/transports/utils/parse_text_track.ts +0 -170
- package/src/typings/README.md +0 -7
- package/src/utils/README.md +0 -5
- package/src/utils/__tests__/are_arrays_of_numbers_equal.test.ts +0 -86
- package/src/utils/__tests__/are_codecs_compatible.test.ts +0 -88
- package/src/utils/__tests__/array_find.test.ts +0 -113
- package/src/utils/__tests__/array_find_index.test.ts +0 -113
- package/src/utils/__tests__/array_includes.test.ts +0 -151
- package/src/utils/__tests__/assert.test.ts +0 -237
- package/src/utils/__tests__/assert_unreachable.test.ts +0 -40
- package/src/utils/__tests__/base64.test.ts +0 -149
- package/src/utils/__tests__/byte_parsing.test.ts +0 -267
- package/src/utils/__tests__/deep_merge.test.ts +0 -48
- package/src/utils/__tests__/event_emitter.test.ts +0 -579
- package/src/utils/__tests__/flat_map.test.ts +0 -71
- package/src/utils/__tests__/get_fuzzed_delay.test.ts +0 -32
- package/src/utils/__tests__/hash_buffer.test.ts +0 -105
- package/src/utils/__tests__/id_generator.test.ts +0 -83
- package/src/utils/__tests__/initialization_segment_cache.test.ts +0 -245
- package/src/utils/__tests__/is_non_empty_string.test.ts +0 -41
- package/src/utils/__tests__/is_null_or_undefined.test.ts +0 -33
- package/src/utils/__tests__/logger.test.ts +0 -214
- package/src/utils/__tests__/noop.test.ts +0 -23
- package/src/utils/__tests__/object_assign.test.ts +0 -56
- package/src/utils/__tests__/object_values.test.ts +0 -26
- package/src/utils/__tests__/ranges.test.ts +0 -1214
- package/src/utils/__tests__/resolve_url.test.ts +0 -100
- package/src/utils/__tests__/sorted_list.test.ts +0 -335
- package/src/utils/__tests__/starts_with.test.ts +0 -65
- package/src/utils/__tests__/string_parsing.test.ts +0 -267
- package/src/utils/__tests__/warn_once.test.ts +0 -38
- package/src/utils/__tests__/weak_map_memory.test.ts +0 -188
- package/src/utils/are_arrays_of_numbers_equal.ts +0 -39
- package/src/utils/are_codecs_compatible.ts +0 -51
- package/src/utils/array_find.ts +0 -55
- package/src/utils/array_find_index.ts +0 -54
- package/src/utils/array_includes.ts +0 -93
- package/src/utils/assert.ts +0 -65
- package/src/utils/assert_unreachable.ts +0 -45
- package/src/utils/base64.ts +0 -153
- package/src/utils/byte_parsing.ts +0 -256
- package/src/utils/cancellable_sleep.ts +0 -41
- package/src/utils/create_cancellable_promise.ts +0 -69
- package/src/utils/deep_merge.ts +0 -49
- package/src/utils/event_emitter.ts +0 -147
- package/src/utils/flat_map.ts +0 -50
- package/src/utils/get_fuzzed_delay.ts +0 -27
- package/src/utils/hash_buffer.ts +0 -42
- package/src/utils/id_generator.ts +0 -35
- package/src/utils/initialization_segment_cache.ts +0 -68
- package/src/utils/is_non_empty_string.ts +0 -23
- package/src/utils/is_null_or_undefined.ts +0 -27
- package/src/utils/languages/ISO_639-1_to_ISO_639-3.ts +0 -207
- package/src/utils/languages/ISO_639-2_to_ISO_639-3.ts +0 -43
- package/src/utils/languages/__tests__/normalize.test.ts +0 -290
- package/src/utils/languages/index.ts +0 -29
- package/src/utils/languages/normalize.ts +0 -152
- package/src/utils/logger.ts +0 -100
- package/src/utils/monotonic_timestamp.ts +0 -12
- package/src/utils/noop.ts +0 -26
- package/src/utils/object_assign.ts +0 -60
- package/src/utils/object_values.ts +0 -31
- package/src/utils/queue_microtask.ts +0 -7
- package/src/utils/ranges.ts +0 -595
- package/src/utils/reference.ts +0 -390
- package/src/utils/request/fetch.ts +0 -279
- package/src/utils/request/index.ts +0 -38
- package/src/utils/request/xhr.ts +0 -319
- package/src/utils/resolve_url.ts +0 -126
- package/src/utils/retry_promise_with_backoff.ts +0 -95
- package/src/utils/sleep.ts +0 -14
- package/src/utils/slice_uint8array.ts +0 -53
- package/src/utils/sorted_list.ts +0 -240
- package/src/utils/starts_with.ts +0 -42
- package/src/utils/string_parsing.ts +0 -415
- package/src/utils/task_canceller.ts +0 -367
- package/src/utils/warn_once.ts +0 -34
- package/src/utils/weak_map_memory.ts +0 -89
- package/src/utils/wrapInPromise.ts +0 -24
- package/tools/TextTrackRenderer.d.ts +0 -18
- package/tools/TextTrackRenderer.js +0 -18
- package/tools/index.d.ts +0 -16
- package/tools/index.js +0 -16
- package/tools/string-utils.d.ts +0 -18
- package/tools/string-utils.js +0 -18
- package/tsconfig.commonjs.json +0 -9
- package/tsconfig.eslint.json +0 -7
- package/tsconfig.jest.json +0 -15
- package/tsconfig.json +0 -32
- package/types/index.d.ts +0 -16
- package/types/index.js +0 -15
- package/webpack.config.mjs +0 -97
- /package/dist/commonjs/{utils → core/fetchers/segment}/initialization_segment_cache.js +0 -0
- /package/dist/{_esm5.processed/experimental/features → commonjs/features/list}/dash_wasm.d.ts +0 -0
- /package/dist/{_esm5.processed/experimental/features → commonjs/features/list}/debug_element.d.ts +0 -0
- /package/dist/commonjs/{experimental/features → features/list}/debug_element.js +0 -0
- /package/dist/commonjs/{experimental/tools → tools}/parseBIFThumbnails/index.d.ts +0 -0
- /package/dist/commonjs/{compat → utils}/global_scope.d.ts +0 -0
- /package/dist/commonjs/{compat → utils}/global_scope.js +0 -0
- /package/dist/commonjs/{compat → utils}/is_node.d.ts +0 -0
- /package/dist/commonjs/{compat → utils}/is_node.js +0 -0
- /package/dist/commonjs/{compat → utils}/is_worker.d.ts +0 -0
- /package/dist/commonjs/{compat → utils}/is_worker.js +0 -0
- /package/dist/es2017/{utils → core/fetchers/segment}/initialization_segment_cache.js +0 -0
- /package/dist/{commonjs/experimental/features → es2017/features/list}/dash_wasm.d.ts +0 -0
- /package/dist/{commonjs/experimental/features → es2017/features/list}/debug_element.d.ts +0 -0
- /package/dist/{_esm5.processed/experimental/features → es2017/features/list}/debug_element.js +0 -0
- /package/dist/{_esm5.processed/core/stream/adaptation/types.js → es2017/mse/index.js} +0 -0
- /package/dist/{_esm5.processed/core/stream/period → es2017/mse}/types.js +0 -0
- /package/dist/{_esm5.processed/core/stream/representation/types.js → es2017/text_displayer/index.js} +0 -0
- /package/dist/es2017/{experimental/tools → tools}/parseBIFThumbnails/index.d.ts +0 -0
- /package/dist/es2017/{compat → utils}/global_scope.d.ts +0 -0
- /package/dist/es2017/{compat → utils}/global_scope.js +0 -0
- /package/dist/es2017/{compat → utils}/is_node.d.ts +0 -0
- /package/dist/es2017/{compat → utils}/is_node.js +0 -0
- /package/dist/es2017/{compat → utils}/is_worker.d.ts +0 -0
- /package/dist/es2017/{compat → utils}/is_worker.js +0 -0
|
@@ -1,405 +0,0 @@
|
|
|
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
|
-
var __extends = (this && this.__extends) || (function () {
|
|
17
|
-
var extendStatics = function (d, b) {
|
|
18
|
-
extendStatics = Object.setPrototypeOf ||
|
|
19
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
21
|
-
return extendStatics(d, b);
|
|
22
|
-
};
|
|
23
|
-
return function (d, b) {
|
|
24
|
-
if (typeof b !== "function" && b !== null)
|
|
25
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
26
|
-
extendStatics(d, b);
|
|
27
|
-
function __() { this.constructor = d; }
|
|
28
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29
|
-
};
|
|
30
|
-
})();
|
|
31
|
-
var __assign = (this && this.__assign) || function () {
|
|
32
|
-
__assign = Object.assign || function(t) {
|
|
33
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
34
|
-
s = arguments[i];
|
|
35
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
36
|
-
t[p] = s[p];
|
|
37
|
-
}
|
|
38
|
-
return t;
|
|
39
|
-
};
|
|
40
|
-
return __assign.apply(this, arguments);
|
|
41
|
-
};
|
|
42
|
-
import { base64ToBytes, bytesToBase64, } from "../../../../utils/base64";
|
|
43
|
-
import EventEmitter from "../../../../utils/event_emitter";
|
|
44
|
-
import flatMap from "../../../../utils/flat_map";
|
|
45
|
-
import { strToUtf8, utf8ToStr, } from "../../../../utils/string_parsing";
|
|
46
|
-
/** Default MediaKeySystemAccess configuration used by the RxPlayer. */
|
|
47
|
-
export var defaultKSConfig = [
|
|
48
|
-
{
|
|
49
|
-
audioCapabilities: [{ contentType: "audio/mp4;codecs=\"mp4a.40.2\"" },
|
|
50
|
-
{ contentType: "audio/webm;codecs=opus" }],
|
|
51
|
-
distinctiveIdentifier: "optional",
|
|
52
|
-
initDataTypes: ["cenc"],
|
|
53
|
-
persistentState: "optional",
|
|
54
|
-
sessionTypes: ["temporary"],
|
|
55
|
-
videoCapabilities: [{ contentType: "video/mp4;codecs=\"avc1.4d401e\"" },
|
|
56
|
-
{ contentType: "video/mp4;codecs=\"avc1.42e01e\"" },
|
|
57
|
-
{ contentType: "video/webm;codecs=\"vp8\"" }],
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
audioCapabilities: undefined,
|
|
61
|
-
distinctiveIdentifier: "optional",
|
|
62
|
-
initDataTypes: ["cenc"],
|
|
63
|
-
persistentState: "optional",
|
|
64
|
-
sessionTypes: ["temporary"],
|
|
65
|
-
videoCapabilities: undefined,
|
|
66
|
-
},
|
|
67
|
-
];
|
|
68
|
-
/**
|
|
69
|
-
* Default "com.microsoft.playready.recommendation" MediaKeySystemAccess
|
|
70
|
-
* configuration used by the RxPlayer.
|
|
71
|
-
*/
|
|
72
|
-
export var defaultPRRecommendationKSConfig = [
|
|
73
|
-
{
|
|
74
|
-
audioCapabilities: [{ robustness: "3000",
|
|
75
|
-
contentType: "audio/mp4;codecs=\"mp4a.40.2\"" },
|
|
76
|
-
{ robustness: "3000",
|
|
77
|
-
contentType: "audio/webm;codecs=opus" },
|
|
78
|
-
{ robustness: "2000",
|
|
79
|
-
contentType: "audio/mp4;codecs=\"mp4a.40.2\"" },
|
|
80
|
-
{ robustness: "2000",
|
|
81
|
-
contentType: "audio/webm;codecs=opus" }],
|
|
82
|
-
distinctiveIdentifier: "optional",
|
|
83
|
-
initDataTypes: ["cenc"],
|
|
84
|
-
persistentState: "optional",
|
|
85
|
-
sessionTypes: ["temporary"],
|
|
86
|
-
videoCapabilities: [{ robustness: "3000",
|
|
87
|
-
contentType: "video/mp4;codecs=\"avc1.4d401e\"" },
|
|
88
|
-
{ robustness: "3000",
|
|
89
|
-
contentType: "video/mp4;codecs=\"avc1.42e01e\"" },
|
|
90
|
-
{ robustness: "3000",
|
|
91
|
-
contentType: "video/webm;codecs=\"vp8\"" },
|
|
92
|
-
{ robustness: "2000",
|
|
93
|
-
contentType: "video/mp4;codecs=\"avc1.4d401e\"" },
|
|
94
|
-
{ robustness: "2000",
|
|
95
|
-
contentType: "video/mp4;codecs=\"avc1.42e01e\"" },
|
|
96
|
-
{ robustness: "2000",
|
|
97
|
-
contentType: "video/webm;codecs=\"vp8\"" }],
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
audioCapabilities: undefined,
|
|
101
|
-
distinctiveIdentifier: "optional",
|
|
102
|
-
initDataTypes: ["cenc"],
|
|
103
|
-
persistentState: "optional",
|
|
104
|
-
sessionTypes: ["temporary"],
|
|
105
|
-
videoCapabilities: undefined,
|
|
106
|
-
},
|
|
107
|
-
];
|
|
108
|
-
/** Default Widevine MediaKeySystemAccess configuration used by the RxPlayer. */
|
|
109
|
-
export var defaultWidevineConfig = (function () {
|
|
110
|
-
var ROBUSTNESSES = ["HW_SECURE_ALL",
|
|
111
|
-
"HW_SECURE_DECODE",
|
|
112
|
-
"HW_SECURE_CRYPTO",
|
|
113
|
-
"SW_SECURE_DECODE",
|
|
114
|
-
"SW_SECURE_CRYPTO"];
|
|
115
|
-
var videoCapabilities = flatMap(ROBUSTNESSES, function (robustness) {
|
|
116
|
-
return [{ contentType: "video/mp4;codecs=\"avc1.4d401e\"", robustness: robustness },
|
|
117
|
-
{ contentType: "video/mp4;codecs=\"avc1.42e01e\"", robustness: robustness },
|
|
118
|
-
{ contentType: "video/webm;codecs=\"vp8\"", robustness: robustness }];
|
|
119
|
-
});
|
|
120
|
-
var audioCapabilities = flatMap(ROBUSTNESSES, function (robustness) {
|
|
121
|
-
return [{ contentType: "audio/mp4;codecs=\"mp4a.40.2\"", robustness: robustness },
|
|
122
|
-
{ contentType: "audio/webm;codecs=opus", robustness: robustness }];
|
|
123
|
-
});
|
|
124
|
-
return [
|
|
125
|
-
__assign(__assign({}, defaultKSConfig[0]), { audioCapabilities: audioCapabilities, videoCapabilities: videoCapabilities }),
|
|
126
|
-
defaultKSConfig[1],
|
|
127
|
-
];
|
|
128
|
-
})();
|
|
129
|
-
/**
|
|
130
|
-
* Custom implementation of an EME-compliant MediaKeyStatusMap.
|
|
131
|
-
* @class MediaKeyStatusMapImpl
|
|
132
|
-
*/
|
|
133
|
-
var MediaKeyStatusMapImpl = /** @class */ (function () {
|
|
134
|
-
function MediaKeyStatusMapImpl() {
|
|
135
|
-
this._map = new Map();
|
|
136
|
-
}
|
|
137
|
-
Object.defineProperty(MediaKeyStatusMapImpl.prototype, "size", {
|
|
138
|
-
get: function () {
|
|
139
|
-
return this._map.size;
|
|
140
|
-
},
|
|
141
|
-
enumerable: false,
|
|
142
|
-
configurable: true
|
|
143
|
-
});
|
|
144
|
-
MediaKeyStatusMapImpl.prototype.get = function (keyId) {
|
|
145
|
-
var keyIdAB = keyId instanceof ArrayBuffer ? keyId :
|
|
146
|
-
keyId.buffer;
|
|
147
|
-
return this._map.get(keyIdAB);
|
|
148
|
-
};
|
|
149
|
-
MediaKeyStatusMapImpl.prototype.has = function (keyId) {
|
|
150
|
-
var keyIdAB = keyId instanceof ArrayBuffer ? keyId :
|
|
151
|
-
keyId.buffer;
|
|
152
|
-
return this._map.has(keyIdAB);
|
|
153
|
-
};
|
|
154
|
-
MediaKeyStatusMapImpl.prototype.forEach = function (callbackfn,
|
|
155
|
-
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
156
|
-
thisArg) {
|
|
157
|
-
var _this = this;
|
|
158
|
-
this._map.forEach(function (value, key) { return callbackfn.bind(thisArg, value, key, _this); });
|
|
159
|
-
};
|
|
160
|
-
MediaKeyStatusMapImpl.prototype._setKeyStatus = function (keyId, value) {
|
|
161
|
-
var keyIdAB = keyId instanceof ArrayBuffer ? keyId :
|
|
162
|
-
keyId.buffer;
|
|
163
|
-
if (value === undefined) {
|
|
164
|
-
this._map.delete(keyIdAB);
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
this._map.set(keyIdAB, value);
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
return MediaKeyStatusMapImpl;
|
|
171
|
-
}());
|
|
172
|
-
export { MediaKeyStatusMapImpl };
|
|
173
|
-
/**
|
|
174
|
-
* Custom implementation of an EME-compliant MediaKeySession.
|
|
175
|
-
* @class MediaKeySessionImpl
|
|
176
|
-
*/
|
|
177
|
-
var MediaKeySessionImpl = /** @class */ (function (_super) {
|
|
178
|
-
__extends(MediaKeySessionImpl, _super);
|
|
179
|
-
function MediaKeySessionImpl() {
|
|
180
|
-
var _this = _super.call(this) || this;
|
|
181
|
-
_this._currentKeyId = 0;
|
|
182
|
-
_this.expiration = Number.MAX_VALUE;
|
|
183
|
-
_this.keyStatuses = new MediaKeyStatusMapImpl();
|
|
184
|
-
_this.closed = new Promise(function (res) {
|
|
185
|
-
_this._close = res;
|
|
186
|
-
});
|
|
187
|
-
_this.onkeystatuseschange = null;
|
|
188
|
-
_this.onmessage = null;
|
|
189
|
-
_this.sessionId = "";
|
|
190
|
-
return _this;
|
|
191
|
-
}
|
|
192
|
-
MediaKeySessionImpl.prototype.close = function () {
|
|
193
|
-
if (this._close !== undefined) {
|
|
194
|
-
this._close();
|
|
195
|
-
}
|
|
196
|
-
return Promise.resolve();
|
|
197
|
-
};
|
|
198
|
-
MediaKeySessionImpl.prototype.generateRequest = function (initDataType, initData) {
|
|
199
|
-
var _this = this;
|
|
200
|
-
var msg = formatFakeChallengeFromInitData(initData, initDataType);
|
|
201
|
-
setTimeout(function () {
|
|
202
|
-
var event = Object.assign(new CustomEvent("message"), { message: msg.buffer,
|
|
203
|
-
messageType: "license-request" });
|
|
204
|
-
_this.trigger("message", event);
|
|
205
|
-
if (_this.onmessage !== null && _this.onmessage !== undefined) {
|
|
206
|
-
_this.onmessage(event);
|
|
207
|
-
}
|
|
208
|
-
}, 5);
|
|
209
|
-
return Promise.resolve();
|
|
210
|
-
};
|
|
211
|
-
MediaKeySessionImpl.prototype.load = function (_sessionId) {
|
|
212
|
-
throw new Error("Not implemented yet");
|
|
213
|
-
};
|
|
214
|
-
MediaKeySessionImpl.prototype.remove = function () {
|
|
215
|
-
return Promise.resolve();
|
|
216
|
-
};
|
|
217
|
-
MediaKeySessionImpl.prototype.update = function (_response) {
|
|
218
|
-
var _this = this;
|
|
219
|
-
this.keyStatuses._setKeyStatus(new Uint8Array([0, 1, 2, this._currentKeyId++]), "usable");
|
|
220
|
-
var event = new CustomEvent("keystatuseschange");
|
|
221
|
-
setTimeout(function () {
|
|
222
|
-
_this.trigger("keyStatusesChange", event);
|
|
223
|
-
if (_this.onkeystatuseschange !== null && _this.onkeystatuseschange !== undefined) {
|
|
224
|
-
_this.onkeystatuseschange(event);
|
|
225
|
-
}
|
|
226
|
-
}, 50);
|
|
227
|
-
return Promise.resolve();
|
|
228
|
-
};
|
|
229
|
-
return MediaKeySessionImpl;
|
|
230
|
-
}(EventEmitter));
|
|
231
|
-
export { MediaKeySessionImpl };
|
|
232
|
-
/**
|
|
233
|
-
* Custom implementation of an EME-compliant MediaKeys.
|
|
234
|
-
* @class MediaKeysImpl
|
|
235
|
-
*/
|
|
236
|
-
var MediaKeysImpl = /** @class */ (function () {
|
|
237
|
-
function MediaKeysImpl() {
|
|
238
|
-
}
|
|
239
|
-
MediaKeysImpl.prototype.createSession = function (_sessionType) {
|
|
240
|
-
return new MediaKeySessionImpl();
|
|
241
|
-
};
|
|
242
|
-
MediaKeysImpl.prototype.setServerCertificate = function (_serverCertificate) {
|
|
243
|
-
return Promise.resolve(true);
|
|
244
|
-
};
|
|
245
|
-
return MediaKeysImpl;
|
|
246
|
-
}());
|
|
247
|
-
export { MediaKeysImpl };
|
|
248
|
-
/**
|
|
249
|
-
* Custom implementation of an EME-compliant MediaKeySystemAccess.
|
|
250
|
-
* @class MediaKeySystemAccessImpl
|
|
251
|
-
*/
|
|
252
|
-
var MediaKeySystemAccessImpl = /** @class */ (function () {
|
|
253
|
-
function MediaKeySystemAccessImpl(keySystem, config) {
|
|
254
|
-
this.keySystem = keySystem;
|
|
255
|
-
this._config = config;
|
|
256
|
-
}
|
|
257
|
-
MediaKeySystemAccessImpl.prototype.createMediaKeys = function () {
|
|
258
|
-
return Promise.resolve(new MediaKeysImpl());
|
|
259
|
-
};
|
|
260
|
-
MediaKeySystemAccessImpl.prototype.getConfiguration = function () {
|
|
261
|
-
return this._config;
|
|
262
|
-
};
|
|
263
|
-
return MediaKeySystemAccessImpl;
|
|
264
|
-
}());
|
|
265
|
-
export { MediaKeySystemAccessImpl };
|
|
266
|
-
export function requestMediaKeySystemAccessImpl(keySystem, config) {
|
|
267
|
-
return Promise.resolve(new MediaKeySystemAccessImpl(keySystem, config));
|
|
268
|
-
}
|
|
269
|
-
var MockedDecryptorEventEmitter = /** @class */ (function (_super) {
|
|
270
|
-
__extends(MockedDecryptorEventEmitter, _super);
|
|
271
|
-
function MockedDecryptorEventEmitter() {
|
|
272
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
273
|
-
}
|
|
274
|
-
MockedDecryptorEventEmitter.prototype.triggerEncrypted = function (elt, value) {
|
|
275
|
-
this.trigger("encrypted", { elt: elt, value: value });
|
|
276
|
-
};
|
|
277
|
-
MockedDecryptorEventEmitter.prototype.triggerKeyError = function (session, value) {
|
|
278
|
-
this.trigger("keyerror", { session: session, value: value });
|
|
279
|
-
};
|
|
280
|
-
MockedDecryptorEventEmitter.prototype.triggerKeyStatusesChange = function (session, value) {
|
|
281
|
-
this.trigger("keystatuseschange", { session: session, value: value });
|
|
282
|
-
};
|
|
283
|
-
MockedDecryptorEventEmitter.prototype.triggerKeyMessage = function (session, value) {
|
|
284
|
-
this.trigger("keymessage", { session: session, value: value });
|
|
285
|
-
};
|
|
286
|
-
return MockedDecryptorEventEmitter;
|
|
287
|
-
}(EventEmitter));
|
|
288
|
-
/**
|
|
289
|
-
* Mock functions coming from the compat directory.
|
|
290
|
-
*/
|
|
291
|
-
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
292
|
-
export function mockCompat(exportedFunctions) {
|
|
293
|
-
var _a, _b, _c;
|
|
294
|
-
if (exportedFunctions === void 0) { exportedFunctions = {}; }
|
|
295
|
-
var ee = new MockedDecryptorEventEmitter();
|
|
296
|
-
var onEncrypted = (_a = exportedFunctions.onEncrypted) !== null && _a !== void 0 ? _a : jest.fn(function (elt, fn, signal) {
|
|
297
|
-
elt.addEventListener("encrypted", fn);
|
|
298
|
-
signal.register(function () {
|
|
299
|
-
elt.removeEventListener("encrypted", fn);
|
|
300
|
-
});
|
|
301
|
-
ee.addEventListener("encrypted", function (evt) {
|
|
302
|
-
if (evt.elt === elt) {
|
|
303
|
-
fn(evt.value);
|
|
304
|
-
}
|
|
305
|
-
}, signal);
|
|
306
|
-
});
|
|
307
|
-
var mockEvents = {
|
|
308
|
-
onKeyMessage: jest.fn(function (elt, fn, signal) {
|
|
309
|
-
elt.addEventListener("message", fn, signal);
|
|
310
|
-
ee.addEventListener("keymessage", function (evt) {
|
|
311
|
-
if (evt.session === elt) {
|
|
312
|
-
fn(evt.value);
|
|
313
|
-
}
|
|
314
|
-
}, signal);
|
|
315
|
-
}),
|
|
316
|
-
onKeyError: jest.fn(function (elt, fn, signal) {
|
|
317
|
-
elt.addEventListener("error", fn, signal);
|
|
318
|
-
ee.addEventListener("keyerror", function (evt) {
|
|
319
|
-
if (evt.session === elt) {
|
|
320
|
-
fn(evt.value);
|
|
321
|
-
}
|
|
322
|
-
}, signal);
|
|
323
|
-
}),
|
|
324
|
-
onKeyStatusesChange: jest.fn(function (elt, fn, signal) {
|
|
325
|
-
elt.addEventListener("keystatuseschange", fn, signal);
|
|
326
|
-
ee.addEventListener("keystatuseschange", function (evt) {
|
|
327
|
-
if (evt.session === elt) {
|
|
328
|
-
fn(evt.value);
|
|
329
|
-
}
|
|
330
|
-
}, signal);
|
|
331
|
-
}),
|
|
332
|
-
};
|
|
333
|
-
var mockRmksa = (_b = exportedFunctions.requestMediaKeySystemAccess) !== null && _b !== void 0 ? _b : jest.fn(requestMediaKeySystemAccessImpl);
|
|
334
|
-
var mockSetMediaKeys = (_c = exportedFunctions.setMediaKeys) !== null && _c !== void 0 ? _c : jest.fn(function () { return Promise.resolve(); });
|
|
335
|
-
var mockGenerateKeyRequest = jest.fn(function (mks, initializationDataType, initializationData) {
|
|
336
|
-
return mks.generateRequest(initializationDataType, initializationData);
|
|
337
|
-
});
|
|
338
|
-
var mockGetInitData = jest.fn(function (encryptedEvent) {
|
|
339
|
-
return encryptedEvent;
|
|
340
|
-
});
|
|
341
|
-
jest.mock("../../../../compat", function () { return (__assign({ events: mockEvents, shouldRenewMediaKeySystemAccess: jest.fn(function () { return false; }), shouldWaitForEncryptedBeforeAttachment: jest.fn(function () { return false; }), canReuseMediaKeys: jest.fn(function () { return true; }) }, exportedFunctions)); });
|
|
342
|
-
var emeImplementation = {
|
|
343
|
-
onEncrypted: onEncrypted,
|
|
344
|
-
requestMediaKeySystemAccess: mockRmksa,
|
|
345
|
-
setMediaKeys: mockSetMediaKeys,
|
|
346
|
-
};
|
|
347
|
-
jest.mock("../../../../compat/eme", function () { return (__assign({ __esModule: true, default: emeImplementation, getInitData: mockGetInitData, generateKeyRequest: mockGenerateKeyRequest }, exportedFunctions)); });
|
|
348
|
-
return { mockEvents: mockEvents, eventTriggers: {
|
|
349
|
-
triggerEncrypted: function (elt, value) {
|
|
350
|
-
ee.triggerEncrypted(elt, value);
|
|
351
|
-
},
|
|
352
|
-
triggerKeyMessage: function (session, value) {
|
|
353
|
-
ee.triggerKeyMessage(session, value);
|
|
354
|
-
},
|
|
355
|
-
triggerKeyError: function (session, value) {
|
|
356
|
-
ee.triggerKeyError(session, value);
|
|
357
|
-
},
|
|
358
|
-
triggerKeyStatusesChange: function (session, value) {
|
|
359
|
-
ee.triggerKeyStatusesChange(session, value);
|
|
360
|
-
},
|
|
361
|
-
},
|
|
362
|
-
mockRequestMediaKeySystemAccess: mockRmksa, mockGetInitData: mockGetInitData, mockSetMediaKeys: mockSetMediaKeys, mockGenerateKeyRequest: mockGenerateKeyRequest };
|
|
363
|
-
}
|
|
364
|
-
/**
|
|
365
|
-
* Check that the ContentDecryptor, when called with those arguments, throws.
|
|
366
|
-
* If that's the case, resolve with the corresponding error.
|
|
367
|
-
* Else, reject.
|
|
368
|
-
* @param {HTMLMediaElement} mediaElement
|
|
369
|
-
* @param {Array.<Object>} keySystemsConfigs
|
|
370
|
-
* @param {Array} keySystemsConfigs
|
|
371
|
-
* @returns {Promise}
|
|
372
|
-
*/
|
|
373
|
-
export function testContentDecryptorError(ContentDecryptor, mediaElement, keySystemsConfigs) {
|
|
374
|
-
return new Promise(function (res, rej) {
|
|
375
|
-
var contentDecryptor = new ContentDecryptor(mediaElement, keySystemsConfigs);
|
|
376
|
-
contentDecryptor.addEventListener("error", function (error) {
|
|
377
|
-
res(error);
|
|
378
|
-
});
|
|
379
|
-
setTimeout(function () {
|
|
380
|
-
rej(new Error("Timeout exceeded"));
|
|
381
|
-
}, 10);
|
|
382
|
-
});
|
|
383
|
-
}
|
|
384
|
-
/**
|
|
385
|
-
* Does the reverse operation than what `formatFakeChallengeFromInitData` does:
|
|
386
|
-
* Retrieve initialization data from a fake challenge done in our tests
|
|
387
|
-
* @param {Uint8Array} challenge
|
|
388
|
-
* @returns {Object}
|
|
389
|
-
*/
|
|
390
|
-
export function extrackInfoFromFakeChallenge(challenge) {
|
|
391
|
-
var licenseData = JSON.stringify(utf8ToStr(challenge));
|
|
392
|
-
var initData = base64ToBytes(licenseData[1]);
|
|
393
|
-
return { initData: initData, initDataType: licenseData[0] };
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* @param {BufferSource} initData
|
|
397
|
-
* @param {string} initDataType
|
|
398
|
-
* @returns {Uint8Array}
|
|
399
|
-
*/
|
|
400
|
-
export function formatFakeChallengeFromInitData(initData, initDataType) {
|
|
401
|
-
var initDataAB = initData instanceof ArrayBuffer ? initData :
|
|
402
|
-
initData.buffer;
|
|
403
|
-
var objChallenge = [initDataType, bytesToBase64(new Uint8Array(initDataAB))];
|
|
404
|
-
return strToUtf8(JSON.stringify(objChallenge));
|
|
405
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
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 { ICustomMediaKeys, ICustomMediaKeySystemAccess, IEmeApiImplementation } from "../../compat/eme";
|
|
17
|
-
import { IKeySystemOption } from "../../public_types";
|
|
18
|
-
import { CancellationSignal } from "../../utils/task_canceller";
|
|
19
|
-
import LoadedSessionsStore from "./utils/loaded_sessions_store";
|
|
20
|
-
/**
|
|
21
|
-
* Dispose of the MediaKeys instance attached to the given media element, if
|
|
22
|
-
* one.
|
|
23
|
-
* @param {Object} mediaElement
|
|
24
|
-
*/
|
|
25
|
-
export declare function disableMediaKeys(mediaElement: HTMLMediaElement): void;
|
|
26
|
-
/**
|
|
27
|
-
* Attach MediaKeys and its associated state to an HTMLMediaElement.
|
|
28
|
-
*
|
|
29
|
-
* /!\ Mutates heavily MediaKeysInfosStore
|
|
30
|
-
* @param {HTMLMediaElement} mediaElement
|
|
31
|
-
* @param {Object} mediaKeysInfos
|
|
32
|
-
* @param {Object} cancelSignal
|
|
33
|
-
* @returns {Promise}
|
|
34
|
-
*/
|
|
35
|
-
export default function attachMediaKeys(mediaElement: HTMLMediaElement, { emeImplementation, keySystemOptions, loadedSessionsStore, mediaKeySystemAccess, mediaKeys }: IMediaKeysState, cancelSignal: CancellationSignal): Promise<void>;
|
|
36
|
-
/** MediaKeys and associated state attached to a media element. */
|
|
37
|
-
export interface IMediaKeysState {
|
|
38
|
-
/** Options set when the MediaKeys has been attached. */
|
|
39
|
-
keySystemOptions: IKeySystemOption;
|
|
40
|
-
/** LoadedSessionsStore associated to the MediaKeys instance. */
|
|
41
|
-
loadedSessionsStore: LoadedSessionsStore;
|
|
42
|
-
/** The MediaKeySystemAccess allowing to create MediaKeys instances. */
|
|
43
|
-
mediaKeySystemAccess: MediaKeySystemAccess | ICustomMediaKeySystemAccess;
|
|
44
|
-
/** The MediaKeys instance to attach to the media element. */
|
|
45
|
-
mediaKeys: MediaKeys | ICustomMediaKeys;
|
|
46
|
-
/**
|
|
47
|
-
* The chosen EME implementation abstraction linked to `mediaKeys`.
|
|
48
|
-
* Different EME implementation might for example be used while debugging or
|
|
49
|
-
* work-arounding EME-linked device issues.
|
|
50
|
-
*/
|
|
51
|
-
emeImplementation: IEmeApiImplementation;
|
|
52
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
18
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
19
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
20
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
21
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
22
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
26
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
27
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
28
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
29
|
-
function step(op) {
|
|
30
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
31
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
32
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
33
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
34
|
-
switch (op[0]) {
|
|
35
|
-
case 0: case 1: t = op; break;
|
|
36
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
37
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
38
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
39
|
-
default:
|
|
40
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
41
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
42
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
43
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
44
|
-
if (t[2]) _.ops.pop();
|
|
45
|
-
_.trys.pop(); continue;
|
|
46
|
-
}
|
|
47
|
-
op = body.call(thisArg, _);
|
|
48
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
49
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
import eme from "../../compat/eme";
|
|
53
|
-
import log from "../../log";
|
|
54
|
-
import MediaKeysInfosStore from "./utils/media_keys_infos_store";
|
|
55
|
-
/**
|
|
56
|
-
* Dispose of the MediaKeys instance attached to the given media element, if
|
|
57
|
-
* one.
|
|
58
|
-
* @param {Object} mediaElement
|
|
59
|
-
*/
|
|
60
|
-
export function disableMediaKeys(mediaElement) {
|
|
61
|
-
MediaKeysInfosStore.setState(mediaElement, null);
|
|
62
|
-
eme.setMediaKeys(mediaElement, null)
|
|
63
|
-
.then(function () {
|
|
64
|
-
log.info("DRM: MediaKeys disabled with success");
|
|
65
|
-
})
|
|
66
|
-
.catch(function (err) {
|
|
67
|
-
log.error("DRM: Could not disable MediaKeys", err instanceof Error ? err : "Unknown Error");
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Attach MediaKeys and its associated state to an HTMLMediaElement.
|
|
72
|
-
*
|
|
73
|
-
* /!\ Mutates heavily MediaKeysInfosStore
|
|
74
|
-
* @param {HTMLMediaElement} mediaElement
|
|
75
|
-
* @param {Object} mediaKeysInfos
|
|
76
|
-
* @param {Object} cancelSignal
|
|
77
|
-
* @returns {Promise}
|
|
78
|
-
*/
|
|
79
|
-
export default function attachMediaKeys(mediaElement, _a, cancelSignal) {
|
|
80
|
-
var emeImplementation = _a.emeImplementation, keySystemOptions = _a.keySystemOptions, loadedSessionsStore = _a.loadedSessionsStore, mediaKeySystemAccess = _a.mediaKeySystemAccess, mediaKeys = _a.mediaKeys;
|
|
81
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
-
var previousState, closeAllSessions;
|
|
83
|
-
return __generator(this, function (_b) {
|
|
84
|
-
switch (_b.label) {
|
|
85
|
-
case 0:
|
|
86
|
-
previousState = MediaKeysInfosStore.getState(mediaElement);
|
|
87
|
-
closeAllSessions = previousState !== null &&
|
|
88
|
-
previousState.loadedSessionsStore !== loadedSessionsStore ?
|
|
89
|
-
previousState.loadedSessionsStore.closeAllSessions() :
|
|
90
|
-
Promise.resolve();
|
|
91
|
-
return [4 /*yield*/, closeAllSessions];
|
|
92
|
-
case 1:
|
|
93
|
-
_b.sent();
|
|
94
|
-
// If this task has been cancelled while we were closing previous sessions,
|
|
95
|
-
// stop now (and thus avoid setting the new media keys);
|
|
96
|
-
if (cancelSignal.isCancelled()) {
|
|
97
|
-
throw cancelSignal.cancellationError;
|
|
98
|
-
}
|
|
99
|
-
MediaKeysInfosStore.setState(mediaElement, { emeImplementation: emeImplementation, keySystemOptions: keySystemOptions, mediaKeySystemAccess: mediaKeySystemAccess, mediaKeys: mediaKeys, loadedSessionsStore: loadedSessionsStore });
|
|
100
|
-
if (mediaElement.mediaKeys === mediaKeys) {
|
|
101
|
-
return [2 /*return*/];
|
|
102
|
-
}
|
|
103
|
-
log.info("DRM: Attaching MediaKeys to the media element");
|
|
104
|
-
emeImplementation.setMediaKeys(mediaElement, mediaKeys)
|
|
105
|
-
.then(function () {
|
|
106
|
-
log.info("DRM: MediaKeys attached with success");
|
|
107
|
-
})
|
|
108
|
-
.catch(function (err) {
|
|
109
|
-
log.error("DRM: Could not set MediaKeys", err instanceof Error ? err : "Unknown Error");
|
|
110
|
-
});
|
|
111
|
-
return [2 /*return*/];
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
});
|
|
115
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
/**
|
|
17
|
-
* Clear DRM-related resources that should be cleared when the current content
|
|
18
|
-
* stops its playback.
|
|
19
|
-
* @param {HTMLMediaElement} mediaElement
|
|
20
|
-
* @returns {Promise}
|
|
21
|
-
*/
|
|
22
|
-
export default function clearOnStop(mediaElement: HTMLMediaElement): Promise<unknown>;
|
|
@@ -1,40 +0,0 @@
|
|
|
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 { shouldUnsetMediaKeys } from "../../compat/";
|
|
17
|
-
import log from "../../log";
|
|
18
|
-
import disposeDecryptionResources from "./dispose_decryption_resources";
|
|
19
|
-
import MediaKeysInfosStore from "./utils/media_keys_infos_store";
|
|
20
|
-
/**
|
|
21
|
-
* Clear DRM-related resources that should be cleared when the current content
|
|
22
|
-
* stops its playback.
|
|
23
|
-
* @param {HTMLMediaElement} mediaElement
|
|
24
|
-
* @returns {Promise}
|
|
25
|
-
*/
|
|
26
|
-
export default function clearOnStop(mediaElement) {
|
|
27
|
-
log.info("DRM: Clearing-up DRM session.");
|
|
28
|
-
if (shouldUnsetMediaKeys()) {
|
|
29
|
-
log.info("DRM: disposing current MediaKeys.");
|
|
30
|
-
return disposeDecryptionResources(mediaElement);
|
|
31
|
-
}
|
|
32
|
-
var currentState = MediaKeysInfosStore.getState(mediaElement);
|
|
33
|
-
if (currentState !== null &&
|
|
34
|
-
currentState.keySystemOptions.closeSessionsOnStop === true) {
|
|
35
|
-
log.info("DRM: closing all current sessions.");
|
|
36
|
-
return currentState.loadedSessionsStore.closeAllSessions();
|
|
37
|
-
}
|
|
38
|
-
log.info("DRM: Nothing to clear. Returning right away. No state =", currentState === null);
|
|
39
|
-
return Promise.resolve();
|
|
40
|
-
}
|