rx-player 4.4.1 → 4.5.0-dev.2026012301
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 +16 -0
- package/README.md +50 -111
- package/VERSION +1 -1
- package/package.json +23 -9
- package/src/README.md +183 -293
- package/src/compat/disable_remote_playback_on_managed_media_source.ts +39 -0
- package/src/compat/eme/close_session.ts +3 -3
- package/src/compat/eme/custom_media_keys/ie11_media_keys.ts +2 -2
- package/src/compat/reset_media_element.ts +50 -0
- package/src/core/adaptive/adaptive_representation_selector.ts +3 -3
- package/src/core/cmcd/cmcd_data_builder.ts +3 -3
- package/src/core/{main/common → entry}/FreezeResolver.ts +7 -7
- package/src/core/{main → entry}/README.md +1 -1
- package/src/core/{main/worker → entry}/content_preparer.ts +181 -94
- package/src/core/{main/common → entry}/content_time_boundaries_observer.ts +16 -13
- package/src/core/{main/worker/worker_main.ts → entry/core_entry.ts} +258 -156
- package/src/core/{main/worker/worker_text_displayer_interface.ts → entry/core_text_displayer_interface.ts} +34 -31
- package/src/core/{main/common → entry}/create_content_time_boundaries_observer.ts +11 -11
- package/src/core/{main/common → entry}/get_buffered_data_per_media_buffer.ts +6 -6
- package/src/core/{main/common → entry}/get_thumbnail_data.ts +6 -6
- package/src/core/entry/index.ts +5 -0
- package/src/core/{main/common → entry}/synchronize_sinks_on_observation.ts +2 -2
- package/src/core/{main/worker → entry}/track_choice_setter.ts +7 -7
- package/src/core/entry/utils.ts +11 -0
- package/src/core/fetchers/manifest/manifest_fetcher.ts +11 -8
- package/src/core/fetchers/segment/__tests__/task_prioritizer.test.ts +10 -10
- package/src/core/fetchers/segment/segment_queue.ts +51 -15
- package/src/core/fetchers/segment/task_prioritizer.ts +2 -2
- package/src/core/fetchers/thumbnails/thumbnail_fetcher.ts +2 -2
- package/src/core/fetchers/utils/schedule_request.ts +2 -2
- package/src/core/segment_sinks/implementations/audio_video/audio_video_segment_sink.ts +2 -2
- package/src/core/segment_sinks/implementations/text/text_segment_sink.ts +1 -1
- package/src/core/segment_sinks/implementations/types.ts +4 -1
- package/src/core/segment_sinks/segment_sinks_store.ts +10 -4
- package/src/core/stream/adaptation/adaptation_stream.ts +63 -29
- package/src/core/stream/orchestrator/stream_orchestrator.ts +25 -15
- package/src/core/stream/period/period_stream.ts +7 -5
- package/src/core/stream/representation/representation_stream.ts +22 -14
- package/src/core/stream/representation/types.ts +5 -0
- package/src/core/types.ts +644 -3
- package/src/experimental/features/__tests__/local.test.ts +11 -2
- package/src/experimental/features/__tests__/metaplaylist.test.ts +11 -2
- package/src/experimental/features/__tests__/multi_thread.test.ts +8 -3
- package/src/experimental/features/local.ts +7 -1
- package/src/experimental/features/metaplaylist.ts +7 -1
- package/src/experimental/features/multi_thread.ts +6 -2
- package/src/experimental/features/worker/index.ts +5 -0
- package/src/experimental/tools/DummyMediaElement/html5.ts +4 -4
- package/src/experimental/tools/DummyMediaElement/mse.ts +5 -5
- package/src/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.ts +2 -4
- package/src/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.ts +13 -11
- package/src/experimental/tools/createMetaplaylist/get_duration_from_manifest.ts +2 -2
- package/src/features/README.md +5 -0
- package/src/features/features_object.ts +1 -1
- package/src/features/list/__tests__/dash.test.ts +12 -3
- package/src/features/list/__tests__/smooth.test.ts +11 -2
- package/src/features/list/dash.ts +7 -1
- package/src/features/list/dash_wasm.ts +7 -1
- package/src/features/list/media_source_main.ts +7 -1
- package/src/features/list/smooth.ts +7 -1
- package/src/features/types.ts +23 -4
- package/src/importable_worker.ts +175 -0
- package/src/initialize_worker.ts +86 -0
- package/src/main_thread/README.md +8 -0
- package/src/main_thread/api/__tests__/option_utils.test.ts +154 -4
- package/src/main_thread/api/__tests__/public_api.test.ts +2 -2
- package/src/main_thread/api/option_utils.ts +45 -6
- package/src/main_thread/api/public_api.ts +372 -113
- package/src/main_thread/core_interface/README.md +22 -0
- package/src/main_thread/core_interface/base.ts +36 -0
- package/src/main_thread/core_interface/monothread.ts +46 -0
- package/src/main_thread/core_interface/multithread.ts +49 -0
- package/src/main_thread/core_interface/types.ts +5 -0
- package/src/main_thread/decrypt/__tests__/__global__/get_license.test.ts +1 -1
- package/src/main_thread/decrypt/__tests__/__global__/media_key_system_access.test.ts +1 -1
- package/src/main_thread/decrypt/__tests__/__global__/media_keys.test.ts +7 -7
- package/src/main_thread/decrypt/__tests__/__global__/server_certificate.test.ts +5 -5
- package/src/main_thread/decrypt/__tests__/find_key_system.test.ts +3 -3
- package/src/main_thread/decrypt/content_decryptor.ts +7 -4
- package/src/main_thread/decrypt/session_events_listener.ts +7 -7
- package/src/main_thread/init/directfile_content_initializer.ts +9 -6
- package/src/main_thread/init/media_source_content_initializer.ts +2071 -1153
- package/src/main_thread/init/types.ts +4 -1
- package/src/main_thread/init/utils/create_core_playback_observer.ts +3 -2
- package/src/main_thread/init/utils/get_loaded_reference.ts +3 -3
- package/src/main_thread/init/utils/initialize_content_decryption.ts +4 -4
- package/src/main_thread/init/utils/main_thread_text_displayer_interface.ts +2 -2
- package/src/main_thread/init/utils/rebuffering_controller.ts +16 -10
- package/src/main_thread/init/utils/stream_events_emitter/stream_events_emitter.ts +11 -6
- package/src/main_thread/init/utils/update_manifest_codec_support.ts +1 -1
- package/src/main_thread/render_thumbnail.ts +3 -3
- package/src/main_thread/text_displayer/html/html_text_displayer.ts +27 -17
- package/src/main_thread/text_displayer/types.ts +3 -1
- package/src/main_thread/tracks_store/track_dispatcher.ts +10 -7
- package/src/main_thread/tracks_store/tracks_store.ts +5 -5
- package/src/main_thread/types.ts +650 -0
- package/src/manifest/classes/__tests__/adaptation.test.ts +2 -2
- package/src/manifest/classes/__tests__/manifest.test.ts +6 -6
- package/src/manifest/classes/__tests__/period.test.ts +160 -173
- package/src/manifest/utils.ts +31 -4
- package/src/mse/main_media_source_interface.ts +37 -16
- package/src/mse/types.ts +19 -5
- package/src/mse/utils/end_of_stream.ts +6 -6
- package/src/mse/utils/media_source_duration_updater.ts +19 -10
- package/src/mse/worker_media_source_interface.ts +66 -46
- package/src/parsers/manifest/smooth/create_parser.ts +40 -34
- package/src/parsers/manifest/smooth/parse_C_nodes.ts +19 -8
- package/src/parsers/manifest/smooth/parse_protection_node.ts +17 -9
- package/src/parsers/manifest/smooth/utils/parseBoolean.ts +1 -1
- package/src/parsers/manifest/smooth/utils/reduceChildren.ts +10 -7
- package/src/playback_observer/{worker_playback_observer.ts → core_playback_observer.ts} +13 -13
- package/src/playback_observer/media_element_playback_observer.ts +6 -3
- package/src/public_types.ts +25 -5
- package/src/tools/TextTrackRenderer/text_track_renderer.ts +5 -2
- package/src/transports/dash/integrity_checks.ts +2 -2
- package/src/transports/smooth/pipelines.ts +25 -5
- package/src/utils/event_emitter.ts +35 -17
- package/src/utils/task_canceller.ts +64 -18
- package/src/worker_entry_point.ts +8 -6
- package/vitest.config.mjs +36 -29
- package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.d.ts +0 -4
- package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.d.ts.map +0 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.js +0 -6
- package/dist/commonjs/__GENERATED_CODE/embedded_worker.d.ts +0 -4
- package/dist/commonjs/__GENERATED_CODE/embedded_worker.d.ts.map +0 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_worker.js +0 -6
- package/dist/commonjs/__GENERATED_CODE/index.d.ts +0 -3
- package/dist/commonjs/__GENERATED_CODE/index.d.ts.map +0 -1
- package/dist/commonjs/__GENERATED_CODE/index.js +0 -7
- package/dist/commonjs/compat/add_class_name.d.ts +0 -23
- package/dist/commonjs/compat/add_class_name.d.ts.map +0 -1
- package/dist/commonjs/compat/add_class_name.js +0 -39
- package/dist/commonjs/compat/add_text_track.d.ts +0 -32
- package/dist/commonjs/compat/add_text_track.d.ts.map +0 -1
- package/dist/commonjs/compat/add_text_track.js +0 -52
- package/dist/commonjs/compat/browser_compatibility_types.d.ts +0 -384
- package/dist/commonjs/compat/browser_compatibility_types.d.ts.map +0 -1
- package/dist/commonjs/compat/browser_compatibility_types.js +0 -47
- package/dist/commonjs/compat/browser_version.d.ts +0 -25
- package/dist/commonjs/compat/browser_version.d.ts.map +0 -1
- package/dist/commonjs/compat/browser_version.js +0 -43
- package/dist/commonjs/compat/can_patch_isobmff.d.ts +0 -26
- package/dist/commonjs/compat/can_patch_isobmff.d.ts.map +0 -1
- package/dist/commonjs/compat/can_patch_isobmff.js +0 -32
- package/dist/commonjs/compat/can_preload_before_play.d.ts +0 -11
- package/dist/commonjs/compat/can_preload_before_play.d.ts.map +0 -1
- package/dist/commonjs/compat/can_preload_before_play.js +0 -23
- package/dist/commonjs/compat/can_rely_on_request_media_key_system_access.d.ts +0 -41
- package/dist/commonjs/compat/can_rely_on_request_media_key_system_access.d.ts.map +0 -1
- package/dist/commonjs/compat/can_rely_on_request_media_key_system_access.js +0 -56
- package/dist/commonjs/compat/can_rely_on_video_visibility_and_size.d.ts +0 -38
- package/dist/commonjs/compat/can_rely_on_video_visibility_and_size.d.ts.map +0 -1
- package/dist/commonjs/compat/can_rely_on_video_visibility_and_size.js +0 -52
- package/dist/commonjs/compat/can_reuse_media_keys.d.ts +0 -20
- package/dist/commonjs/compat/can_reuse_media_keys.d.ts.map +0 -1
- package/dist/commonjs/compat/can_reuse_media_keys.js +0 -33
- package/dist/commonjs/compat/change_source_buffer_type.d.ts +0 -49
- package/dist/commonjs/compat/change_source_buffer_type.d.ts.map +0 -1
- package/dist/commonjs/compat/change_source_buffer_type.js +0 -40
- package/dist/commonjs/compat/clear_element_src.d.ts +0 -22
- package/dist/commonjs/compat/clear_element_src.d.ts.map +0 -1
- package/dist/commonjs/compat/clear_element_src.js +0 -56
- package/dist/commonjs/compat/eme/close_session.d.ts +0 -31
- package/dist/commonjs/compat/eme/close_session.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/close_session.js +0 -169
- package/dist/commonjs/compat/eme/constants.d.ts +0 -17
- package/dist/commonjs/compat/eme/constants.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/constants.js +0 -22
- package/dist/commonjs/compat/eme/custom_key_system_access.d.ts +0 -50
- package/dist/commonjs/compat/eme/custom_key_system_access.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/custom_key_system_access.js +0 -49
- package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.d.ts +0 -32
- package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.js +0 -181
- package/dist/commonjs/compat/eme/custom_media_keys/index.d.ts +0 -7
- package/dist/commonjs/compat/eme/custom_media_keys/index.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/custom_media_keys/index.js +0 -16
- package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +0 -28
- package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.js +0 -61
- package/dist/commonjs/compat/eme/custom_media_keys/ms_media_keys_constructor.d.ts +0 -44
- package/dist/commonjs/compat/eme/custom_media_keys/ms_media_keys_constructor.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/custom_media_keys/ms_media_keys_constructor.js +0 -28
- package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +0 -42
- package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.js +0 -195
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.d.ts +0 -33
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.js +0 -233
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts +0 -23
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +0 -30
- package/dist/commonjs/compat/eme/eme-api-implementation.d.ts +0 -78
- package/dist/commonjs/compat/eme/eme-api-implementation.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/eme-api-implementation.js +0 -241
- package/dist/commonjs/compat/eme/generate_key_request.d.ts +0 -55
- package/dist/commonjs/compat/eme/generate_key_request.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/generate_key_request.js +0 -148
- package/dist/commonjs/compat/eme/get_init_data.d.ts +0 -60
- package/dist/commonjs/compat/eme/get_init_data.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/get_init_data.js +0 -113
- package/dist/commonjs/compat/eme/get_uuid_kid_from_keystatus_kid.d.ts +0 -24
- package/dist/commonjs/compat/eme/get_uuid_kid_from_keystatus_kid.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/get_uuid_kid_from_keystatus_kid.js +0 -36
- package/dist/commonjs/compat/eme/get_webkit_fairplay_initdata.d.ts +0 -26
- package/dist/commonjs/compat/eme/get_webkit_fairplay_initdata.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/get_webkit_fairplay_initdata.js +0 -57
- package/dist/commonjs/compat/eme/index.d.ts +0 -26
- package/dist/commonjs/compat/eme/index.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/index.js +0 -28
- package/dist/commonjs/compat/eme/load_session.d.ts +0 -31
- package/dist/commonjs/compat/eme/load_session.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/load_session.js +0 -102
- package/dist/commonjs/compat/eme/set_media_keys.d.ts +0 -10
- package/dist/commonjs/compat/eme/set_media_keys.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/set_media_keys.js +0 -36
- package/dist/commonjs/compat/enable_audio_track.d.ts +0 -12
- package/dist/commonjs/compat/enable_audio_track.d.ts.map +0 -1
- package/dist/commonjs/compat/enable_audio_track.js +0 -29
- package/dist/commonjs/compat/env_detector.d.ts +0 -100
- package/dist/commonjs/compat/env_detector.d.ts.map +0 -1
- package/dist/commonjs/compat/env_detector.js +0 -189
- package/dist/commonjs/compat/event_listeners.d.ts +0 -175
- package/dist/commonjs/compat/event_listeners.d.ts.map +0 -1
- package/dist/commonjs/compat/event_listeners.js +0 -437
- package/dist/commonjs/compat/generate_init_data.d.ts +0 -14
- package/dist/commonjs/compat/generate_init_data.d.ts.map +0 -1
- package/dist/commonjs/compat/generate_init_data.js +0 -60
- package/dist/commonjs/compat/get_start_date.d.ts +0 -32
- package/dist/commonjs/compat/get_start_date.d.ts.map +0 -1
- package/dist/commonjs/compat/get_start_date.js +0 -47
- package/dist/commonjs/compat/has_issues_with_high_media_source_duration.d.ts +0 -22
- package/dist/commonjs/compat/has_issues_with_high_media_source_duration.d.ts.map +0 -1
- package/dist/commonjs/compat/has_issues_with_high_media_source_duration.js +0 -32
- package/dist/commonjs/compat/has_mse_in_worker.d.ts +0 -3
- package/dist/commonjs/compat/has_mse_in_worker.d.ts.map +0 -1
- package/dist/commonjs/compat/has_mse_in_worker.js +0 -6
- package/dist/commonjs/compat/has_webassembly.d.ts +0 -7
- package/dist/commonjs/compat/has_webassembly.d.ts.map +0 -1
- package/dist/commonjs/compat/has_webassembly.js +0 -8
- package/dist/commonjs/compat/has_worker_api.d.ts +0 -10
- package/dist/commonjs/compat/has_worker_api.d.ts.map +0 -1
- package/dist/commonjs/compat/has_worker_api.js +0 -17
- package/dist/commonjs/compat/is_codec_supported.d.ts +0 -28
- package/dist/commonjs/compat/is_codec_supported.d.ts.map +0 -1
- package/dist/commonjs/compat/is_codec_supported.js +0 -70
- package/dist/commonjs/compat/is_seeking_approximate.d.ts +0 -29
- package/dist/commonjs/compat/is_seeking_approximate.d.ts.map +0 -1
- package/dist/commonjs/compat/is_seeking_approximate.js +0 -36
- package/dist/commonjs/compat/is_vtt_cue.d.ts +0 -23
- package/dist/commonjs/compat/is_vtt_cue.d.ts.map +0 -1
- package/dist/commonjs/compat/is_vtt_cue.js +0 -27
- package/dist/commonjs/compat/make_vtt_cue.d.ts +0 -27
- package/dist/commonjs/compat/make_vtt_cue.d.ts.map +0 -1
- package/dist/commonjs/compat/make_vtt_cue.js +0 -47
- package/dist/commonjs/compat/may_media_element_fail_on_undecipherable_data.d.ts +0 -17
- package/dist/commonjs/compat/may_media_element_fail_on_undecipherable_data.d.ts.map +0 -1
- package/dist/commonjs/compat/may_media_element_fail_on_undecipherable_data.js +0 -25
- package/dist/commonjs/compat/on_height_width_change.d.ts +0 -34
- package/dist/commonjs/compat/on_height_width_change.d.ts.map +0 -1
- package/dist/commonjs/compat/on_height_width_change.js +0 -75
- package/dist/commonjs/compat/patch_webkit_source_buffer.d.ts +0 -17
- package/dist/commonjs/compat/patch_webkit_source_buffer.d.ts.map +0 -1
- package/dist/commonjs/compat/patch_webkit_source_buffer.js +0 -65
- package/dist/commonjs/compat/remove_cue.d.ts +0 -23
- package/dist/commonjs/compat/remove_cue.d.ts.map +0 -1
- package/dist/commonjs/compat/remove_cue.js +0 -66
- package/dist/commonjs/compat/should_await_set_media_keys.d.ts +0 -17
- package/dist/commonjs/compat/should_await_set_media_keys.d.ts.map +0 -1
- package/dist/commonjs/compat/should_await_set_media_keys.js +0 -27
- package/dist/commonjs/compat/should_favour_custom_safari_EME.d.ts +0 -24
- package/dist/commonjs/compat/should_favour_custom_safari_EME.d.ts.map +0 -1
- package/dist/commonjs/compat/should_favour_custom_safari_EME.js +0 -37
- package/dist/commonjs/compat/should_reload_media_source_on_decipherability_update.d.ts +0 -27
- package/dist/commonjs/compat/should_reload_media_source_on_decipherability_update.d.ts.map +0 -1
- package/dist/commonjs/compat/should_reload_media_source_on_decipherability_update.js +0 -35
- package/dist/commonjs/compat/should_renew_media_key_system_access.d.ts +0 -22
- package/dist/commonjs/compat/should_renew_media_key_system_access.d.ts.map +0 -1
- package/dist/commonjs/compat/should_renew_media_key_system_access.js +0 -35
- package/dist/commonjs/compat/should_unset_media_keys.d.ts +0 -23
- package/dist/commonjs/compat/should_unset_media_keys.d.ts.map +0 -1
- package/dist/commonjs/compat/should_unset_media_keys.js +0 -30
- package/dist/commonjs/compat/should_validate_metadata.d.ts +0 -23
- package/dist/commonjs/compat/should_validate_metadata.d.ts.map +0 -1
- package/dist/commonjs/compat/should_validate_metadata.js +0 -30
- package/dist/commonjs/compat/should_wait_for_data_before_loaded.d.ts +0 -25
- package/dist/commonjs/compat/should_wait_for_data_before_loaded.d.ts.map +0 -1
- package/dist/commonjs/compat/should_wait_for_data_before_loaded.js +0 -42
- package/dist/commonjs/compat/should_wait_for_have_enough_data.d.ts +0 -14
- package/dist/commonjs/compat/should_wait_for_have_enough_data.d.ts.map +0 -1
- package/dist/commonjs/compat/should_wait_for_have_enough_data.js +0 -22
- package/dist/commonjs/config.d.ts +0 -21
- package/dist/commonjs/config.d.ts.map +0 -1
- package/dist/commonjs/config.js +0 -73
- package/dist/commonjs/core/adaptive/adaptive_representation_selector.d.ts +0 -294
- package/dist/commonjs/core/adaptive/adaptive_representation_selector.d.ts.map +0 -1
- package/dist/commonjs/core/adaptive/adaptive_representation_selector.js +0 -411
- package/dist/commonjs/core/adaptive/buffer_based_chooser.d.ts +0 -90
- package/dist/commonjs/core/adaptive/buffer_based_chooser.d.ts.map +0 -1
- package/dist/commonjs/core/adaptive/buffer_based_chooser.js +0 -202
- package/dist/commonjs/core/adaptive/guess_based_chooser.d.ts +0 -96
- package/dist/commonjs/core/adaptive/guess_based_chooser.d.ts.map +0 -1
- package/dist/commonjs/core/adaptive/guess_based_chooser.js +0 -272
- package/dist/commonjs/core/adaptive/index.d.ts +0 -20
- package/dist/commonjs/core/adaptive/index.d.ts.map +0 -1
- package/dist/commonjs/core/adaptive/index.js +0 -19
- package/dist/commonjs/core/adaptive/network_analyzer.d.ts +0 -74
- package/dist/commonjs/core/adaptive/network_analyzer.d.ts.map +0 -1
- package/dist/commonjs/core/adaptive/network_analyzer.js +0 -355
- package/dist/commonjs/core/adaptive/utils/bandwidth_estimator.d.ts +0 -48
- package/dist/commonjs/core/adaptive/utils/bandwidth_estimator.d.ts.map +0 -1
- package/dist/commonjs/core/adaptive/utils/bandwidth_estimator.js +0 -72
- package/dist/commonjs/core/adaptive/utils/ewma.d.ts +0 -40
- package/dist/commonjs/core/adaptive/utils/ewma.d.ts.map +0 -1
- package/dist/commonjs/core/adaptive/utils/ewma.js +0 -53
- package/dist/commonjs/core/adaptive/utils/filter_by_bitrate.d.ts +0 -26
- package/dist/commonjs/core/adaptive/utils/filter_by_bitrate.d.ts.map +0 -1
- package/dist/commonjs/core/adaptive/utils/filter_by_bitrate.js +0 -40
- package/dist/commonjs/core/adaptive/utils/filter_by_resolution.d.ts +0 -32
- package/dist/commonjs/core/adaptive/utils/filter_by_resolution.d.ts.map +0 -1
- package/dist/commonjs/core/adaptive/utils/filter_by_resolution.js +0 -51
- package/dist/commonjs/core/adaptive/utils/get_buffer_levels.d.ts +0 -25
- package/dist/commonjs/core/adaptive/utils/get_buffer_levels.d.ts.map +0 -1
- package/dist/commonjs/core/adaptive/utils/get_buffer_levels.js +0 -53
- package/dist/commonjs/core/adaptive/utils/last_estimate_storage.d.ts +0 -62
- package/dist/commonjs/core/adaptive/utils/last_estimate_storage.d.ts.map +0 -1
- package/dist/commonjs/core/adaptive/utils/last_estimate_storage.js +0 -39
- package/dist/commonjs/core/adaptive/utils/pending_requests_store.d.ts +0 -111
- package/dist/commonjs/core/adaptive/utils/pending_requests_store.d.ts.map +0 -1
- package/dist/commonjs/core/adaptive/utils/pending_requests_store.js +0 -79
- package/dist/commonjs/core/adaptive/utils/representation_score_calculator.d.ts +0 -105
- package/dist/commonjs/core/adaptive/utils/representation_score_calculator.d.ts.map +0 -1
- package/dist/commonjs/core/adaptive/utils/representation_score_calculator.js +0 -121
- package/dist/commonjs/core/adaptive/utils/select_optimal_representation.d.ts +0 -28
- package/dist/commonjs/core/adaptive/utils/select_optimal_representation.d.ts.map +0 -1
- package/dist/commonjs/core/adaptive/utils/select_optimal_representation.js +0 -39
- package/dist/commonjs/core/cmcd/cmcd_data_builder.d.ts +0 -133
- package/dist/commonjs/core/cmcd/cmcd_data_builder.d.ts.map +0 -1
- package/dist/commonjs/core/cmcd/cmcd_data_builder.js +0 -368
- package/dist/commonjs/core/cmcd/index.d.ts +0 -4
- package/dist/commonjs/core/cmcd/index.d.ts.map +0 -1
- package/dist/commonjs/core/cmcd/index.js +0 -4
- package/dist/commonjs/core/fetchers/cdn_prioritizer.d.ts +0 -108
- package/dist/commonjs/core/fetchers/cdn_prioritizer.d.ts.map +0 -1
- package/dist/commonjs/core/fetchers/cdn_prioritizer.js +0 -215
- package/dist/commonjs/core/fetchers/index.d.ts +0 -25
- package/dist/commonjs/core/fetchers/index.d.ts.map +0 -1
- package/dist/commonjs/core/fetchers/index.js +0 -26
- package/dist/commonjs/core/fetchers/manifest/index.d.ts +0 -20
- package/dist/commonjs/core/fetchers/manifest/index.d.ts.map +0 -1
- package/dist/commonjs/core/fetchers/manifest/index.js +0 -19
- package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.d.ts +0 -236
- package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.d.ts.map +0 -1
- package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.js +0 -657
- package/dist/commonjs/core/fetchers/segment/index.d.ts +0 -22
- package/dist/commonjs/core/fetchers/segment/index.d.ts.map +0 -1
- package/dist/commonjs/core/fetchers/segment/index.js +0 -19
- package/dist/commonjs/core/fetchers/segment/initialization_segment_cache.d.ts +0 -43
- package/dist/commonjs/core/fetchers/segment/initialization_segment_cache.d.ts.map +0 -1
- package/dist/commonjs/core/fetchers/segment/initialization_segment_cache.js +0 -53
- package/dist/commonjs/core/fetchers/segment/prioritized_segment_fetcher.d.ts +0 -40
- package/dist/commonjs/core/fetchers/segment/prioritized_segment_fetcher.d.ts.map +0 -1
- package/dist/commonjs/core/fetchers/segment/prioritized_segment_fetcher.js +0 -70
- package/dist/commonjs/core/fetchers/segment/segment_fetcher.d.ts +0 -200
- package/dist/commonjs/core/fetchers/segment/segment_fetcher.d.ts.map +0 -1
- package/dist/commonjs/core/fetchers/segment/segment_fetcher.js +0 -330
- package/dist/commonjs/core/fetchers/segment/segment_queue.d.ts +0 -230
- package/dist/commonjs/core/fetchers/segment/segment_queue.d.ts.map +0 -1
- package/dist/commonjs/core/fetchers/segment/segment_queue.js +0 -445
- package/dist/commonjs/core/fetchers/segment/segment_queue_creator.d.ts +0 -98
- package/dist/commonjs/core/fetchers/segment/segment_queue_creator.d.ts.map +0 -1
- package/dist/commonjs/core/fetchers/segment/segment_queue_creator.js +0 -77
- package/dist/commonjs/core/fetchers/segment/task_prioritizer.d.ts +0 -155
- package/dist/commonjs/core/fetchers/segment/task_prioritizer.d.ts.map +0 -1
- package/dist/commonjs/core/fetchers/segment/task_prioritizer.js +0 -381
- package/dist/commonjs/core/fetchers/thumbnails/index.d.ts +0 -5
- package/dist/commonjs/core/fetchers/thumbnails/index.d.ts.map +0 -1
- package/dist/commonjs/core/fetchers/thumbnails/index.js +0 -4
- package/dist/commonjs/core/fetchers/thumbnails/thumbnail_fetcher.d.ts +0 -79
- package/dist/commonjs/core/fetchers/thumbnails/thumbnail_fetcher.d.ts.map +0 -1
- package/dist/commonjs/core/fetchers/thumbnails/thumbnail_fetcher.js +0 -259
- package/dist/commonjs/core/fetchers/utils/error_selector.d.ts +0 -23
- package/dist/commonjs/core/fetchers/utils/error_selector.d.ts.map +0 -1
- package/dist/commonjs/core/fetchers/utils/error_selector.js +0 -34
- package/dist/commonjs/core/fetchers/utils/schedule_request.d.ts +0 -99
- package/dist/commonjs/core/fetchers/utils/schedule_request.d.ts.map +0 -1
- package/dist/commonjs/core/fetchers/utils/schedule_request.js +0 -391
- package/dist/commonjs/core/main/common/FreezeResolver.d.ts +0 -176
- package/dist/commonjs/core/main/common/FreezeResolver.d.ts.map +0 -1
- package/dist/commonjs/core/main/common/FreezeResolver.js +0 -455
- package/dist/commonjs/core/main/common/content_time_boundaries_observer.d.ts +0 -192
- package/dist/commonjs/core/main/common/content_time_boundaries_observer.d.ts.map +0 -1
- package/dist/commonjs/core/main/common/content_time_boundaries_observer.js +0 -558
- package/dist/commonjs/core/main/common/create_content_time_boundaries_observer.d.ts +0 -28
- package/dist/commonjs/core/main/common/create_content_time_boundaries_observer.d.ts.map +0 -1
- package/dist/commonjs/core/main/common/create_content_time_boundaries_observer.js +0 -48
- package/dist/commonjs/core/main/common/get_buffered_data_per_media_buffer.d.ts +0 -15
- package/dist/commonjs/core/main/common/get_buffered_data_per_media_buffer.d.ts.map +0 -1
- package/dist/commonjs/core/main/common/get_buffered_data_per_media_buffer.js +0 -37
- package/dist/commonjs/core/main/common/get_thumbnail_data.d.ts +0 -13
- package/dist/commonjs/core/main/common/get_thumbnail_data.d.ts.map +0 -1
- package/dist/commonjs/core/main/common/get_thumbnail_data.js +0 -71
- package/dist/commonjs/core/main/common/synchronize_sinks_on_observation.d.ts +0 -11
- package/dist/commonjs/core/main/common/synchronize_sinks_on_observation.d.ts.map +0 -1
- package/dist/commonjs/core/main/common/synchronize_sinks_on_observation.js +0 -20
- package/dist/commonjs/core/main/worker/content_preparer.d.ts +0 -176
- package/dist/commonjs/core/main/worker/content_preparer.d.ts.map +0 -1
- package/dist/commonjs/core/main/worker/content_preparer.js +0 -416
- package/dist/commonjs/core/main/worker/globals.d.ts +0 -14
- package/dist/commonjs/core/main/worker/globals.d.ts.map +0 -1
- package/dist/commonjs/core/main/worker/globals.js +0 -26
- package/dist/commonjs/core/main/worker/index.d.ts +0 -3
- package/dist/commonjs/core/main/worker/index.d.ts.map +0 -1
- package/dist/commonjs/core/main/worker/index.js +0 -4
- package/dist/commonjs/core/main/worker/send_message.d.ts +0 -4
- package/dist/commonjs/core/main/worker/send_message.d.ts.map +0 -1
- package/dist/commonjs/core/main/worker/send_message.js +0 -23
- package/dist/commonjs/core/main/worker/track_choice_setter.d.ts +0 -20
- package/dist/commonjs/core/main/worker/track_choice_setter.d.ts.map +0 -1
- package/dist/commonjs/core/main/worker/track_choice_setter.js +0 -152
- package/dist/commonjs/core/main/worker/worker_main.d.ts +0 -2
- package/dist/commonjs/core/main/worker/worker_main.d.ts.map +0 -1
- package/dist/commonjs/core/main/worker/worker_main.js +0 -946
- package/dist/commonjs/core/main/worker/worker_text_displayer_interface.d.ts +0 -65
- package/dist/commonjs/core/main/worker/worker_text_displayer_interface.d.ts.map +0 -1
- package/dist/commonjs/core/main/worker/worker_text_displayer_interface.js +0 -126
- package/dist/commonjs/core/segment_sinks/garbage_collector.d.ts +0 -44
- package/dist/commonjs/core/segment_sinks/garbage_collector.d.ts.map +0 -1
- package/dist/commonjs/core/segment_sinks/garbage_collector.js +0 -253
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/audio_video_segment_sink.d.ts +0 -136
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/audio_video_segment_sink.d.ts.map +0 -1
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/audio_video_segment_sink.js +0 -362
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/index.d.ts +0 -18
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/index.d.ts.map +0 -1
- package/dist/commonjs/core/segment_sinks/implementations/audio_video/index.js +0 -19
- package/dist/commonjs/core/segment_sinks/implementations/index.d.ts +0 -21
- package/dist/commonjs/core/segment_sinks/implementations/index.d.ts.map +0 -1
- package/dist/commonjs/core/segment_sinks/implementations/index.js +0 -35
- package/dist/commonjs/core/segment_sinks/implementations/text/index.d.ts +0 -5
- package/dist/commonjs/core/segment_sinks/implementations/text/index.d.ts.map +0 -1
- package/dist/commonjs/core/segment_sinks/implementations/text/index.js +0 -4
- package/dist/commonjs/core/segment_sinks/implementations/text/text_segment_sink.d.ts +0 -101
- package/dist/commonjs/core/segment_sinks/implementations/text/text_segment_sink.d.ts.map +0 -1
- package/dist/commonjs/core/segment_sinks/implementations/text/text_segment_sink.js +0 -291
- package/dist/commonjs/core/segment_sinks/implementations/types.d.ts +0 -308
- package/dist/commonjs/core/segment_sinks/implementations/types.d.ts.map +0 -1
- package/dist/commonjs/core/segment_sinks/implementations/types.js +0 -117
- package/dist/commonjs/core/segment_sinks/implementations/utils/manual_time_ranges.d.ts +0 -30
- package/dist/commonjs/core/segment_sinks/implementations/utils/manual_time_ranges.d.ts.map +0 -1
- package/dist/commonjs/core/segment_sinks/implementations/utils/manual_time_ranges.js +0 -67
- package/dist/commonjs/core/segment_sinks/index.d.ts +0 -25
- package/dist/commonjs/core/segment_sinks/index.d.ts.map +0 -1
- package/dist/commonjs/core/segment_sinks/index.js +0 -28
- package/dist/commonjs/core/segment_sinks/inventory/buffered_history.d.ts +0 -90
- package/dist/commonjs/core/segment_sinks/inventory/buffered_history.d.ts.map +0 -1
- package/dist/commonjs/core/segment_sinks/inventory/buffered_history.js +0 -114
- package/dist/commonjs/core/segment_sinks/inventory/index.d.ts +0 -24
- package/dist/commonjs/core/segment_sinks/inventory/index.d.ts.map +0 -1
- package/dist/commonjs/core/segment_sinks/inventory/index.js +0 -23
- package/dist/commonjs/core/segment_sinks/inventory/segment_inventory.d.ts +0 -240
- package/dist/commonjs/core/segment_sinks/inventory/segment_inventory.d.ts.map +0 -1
- package/dist/commonjs/core/segment_sinks/inventory/segment_inventory.js +0 -1124
- package/dist/commonjs/core/segment_sinks/inventory/types.d.ts +0 -33
- package/dist/commonjs/core/segment_sinks/inventory/types.d.ts.map +0 -1
- package/dist/commonjs/core/segment_sinks/inventory/types.js +0 -17
- package/dist/commonjs/core/segment_sinks/inventory/utils.d.ts +0 -34
- package/dist/commonjs/core/segment_sinks/inventory/utils.d.ts.map +0 -1
- package/dist/commonjs/core/segment_sinks/inventory/utils.js +0 -74
- package/dist/commonjs/core/segment_sinks/segment_sinks_store.d.ts +0 -198
- package/dist/commonjs/core/segment_sinks/segment_sinks_store.d.ts.map +0 -1
- package/dist/commonjs/core/segment_sinks/segment_sinks_store.js +0 -363
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.d.ts +0 -34
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.d.ts.map +0 -1
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.js +0 -563
- package/dist/commonjs/core/stream/adaptation/get_representations_switch_strategy.d.ts +0 -54
- package/dist/commonjs/core/stream/adaptation/get_representations_switch_strategy.d.ts.map +0 -1
- package/dist/commonjs/core/stream/adaptation/get_representations_switch_strategy.js +0 -147
- package/dist/commonjs/core/stream/adaptation/index.d.ts +0 -19
- package/dist/commonjs/core/stream/adaptation/index.d.ts.map +0 -1
- package/dist/commonjs/core/stream/adaptation/index.js +0 -19
- package/dist/commonjs/core/stream/adaptation/types.d.ts +0 -200
- package/dist/commonjs/core/stream/adaptation/types.d.ts.map +0 -1
- package/dist/commonjs/core/stream/adaptation/types.js +0 -2
- package/dist/commonjs/core/stream/index.d.ts +0 -23
- package/dist/commonjs/core/stream/index.d.ts.map +0 -1
- package/dist/commonjs/core/stream/index.js +0 -19
- package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.d.ts +0 -31
- package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.d.ts.map +0 -1
- package/dist/commonjs/core/stream/orchestrator/get_time_ranges_for_content.js +0 -119
- package/dist/commonjs/core/stream/orchestrator/index.d.ts +0 -20
- package/dist/commonjs/core/stream/orchestrator/index.d.ts.map +0 -1
- package/dist/commonjs/core/stream/orchestrator/index.js +0 -19
- package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.d.ts +0 -176
- package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.d.ts.map +0 -1
- package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.js +0 -676
- package/dist/commonjs/core/stream/period/index.d.ts +0 -19
- package/dist/commonjs/core/stream/period/index.d.ts.map +0 -1
- package/dist/commonjs/core/stream/period/index.js +0 -19
- package/dist/commonjs/core/stream/period/period_stream.d.ts +0 -50
- package/dist/commonjs/core/stream/period/period_stream.d.ts.map +0 -1
- package/dist/commonjs/core/stream/period/period_stream.js +0 -545
- package/dist/commonjs/core/stream/period/types.d.ts +0 -120
- package/dist/commonjs/core/stream/period/types.d.ts.map +0 -1
- package/dist/commonjs/core/stream/period/types.js +0 -2
- package/dist/commonjs/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +0 -68
- package/dist/commonjs/core/stream/period/utils/get_adaptation_switch_strategy.d.ts.map +0 -1
- package/dist/commonjs/core/stream/period/utils/get_adaptation_switch_strategy.js +0 -167
- package/dist/commonjs/core/stream/representation/index.d.ts +0 -19
- package/dist/commonjs/core/stream/representation/index.d.ts.map +0 -1
- package/dist/commonjs/core/stream/representation/index.js +0 -19
- package/dist/commonjs/core/stream/representation/representation_stream.d.ts +0 -54
- package/dist/commonjs/core/stream/representation/representation_stream.d.ts.map +0 -1
- package/dist/commonjs/core/stream/representation/representation_stream.js +0 -421
- package/dist/commonjs/core/stream/representation/types.d.ts +0 -314
- package/dist/commonjs/core/stream/representation/types.d.ts.map +0 -1
- package/dist/commonjs/core/stream/representation/types.js +0 -2
- package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.d.ts +0 -36
- package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.d.ts.map +0 -1
- package/dist/commonjs/core/stream/representation/utils/append_segment_to_buffer.js +0 -137
- package/dist/commonjs/core/stream/representation/utils/check_for_discontinuity.d.ts +0 -54
- package/dist/commonjs/core/stream/representation/utils/check_for_discontinuity.d.ts.map +0 -1
- package/dist/commonjs/core/stream/representation/utils/check_for_discontinuity.js +0 -248
- package/dist/commonjs/core/stream/representation/utils/get_buffer_status.d.ts +0 -73
- package/dist/commonjs/core/stream/representation/utils/get_buffer_status.d.ts.map +0 -1
- package/dist/commonjs/core/stream/representation/utils/get_buffer_status.js +0 -228
- package/dist/commonjs/core/stream/representation/utils/get_needed_segments.d.ts +0 -92
- package/dist/commonjs/core/stream/representation/utils/get_needed_segments.d.ts.map +0 -1
- package/dist/commonjs/core/stream/representation/utils/get_needed_segments.js +0 -480
- package/dist/commonjs/core/stream/representation/utils/get_segment_priority.d.ts +0 -29
- package/dist/commonjs/core/stream/representation/utils/get_segment_priority.d.ts.map +0 -1
- package/dist/commonjs/core/stream/representation/utils/get_segment_priority.js +0 -41
- package/dist/commonjs/core/stream/representation/utils/push_init_segment.d.ts +0 -42
- package/dist/commonjs/core/stream/representation/utils/push_init_segment.d.ts.map +0 -1
- package/dist/commonjs/core/stream/representation/utils/push_init_segment.js +0 -86
- package/dist/commonjs/core/stream/representation/utils/push_media_segment.d.ts +0 -43
- package/dist/commonjs/core/stream/representation/utils/push_media_segment.d.ts.map +0 -1
- package/dist/commonjs/core/stream/representation/utils/push_media_segment.js +0 -110
- package/dist/commonjs/core/types.d.ts +0 -9
- package/dist/commonjs/core/types.d.ts.map +0 -1
- package/dist/commonjs/core/types.js +0 -2
- package/dist/commonjs/default_config.d.ts +0 -1200
- package/dist/commonjs/default_config.d.ts.map +0 -1
- package/dist/commonjs/default_config.js +0 -1236
- package/dist/commonjs/errors/custom_loader_error.d.ts +0 -36
- package/dist/commonjs/errors/custom_loader_error.d.ts.map +0 -1
- package/dist/commonjs/errors/custom_loader_error.js +0 -60
- package/dist/commonjs/errors/encrypted_media_error.d.ts +0 -72
- package/dist/commonjs/errors/encrypted_media_error.d.ts.map +0 -1
- package/dist/commonjs/errors/encrypted_media_error.js +0 -76
- package/dist/commonjs/errors/error_codes.d.ts +0 -33
- package/dist/commonjs/errors/error_codes.d.ts.map +0 -1
- package/dist/commonjs/errors/error_codes.js +0 -72
- package/dist/commonjs/errors/error_message.d.ts +0 -23
- package/dist/commonjs/errors/error_message.d.ts.map +0 -1
- package/dist/commonjs/errors/error_message.js +0 -27
- package/dist/commonjs/errors/format_error.d.ts +0 -21
- package/dist/commonjs/errors/format_error.d.ts.map +0 -1
- package/dist/commonjs/errors/format_error.js +0 -33
- package/dist/commonjs/errors/index.d.ts +0 -32
- package/dist/commonjs/errors/index.d.ts.map +0 -1
- package/dist/commonjs/errors/index.js +0 -38
- package/dist/commonjs/errors/is_known_error.d.ts +0 -23
- package/dist/commonjs/errors/is_known_error.d.ts.map +0 -1
- package/dist/commonjs/errors/is_known_error.js +0 -35
- package/dist/commonjs/errors/media_error.d.ts +0 -60
- package/dist/commonjs/errors/media_error.d.ts.map +0 -1
- package/dist/commonjs/errors/media_error.js +0 -74
- package/dist/commonjs/errors/network_error.d.ts +0 -59
- package/dist/commonjs/errors/network_error.d.ts.map +0 -1
- package/dist/commonjs/errors/network_error.js +0 -86
- package/dist/commonjs/errors/other_error.d.ts +0 -47
- package/dist/commonjs/errors/other_error.d.ts.map +0 -1
- package/dist/commonjs/errors/other_error.js +0 -72
- package/dist/commonjs/errors/source_buffer_error.d.ts +0 -40
- package/dist/commonjs/errors/source_buffer_error.d.ts.map +0 -1
- package/dist/commonjs/errors/source_buffer_error.js +0 -63
- package/dist/commonjs/errors/worker_initialization_error.d.ts +0 -19
- package/dist/commonjs/errors/worker_initialization_error.d.ts.map +0 -1
- package/dist/commonjs/errors/worker_initialization_error.js +0 -42
- package/dist/commonjs/experimental/features/index.d.ts +0 -19
- package/dist/commonjs/experimental/features/index.d.ts.map +0 -1
- package/dist/commonjs/experimental/features/index.js +0 -24
- package/dist/commonjs/experimental/features/local.d.ts +0 -20
- package/dist/commonjs/experimental/features/local.d.ts.map +0 -1
- package/dist/commonjs/experimental/features/local.js +0 -25
- package/dist/commonjs/experimental/features/metaplaylist.d.ts +0 -20
- package/dist/commonjs/experimental/features/metaplaylist.d.ts.map +0 -1
- package/dist/commonjs/experimental/features/metaplaylist.js +0 -25
- package/dist/commonjs/experimental/features/multi_thread.d.ts +0 -9
- package/dist/commonjs/experimental/features/multi_thread.d.ts.map +0 -1
- package/dist/commonjs/experimental/features/multi_thread.js +0 -12
- package/dist/commonjs/experimental/index.d.ts +0 -3
- package/dist/commonjs/experimental/index.d.ts.map +0 -1
- package/dist/commonjs/experimental/index.js +0 -5
- package/dist/commonjs/experimental/tools/DummyMediaElement/eme.d.ts +0 -225
- package/dist/commonjs/experimental/tools/DummyMediaElement/eme.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/DummyMediaElement/eme.js +0 -879
- package/dist/commonjs/experimental/tools/DummyMediaElement/html5.d.ts +0 -376
- package/dist/commonjs/experimental/tools/DummyMediaElement/html5.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/DummyMediaElement/html5.js +0 -970
- package/dist/commonjs/experimental/tools/DummyMediaElement/index.d.ts +0 -3
- package/dist/commonjs/experimental/tools/DummyMediaElement/index.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/DummyMediaElement/index.js +0 -4
- package/dist/commonjs/experimental/tools/DummyMediaElement/mse.d.ts +0 -217
- package/dist/commonjs/experimental/tools/DummyMediaElement/mse.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/DummyMediaElement/mse.js +0 -702
- package/dist/commonjs/experimental/tools/DummyMediaElement/utils.d.ts +0 -33
- package/dist/commonjs/experimental/tools/DummyMediaElement/utils.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/DummyMediaElement/utils.js +0 -510
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/dash.d.ts +0 -18
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/dash.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/dash.js +0 -23
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts +0 -18
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/features/metaplaylist.js +0 -23
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/index.d.ts +0 -19
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/index.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/index.js +0 -22
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +0 -27
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +0 -63
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +0 -27
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +0 -74
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +0 -30
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +0 -43
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/types.d.ts +0 -26
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/types.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/types.js +0 -17
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts +0 -55
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +0 -385
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.d.ts +0 -25
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.js +0 -50
- package/dist/commonjs/experimental/tools/createMetaplaylist/get_duration_from_manifest.d.ts +0 -24
- package/dist/commonjs/experimental/tools/createMetaplaylist/get_duration_from_manifest.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +0 -163
- package/dist/commonjs/experimental/tools/createMetaplaylist/index.d.ts +0 -31
- package/dist/commonjs/experimental/tools/createMetaplaylist/index.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/createMetaplaylist/index.js +0 -53
- package/dist/commonjs/experimental/tools/index.d.ts +0 -20
- package/dist/commonjs/experimental/tools/index.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/index.js +0 -24
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api.d.ts +0 -73
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/api.js +0 -286
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/index.d.ts +0 -19
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/index.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/index.js +0 -19
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/log.d.ts +0 -19
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/log.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/log.js +0 -20
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts +0 -21
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.js +0 -112
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts +0 -22
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +0 -117
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.d.ts +0 -30
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.js +0 -97
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/isTypeSupportedWithFeatures.d.ts +0 -24
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/isTypeSupportedWithFeatures.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/isTypeSupportedWithFeatures.js +0 -184
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts +0 -22
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.js +0 -52
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts +0 -22
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +0 -39
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/types.d.ts +0 -56
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/types.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/types.js +0 -17
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/utils.d.ts +0 -35
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/utils.d.ts.map +0 -1
- package/dist/commonjs/experimental/tools/mediaCapabilitiesProber/utils.js +0 -104
- package/dist/commonjs/features/add_features.d.ts +0 -21
- package/dist/commonjs/features/add_features.d.ts.map +0 -1
- package/dist/commonjs/features/add_features.js +0 -59
- package/dist/commonjs/features/features_object.d.ts +0 -23
- package/dist/commonjs/features/features_object.d.ts.map +0 -1
- package/dist/commonjs/features/features_object.js +0 -35
- package/dist/commonjs/features/index.d.ts +0 -36
- package/dist/commonjs/features/index.d.ts.map +0 -1
- package/dist/commonjs/features/index.js +0 -36
- package/dist/commonjs/features/list/dash.d.ts +0 -24
- package/dist/commonjs/features/list/dash.d.ts.map +0 -1
- package/dist/commonjs/features/list/dash.js +0 -33
- package/dist/commonjs/features/list/dash_wasm.d.ts +0 -24
- package/dist/commonjs/features/list/dash_wasm.d.ts.map +0 -1
- package/dist/commonjs/features/list/dash_wasm.js +0 -36
- package/dist/commonjs/features/list/debug_element.d.ts +0 -9
- package/dist/commonjs/features/list/debug_element.d.ts.map +0 -1
- package/dist/commonjs/features/list/debug_element.js +0 -12
- package/dist/commonjs/features/list/directfile.d.ts +0 -25
- package/dist/commonjs/features/list/directfile.d.ts.map +0 -1
- package/dist/commonjs/features/list/directfile.js +0 -29
- package/dist/commonjs/features/list/eme.d.ts +0 -24
- package/dist/commonjs/features/list/eme.d.ts.map +0 -1
- package/dist/commonjs/features/list/eme.js +0 -27
- package/dist/commonjs/features/list/html_sami_parser.d.ts +0 -24
- package/dist/commonjs/features/list/html_sami_parser.d.ts.map +0 -1
- package/dist/commonjs/features/list/html_sami_parser.js +0 -29
- package/dist/commonjs/features/list/html_srt_parser.d.ts +0 -24
- package/dist/commonjs/features/list/html_srt_parser.d.ts.map +0 -1
- package/dist/commonjs/features/list/html_srt_parser.js +0 -29
- package/dist/commonjs/features/list/html_text_buffer.d.ts +0 -24
- package/dist/commonjs/features/list/html_text_buffer.d.ts.map +0 -1
- package/dist/commonjs/features/list/html_text_buffer.js +0 -27
- package/dist/commonjs/features/list/html_ttml_parser.d.ts +0 -24
- package/dist/commonjs/features/list/html_ttml_parser.d.ts.map +0 -1
- package/dist/commonjs/features/list/html_ttml_parser.js +0 -29
- package/dist/commonjs/features/list/html_vtt_parser.d.ts +0 -24
- package/dist/commonjs/features/list/html_vtt_parser.d.ts.map +0 -1
- package/dist/commonjs/features/list/html_vtt_parser.js +0 -30
- package/dist/commonjs/features/list/index.d.ts +0 -33
- package/dist/commonjs/features/list/index.d.ts.map +0 -1
- package/dist/commonjs/features/list/index.js +0 -52
- package/dist/commonjs/features/list/media_source_main.d.ts +0 -9
- package/dist/commonjs/features/list/media_source_main.d.ts.map +0 -1
- package/dist/commonjs/features/list/media_source_main.js +0 -12
- package/dist/commonjs/features/list/native_sami_parser.d.ts +0 -24
- package/dist/commonjs/features/list/native_sami_parser.d.ts.map +0 -1
- package/dist/commonjs/features/list/native_sami_parser.js +0 -29
- package/dist/commonjs/features/list/native_srt_parser.d.ts +0 -24
- package/dist/commonjs/features/list/native_srt_parser.d.ts.map +0 -1
- package/dist/commonjs/features/list/native_srt_parser.js +0 -29
- package/dist/commonjs/features/list/native_text_buffer.d.ts +0 -24
- package/dist/commonjs/features/list/native_text_buffer.d.ts.map +0 -1
- package/dist/commonjs/features/list/native_text_buffer.js +0 -27
- package/dist/commonjs/features/list/native_ttml_parser.d.ts +0 -24
- package/dist/commonjs/features/list/native_ttml_parser.d.ts.map +0 -1
- package/dist/commonjs/features/list/native_ttml_parser.js +0 -29
- package/dist/commonjs/features/list/native_vtt_parser.d.ts +0 -24
- package/dist/commonjs/features/list/native_vtt_parser.d.ts.map +0 -1
- package/dist/commonjs/features/list/native_vtt_parser.js +0 -30
- package/dist/commonjs/features/list/smooth.d.ts +0 -24
- package/dist/commonjs/features/list/smooth.d.ts.map +0 -1
- package/dist/commonjs/features/list/smooth.js +0 -31
- package/dist/commonjs/features/types.d.ts +0 -146
- package/dist/commonjs/features/types.d.ts.map +0 -1
- package/dist/commonjs/features/types.js +0 -17
- package/dist/commonjs/index.d.ts +0 -18
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/index.js +0 -44
- package/dist/commonjs/log.d.ts +0 -19
- package/dist/commonjs/log.d.ts.map +0 -1
- package/dist/commonjs/log.js +0 -21
- package/dist/commonjs/main_thread/api/debug/buffer_graph.d.ts +0 -29
- package/dist/commonjs/main_thread/api/debug/buffer_graph.d.ts.map +0 -1
- package/dist/commonjs/main_thread/api/debug/buffer_graph.js +0 -213
- package/dist/commonjs/main_thread/api/debug/buffer_size_graph.d.ts +0 -11
- package/dist/commonjs/main_thread/api/debug/buffer_size_graph.d.ts.map +0 -1
- package/dist/commonjs/main_thread/api/debug/buffer_size_graph.js +0 -131
- package/dist/commonjs/main_thread/api/debug/constants.d.ts +0 -3
- package/dist/commonjs/main_thread/api/debug/constants.d.ts.map +0 -1
- package/dist/commonjs/main_thread/api/debug/constants.js +0 -5
- package/dist/commonjs/main_thread/api/debug/index.d.ts +0 -3
- package/dist/commonjs/main_thread/api/debug/index.d.ts.map +0 -1
- package/dist/commonjs/main_thread/api/debug/index.js +0 -4
- package/dist/commonjs/main_thread/api/debug/modules/general_info.d.ts +0 -4
- package/dist/commonjs/main_thread/api/debug/modules/general_info.d.ts.map +0 -1
- package/dist/commonjs/main_thread/api/debug/modules/general_info.js +0 -236
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_content.d.ts +0 -5
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_content.d.ts.map +0 -1
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_content.js +0 -194
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_size.d.ts +0 -4
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_size.d.ts.map +0 -1
- package/dist/commonjs/main_thread/api/debug/modules/segment_buffer_size.js +0 -38
- package/dist/commonjs/main_thread/api/debug/render.d.ts +0 -4
- package/dist/commonjs/main_thread/api/debug/render.d.ts.map +0 -1
- package/dist/commonjs/main_thread/api/debug/render.js +0 -35
- package/dist/commonjs/main_thread/api/debug/utils.d.ts +0 -40
- package/dist/commonjs/main_thread/api/debug/utils.d.ts.map +0 -1
- package/dist/commonjs/main_thread/api/debug/utils.js +0 -85
- package/dist/commonjs/main_thread/api/index.d.ts +0 -18
- package/dist/commonjs/main_thread/api/index.d.ts.map +0 -1
- package/dist/commonjs/main_thread/api/index.js +0 -19
- package/dist/commonjs/main_thread/api/option_utils.d.ts +0 -162
- package/dist/commonjs/main_thread/api/option_utils.d.ts.map +0 -1
- package/dist/commonjs/main_thread/api/option_utils.js +0 -360
- package/dist/commonjs/main_thread/api/public_api.d.ts +0 -995
- package/dist/commonjs/main_thread/api/public_api.d.ts.map +0 -1
- package/dist/commonjs/main_thread/api/public_api.js +0 -2908
- package/dist/commonjs/main_thread/api/utils.d.ts +0 -67
- package/dist/commonjs/main_thread/api/utils.d.ts.map +0 -1
- package/dist/commonjs/main_thread/api/utils.js +0 -186
- package/dist/commonjs/main_thread/decrypt/clear_on_stop.d.ts +0 -24
- package/dist/commonjs/main_thread/decrypt/clear_on_stop.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/clear_on_stop.js +0 -91
- package/dist/commonjs/main_thread/decrypt/content_decryptor.d.ts +0 -237
- package/dist/commonjs/main_thread/decrypt/content_decryptor.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/content_decryptor.js +0 -1169
- package/dist/commonjs/main_thread/decrypt/create_or_load_session.d.ts +0 -65
- package/dist/commonjs/main_thread/decrypt/create_or_load_session.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/create_or_load_session.js +0 -140
- package/dist/commonjs/main_thread/decrypt/create_session.d.ts +0 -55
- package/dist/commonjs/main_thread/decrypt/create_session.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/create_session.js +0 -217
- package/dist/commonjs/main_thread/decrypt/dispose_decryption_resources.d.ts +0 -23
- package/dist/commonjs/main_thread/decrypt/dispose_decryption_resources.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/dispose_decryption_resources.js +0 -67
- package/dist/commonjs/main_thread/decrypt/find_key_system.d.ts +0 -86
- package/dist/commonjs/main_thread/decrypt/find_key_system.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/find_key_system.js +0 -594
- package/dist/commonjs/main_thread/decrypt/get_key_system_configuration.d.ts +0 -24
- package/dist/commonjs/main_thread/decrypt/get_key_system_configuration.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/get_key_system_configuration.js +0 -35
- package/dist/commonjs/main_thread/decrypt/get_media_keys.d.ts +0 -55
- package/dist/commonjs/main_thread/decrypt/get_media_keys.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/get_media_keys.js +0 -178
- package/dist/commonjs/main_thread/decrypt/index.d.ts +0 -27
- package/dist/commonjs/main_thread/decrypt/index.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/index.js +0 -45
- package/dist/commonjs/main_thread/decrypt/init_media_keys.d.ts +0 -30
- package/dist/commonjs/main_thread/decrypt/init_media_keys.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/init_media_keys.js +0 -88
- package/dist/commonjs/main_thread/decrypt/session_events_listener.d.ts +0 -77
- package/dist/commonjs/main_thread/decrypt/session_events_listener.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/session_events_listener.js +0 -364
- package/dist/commonjs/main_thread/decrypt/set_server_certificate.d.ts +0 -58
- package/dist/commonjs/main_thread/decrypt/set_server_certificate.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/set_server_certificate.js +0 -158
- package/dist/commonjs/main_thread/decrypt/types.d.ts +0 -380
- package/dist/commonjs/main_thread/decrypt/types.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/types.js +0 -58
- package/dist/commonjs/main_thread/decrypt/utils/are_init_values_compatible.d.ts +0 -35
- package/dist/commonjs/main_thread/decrypt/utils/are_init_values_compatible.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/utils/are_init_values_compatible.js +0 -144
- package/dist/commonjs/main_thread/decrypt/utils/check_key_statuses.d.ts +0 -54
- package/dist/commonjs/main_thread/decrypt/utils/check_key_statuses.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/utils/check_key_statuses.js +0 -228
- package/dist/commonjs/main_thread/decrypt/utils/clean_old_loaded_sessions.d.ts +0 -27
- package/dist/commonjs/main_thread/decrypt/utils/clean_old_loaded_sessions.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/utils/clean_old_loaded_sessions.js +0 -92
- package/dist/commonjs/main_thread/decrypt/utils/clean_old_stored_persistent_info.d.ts +0 -33
- package/dist/commonjs/main_thread/decrypt/utils/clean_old_stored_persistent_info.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/utils/clean_old_stored_persistent_info.js +0 -46
- package/dist/commonjs/main_thread/decrypt/utils/get_drm_system_id.d.ts +0 -21
- package/dist/commonjs/main_thread/decrypt/utils/get_drm_system_id.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/utils/get_drm_system_id.js +0 -40
- package/dist/commonjs/main_thread/decrypt/utils/init_data_values_container.d.ts +0 -70
- package/dist/commonjs/main_thread/decrypt/utils/init_data_values_container.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/utils/init_data_values_container.js +0 -137
- package/dist/commonjs/main_thread/decrypt/utils/is_compatible_codec_supported.d.ts +0 -14
- package/dist/commonjs/main_thread/decrypt/utils/is_compatible_codec_supported.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/utils/is_compatible_codec_supported.js +0 -53
- package/dist/commonjs/main_thread/decrypt/utils/is_session_usable.d.ts +0 -25
- package/dist/commonjs/main_thread/decrypt/utils/is_session_usable.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/utils/is_session_usable.js +0 -57
- package/dist/commonjs/main_thread/decrypt/utils/key_id_comparison.d.ts +0 -32
- package/dist/commonjs/main_thread/decrypt/utils/key_id_comparison.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/utils/key_id_comparison.js +0 -95
- package/dist/commonjs/main_thread/decrypt/utils/key_session_record.d.ts +0 -105
- package/dist/commonjs/main_thread/decrypt/utils/key_session_record.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/utils/key_session_record.js +0 -189
- package/dist/commonjs/main_thread/decrypt/utils/loaded_sessions_store.d.ts +0 -214
- package/dist/commonjs/main_thread/decrypt/utils/loaded_sessions_store.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/utils/loaded_sessions_store.js +0 -535
- package/dist/commonjs/main_thread/decrypt/utils/media_keys_attacher.d.ts +0 -85
- package/dist/commonjs/main_thread/decrypt/utils/media_keys_attacher.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/utils/media_keys_attacher.js +0 -286
- package/dist/commonjs/main_thread/decrypt/utils/persistent_sessions_store.d.ts +0 -93
- package/dist/commonjs/main_thread/decrypt/utils/persistent_sessions_store.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/utils/persistent_sessions_store.js +0 -404
- package/dist/commonjs/main_thread/decrypt/utils/serializable_bytes.d.ts +0 -45
- package/dist/commonjs/main_thread/decrypt/utils/serializable_bytes.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/utils/serializable_bytes.js +0 -50
- package/dist/commonjs/main_thread/decrypt/utils/server_certificate_store.d.ts +0 -65
- package/dist/commonjs/main_thread/decrypt/utils/server_certificate_store.d.ts.map +0 -1
- package/dist/commonjs/main_thread/decrypt/utils/server_certificate_store.js +0 -123
- package/dist/commonjs/main_thread/init/directfile_content_initializer.d.ts +0 -113
- package/dist/commonjs/main_thread/init/directfile_content_initializer.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/directfile_content_initializer.js +0 -298
- package/dist/commonjs/main_thread/init/index.d.ts +0 -18
- package/dist/commonjs/main_thread/init/index.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/index.js +0 -20
- package/dist/commonjs/main_thread/init/media_source_content_initializer.d.ts +0 -260
- package/dist/commonjs/main_thread/init/media_source_content_initializer.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/media_source_content_initializer.js +0 -1142
- package/dist/commonjs/main_thread/init/multi_thread_content_initializer.d.ts +0 -308
- package/dist/commonjs/main_thread/init/multi_thread_content_initializer.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/multi_thread_content_initializer.js +0 -1713
- package/dist/commonjs/main_thread/init/send_message.d.ts +0 -3
- package/dist/commonjs/main_thread/init/send_message.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/send_message.js +0 -13
- package/dist/commonjs/main_thread/init/types.d.ts +0 -237
- package/dist/commonjs/main_thread/init/types.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/types.js +0 -53
- package/dist/commonjs/main_thread/init/utils/create_core_playback_observer.d.ts +0 -96
- package/dist/commonjs/main_thread/init/utils/create_core_playback_observer.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/utils/create_core_playback_observer.js +0 -112
- package/dist/commonjs/main_thread/init/utils/create_media_source.d.ts +0 -54
- package/dist/commonjs/main_thread/init/utils/create_media_source.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/utils/create_media_source.js +0 -143
- package/dist/commonjs/main_thread/init/utils/get_initial_time.d.ts +0 -77
- package/dist/commonjs/main_thread/init/utils/get_initial_time.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/utils/get_initial_time.js +0 -152
- package/dist/commonjs/main_thread/init/utils/get_loaded_reference.d.ts +0 -28
- package/dist/commonjs/main_thread/init/utils/get_loaded_reference.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/utils/get_loaded_reference.js +0 -66
- package/dist/commonjs/main_thread/init/utils/initial_seek_and_play.d.ts +0 -63
- package/dist/commonjs/main_thread/init/utils/initial_seek_and_play.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/utils/initial_seek_and_play.js +0 -228
- package/dist/commonjs/main_thread/init/utils/initialize_content_decryption.d.ts +0 -99
- package/dist/commonjs/main_thread/init/utils/initialize_content_decryption.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/utils/initialize_content_decryption.js +0 -121
- package/dist/commonjs/main_thread/init/utils/main_thread_text_displayer_interface.d.ts +0 -36
- package/dist/commonjs/main_thread/init/utils/main_thread_text_displayer_interface.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/utils/main_thread_text_displayer_interface.js +0 -54
- package/dist/commonjs/main_thread/init/utils/rebuffering_controller.d.ts +0 -115
- package/dist/commonjs/main_thread/init/utils/rebuffering_controller.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/utils/rebuffering_controller.js +0 -490
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/are_same_stream_events.d.ts +0 -40
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/are_same_stream_events.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/are_same_stream_events.js +0 -35
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/index.d.ts +0 -19
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/index.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/index.js +0 -19
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +0 -26
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +0 -129
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts +0 -52
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/stream_events_emitter.js +0 -228
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/types.d.ts +0 -42
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/types.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/types.js +0 -17
- package/dist/commonjs/main_thread/init/utils/throw_on_media_error.d.ts +0 -25
- package/dist/commonjs/main_thread/init/utils/throw_on_media_error.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/utils/throw_on_media_error.js +0 -66
- package/dist/commonjs/main_thread/init/utils/update_manifest_codec_support.d.ts +0 -35
- package/dist/commonjs/main_thread/init/utils/update_manifest_codec_support.d.ts.map +0 -1
- package/dist/commonjs/main_thread/init/utils/update_manifest_codec_support.js +0 -222
- package/dist/commonjs/main_thread/render_thumbnail.d.ts +0 -27
- package/dist/commonjs/main_thread/render_thumbnail.d.ts.map +0 -1
- package/dist/commonjs/main_thread/render_thumbnail.js +0 -266
- package/dist/commonjs/main_thread/text_displayer/html/html_parsers.d.ts +0 -20
- package/dist/commonjs/main_thread/text_displayer/html/html_parsers.d.ts.map +0 -1
- package/dist/commonjs/main_thread/text_displayer/html/html_parsers.js +0 -25
- package/dist/commonjs/main_thread/text_displayer/html/html_text_displayer.d.ts +0 -103
- package/dist/commonjs/main_thread/text_displayer/html/html_text_displayer.d.ts.map +0 -1
- package/dist/commonjs/main_thread/text_displayer/html/html_text_displayer.js +0 -368
- package/dist/commonjs/main_thread/text_displayer/html/index.d.ts +0 -3
- package/dist/commonjs/main_thread/text_displayer/html/index.d.ts.map +0 -1
- package/dist/commonjs/main_thread/text_displayer/html/index.js +0 -4
- package/dist/commonjs/main_thread/text_displayer/html/text_track_cues_store.d.ts +0 -66
- package/dist/commonjs/main_thread/text_displayer/html/text_track_cues_store.d.ts.map +0 -1
- package/dist/commonjs/main_thread/text_displayer/html/text_track_cues_store.js +0 -408
- package/dist/commonjs/main_thread/text_displayer/html/update_proportional_elements.d.ts +0 -16
- package/dist/commonjs/main_thread/text_displayer/html/update_proportional_elements.d.ts.map +0 -1
- package/dist/commonjs/main_thread/text_displayer/html/update_proportional_elements.js +0 -64
- package/dist/commonjs/main_thread/text_displayer/html/utils.d.ts +0 -55
- package/dist/commonjs/main_thread/text_displayer/html/utils.d.ts.map +0 -1
- package/dist/commonjs/main_thread/text_displayer/html/utils.js +0 -141
- package/dist/commonjs/main_thread/text_displayer/index.d.ts +0 -3
- package/dist/commonjs/main_thread/text_displayer/index.d.ts.map +0 -1
- package/dist/commonjs/main_thread/text_displayer/index.js +0 -2
- package/dist/commonjs/main_thread/text_displayer/manual_time_ranges.d.ts +0 -15
- package/dist/commonjs/main_thread/text_displayer/manual_time_ranges.d.ts.map +0 -1
- package/dist/commonjs/main_thread/text_displayer/manual_time_ranges.js +0 -48
- package/dist/commonjs/main_thread/text_displayer/native/index.d.ts +0 -3
- package/dist/commonjs/main_thread/text_displayer/native/index.d.ts.map +0 -1
- package/dist/commonjs/main_thread/text_displayer/native/index.js +0 -4
- package/dist/commonjs/main_thread/text_displayer/native/native_parsers.d.ts +0 -16
- package/dist/commonjs/main_thread/text_displayer/native/native_parsers.d.ts.map +0 -1
- package/dist/commonjs/main_thread/text_displayer/native/native_parsers.js +0 -25
- package/dist/commonjs/main_thread/text_displayer/native/native_text_displayer.d.ts +0 -59
- package/dist/commonjs/main_thread/text_displayer/native/native_text_displayer.d.ts.map +0 -1
- package/dist/commonjs/main_thread/text_displayer/native/native_text_displayer.js +0 -226
- package/dist/commonjs/main_thread/text_displayer/types.d.ts +0 -72
- package/dist/commonjs/main_thread/text_displayer/types.d.ts.map +0 -1
- package/dist/commonjs/main_thread/text_displayer/types.js +0 -2
- package/dist/commonjs/main_thread/tracks_store/index.d.ts +0 -21
- package/dist/commonjs/main_thread/tracks_store/index.d.ts.map +0 -1
- package/dist/commonjs/main_thread/tracks_store/index.js +0 -34
- package/dist/commonjs/main_thread/tracks_store/media_element_tracks_store.d.ts +0 -208
- package/dist/commonjs/main_thread/tracks_store/media_element_tracks_store.d.ts.map +0 -1
- package/dist/commonjs/main_thread/tracks_store/media_element_tracks_store.js +0 -709
- package/dist/commonjs/main_thread/tracks_store/track_dispatcher.d.ts +0 -105
- package/dist/commonjs/main_thread/tracks_store/track_dispatcher.d.ts.map +0 -1
- package/dist/commonjs/main_thread/tracks_store/track_dispatcher.js +0 -176
- package/dist/commonjs/main_thread/tracks_store/tracks_store.d.ts +0 -538
- package/dist/commonjs/main_thread/tracks_store/tracks_store.d.ts.map +0 -1
- package/dist/commonjs/main_thread/tracks_store/tracks_store.js +0 -1497
- package/dist/commonjs/main_thread/types.d.ts +0 -6
- package/dist/commonjs/main_thread/types.d.ts.map +0 -1
- package/dist/commonjs/main_thread/types.js +0 -2
- package/dist/commonjs/manifest/classes/adaptation.d.ts +0 -135
- package/dist/commonjs/manifest/classes/adaptation.d.ts.map +0 -1
- package/dist/commonjs/manifest/classes/adaptation.js +0 -260
- package/dist/commonjs/manifest/classes/codec_support_cache.d.ts +0 -45
- package/dist/commonjs/manifest/classes/codec_support_cache.d.ts.map +0 -1
- package/dist/commonjs/manifest/classes/codec_support_cache.js +0 -84
- package/dist/commonjs/manifest/classes/index.d.ts +0 -32
- package/dist/commonjs/manifest/classes/index.d.ts.map +0 -1
- package/dist/commonjs/manifest/classes/index.js +0 -46
- package/dist/commonjs/manifest/classes/manifest.d.ts +0 -425
- package/dist/commonjs/manifest/classes/manifest.d.ts.map +0 -1
- package/dist/commonjs/manifest/classes/manifest.js +0 -561
- package/dist/commonjs/manifest/classes/period.d.ts +0 -157
- package/dist/commonjs/manifest/classes/period.d.ts.map +0 -1
- package/dist/commonjs/manifest/classes/period.js +0 -283
- package/dist/commonjs/manifest/classes/representation.d.ts +0 -271
- package/dist/commonjs/manifest/classes/representation.d.ts.map +0 -1
- package/dist/commonjs/manifest/classes/representation.js +0 -402
- package/dist/commonjs/manifest/classes/representation_index/index.d.ts +0 -20
- package/dist/commonjs/manifest/classes/representation_index/index.d.ts.map +0 -1
- package/dist/commonjs/manifest/classes/representation_index/index.js +0 -20
- package/dist/commonjs/manifest/classes/representation_index/static.d.ts +0 -117
- package/dist/commonjs/manifest/classes/representation_index/static.d.ts.map +0 -1
- package/dist/commonjs/manifest/classes/representation_index/static.js +0 -164
- package/dist/commonjs/manifest/classes/representation_index/types.d.ts +0 -441
- package/dist/commonjs/manifest/classes/representation_index/types.d.ts.map +0 -1
- package/dist/commonjs/manifest/classes/representation_index/types.js +0 -17
- package/dist/commonjs/manifest/classes/types.d.ts +0 -30
- package/dist/commonjs/manifest/classes/types.d.ts.map +0 -1
- package/dist/commonjs/manifest/classes/types.js +0 -33
- package/dist/commonjs/manifest/classes/update_period_in_place.d.ts +0 -63
- package/dist/commonjs/manifest/classes/update_period_in_place.d.ts.map +0 -1
- package/dist/commonjs/manifest/classes/update_period_in_place.js +0 -237
- package/dist/commonjs/manifest/classes/update_periods.d.ts +0 -51
- package/dist/commonjs/manifest/classes/update_periods.d.ts.map +0 -1
- package/dist/commonjs/manifest/classes/update_periods.js +0 -228
- package/dist/commonjs/manifest/classes/utils.d.ts +0 -47
- package/dist/commonjs/manifest/classes/utils.d.ts.map +0 -1
- package/dist/commonjs/manifest/classes/utils.js +0 -49
- package/dist/commonjs/manifest/index.d.ts +0 -17
- package/dist/commonjs/manifest/index.d.ts.map +0 -1
- package/dist/commonjs/manifest/index.js +0 -21
- package/dist/commonjs/manifest/types.d.ts +0 -466
- package/dist/commonjs/manifest/types.d.ts.map +0 -1
- package/dist/commonjs/manifest/types.js +0 -2
- package/dist/commonjs/manifest/utils.d.ts +0 -184
- package/dist/commonjs/manifest/utils.d.ts.map +0 -1
- package/dist/commonjs/manifest/utils.js +0 -822
- package/dist/commonjs/minimal.d.ts +0 -21
- package/dist/commonjs/minimal.d.ts.map +0 -1
- package/dist/commonjs/minimal.js +0 -30
- package/dist/commonjs/mse/index.d.ts +0 -3
- package/dist/commonjs/mse/index.d.ts.map +0 -1
- package/dist/commonjs/mse/index.js +0 -2
- package/dist/commonjs/mse/main_media_source_interface.d.ts +0 -128
- package/dist/commonjs/mse/main_media_source_interface.d.ts.map +0 -1
- package/dist/commonjs/mse/main_media_source_interface.js +0 -594
- package/dist/commonjs/mse/types.d.ts +0 -289
- package/dist/commonjs/mse/types.d.ts.map +0 -1
- package/dist/commonjs/mse/types.js +0 -2
- package/dist/commonjs/mse/utils/end_of_stream.d.ts +0 -35
- package/dist/commonjs/mse/utils/end_of_stream.d.ts.map +0 -1
- package/dist/commonjs/mse/utils/end_of_stream.js +0 -118
- package/dist/commonjs/mse/utils/media_source_duration_updater.d.ts +0 -60
- package/dist/commonjs/mse/utils/media_source_duration_updater.d.ts.map +0 -1
- package/dist/commonjs/mse/utils/media_source_duration_updater.js +0 -274
- package/dist/commonjs/mse/worker_media_source_interface.d.ts +0 -106
- package/dist/commonjs/mse/worker_media_source_interface.d.ts.map +0 -1
- package/dist/commonjs/mse/worker_media_source_interface.js +0 -370
- package/dist/commonjs/multithread_types.d.ts +0 -915
- package/dist/commonjs/multithread_types.d.ts.map +0 -1
- package/dist/commonjs/multithread_types.js +0 -7
- package/dist/commonjs/parsers/containers/isobmff/constants.d.ts +0 -24
- package/dist/commonjs/parsers/containers/isobmff/constants.d.ts.map +0 -1
- package/dist/commonjs/parsers/containers/isobmff/constants.js +0 -26
- package/dist/commonjs/parsers/containers/isobmff/create_box.d.ts +0 -31
- package/dist/commonjs/parsers/containers/isobmff/create_box.d.ts.map +0 -1
- package/dist/commonjs/parsers/containers/isobmff/create_box.js +0 -93
- package/dist/commonjs/parsers/containers/isobmff/drm/index.d.ts +0 -17
- package/dist/commonjs/parsers/containers/isobmff/drm/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/containers/isobmff/drm/index.js +0 -20
- package/dist/commonjs/parsers/containers/isobmff/drm/playready.d.ts +0 -22
- package/dist/commonjs/parsers/containers/isobmff/drm/playready.d.ts.map +0 -1
- package/dist/commonjs/parsers/containers/isobmff/drm/playready.js +0 -38
- package/dist/commonjs/parsers/containers/isobmff/extract_complete_chunks.d.ts +0 -30
- package/dist/commonjs/parsers/containers/isobmff/extract_complete_chunks.d.ts.map +0 -1
- package/dist/commonjs/parsers/containers/isobmff/extract_complete_chunks.js +0 -89
- package/dist/commonjs/parsers/containers/isobmff/find_complete_box.d.ts +0 -26
- package/dist/commonjs/parsers/containers/isobmff/find_complete_box.d.ts.map +0 -1
- package/dist/commonjs/parsers/containers/isobmff/find_complete_box.js +0 -57
- package/dist/commonjs/parsers/containers/isobmff/get_box.d.ts +0 -107
- package/dist/commonjs/parsers/containers/isobmff/get_box.d.ts.map +0 -1
- package/dist/commonjs/parsers/containers/isobmff/get_box.js +0 -254
- package/dist/commonjs/parsers/containers/isobmff/index.d.ts +0 -26
- package/dist/commonjs/parsers/containers/isobmff/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/containers/isobmff/index.js +0 -47
- package/dist/commonjs/parsers/containers/isobmff/read.d.ts +0 -58
- package/dist/commonjs/parsers/containers/isobmff/read.d.ts.map +0 -1
- package/dist/commonjs/parsers/containers/isobmff/read.js +0 -94
- package/dist/commonjs/parsers/containers/isobmff/take_pssh_out.d.ts +0 -42
- package/dist/commonjs/parsers/containers/isobmff/take_pssh_out.d.ts.map +0 -1
- package/dist/commonjs/parsers/containers/isobmff/take_pssh_out.js +0 -86
- package/dist/commonjs/parsers/containers/isobmff/utils.d.ts +0 -143
- package/dist/commonjs/parsers/containers/isobmff/utils.d.ts.map +0 -1
- package/dist/commonjs/parsers/containers/isobmff/utils.js +0 -608
- package/dist/commonjs/parsers/containers/matroska/index.d.ts +0 -18
- package/dist/commonjs/parsers/containers/matroska/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/containers/matroska/index.js +0 -21
- package/dist/commonjs/parsers/containers/matroska/utils.d.ts +0 -35
- package/dist/commonjs/parsers/containers/matroska/utils.d.ts.map +0 -1
- package/dist/commonjs/parsers/containers/matroska/utils.js +0 -277
- package/dist/commonjs/parsers/images/bif.d.ts +0 -40
- package/dist/commonjs/parsers/images/bif.d.ts.map +0 -1
- package/dist/commonjs/parsers/images/bif.js +0 -103
- package/dist/commonjs/parsers/manifest/dash/common/attach_trickmode_track.d.ts +0 -29
- package/dist/commonjs/parsers/manifest/dash/common/attach_trickmode_track.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/attach_trickmode_track.js +0 -98
- package/dist/commonjs/parsers/manifest/dash/common/content_protection_parser.d.ts +0 -99
- package/dist/commonjs/parsers/manifest/dash/common/content_protection_parser.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/content_protection_parser.js +0 -261
- package/dist/commonjs/parsers/manifest/dash/common/convert_supplemental_codecs.d.ts +0 -18
- package/dist/commonjs/parsers/manifest/dash/common/convert_supplemental_codecs.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/convert_supplemental_codecs.js +0 -27
- package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts +0 -44
- package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.js +0 -85
- package/dist/commonjs/parsers/manifest/dash/common/get_clock_offset.d.ts +0 -30
- package/dist/commonjs/parsers/manifest/dash/common/get_clock_offset.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/get_clock_offset.js +0 -41
- package/dist/commonjs/parsers/manifest/dash/common/get_hdr_information.d.ts +0 -51
- package/dist/commonjs/parsers/manifest/dash/common/get_hdr_information.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/get_hdr_information.js +0 -86
- package/dist/commonjs/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts +0 -22
- package/dist/commonjs/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/get_http_utc-timing_url.js +0 -30
- package/dist/commonjs/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts +0 -26
- package/dist/commonjs/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/get_minimum_and_maximum_positions.js +0 -36
- package/dist/commonjs/parsers/manifest/dash/common/get_periods_time_infos.d.ts +0 -44
- package/dist/commonjs/parsers/manifest/dash/common/get_periods_time_infos.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/get_periods_time_infos.js +0 -71
- package/dist/commonjs/parsers/manifest/dash/common/index.d.ts +0 -22
- package/dist/commonjs/parsers/manifest/dash/common/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/index.js +0 -25
- package/dist/commonjs/parsers/manifest/dash/common/indexes/base.d.ts +0 -267
- package/dist/commonjs/parsers/manifest/dash/common/indexes/base.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/base.js +0 -289
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_init_segment.d.ts +0 -33
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_init_segment.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_init_segment.js +0 -47
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts +0 -40
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_segments_from_timeline.js +0 -112
- package/dist/commonjs/parsers/manifest/dash/common/indexes/index.d.ts +0 -26
- package/dist/commonjs/parsers/manifest/dash/common/indexes/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/index.js +0 -26
- package/dist/commonjs/parsers/manifest/dash/common/indexes/list.d.ts +0 -209
- package/dist/commonjs/parsers/manifest/dash/common/indexes/list.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/list.js +0 -247
- package/dist/commonjs/parsers/manifest/dash/common/indexes/template.d.ts +0 -272
- package/dist/commonjs/parsers/manifest/dash/common/indexes/template.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/template.js +0 -453
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +0 -28
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +0 -46
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +0 -19
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +0 -82
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts +0 -38
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.js +0 -66
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +0 -43
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +0 -143
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/index.d.ts +0 -20
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/index.js +0 -19
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts +0 -37
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/parse_s_element.js +0 -90
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +0 -448
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +0 -702
- package/dist/commonjs/parsers/manifest/dash/common/indexes/tokens.d.ts +0 -41
- package/dist/commonjs/parsers/manifest/dash/common/indexes/tokens.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/tokens.js +0 -112
- package/dist/commonjs/parsers/manifest/dash/common/indexes/utils.d.ts +0 -26
- package/dist/commonjs/parsers/manifest/dash/common/indexes/utils.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/utils.js +0 -31
- package/dist/commonjs/parsers/manifest/dash/common/infer_adaptation_type.d.ts +0 -48
- package/dist/commonjs/parsers/manifest/dash/common/infer_adaptation_type.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/infer_adaptation_type.js +0 -164
- package/dist/commonjs/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts +0 -120
- package/dist/commonjs/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/manifest_bounds_calculator.js +0 -138
- package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.d.ts +0 -56
- package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.js +0 -508
- package/dist/commonjs/parsers/manifest/dash/common/parse_availability_start_time.d.ts +0 -24
- package/dist/commonjs/parsers/manifest/dash/common/parse_availability_start_time.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/parse_availability_start_time.js +0 -34
- package/dist/commonjs/parsers/manifest/dash/common/parse_mpd.d.ts +0 -99
- package/dist/commonjs/parsers/manifest/dash/common/parse_mpd.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/parse_mpd.js +0 -345
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.d.ts +0 -71
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.js +0 -341
- package/dist/commonjs/parsers/manifest/dash/common/parse_representation_index.d.ts +0 -87
- package/dist/commonjs/parsers/manifest/dash/common/parse_representation_index.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/parse_representation_index.js +0 -131
- package/dist/commonjs/parsers/manifest/dash/common/parse_representations.d.ts +0 -51
- package/dist/commonjs/parsers/manifest/dash/common/parse_representations.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/parse_representations.js +0 -300
- package/dist/commonjs/parsers/manifest/dash/common/resolve_base_urls.d.ts +0 -27
- package/dist/commonjs/parsers/manifest/dash/common/resolve_base_urls.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/common/resolve_base_urls.js +0 -49
- package/dist/commonjs/parsers/manifest/dash/index.d.ts +0 -17
- package/dist/commonjs/parsers/manifest/dash/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/index.js +0 -23
- package/dist/commonjs/parsers/manifest/dash/js-parser/index.d.ts +0 -18
- package/dist/commonjs/parsers/manifest/dash/js-parser/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/index.js +0 -19
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts +0 -25
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +0 -406
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts +0 -25
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/BaseURL.js +0 -33
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts +0 -24
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.js +0 -70
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts +0 -23
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.js +0 -125
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts +0 -24
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/EventStream.js +0 -153
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts +0 -23
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Initialization.js +0 -70
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts +0 -24
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/MPD.js +0 -235
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts +0 -24
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Period.js +0 -197
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts +0 -23
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Representation.js +0 -268
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts +0 -24
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.js +0 -152
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts +0 -23
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentList.js +0 -60
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts +0 -25
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.js +0 -125
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts +0 -23
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.js +0 -36
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts +0 -25
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.js +0 -82
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts +0 -176
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/utils.js +0 -381
- package/dist/commonjs/parsers/manifest/dash/js-parser/parse_from_xml_string.d.ts +0 -25
- package/dist/commonjs/parsers/manifest/dash/js-parser/parse_from_xml_string.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/js-parser/parse_from_xml_string.js +0 -142
- package/dist/commonjs/parsers/manifest/dash/node_parser_types.d.ts +0 -404
- package/dist/commonjs/parsers/manifest/dash/node_parser_types.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/node_parser_types.js +0 -17
- package/dist/commonjs/parsers/manifest/dash/parsers_types.d.ts +0 -84
- package/dist/commonjs/parsers/manifest/dash/parsers_types.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/parsers_types.js +0 -17
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/index.d.ts +0 -20
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/index.js +0 -19
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +0 -112
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +0 -425
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts +0 -33
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +0 -276
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts +0 -25
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.js +0 -33
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts +0 -25
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.js +0 -44
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts +0 -24
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +0 -61
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts +0 -34
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.js +0 -116
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Label.d.ts +0 -4
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Label.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Label.js +0 -12
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts +0 -29
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +0 -168
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts +0 -34
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +0 -152
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts +0 -33
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +0 -183
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts +0 -25
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.js +0 -38
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts +0 -19
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.js +0 -91
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts +0 -27
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.js +0 -48
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts +0 -19
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.js +0 -104
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts +0 -26
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.js +0 -55
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts +0 -30
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/XLink.js +0 -50
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts +0 -17
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/index.js +0 -20
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts +0 -28
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/root.js +0 -53
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts +0 -39
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/parsers_stack.js +0 -62
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/types.d.ts +0 -149
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/types.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/types.js +0 -17
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/utils.d.ts +0 -30
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/utils.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/utils.js +0 -43
- package/dist/commonjs/parsers/manifest/index.d.ts +0 -17
- package/dist/commonjs/parsers/manifest/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/index.js +0 -17
- package/dist/commonjs/parsers/manifest/local/index.d.ts +0 -19
- package/dist/commonjs/parsers/manifest/local/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/local/index.js +0 -19
- package/dist/commonjs/parsers/manifest/local/parse_local_manifest.d.ts +0 -23
- package/dist/commonjs/parsers/manifest/local/parse_local_manifest.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/local/parse_local_manifest.js +0 -140
- package/dist/commonjs/parsers/manifest/local/representation_index.d.ts +0 -99
- package/dist/commonjs/parsers/manifest/local/representation_index.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/local/representation_index.js +0 -297
- package/dist/commonjs/parsers/manifest/local/types.d.ts +0 -288
- package/dist/commonjs/parsers/manifest/local/types.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/local/types.js +0 -17
- package/dist/commonjs/parsers/manifest/metaplaylist/index.d.ts +0 -20
- package/dist/commonjs/parsers/manifest/metaplaylist/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/metaplaylist/index.js +0 -19
- package/dist/commonjs/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts +0 -65
- package/dist/commonjs/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/metaplaylist/metaplaylist_parser.js +0 -322
- package/dist/commonjs/parsers/manifest/metaplaylist/representation_index.d.ts +0 -165
- package/dist/commonjs/parsers/manifest/metaplaylist/representation_index.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/metaplaylist/representation_index.js +0 -239
- package/dist/commonjs/parsers/manifest/smooth/create_parser.d.ts +0 -34
- package/dist/commonjs/parsers/manifest/smooth/create_parser.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/smooth/create_parser.js +0 -544
- package/dist/commonjs/parsers/manifest/smooth/get_codecs.d.ts +0 -27
- package/dist/commonjs/parsers/manifest/smooth/get_codecs.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/smooth/get_codecs.js +0 -54
- package/dist/commonjs/parsers/manifest/smooth/index.d.ts +0 -22
- package/dist/commonjs/parsers/manifest/smooth/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/smooth/index.js +0 -22
- package/dist/commonjs/parsers/manifest/smooth/parse_C_nodes.d.ts +0 -27
- package/dist/commonjs/parsers/manifest/smooth/parse_C_nodes.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/smooth/parse_C_nodes.js +0 -63
- package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.d.ts +0 -30
- package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/smooth/parse_protection_node.js +0 -66
- package/dist/commonjs/parsers/manifest/smooth/representation_index.d.ts +0 -242
- package/dist/commonjs/parsers/manifest/smooth/representation_index.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/smooth/representation_index.js +0 -424
- package/dist/commonjs/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts +0 -120
- package/dist/commonjs/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/smooth/shared_smooth_segment_timeline.js +0 -182
- package/dist/commonjs/parsers/manifest/smooth/utils/add_segment_infos.d.ts +0 -39
- package/dist/commonjs/parsers/manifest/smooth/utils/add_segment_infos.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/smooth/utils/add_segment_infos.js +0 -66
- package/dist/commonjs/parsers/manifest/smooth/utils/parseBoolean.d.ts +0 -21
- package/dist/commonjs/parsers/manifest/smooth/utils/parseBoolean.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/smooth/utils/parseBoolean.js +0 -33
- package/dist/commonjs/parsers/manifest/smooth/utils/reduceChildren.d.ts +0 -24
- package/dist/commonjs/parsers/manifest/smooth/utils/reduceChildren.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/smooth/utils/reduceChildren.js +0 -34
- package/dist/commonjs/parsers/manifest/smooth/utils/tokens.d.ts +0 -29
- package/dist/commonjs/parsers/manifest/smooth/utils/tokens.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/smooth/utils/tokens.js +0 -37
- package/dist/commonjs/parsers/manifest/types.d.ts +0 -443
- package/dist/commonjs/parsers/manifest/types.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/types.js +0 -17
- package/dist/commonjs/parsers/manifest/utils/check_manifest_ids.d.ts +0 -26
- package/dist/commonjs/parsers/manifest/utils/check_manifest_ids.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/utils/check_manifest_ids.js +0 -83
- package/dist/commonjs/parsers/manifest/utils/clear_timeline_from_position.d.ts +0 -26
- package/dist/commonjs/parsers/manifest/utils/clear_timeline_from_position.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/utils/clear_timeline_from_position.js +0 -76
- package/dist/commonjs/parsers/manifest/utils/get_first_time_from_adaptation.d.ts +0 -28
- package/dist/commonjs/parsers/manifest/utils/get_first_time_from_adaptation.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/utils/get_first_time_from_adaptation.js +0 -69
- package/dist/commonjs/parsers/manifest/utils/get_last_time_from_adaptation.d.ts +0 -30
- package/dist/commonjs/parsers/manifest/utils/get_last_time_from_adaptation.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/utils/get_last_time_from_adaptation.js +0 -71
- package/dist/commonjs/parsers/manifest/utils/get_maximum_positions.d.ts +0 -25
- package/dist/commonjs/parsers/manifest/utils/get_maximum_positions.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/utils/get_maximum_positions.js +0 -69
- package/dist/commonjs/parsers/manifest/utils/get_minimum_position.d.ts +0 -22
- package/dist/commonjs/parsers/manifest/utils/get_minimum_position.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/utils/get_minimum_position.js +0 -65
- package/dist/commonjs/parsers/manifest/utils/index_helpers.d.ts +0 -89
- package/dist/commonjs/parsers/manifest/utils/index_helpers.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/utils/index_helpers.js +0 -154
- package/dist/commonjs/parsers/manifest/utils/update_segment_timeline.d.ts +0 -34
- package/dist/commonjs/parsers/manifest/utils/update_segment_timeline.d.ts.map +0 -1
- package/dist/commonjs/parsers/manifest/utils/update_segment_timeline.js +0 -157
- package/dist/commonjs/parsers/texttracks/index.d.ts +0 -17
- package/dist/commonjs/parsers/texttracks/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/index.js +0 -17
- package/dist/commonjs/parsers/texttracks/sami/html.d.ts +0 -32
- package/dist/commonjs/parsers/texttracks/sami/html.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/sami/html.js +0 -220
- package/dist/commonjs/parsers/texttracks/sami/native.d.ts +0 -37
- package/dist/commonjs/parsers/texttracks/sami/native.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/sami/native.js +0 -184
- package/dist/commonjs/parsers/texttracks/srt/find_end_of_cue_block.d.ts +0 -30
- package/dist/commonjs/parsers/texttracks/srt/find_end_of_cue_block.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/srt/find_end_of_cue_block.js +0 -42
- package/dist/commonjs/parsers/texttracks/srt/get_cue_blocks.d.ts +0 -23
- package/dist/commonjs/parsers/texttracks/srt/get_cue_blocks.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/srt/get_cue_blocks.js +0 -50
- package/dist/commonjs/parsers/texttracks/srt/html.d.ts +0 -28
- package/dist/commonjs/parsers/texttracks/srt/html.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/srt/html.js +0 -192
- package/dist/commonjs/parsers/texttracks/srt/native.d.ts +0 -30
- package/dist/commonjs/parsers/texttracks/srt/native.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/srt/native.js +0 -66
- package/dist/commonjs/parsers/texttracks/srt/parse_cue.d.ts +0 -31
- package/dist/commonjs/parsers/texttracks/srt/parse_cue.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/srt/parse_cue.js +0 -75
- package/dist/commonjs/parsers/texttracks/srt/parse_timestamp.d.ts +0 -22
- package/dist/commonjs/parsers/texttracks/srt/parse_timestamp.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/srt/parse_timestamp.js +0 -36
- package/dist/commonjs/parsers/texttracks/ttml/get_parameters.d.ts +0 -33
- package/dist/commonjs/parsers/texttracks/ttml/get_parameters.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/get_parameters.js +0 -90
- package/dist/commonjs/parsers/texttracks/ttml/get_styling.d.ts +0 -42
- package/dist/commonjs/parsers/texttracks/ttml/get_styling.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/get_styling.js +0 -136
- package/dist/commonjs/parsers/texttracks/ttml/get_time_delimiters.d.ts +0 -27
- package/dist/commonjs/parsers/texttracks/ttml/get_time_delimiters.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/get_time_delimiters.js +0 -43
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.d.ts +0 -49
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.js +0 -65
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_extent.d.ts +0 -22
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_extent.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_extent.js +0 -60
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_font_size.d.ts +0 -22
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_font_size.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_font_size.js +0 -59
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_line_height.d.ts +0 -21
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_line_height.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_line_height.js +0 -48
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_origin.d.ts +0 -21
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_origin.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_origin.js +0 -59
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_padding.d.ts +0 -21
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_padding.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/apply_padding.js +0 -138
- package/dist/commonjs/parsers/texttracks/ttml/html/create_element.d.ts +0 -33
- package/dist/commonjs/parsers/texttracks/ttml/html/create_element.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/create_element.js +0 -477
- package/dist/commonjs/parsers/texttracks/ttml/html/generate_css_test_outline.d.ts +0 -27
- package/dist/commonjs/parsers/texttracks/ttml/html/generate_css_test_outline.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/generate_css_test_outline.js +0 -44
- package/dist/commonjs/parsers/texttracks/ttml/html/index.d.ts +0 -22
- package/dist/commonjs/parsers/texttracks/ttml/html/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/index.js +0 -23
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_cue.d.ts +0 -27
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_cue.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_cue.js +0 -43
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts +0 -36
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/parse_ttml_to_div.js +0 -87
- package/dist/commonjs/parsers/texttracks/ttml/html/ttml_color_to_css_color.d.ts +0 -22
- package/dist/commonjs/parsers/texttracks/ttml/html/ttml_color_to_css_color.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/html/ttml_color_to_css_color.js +0 -76
- package/dist/commonjs/parsers/texttracks/ttml/native/index.d.ts +0 -22
- package/dist/commonjs/parsers/texttracks/ttml/native/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/native/index.js +0 -23
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_cue.d.ts +0 -25
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_cue.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_cue.js +0 -200
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts +0 -24
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/native/parse_ttml_to_vtt.js +0 -70
- package/dist/commonjs/parsers/texttracks/ttml/parse_ttml.d.ts +0 -44
- package/dist/commonjs/parsers/texttracks/ttml/parse_ttml.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/parse_ttml.js +0 -187
- package/dist/commonjs/parsers/texttracks/ttml/regexps.d.ts +0 -29
- package/dist/commonjs/parsers/texttracks/ttml/regexps.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/regexps.js +0 -49
- package/dist/commonjs/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts +0 -50
- package/dist/commonjs/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/resolve_styles_inheritance.js +0 -107
- package/dist/commonjs/parsers/texttracks/ttml/time_parsing.d.ts +0 -31
- package/dist/commonjs/parsers/texttracks/ttml/time_parsing.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/time_parsing.js +0 -126
- package/dist/commonjs/parsers/texttracks/ttml/xml_utils.d.ts +0 -71
- package/dist/commonjs/parsers/texttracks/ttml/xml_utils.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/ttml/xml_utils.js +0 -186
- package/dist/commonjs/parsers/texttracks/types.d.ts +0 -80
- package/dist/commonjs/parsers/texttracks/types.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/types.js +0 -17
- package/dist/commonjs/parsers/texttracks/webvtt/create_default_style_elements.d.ts +0 -3
- package/dist/commonjs/parsers/texttracks/webvtt/create_default_style_elements.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/create_default_style_elements.js +0 -25
- package/dist/commonjs/parsers/texttracks/webvtt/get_cue_blocks.d.ts +0 -25
- package/dist/commonjs/parsers/texttracks/webvtt/get_cue_blocks.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/get_cue_blocks.js +0 -47
- package/dist/commonjs/parsers/texttracks/webvtt/get_style_blocks.d.ts +0 -25
- package/dist/commonjs/parsers/texttracks/webvtt/get_style_blocks.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/get_style_blocks.js +0 -55
- package/dist/commonjs/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts +0 -23
- package/dist/commonjs/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/convert_payload_to_html.js +0 -38
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_style_attribute.d.ts +0 -22
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_style_attribute.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_style_attribute.js +0 -172
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_styled_element.d.ts +0 -25
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_styled_element.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/create_styled_element.js +0 -84
- package/dist/commonjs/parsers/texttracks/webvtt/html/index.d.ts +0 -28
- package/dist/commonjs/parsers/texttracks/webvtt/html/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/index.js +0 -26
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_mp4.d.ts +0 -13
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_mp4.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_mp4.js +0 -22
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_plain_text.d.ts +0 -33
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_plain_text.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/parse_webvtt_plain_text.js +0 -69
- package/dist/commonjs/parsers/texttracks/webvtt/html/to_html.d.ts +0 -50
- package/dist/commonjs/parsers/texttracks/webvtt/html/to_html.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/html/to_html.js +0 -73
- package/dist/commonjs/parsers/texttracks/webvtt/native/index.d.ts +0 -23
- package/dist/commonjs/parsers/texttracks/webvtt/native/index.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/native/index.js +0 -26
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_vtt_plain_text_to_cues.d.ts +0 -30
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_vtt_plain_text_to_cues.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_vtt_plain_text_to_cues.js +0 -94
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_webvtt_mp4_to_cues.d.ts +0 -13
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_webvtt_mp4_to_cues.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/native/parse_webvtt_mp4_to_cues.js +0 -24
- package/dist/commonjs/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts +0 -24
- package/dist/commonjs/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/native/set_settings_on_cue.js +0 -83
- package/dist/commonjs/parsers/texttracks/webvtt/native/to_native_cue.d.ts +0 -33
- package/dist/commonjs/parsers/texttracks/webvtt/native/to_native_cue.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/native/to_native_cue.js +0 -30
- package/dist/commonjs/parsers/texttracks/webvtt/parse_cue_block.d.ts +0 -40
- package/dist/commonjs/parsers/texttracks/webvtt/parse_cue_block.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/parse_cue_block.js +0 -104
- package/dist/commonjs/parsers/texttracks/webvtt/parse_mp4_embedded_wvtt.d.ts +0 -22
- package/dist/commonjs/parsers/texttracks/webvtt/parse_mp4_embedded_wvtt.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/parse_mp4_embedded_wvtt.js +0 -154
- package/dist/commonjs/parsers/texttracks/webvtt/parse_style_block.d.ts +0 -28
- package/dist/commonjs/parsers/texttracks/webvtt/parse_style_block.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/parse_style_block.js +0 -75
- package/dist/commonjs/parsers/texttracks/webvtt/parse_timestamp.d.ts +0 -22
- package/dist/commonjs/parsers/texttracks/webvtt/parse_timestamp.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/parse_timestamp.js +0 -36
- package/dist/commonjs/parsers/texttracks/webvtt/utils.d.ts +0 -58
- package/dist/commonjs/parsers/texttracks/webvtt/utils.d.ts.map +0 -1
- package/dist/commonjs/parsers/texttracks/webvtt/utils.js +0 -121
- package/dist/commonjs/playback_observer/index.d.ts +0 -7
- package/dist/commonjs/playback_observer/index.d.ts.map +0 -1
- package/dist/commonjs/playback_observer/index.js +0 -5
- package/dist/commonjs/playback_observer/media_element_playback_observer.d.ts +0 -285
- package/dist/commonjs/playback_observer/media_element_playback_observer.d.ts.map +0 -1
- package/dist/commonjs/playback_observer/media_element_playback_observer.js +0 -842
- package/dist/commonjs/playback_observer/types.d.ts +0 -226
- package/dist/commonjs/playback_observer/types.d.ts.map +0 -1
- package/dist/commonjs/playback_observer/types.js +0 -2
- package/dist/commonjs/playback_observer/utils/generate_read_only_observer.d.ts +0 -12
- package/dist/commonjs/playback_observer/utils/generate_read_only_observer.d.ts.map +0 -1
- package/dist/commonjs/playback_observer/utils/generate_read_only_observer.js +0 -42
- package/dist/commonjs/playback_observer/utils/observation_position.d.ts +0 -99
- package/dist/commonjs/playback_observer/utils/observation_position.d.ts.map +0 -1
- package/dist/commonjs/playback_observer/utils/observation_position.js +0 -99
- package/dist/commonjs/playback_observer/worker_playback_observer.d.ts +0 -85
- package/dist/commonjs/playback_observer/worker_playback_observer.d.ts.map +0 -1
- package/dist/commonjs/playback_observer/worker_playback_observer.js +0 -47
- package/dist/commonjs/public_types.d.ts +0 -1279
- package/dist/commonjs/public_types.d.ts.map +0 -1
- package/dist/commonjs/public_types.js +0 -6
- package/dist/commonjs/tools/TextTrackRenderer/index.d.ts +0 -24
- package/dist/commonjs/tools/TextTrackRenderer/index.d.ts.map +0 -1
- package/dist/commonjs/tools/TextTrackRenderer/index.js +0 -29
- package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.d.ts +0 -77
- package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.d.ts.map +0 -1
- package/dist/commonjs/tools/TextTrackRenderer/text_track_renderer.js +0 -82
- package/dist/commonjs/tools/index.d.ts +0 -20
- package/dist/commonjs/tools/index.d.ts.map +0 -1
- package/dist/commonjs/tools/index.js +0 -23
- package/dist/commonjs/tools/parseBIFThumbnails/index.d.ts +0 -30
- package/dist/commonjs/tools/parseBIFThumbnails/index.d.ts.map +0 -1
- package/dist/commonjs/tools/parseBIFThumbnails/index.js +0 -33
- package/dist/commonjs/tools/string_utils/index.d.ts +0 -17
- package/dist/commonjs/tools/string_utils/index.d.ts.map +0 -1
- package/dist/commonjs/tools/string_utils/index.js +0 -25
- package/dist/commonjs/transports/dash/construct_segment_url.d.ts +0 -19
- package/dist/commonjs/transports/dash/construct_segment_url.d.ts.map +0 -1
- package/dist/commonjs/transports/dash/construct_segment_url.js +0 -28
- package/dist/commonjs/transports/dash/get_events_out_of_emsgs.d.ts +0 -29
- package/dist/commonjs/transports/dash/get_events_out_of_emsgs.d.ts.map +0 -1
- package/dist/commonjs/transports/dash/get_events_out_of_emsgs.js +0 -96
- package/dist/commonjs/transports/dash/index.d.ts +0 -22
- package/dist/commonjs/transports/dash/index.d.ts.map +0 -1
- package/dist/commonjs/transports/dash/index.js +0 -23
- package/dist/commonjs/transports/dash/init_segment_loader.d.ts +0 -29
- package/dist/commonjs/transports/dash/init_segment_loader.d.ts.map +0 -1
- package/dist/commonjs/transports/dash/init_segment_loader.js +0 -135
- package/dist/commonjs/transports/dash/integrity_checks.d.ts +0 -18
- package/dist/commonjs/transports/dash/integrity_checks.d.ts.map +0 -1
- package/dist/commonjs/transports/dash/integrity_checks.js +0 -209
- package/dist/commonjs/transports/dash/load_chunked_segment_data.d.ts +0 -40
- package/dist/commonjs/transports/dash/load_chunked_segment_data.d.ts.map +0 -1
- package/dist/commonjs/transports/dash/load_chunked_segment_data.js +0 -126
- package/dist/commonjs/transports/dash/manifest_parser.d.ts +0 -19
- package/dist/commonjs/transports/dash/manifest_parser.d.ts.map +0 -1
- package/dist/commonjs/transports/dash/manifest_parser.js +0 -298
- package/dist/commonjs/transports/dash/pipelines.d.ts +0 -24
- package/dist/commonjs/transports/dash/pipelines.d.ts.map +0 -1
- package/dist/commonjs/transports/dash/pipelines.js +0 -68
- package/dist/commonjs/transports/dash/segment_loader.d.ts +0 -39
- package/dist/commonjs/transports/dash/segment_loader.d.ts.map +0 -1
- package/dist/commonjs/transports/dash/segment_loader.js +0 -275
- package/dist/commonjs/transports/dash/segment_parser.d.ts +0 -24
- package/dist/commonjs/transports/dash/segment_parser.d.ts.map +0 -1
- package/dist/commonjs/transports/dash/segment_parser.js +0 -160
- package/dist/commonjs/transports/dash/text_loader.d.ts +0 -26
- package/dist/commonjs/transports/dash/text_loader.d.ts.map +0 -1
- package/dist/commonjs/transports/dash/text_loader.js +0 -166
- package/dist/commonjs/transports/dash/text_parser.d.ts +0 -26
- package/dist/commonjs/transports/dash/text_parser.d.ts.map +0 -1
- package/dist/commonjs/transports/dash/text_parser.js +0 -194
- package/dist/commonjs/transports/dash/thumbnails.d.ts +0 -21
- package/dist/commonjs/transports/dash/thumbnails.d.ts.map +0 -1
- package/dist/commonjs/transports/dash/thumbnails.js +0 -127
- package/dist/commonjs/transports/index.d.ts +0 -17
- package/dist/commonjs/transports/index.d.ts.map +0 -1
- package/dist/commonjs/transports/index.js +0 -17
- package/dist/commonjs/transports/local/index.d.ts +0 -18
- package/dist/commonjs/transports/local/index.d.ts.map +0 -1
- package/dist/commonjs/transports/local/index.js +0 -19
- package/dist/commonjs/transports/local/pipelines.d.ts +0 -23
- package/dist/commonjs/transports/local/pipelines.d.ts.map +0 -1
- package/dist/commonjs/transports/local/pipelines.js +0 -81
- package/dist/commonjs/transports/local/segment_loader.d.ts +0 -29
- package/dist/commonjs/transports/local/segment_loader.d.ts.map +0 -1
- package/dist/commonjs/transports/local/segment_loader.js +0 -155
- package/dist/commonjs/transports/local/segment_parser.d.ts +0 -21
- package/dist/commonjs/transports/local/segment_parser.d.ts.map +0 -1
- package/dist/commonjs/transports/local/segment_parser.js +0 -90
- package/dist/commonjs/transports/local/text_parser.d.ts +0 -28
- package/dist/commonjs/transports/local/text_parser.d.ts.map +0 -1
- package/dist/commonjs/transports/local/text_parser.js +0 -165
- package/dist/commonjs/transports/metaplaylist/index.d.ts +0 -22
- package/dist/commonjs/transports/metaplaylist/index.d.ts.map +0 -1
- package/dist/commonjs/transports/metaplaylist/index.js +0 -23
- package/dist/commonjs/transports/metaplaylist/manifest_loader.d.ts +0 -27
- package/dist/commonjs/transports/metaplaylist/manifest_loader.d.ts.map +0 -1
- package/dist/commonjs/transports/metaplaylist/manifest_loader.js +0 -57
- package/dist/commonjs/transports/metaplaylist/pipelines.d.ts +0 -18
- package/dist/commonjs/transports/metaplaylist/pipelines.d.ts.map +0 -1
- package/dist/commonjs/transports/metaplaylist/pipelines.js +0 -268
- package/dist/commonjs/transports/smooth/extract_timings_infos.d.ts +0 -63
- package/dist/commonjs/transports/smooth/extract_timings_infos.d.ts.map +0 -1
- package/dist/commonjs/transports/smooth/extract_timings_infos.js +0 -104
- package/dist/commonjs/transports/smooth/index.d.ts +0 -22
- package/dist/commonjs/transports/smooth/index.d.ts.map +0 -1
- package/dist/commonjs/transports/smooth/index.js +0 -23
- package/dist/commonjs/transports/smooth/is_mp4_embedded_track.d.ts +0 -23
- package/dist/commonjs/transports/smooth/is_mp4_embedded_track.d.ts.map +0 -1
- package/dist/commonjs/transports/smooth/is_mp4_embedded_track.js +0 -27
- package/dist/commonjs/transports/smooth/isobmff/create_audio_init_segment.d.ts +0 -29
- package/dist/commonjs/transports/smooth/isobmff/create_audio_init_segment.d.ts.map +0 -1
- package/dist/commonjs/transports/smooth/isobmff/create_audio_init_segment.js +0 -54
- package/dist/commonjs/transports/smooth/isobmff/create_boxes.d.ts +0 -172
- package/dist/commonjs/transports/smooth/isobmff/create_boxes.d.ts.map +0 -1
- package/dist/commonjs/transports/smooth/isobmff/create_boxes.js +0 -368
- package/dist/commonjs/transports/smooth/isobmff/create_init_segment.d.ts +0 -32
- package/dist/commonjs/transports/smooth/isobmff/create_init_segment.d.ts.map +0 -1
- package/dist/commonjs/transports/smooth/isobmff/create_init_segment.js +0 -66
- package/dist/commonjs/transports/smooth/isobmff/create_traf_box.d.ts +0 -17
- package/dist/commonjs/transports/smooth/isobmff/create_traf_box.d.ts.map +0 -1
- package/dist/commonjs/transports/smooth/isobmff/create_traf_box.js +0 -27
- package/dist/commonjs/transports/smooth/isobmff/create_video_init_segment.d.ts +0 -30
- package/dist/commonjs/transports/smooth/isobmff/create_video_init_segment.d.ts.map +0 -1
- package/dist/commonjs/transports/smooth/isobmff/create_video_init_segment.js +0 -76
- package/dist/commonjs/transports/smooth/isobmff/get_aaces_header.d.ts +0 -28
- package/dist/commonjs/transports/smooth/isobmff/get_aaces_header.d.ts.map +0 -1
- package/dist/commonjs/transports/smooth/isobmff/get_aaces_header.js +0 -46
- package/dist/commonjs/transports/smooth/isobmff/index.d.ts +0 -24
- package/dist/commonjs/transports/smooth/isobmff/index.d.ts.map +0 -1
- package/dist/commonjs/transports/smooth/isobmff/index.js +0 -28
- package/dist/commonjs/transports/smooth/isobmff/parse_tfrf.d.ts +0 -25
- package/dist/commonjs/transports/smooth/isobmff/parse_tfrf.d.ts.map +0 -1
- package/dist/commonjs/transports/smooth/isobmff/parse_tfrf.js +0 -50
- package/dist/commonjs/transports/smooth/isobmff/parse_tfxd.d.ts +0 -25
- package/dist/commonjs/transports/smooth/isobmff/parse_tfxd.d.ts.map +0 -1
- package/dist/commonjs/transports/smooth/isobmff/parse_tfxd.js +0 -34
- package/dist/commonjs/transports/smooth/isobmff/patch_segment.d.ts +0 -24
- package/dist/commonjs/transports/smooth/isobmff/patch_segment.d.ts.map +0 -1
- package/dist/commonjs/transports/smooth/isobmff/patch_segment.js +0 -131
- package/dist/commonjs/transports/smooth/pipelines.d.ts +0 -18
- package/dist/commonjs/transports/smooth/pipelines.d.ts.map +0 -1
- package/dist/commonjs/transports/smooth/pipelines.js +0 -352
- package/dist/commonjs/transports/smooth/segment_loader.d.ts +0 -28
- package/dist/commonjs/transports/smooth/segment_loader.d.ts.map +0 -1
- package/dist/commonjs/transports/smooth/segment_loader.js +0 -299
- package/dist/commonjs/transports/smooth/utils.d.ts +0 -27
- package/dist/commonjs/transports/smooth/utils.d.ts.map +0 -1
- package/dist/commonjs/transports/smooth/utils.js +0 -39
- package/dist/commonjs/transports/types.d.ts +0 -772
- package/dist/commonjs/transports/types.d.ts.map +0 -1
- package/dist/commonjs/transports/types.js +0 -17
- package/dist/commonjs/transports/utils/add_query_string.d.ts +0 -13
- package/dist/commonjs/transports/utils/add_query_string.d.ts.map +0 -1
- package/dist/commonjs/transports/utils/add_query_string.js +0 -54
- package/dist/commonjs/transports/utils/byte_range.d.ts +0 -22
- package/dist/commonjs/transports/utils/byte_range.d.ts.map +0 -1
- package/dist/commonjs/transports/utils/byte_range.js +0 -43
- package/dist/commonjs/transports/utils/call_custom_manifest_loader.d.ts +0 -20
- package/dist/commonjs/transports/utils/call_custom_manifest_loader.d.ts.map +0 -1
- package/dist/commonjs/transports/utils/call_custom_manifest_loader.js +0 -99
- package/dist/commonjs/transports/utils/check_isobmff_integrity.d.ts +0 -24
- package/dist/commonjs/transports/utils/check_isobmff_integrity.d.ts.map +0 -1
- package/dist/commonjs/transports/utils/check_isobmff_integrity.js +0 -49
- package/dist/commonjs/transports/utils/generate_manifest_loader.d.ts +0 -27
- package/dist/commonjs/transports/utils/generate_manifest_loader.d.ts.map +0 -1
- package/dist/commonjs/transports/utils/generate_manifest_loader.js +0 -89
- package/dist/commonjs/transports/utils/get_isobmff_timing_infos.d.ts +0 -30
- package/dist/commonjs/transports/utils/get_isobmff_timing_infos.d.ts.map +0 -1
- package/dist/commonjs/transports/utils/get_isobmff_timing_infos.js +0 -70
- package/dist/commonjs/transports/utils/infer_segment_container.d.ts +0 -30
- package/dist/commonjs/transports/utils/infer_segment_container.d.ts.map +0 -1
- package/dist/commonjs/transports/utils/infer_segment_container.js +0 -45
- package/dist/commonjs/transports/utils/parse_text_track.d.ts +0 -53
- package/dist/commonjs/transports/utils/parse_text_track.d.ts.map +0 -1
- package/dist/commonjs/transports/utils/parse_text_track.js +0 -161
- package/dist/commonjs/utils/are_arrays_of_numbers_equal.d.ts +0 -23
- package/dist/commonjs/utils/are_arrays_of_numbers_equal.d.ts.map +0 -1
- package/dist/commonjs/utils/are_arrays_of_numbers_equal.js +0 -38
- package/dist/commonjs/utils/are_codecs_compatible.d.ts +0 -30
- package/dist/commonjs/utils/are_codecs_compatible.d.ts.map +0 -1
- package/dist/commonjs/utils/are_codecs_compatible.js +0 -76
- package/dist/commonjs/utils/array_find.d.ts +0 -24
- package/dist/commonjs/utils/array_find.d.ts.map +0 -1
- package/dist/commonjs/utils/array_find.js +0 -40
- package/dist/commonjs/utils/array_find_index.d.ts +0 -24
- package/dist/commonjs/utils/array_find_index.d.ts.map +0 -1
- package/dist/commonjs/utils/array_find_index.js +0 -39
- package/dist/commonjs/utils/array_includes.d.ts +0 -54
- package/dist/commonjs/utils/array_includes.d.ts.map +0 -1
- package/dist/commonjs/utils/array_includes.js +0 -80
- package/dist/commonjs/utils/assert.d.ts +0 -75
- package/dist/commonjs/utils/assert.d.ts.map +0 -1
- package/dist/commonjs/utils/assert.js +0 -117
- package/dist/commonjs/utils/base64.d.ts +0 -15
- package/dist/commonjs/utils/base64.d.ts.map +0 -1
- package/dist/commonjs/utils/base64.js +0 -212
- package/dist/commonjs/utils/buffer_source_to_uint8.d.ts +0 -8
- package/dist/commonjs/utils/buffer_source_to_uint8.d.ts.map +0 -1
- package/dist/commonjs/utils/buffer_source_to_uint8.js +0 -18
- package/dist/commonjs/utils/byte_parsing.d.ts +0 -132
- package/dist/commonjs/utils/byte_parsing.d.ts.map +0 -1
- package/dist/commonjs/utils/byte_parsing.js +0 -273
- package/dist/commonjs/utils/cancellable_sleep.d.ts +0 -31
- package/dist/commonjs/utils/cancellable_sleep.d.ts.map +0 -1
- package/dist/commonjs/utils/cancellable_sleep.js +0 -38
- package/dist/commonjs/utils/create_cancellable_promise.d.ts +0 -27
- package/dist/commonjs/utils/create_cancellable_promise.d.ts.map +0 -1
- package/dist/commonjs/utils/create_cancellable_promise.js +0 -55
- package/dist/commonjs/utils/create_uuid.d.ts +0 -9
- package/dist/commonjs/utils/create_uuid.d.ts.map +0 -1
- package/dist/commonjs/utils/create_uuid.js +0 -32
- package/dist/commonjs/utils/deep_merge.d.ts +0 -10
- package/dist/commonjs/utils/deep_merge.d.ts.map +0 -1
- package/dist/commonjs/utils/deep_merge.js +0 -73
- package/dist/commonjs/utils/event_emitter.d.ts +0 -63
- package/dist/commonjs/utils/event_emitter.d.ts.map +0 -1
- package/dist/commonjs/utils/event_emitter.js +0 -110
- package/dist/commonjs/utils/flat_map.d.ts +0 -23
- package/dist/commonjs/utils/flat_map.d.ts.map +0 -1
- package/dist/commonjs/utils/flat_map.js +0 -63
- package/dist/commonjs/utils/get_fuzzed_delay.d.ts +0 -22
- package/dist/commonjs/utils/get_fuzzed_delay.d.ts.map +0 -1
- package/dist/commonjs/utils/get_fuzzed_delay.js +0 -28
- package/dist/commonjs/utils/global_scope.d.ts +0 -10
- package/dist/commonjs/utils/global_scope.d.ts.map +0 -1
- package/dist/commonjs/utils/global_scope.js +0 -22
- package/dist/commonjs/utils/hash_buffer.d.ts +0 -33
- package/dist/commonjs/utils/hash_buffer.d.ts.map +0 -1
- package/dist/commonjs/utils/hash_buffer.js +0 -44
- package/dist/commonjs/utils/id_generator.d.ts +0 -22
- package/dist/commonjs/utils/id_generator.d.ts.map +0 -1
- package/dist/commonjs/utils/id_generator.js +0 -35
- package/dist/commonjs/utils/is_node.d.ts +0 -19
- package/dist/commonjs/utils/is_node.d.ts.map +0 -1
- package/dist/commonjs/utils/is_node.js +0 -21
- package/dist/commonjs/utils/is_non_empty_string.d.ts +0 -21
- package/dist/commonjs/utils/is_non_empty_string.d.ts.map +0 -1
- package/dist/commonjs/utils/is_non_empty_string.js +0 -25
- package/dist/commonjs/utils/is_null_or_undefined.d.ts +0 -25
- package/dist/commonjs/utils/is_null_or_undefined.d.ts.map +0 -1
- package/dist/commonjs/utils/is_null_or_undefined.js +0 -29
- package/dist/commonjs/utils/is_worker.d.ts +0 -6
- package/dist/commonjs/utils/is_worker.d.ts.map +0 -1
- package/dist/commonjs/utils/is_worker.js +0 -7
- package/dist/commonjs/utils/languages/ISO_639-1_to_ISO_639-3.d.ts +0 -23
- package/dist/commonjs/utils/languages/ISO_639-1_to_ISO_639-3.d.ts.map +0 -1
- package/dist/commonjs/utils/languages/ISO_639-1_to_ISO_639-3.js +0 -207
- package/dist/commonjs/utils/languages/ISO_639-2_to_ISO_639-3.d.ts +0 -23
- package/dist/commonjs/utils/languages/ISO_639-2_to_ISO_639-3.d.ts.map +0 -1
- package/dist/commonjs/utils/languages/ISO_639-2_to_ISO_639-3.js +0 -43
- package/dist/commonjs/utils/languages/index.d.ts +0 -21
- package/dist/commonjs/utils/languages/index.d.ts.map +0 -1
- package/dist/commonjs/utils/languages/index.js +0 -22
- package/dist/commonjs/utils/languages/normalize.d.ts +0 -70
- package/dist/commonjs/utils/languages/normalize.d.ts.map +0 -1
- package/dist/commonjs/utils/languages/normalize.js +0 -125
- package/dist/commonjs/utils/logger.d.ts +0 -157
- package/dist/commonjs/utils/logger.d.ts.map +0 -1
- package/dist/commonjs/utils/logger.js +0 -229
- package/dist/commonjs/utils/monotonic_timestamp.d.ts +0 -23
- package/dist/commonjs/utils/monotonic_timestamp.d.ts.map +0 -1
- package/dist/commonjs/utils/monotonic_timestamp.js +0 -40
- package/dist/commonjs/utils/noop.d.ts +0 -24
- package/dist/commonjs/utils/noop.d.ts.map +0 -1
- package/dist/commonjs/utils/noop.js +0 -27
- package/dist/commonjs/utils/object_assign.d.ts +0 -47
- package/dist/commonjs/utils/object_assign.d.ts.map +0 -1
- package/dist/commonjs/utils/object_assign.js +0 -75
- package/dist/commonjs/utils/object_values.d.ts +0 -31
- package/dist/commonjs/utils/object_values.d.ts.map +0 -1
- package/dist/commonjs/utils/object_values.js +0 -27
- package/dist/commonjs/utils/queue_microtask.d.ts +0 -3
- package/dist/commonjs/utils/queue_microtask.d.ts.map +0 -1
- package/dist/commonjs/utils/queue_microtask.js +0 -7
- package/dist/commonjs/utils/ranges.d.ts +0 -214
- package/dist/commonjs/utils/ranges.d.ts.map +0 -1
- package/dist/commonjs/utils/ranges.js +0 -519
- package/dist/commonjs/utils/reference.d.ts +0 -215
- package/dist/commonjs/utils/reference.d.ts.map +0 -1
- package/dist/commonjs/utils/reference.js +0 -333
- package/dist/commonjs/utils/request/fetch.d.ts +0 -81
- package/dist/commonjs/utils/request/fetch.d.ts.map +0 -1
- package/dist/commonjs/utils/request/fetch.js +0 -255
- package/dist/commonjs/utils/request/index.d.ts +0 -25
- package/dist/commonjs/utils/request/index.d.ts.map +0 -1
- package/dist/commonjs/utils/request/index.js +0 -27
- package/dist/commonjs/utils/request/request_error.d.ts +0 -47
- package/dist/commonjs/utils/request/request_error.d.ts.map +0 -1
- package/dist/commonjs/utils/request/request_error.js +0 -89
- package/dist/commonjs/utils/request/xhr.d.ts +0 -100
- package/dist/commonjs/utils/request/xhr.d.ts.map +0 -1
- package/dist/commonjs/utils/request/xhr.js +0 -205
- package/dist/commonjs/utils/retry_promise_with_backoff.d.ts +0 -55
- package/dist/commonjs/utils/retry_promise_with_backoff.d.ts.map +0 -1
- package/dist/commonjs/utils/retry_promise_with_backoff.js +0 -135
- package/dist/commonjs/utils/sleep.d.ts +0 -11
- package/dist/commonjs/utils/sleep.d.ts.map +0 -1
- package/dist/commonjs/utils/sleep.js +0 -17
- package/dist/commonjs/utils/slice_uint8array.d.ts +0 -28
- package/dist/commonjs/utils/slice_uint8array.d.ts.map +0 -1
- package/dist/commonjs/utils/slice_uint8array.js +0 -44
- package/dist/commonjs/utils/sorted_list.d.ts +0 -128
- package/dist/commonjs/utils/sorted_list.d.ts.map +0 -1
- package/dist/commonjs/utils/sorted_list.js +0 -185
- package/dist/commonjs/utils/starts_with.d.ts +0 -27
- package/dist/commonjs/utils/starts_with.d.ts.map +0 -1
- package/dist/commonjs/utils/starts_with.js +0 -38
- package/dist/commonjs/utils/string_parsing.d.ts +0 -89
- package/dist/commonjs/utils/string_parsing.d.ts.map +0 -1
- package/dist/commonjs/utils/string_parsing.js +0 -382
- package/dist/commonjs/utils/sync_or_async.d.ts +0 -71
- package/dist/commonjs/utils/sync_or_async.d.ts.map +0 -1
- package/dist/commonjs/utils/sync_or_async.js +0 -53
- package/dist/commonjs/utils/task_canceller.d.ts +0 -263
- package/dist/commonjs/utils/task_canceller.d.ts.map +0 -1
- package/dist/commonjs/utils/task_canceller.js +0 -344
- package/dist/commonjs/utils/url-utils.d.ts +0 -50
- package/dist/commonjs/utils/url-utils.d.ts.map +0 -1
- package/dist/commonjs/utils/url-utils.js +0 -356
- package/dist/commonjs/utils/warn_once.d.ts +0 -24
- package/dist/commonjs/utils/warn_once.d.ts.map +0 -1
- package/dist/commonjs/utils/warn_once.js +0 -34
- package/dist/commonjs/utils/weak_map_memory.d.ts +0 -71
- package/dist/commonjs/utils/weak_map_memory.d.ts.map +0 -1
- package/dist/commonjs/utils/weak_map_memory.js +0 -87
- package/dist/commonjs/utils/wrapInPromise.d.ts +0 -8
- package/dist/commonjs/utils/wrapInPromise.d.ts.map +0 -1
- package/dist/commonjs/utils/wrapInPromise.js +0 -25
- package/dist/commonjs/utils/xml-parser.d.ts +0 -71
- package/dist/commonjs/utils/xml-parser.d.ts.map +0 -1
- package/dist/commonjs/utils/xml-parser.js +0 -358
- package/dist/commonjs/worker_entry_point.d.ts +0 -6
- package/dist/commonjs/worker_entry_point.d.ts.map +0 -1
- package/dist/commonjs/worker_entry_point.js +0 -8
- package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.d.ts +0 -4
- package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.d.ts.map +0 -1
- package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.js +0 -3
- package/dist/es2017/__GENERATED_CODE/embedded_worker.d.ts +0 -4
- package/dist/es2017/__GENERATED_CODE/embedded_worker.d.ts.map +0 -1
- package/dist/es2017/__GENERATED_CODE/embedded_worker.js +0 -3
- package/dist/es2017/__GENERATED_CODE/index.d.ts +0 -3
- package/dist/es2017/__GENERATED_CODE/index.d.ts.map +0 -1
- package/dist/es2017/__GENERATED_CODE/index.js +0 -2
- package/dist/es2017/compat/add_class_name.d.ts +0 -23
- package/dist/es2017/compat/add_class_name.d.ts.map +0 -1
- package/dist/es2017/compat/add_class_name.js +0 -36
- package/dist/es2017/compat/add_text_track.d.ts +0 -32
- package/dist/es2017/compat/add_text_track.d.ts.map +0 -1
- package/dist/es2017/compat/add_text_track.js +0 -49
- package/dist/es2017/compat/browser_compatibility_types.d.ts +0 -384
- package/dist/es2017/compat/browser_compatibility_types.d.ts.map +0 -1
- package/dist/es2017/compat/browser_compatibility_types.js +0 -42
- package/dist/es2017/compat/browser_version.d.ts +0 -25
- package/dist/es2017/compat/browser_version.d.ts.map +0 -1
- package/dist/es2017/compat/browser_version.js +0 -41
- package/dist/es2017/compat/can_patch_isobmff.d.ts +0 -26
- package/dist/es2017/compat/can_patch_isobmff.d.ts.map +0 -1
- package/dist/es2017/compat/can_patch_isobmff.js +0 -29
- package/dist/es2017/compat/can_preload_before_play.d.ts +0 -11
- package/dist/es2017/compat/can_preload_before_play.d.ts.map +0 -1
- package/dist/es2017/compat/can_preload_before_play.js +0 -20
- package/dist/es2017/compat/can_rely_on_request_media_key_system_access.d.ts +0 -41
- package/dist/es2017/compat/can_rely_on_request_media_key_system_access.d.ts.map +0 -1
- package/dist/es2017/compat/can_rely_on_request_media_key_system_access.js +0 -53
- package/dist/es2017/compat/can_rely_on_video_visibility_and_size.d.ts +0 -38
- package/dist/es2017/compat/can_rely_on_video_visibility_and_size.d.ts.map +0 -1
- package/dist/es2017/compat/can_rely_on_video_visibility_and_size.js +0 -49
- package/dist/es2017/compat/can_reuse_media_keys.d.ts +0 -20
- package/dist/es2017/compat/can_reuse_media_keys.d.ts.map +0 -1
- package/dist/es2017/compat/can_reuse_media_keys.js +0 -30
- package/dist/es2017/compat/change_source_buffer_type.d.ts +0 -49
- package/dist/es2017/compat/change_source_buffer_type.d.ts.map +0 -1
- package/dist/es2017/compat/change_source_buffer_type.js +0 -37
- package/dist/es2017/compat/clear_element_src.d.ts +0 -22
- package/dist/es2017/compat/clear_element_src.d.ts.map +0 -1
- package/dist/es2017/compat/clear_element_src.js +0 -53
- package/dist/es2017/compat/eme/close_session.d.ts +0 -31
- package/dist/es2017/compat/eme/close_session.d.ts.map +0 -1
- package/dist/es2017/compat/eme/close_session.js +0 -102
- package/dist/es2017/compat/eme/constants.d.ts +0 -17
- package/dist/es2017/compat/eme/constants.d.ts.map +0 -1
- package/dist/es2017/compat/eme/constants.js +0 -19
- package/dist/es2017/compat/eme/custom_key_system_access.d.ts +0 -50
- package/dist/es2017/compat/eme/custom_key_system_access.d.ts.map +0 -1
- package/dist/es2017/compat/eme/custom_key_system_access.js +0 -40
- package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.d.ts +0 -32
- package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.d.ts.map +0 -1
- package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.js +0 -149
- package/dist/es2017/compat/eme/custom_media_keys/index.d.ts +0 -7
- package/dist/es2017/compat/eme/custom_media_keys/index.d.ts.map +0 -1
- package/dist/es2017/compat/eme/custom_media_keys/index.js +0 -6
- package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +0 -28
- package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts.map +0 -1
- package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.js +0 -58
- package/dist/es2017/compat/eme/custom_media_keys/ms_media_keys_constructor.d.ts +0 -44
- package/dist/es2017/compat/eme/custom_media_keys/ms_media_keys_constructor.d.ts.map +0 -1
- package/dist/es2017/compat/eme/custom_media_keys/ms_media_keys_constructor.js +0 -26
- package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +0 -42
- package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts.map +0 -1
- package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.js +0 -166
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.d.ts +0 -33
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.d.ts.map +0 -1
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.js +0 -203
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts +0 -23
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys_constructor.d.ts.map +0 -1
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys_constructor.js +0 -27
- package/dist/es2017/compat/eme/eme-api-implementation.d.ts +0 -78
- package/dist/es2017/compat/eme/eme-api-implementation.d.ts.map +0 -1
- package/dist/es2017/compat/eme/eme-api-implementation.js +0 -207
- package/dist/es2017/compat/eme/generate_key_request.d.ts +0 -55
- package/dist/es2017/compat/eme/generate_key_request.d.ts.map +0 -1
- package/dist/es2017/compat/eme/generate_key_request.js +0 -144
- package/dist/es2017/compat/eme/get_init_data.d.ts +0 -60
- package/dist/es2017/compat/eme/get_init_data.d.ts.map +0 -1
- package/dist/es2017/compat/eme/get_init_data.js +0 -110
- package/dist/es2017/compat/eme/get_uuid_kid_from_keystatus_kid.d.ts +0 -24
- package/dist/es2017/compat/eme/get_uuid_kid_from_keystatus_kid.d.ts.map +0 -1
- package/dist/es2017/compat/eme/get_uuid_kid_from_keystatus_kid.js +0 -33
- package/dist/es2017/compat/eme/get_webkit_fairplay_initdata.d.ts +0 -26
- package/dist/es2017/compat/eme/get_webkit_fairplay_initdata.d.ts.map +0 -1
- package/dist/es2017/compat/eme/get_webkit_fairplay_initdata.js +0 -54
- package/dist/es2017/compat/eme/index.d.ts +0 -26
- package/dist/es2017/compat/eme/index.d.ts.map +0 -1
- package/dist/es2017/compat/eme/index.js +0 -22
- package/dist/es2017/compat/eme/load_session.d.ts +0 -31
- package/dist/es2017/compat/eme/load_session.d.ts.map +0 -1
- package/dist/es2017/compat/eme/load_session.js +0 -53
- package/dist/es2017/compat/eme/set_media_keys.d.ts +0 -10
- package/dist/es2017/compat/eme/set_media_keys.d.ts.map +0 -1
- package/dist/es2017/compat/eme/set_media_keys.js +0 -33
- package/dist/es2017/compat/enable_audio_track.d.ts +0 -12
- package/dist/es2017/compat/enable_audio_track.d.ts.map +0 -1
- package/dist/es2017/compat/enable_audio_track.js +0 -26
- package/dist/es2017/compat/env_detector.d.ts +0 -100
- package/dist/es2017/compat/env_detector.d.ts.map +0 -1
- package/dist/es2017/compat/env_detector.js +0 -185
- package/dist/es2017/compat/event_listeners.d.ts +0 -175
- package/dist/es2017/compat/event_listeners.d.ts.map +0 -1
- package/dist/es2017/compat/event_listeners.js +0 -411
- package/dist/es2017/compat/generate_init_data.d.ts +0 -14
- package/dist/es2017/compat/generate_init_data.d.ts.map +0 -1
- package/dist/es2017/compat/generate_init_data.js +0 -56
- package/dist/es2017/compat/get_start_date.d.ts +0 -32
- package/dist/es2017/compat/get_start_date.d.ts.map +0 -1
- package/dist/es2017/compat/get_start_date.js +0 -44
- package/dist/es2017/compat/has_issues_with_high_media_source_duration.d.ts +0 -22
- package/dist/es2017/compat/has_issues_with_high_media_source_duration.d.ts.map +0 -1
- package/dist/es2017/compat/has_issues_with_high_media_source_duration.js +0 -29
- package/dist/es2017/compat/has_mse_in_worker.d.ts +0 -3
- package/dist/es2017/compat/has_mse_in_worker.d.ts.map +0 -1
- package/dist/es2017/compat/has_mse_in_worker.js +0 -4
- package/dist/es2017/compat/has_webassembly.d.ts +0 -7
- package/dist/es2017/compat/has_webassembly.d.ts.map +0 -1
- package/dist/es2017/compat/has_webassembly.js +0 -6
- package/dist/es2017/compat/has_worker_api.d.ts +0 -10
- package/dist/es2017/compat/has_worker_api.d.ts.map +0 -1
- package/dist/es2017/compat/has_worker_api.js +0 -14
- package/dist/es2017/compat/is_codec_supported.d.ts +0 -28
- package/dist/es2017/compat/is_codec_supported.d.ts.map +0 -1
- package/dist/es2017/compat/is_codec_supported.js +0 -67
- package/dist/es2017/compat/is_seeking_approximate.d.ts +0 -29
- package/dist/es2017/compat/is_seeking_approximate.d.ts.map +0 -1
- package/dist/es2017/compat/is_seeking_approximate.js +0 -33
- package/dist/es2017/compat/is_vtt_cue.d.ts +0 -23
- package/dist/es2017/compat/is_vtt_cue.d.ts.map +0 -1
- package/dist/es2017/compat/is_vtt_cue.js +0 -24
- package/dist/es2017/compat/make_vtt_cue.d.ts +0 -27
- package/dist/es2017/compat/make_vtt_cue.d.ts.map +0 -1
- package/dist/es2017/compat/make_vtt_cue.js +0 -44
- package/dist/es2017/compat/may_media_element_fail_on_undecipherable_data.d.ts +0 -17
- package/dist/es2017/compat/may_media_element_fail_on_undecipherable_data.d.ts.map +0 -1
- package/dist/es2017/compat/may_media_element_fail_on_undecipherable_data.js +0 -22
- package/dist/es2017/compat/on_height_width_change.d.ts +0 -34
- package/dist/es2017/compat/on_height_width_change.d.ts.map +0 -1
- package/dist/es2017/compat/on_height_width_change.js +0 -72
- package/dist/es2017/compat/patch_webkit_source_buffer.d.ts +0 -17
- package/dist/es2017/compat/patch_webkit_source_buffer.d.ts.map +0 -1
- package/dist/es2017/compat/patch_webkit_source_buffer.js +0 -61
- package/dist/es2017/compat/remove_cue.d.ts +0 -23
- package/dist/es2017/compat/remove_cue.d.ts.map +0 -1
- package/dist/es2017/compat/remove_cue.js +0 -63
- package/dist/es2017/compat/should_await_set_media_keys.d.ts +0 -17
- package/dist/es2017/compat/should_await_set_media_keys.d.ts.map +0 -1
- package/dist/es2017/compat/should_await_set_media_keys.js +0 -24
- package/dist/es2017/compat/should_favour_custom_safari_EME.d.ts +0 -24
- package/dist/es2017/compat/should_favour_custom_safari_EME.d.ts.map +0 -1
- package/dist/es2017/compat/should_favour_custom_safari_EME.js +0 -34
- package/dist/es2017/compat/should_reload_media_source_on_decipherability_update.d.ts +0 -27
- package/dist/es2017/compat/should_reload_media_source_on_decipherability_update.d.ts.map +0 -1
- package/dist/es2017/compat/should_reload_media_source_on_decipherability_update.js +0 -32
- package/dist/es2017/compat/should_renew_media_key_system_access.d.ts +0 -22
- package/dist/es2017/compat/should_renew_media_key_system_access.d.ts.map +0 -1
- package/dist/es2017/compat/should_renew_media_key_system_access.js +0 -32
- package/dist/es2017/compat/should_unset_media_keys.d.ts +0 -23
- package/dist/es2017/compat/should_unset_media_keys.d.ts.map +0 -1
- package/dist/es2017/compat/should_unset_media_keys.js +0 -27
- package/dist/es2017/compat/should_validate_metadata.d.ts +0 -23
- package/dist/es2017/compat/should_validate_metadata.d.ts.map +0 -1
- package/dist/es2017/compat/should_validate_metadata.js +0 -27
- package/dist/es2017/compat/should_wait_for_data_before_loaded.d.ts +0 -25
- package/dist/es2017/compat/should_wait_for_data_before_loaded.d.ts.map +0 -1
- package/dist/es2017/compat/should_wait_for_data_before_loaded.js +0 -39
- package/dist/es2017/compat/should_wait_for_have_enough_data.d.ts +0 -14
- package/dist/es2017/compat/should_wait_for_have_enough_data.d.ts.map +0 -1
- package/dist/es2017/compat/should_wait_for_have_enough_data.js +0 -19
- package/dist/es2017/config.d.ts +0 -21
- package/dist/es2017/config.d.ts.map +0 -1
- package/dist/es2017/config.js +0 -28
- package/dist/es2017/core/adaptive/adaptive_representation_selector.d.ts +0 -294
- package/dist/es2017/core/adaptive/adaptive_representation_selector.d.ts.map +0 -1
- package/dist/es2017/core/adaptive/adaptive_representation_selector.js +0 -407
- package/dist/es2017/core/adaptive/buffer_based_chooser.d.ts +0 -90
- package/dist/es2017/core/adaptive/buffer_based_chooser.d.ts.map +0 -1
- package/dist/es2017/core/adaptive/buffer_based_chooser.js +0 -198
- package/dist/es2017/core/adaptive/guess_based_chooser.d.ts +0 -96
- package/dist/es2017/core/adaptive/guess_based_chooser.d.ts.map +0 -1
- package/dist/es2017/core/adaptive/guess_based_chooser.js +0 -239
- package/dist/es2017/core/adaptive/index.d.ts +0 -20
- package/dist/es2017/core/adaptive/index.d.ts.map +0 -1
- package/dist/es2017/core/adaptive/index.js +0 -17
- package/dist/es2017/core/adaptive/network_analyzer.d.ts +0 -74
- package/dist/es2017/core/adaptive/network_analyzer.d.ts.map +0 -1
- package/dist/es2017/core/adaptive/network_analyzer.js +0 -347
- package/dist/es2017/core/adaptive/utils/bandwidth_estimator.d.ts +0 -48
- package/dist/es2017/core/adaptive/utils/bandwidth_estimator.d.ts.map +0 -1
- package/dist/es2017/core/adaptive/utils/bandwidth_estimator.js +0 -68
- package/dist/es2017/core/adaptive/utils/ewma.d.ts +0 -40
- package/dist/es2017/core/adaptive/utils/ewma.d.ts.map +0 -1
- package/dist/es2017/core/adaptive/utils/ewma.js +0 -49
- package/dist/es2017/core/adaptive/utils/filter_by_bitrate.d.ts +0 -26
- package/dist/es2017/core/adaptive/utils/filter_by_bitrate.d.ts.map +0 -1
- package/dist/es2017/core/adaptive/utils/filter_by_bitrate.js +0 -37
- package/dist/es2017/core/adaptive/utils/filter_by_resolution.d.ts +0 -32
- package/dist/es2017/core/adaptive/utils/filter_by_resolution.d.ts.map +0 -1
- package/dist/es2017/core/adaptive/utils/filter_by_resolution.js +0 -44
- package/dist/es2017/core/adaptive/utils/get_buffer_levels.d.ts +0 -25
- package/dist/es2017/core/adaptive/utils/get_buffer_levels.d.ts.map +0 -1
- package/dist/es2017/core/adaptive/utils/get_buffer_levels.js +0 -50
- package/dist/es2017/core/adaptive/utils/last_estimate_storage.d.ts +0 -62
- package/dist/es2017/core/adaptive/utils/last_estimate_storage.d.ts.map +0 -1
- package/dist/es2017/core/adaptive/utils/last_estimate_storage.js +0 -35
- package/dist/es2017/core/adaptive/utils/pending_requests_store.d.ts +0 -111
- package/dist/es2017/core/adaptive/utils/pending_requests_store.d.ts.map +0 -1
- package/dist/es2017/core/adaptive/utils/pending_requests_store.js +0 -75
- package/dist/es2017/core/adaptive/utils/representation_score_calculator.d.ts +0 -105
- package/dist/es2017/core/adaptive/utils/representation_score_calculator.d.ts.map +0 -1
- package/dist/es2017/core/adaptive/utils/representation_score_calculator.js +0 -117
- package/dist/es2017/core/adaptive/utils/select_optimal_representation.d.ts +0 -28
- package/dist/es2017/core/adaptive/utils/select_optimal_representation.d.ts.map +0 -1
- package/dist/es2017/core/adaptive/utils/select_optimal_representation.js +0 -36
- package/dist/es2017/core/cmcd/cmcd_data_builder.d.ts +0 -133
- package/dist/es2017/core/cmcd/cmcd_data_builder.d.ts.map +0 -1
- package/dist/es2017/core/cmcd/cmcd_data_builder.js +0 -340
- package/dist/es2017/core/cmcd/index.d.ts +0 -4
- package/dist/es2017/core/cmcd/index.d.ts.map +0 -1
- package/dist/es2017/core/cmcd/index.js +0 -2
- package/dist/es2017/core/fetchers/cdn_prioritizer.d.ts +0 -108
- package/dist/es2017/core/fetchers/cdn_prioritizer.d.ts.map +0 -1
- package/dist/es2017/core/fetchers/cdn_prioritizer.js +0 -154
- package/dist/es2017/core/fetchers/index.d.ts +0 -25
- package/dist/es2017/core/fetchers/index.d.ts.map +0 -1
- package/dist/es2017/core/fetchers/index.js +0 -20
- package/dist/es2017/core/fetchers/manifest/index.d.ts +0 -20
- package/dist/es2017/core/fetchers/manifest/index.d.ts.map +0 -1
- package/dist/es2017/core/fetchers/manifest/index.js +0 -17
- package/dist/es2017/core/fetchers/manifest/manifest_fetcher.d.ts +0 -236
- package/dist/es2017/core/fetchers/manifest/manifest_fetcher.d.ts.map +0 -1
- package/dist/es2017/core/fetchers/manifest/manifest_fetcher.js +0 -538
- package/dist/es2017/core/fetchers/segment/index.d.ts +0 -22
- package/dist/es2017/core/fetchers/segment/index.d.ts.map +0 -1
- package/dist/es2017/core/fetchers/segment/index.js +0 -17
- package/dist/es2017/core/fetchers/segment/initialization_segment_cache.d.ts +0 -43
- package/dist/es2017/core/fetchers/segment/initialization_segment_cache.d.ts.map +0 -1
- package/dist/es2017/core/fetchers/segment/initialization_segment_cache.js +0 -48
- package/dist/es2017/core/fetchers/segment/prioritized_segment_fetcher.d.ts +0 -40
- package/dist/es2017/core/fetchers/segment/prioritized_segment_fetcher.d.ts.map +0 -1
- package/dist/es2017/core/fetchers/segment/prioritized_segment_fetcher.js +0 -67
- package/dist/es2017/core/fetchers/segment/segment_fetcher.d.ts +0 -200
- package/dist/es2017/core/fetchers/segment/segment_fetcher.d.ts.map +0 -1
- package/dist/es2017/core/fetchers/segment/segment_fetcher.js +0 -302
- package/dist/es2017/core/fetchers/segment/segment_queue.d.ts +0 -230
- package/dist/es2017/core/fetchers/segment/segment_queue.d.ts.map +0 -1
- package/dist/es2017/core/fetchers/segment/segment_queue.js +0 -421
- package/dist/es2017/core/fetchers/segment/segment_queue_creator.d.ts +0 -98
- package/dist/es2017/core/fetchers/segment/segment_queue_creator.d.ts.map +0 -1
- package/dist/es2017/core/fetchers/segment/segment_queue_creator.js +0 -73
- package/dist/es2017/core/fetchers/segment/task_prioritizer.d.ts +0 -155
- package/dist/es2017/core/fetchers/segment/task_prioritizer.d.ts.map +0 -1
- package/dist/es2017/core/fetchers/segment/task_prioritizer.js +0 -328
- package/dist/es2017/core/fetchers/thumbnails/index.d.ts +0 -5
- package/dist/es2017/core/fetchers/thumbnails/index.d.ts.map +0 -1
- package/dist/es2017/core/fetchers/thumbnails/index.js +0 -2
- package/dist/es2017/core/fetchers/thumbnails/thumbnail_fetcher.d.ts +0 -79
- package/dist/es2017/core/fetchers/thumbnails/thumbnail_fetcher.d.ts.map +0 -1
- package/dist/es2017/core/fetchers/thumbnails/thumbnail_fetcher.js +0 -200
- package/dist/es2017/core/fetchers/utils/error_selector.d.ts +0 -23
- package/dist/es2017/core/fetchers/utils/error_selector.d.ts.map +0 -1
- package/dist/es2017/core/fetchers/utils/error_selector.js +0 -31
- package/dist/es2017/core/fetchers/utils/schedule_request.d.ts +0 -99
- package/dist/es2017/core/fetchers/utils/schedule_request.d.ts.map +0 -1
- package/dist/es2017/core/fetchers/utils/schedule_request.js +0 -331
- package/dist/es2017/core/main/common/FreezeResolver.d.ts +0 -176
- package/dist/es2017/core/main/common/FreezeResolver.d.ts.map +0 -1
- package/dist/es2017/core/main/common/FreezeResolver.js +0 -387
- package/dist/es2017/core/main/common/content_time_boundaries_observer.d.ts +0 -192
- package/dist/es2017/core/main/common/content_time_boundaries_observer.d.ts.map +0 -1
- package/dist/es2017/core/main/common/content_time_boundaries_observer.js +0 -473
- package/dist/es2017/core/main/common/create_content_time_boundaries_observer.d.ts +0 -28
- package/dist/es2017/core/main/common/create_content_time_boundaries_observer.d.ts.map +0 -1
- package/dist/es2017/core/main/common/create_content_time_boundaries_observer.js +0 -41
- package/dist/es2017/core/main/common/get_buffered_data_per_media_buffer.d.ts +0 -15
- package/dist/es2017/core/main/common/get_buffered_data_per_media_buffer.d.ts.map +0 -1
- package/dist/es2017/core/main/common/get_buffered_data_per_media_buffer.js +0 -34
- package/dist/es2017/core/main/common/get_thumbnail_data.d.ts +0 -13
- package/dist/es2017/core/main/common/get_thumbnail_data.d.ts.map +0 -1
- package/dist/es2017/core/main/common/get_thumbnail_data.js +0 -27
- package/dist/es2017/core/main/common/synchronize_sinks_on_observation.d.ts +0 -11
- package/dist/es2017/core/main/common/synchronize_sinks_on_observation.d.ts.map +0 -1
- package/dist/es2017/core/main/common/synchronize_sinks_on_observation.js +0 -17
- package/dist/es2017/core/main/worker/content_preparer.d.ts +0 -176
- package/dist/es2017/core/main/worker/content_preparer.d.ts.map +0 -1
- package/dist/es2017/core/main/worker/content_preparer.js +0 -334
- package/dist/es2017/core/main/worker/globals.d.ts +0 -14
- package/dist/es2017/core/main/worker/globals.d.ts.map +0 -1
- package/dist/es2017/core/main/worker/globals.js +0 -18
- package/dist/es2017/core/main/worker/index.d.ts +0 -3
- package/dist/es2017/core/main/worker/index.d.ts.map +0 -1
- package/dist/es2017/core/main/worker/index.js +0 -2
- package/dist/es2017/core/main/worker/send_message.d.ts +0 -4
- package/dist/es2017/core/main/worker/send_message.d.ts.map +0 -1
- package/dist/es2017/core/main/worker/send_message.js +0 -19
- package/dist/es2017/core/main/worker/track_choice_setter.d.ts +0 -20
- package/dist/es2017/core/main/worker/track_choice_setter.d.ts.map +0 -1
- package/dist/es2017/core/main/worker/track_choice_setter.js +0 -126
- package/dist/es2017/core/main/worker/worker_main.d.ts +0 -2
- package/dist/es2017/core/main/worker/worker_main.d.ts.map +0 -1
- package/dist/es2017/core/main/worker/worker_main.js +0 -871
- package/dist/es2017/core/main/worker/worker_text_displayer_interface.d.ts +0 -65
- package/dist/es2017/core/main/worker/worker_text_displayer_interface.d.ts.map +0 -1
- package/dist/es2017/core/main/worker/worker_text_displayer_interface.js +0 -120
- package/dist/es2017/core/segment_sinks/garbage_collector.d.ts +0 -44
- package/dist/es2017/core/segment_sinks/garbage_collector.d.ts.map +0 -1
- package/dist/es2017/core/segment_sinks/garbage_collector.js +0 -148
- package/dist/es2017/core/segment_sinks/implementations/audio_video/audio_video_segment_sink.d.ts +0 -136
- package/dist/es2017/core/segment_sinks/implementations/audio_video/audio_video_segment_sink.d.ts.map +0 -1
- package/dist/es2017/core/segment_sinks/implementations/audio_video/audio_video_segment_sink.js +0 -269
- package/dist/es2017/core/segment_sinks/implementations/audio_video/index.d.ts +0 -18
- package/dist/es2017/core/segment_sinks/implementations/audio_video/index.d.ts.map +0 -1
- package/dist/es2017/core/segment_sinks/implementations/audio_video/index.js +0 -17
- package/dist/es2017/core/segment_sinks/implementations/index.d.ts +0 -21
- package/dist/es2017/core/segment_sinks/implementations/index.d.ts.map +0 -1
- package/dist/es2017/core/segment_sinks/implementations/index.js +0 -18
- package/dist/es2017/core/segment_sinks/implementations/text/index.d.ts +0 -5
- package/dist/es2017/core/segment_sinks/implementations/text/index.d.ts.map +0 -1
- package/dist/es2017/core/segment_sinks/implementations/text/index.js +0 -2
- package/dist/es2017/core/segment_sinks/implementations/text/text_segment_sink.d.ts +0 -101
- package/dist/es2017/core/segment_sinks/implementations/text/text_segment_sink.d.ts.map +0 -1
- package/dist/es2017/core/segment_sinks/implementations/text/text_segment_sink.js +0 -190
- package/dist/es2017/core/segment_sinks/implementations/types.d.ts +0 -308
- package/dist/es2017/core/segment_sinks/implementations/types.d.ts.map +0 -1
- package/dist/es2017/core/segment_sinks/implementations/types.js +0 -112
- package/dist/es2017/core/segment_sinks/implementations/utils/manual_time_ranges.d.ts +0 -30
- package/dist/es2017/core/segment_sinks/implementations/utils/manual_time_ranges.d.ts.map +0 -1
- package/dist/es2017/core/segment_sinks/implementations/utils/manual_time_ranges.js +0 -63
- package/dist/es2017/core/segment_sinks/index.d.ts +0 -25
- package/dist/es2017/core/segment_sinks/index.d.ts.map +0 -1
- package/dist/es2017/core/segment_sinks/index.js +0 -21
- package/dist/es2017/core/segment_sinks/inventory/buffered_history.d.ts +0 -90
- package/dist/es2017/core/segment_sinks/inventory/buffered_history.d.ts.map +0 -1
- package/dist/es2017/core/segment_sinks/inventory/buffered_history.js +0 -88
- package/dist/es2017/core/segment_sinks/inventory/index.d.ts +0 -24
- package/dist/es2017/core/segment_sinks/inventory/index.d.ts.map +0 -1
- package/dist/es2017/core/segment_sinks/inventory/index.js +0 -18
- package/dist/es2017/core/segment_sinks/inventory/segment_inventory.d.ts +0 -240
- package/dist/es2017/core/segment_sinks/inventory/segment_inventory.d.ts.map +0 -1
- package/dist/es2017/core/segment_sinks/inventory/segment_inventory.js +0 -1075
- package/dist/es2017/core/segment_sinks/inventory/types.d.ts +0 -33
- package/dist/es2017/core/segment_sinks/inventory/types.d.ts.map +0 -1
- package/dist/es2017/core/segment_sinks/inventory/types.js +0 -16
- package/dist/es2017/core/segment_sinks/inventory/utils.d.ts +0 -34
- package/dist/es2017/core/segment_sinks/inventory/utils.d.ts.map +0 -1
- package/dist/es2017/core/segment_sinks/inventory/utils.js +0 -48
- package/dist/es2017/core/segment_sinks/segment_sinks_store.d.ts +0 -198
- package/dist/es2017/core/segment_sinks/segment_sinks_store.d.ts.map +0 -1
- package/dist/es2017/core/segment_sinks/segment_sinks_store.js +0 -323
- package/dist/es2017/core/stream/adaptation/adaptation_stream.d.ts +0 -34
- package/dist/es2017/core/stream/adaptation/adaptation_stream.d.ts.map +0 -1
- package/dist/es2017/core/stream/adaptation/adaptation_stream.js +0 -442
- package/dist/es2017/core/stream/adaptation/get_representations_switch_strategy.d.ts +0 -54
- package/dist/es2017/core/stream/adaptation/get_representations_switch_strategy.d.ts.map +0 -1
- package/dist/es2017/core/stream/adaptation/get_representations_switch_strategy.js +0 -112
- package/dist/es2017/core/stream/adaptation/index.d.ts +0 -19
- package/dist/es2017/core/stream/adaptation/index.d.ts.map +0 -1
- package/dist/es2017/core/stream/adaptation/index.js +0 -17
- package/dist/es2017/core/stream/adaptation/types.d.ts +0 -200
- package/dist/es2017/core/stream/adaptation/types.d.ts.map +0 -1
- package/dist/es2017/core/stream/adaptation/types.js +0 -1
- package/dist/es2017/core/stream/index.d.ts +0 -23
- package/dist/es2017/core/stream/index.d.ts.map +0 -1
- package/dist/es2017/core/stream/index.js +0 -17
- package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.d.ts +0 -31
- package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.d.ts.map +0 -1
- package/dist/es2017/core/stream/orchestrator/get_time_ranges_for_content.js +0 -76
- package/dist/es2017/core/stream/orchestrator/index.d.ts +0 -20
- package/dist/es2017/core/stream/orchestrator/index.d.ts.map +0 -1
- package/dist/es2017/core/stream/orchestrator/index.js +0 -17
- package/dist/es2017/core/stream/orchestrator/stream_orchestrator.d.ts +0 -176
- package/dist/es2017/core/stream/orchestrator/stream_orchestrator.d.ts.map +0 -1
- package/dist/es2017/core/stream/orchestrator/stream_orchestrator.js +0 -550
- package/dist/es2017/core/stream/period/index.d.ts +0 -19
- package/dist/es2017/core/stream/period/index.d.ts.map +0 -1
- package/dist/es2017/core/stream/period/index.js +0 -17
- package/dist/es2017/core/stream/period/period_stream.d.ts +0 -50
- package/dist/es2017/core/stream/period/period_stream.d.ts.map +0 -1
- package/dist/es2017/core/stream/period/period_stream.js +0 -432
- package/dist/es2017/core/stream/period/types.d.ts +0 -120
- package/dist/es2017/core/stream/period/types.d.ts.map +0 -1
- package/dist/es2017/core/stream/period/types.js +0 -1
- package/dist/es2017/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +0 -68
- package/dist/es2017/core/stream/period/utils/get_adaptation_switch_strategy.d.ts.map +0 -1
- package/dist/es2017/core/stream/period/utils/get_adaptation_switch_strategy.js +0 -130
- package/dist/es2017/core/stream/representation/index.d.ts +0 -19
- package/dist/es2017/core/stream/representation/index.d.ts.map +0 -1
- package/dist/es2017/core/stream/representation/index.js +0 -17
- package/dist/es2017/core/stream/representation/representation_stream.d.ts +0 -54
- package/dist/es2017/core/stream/representation/representation_stream.d.ts.map +0 -1
- package/dist/es2017/core/stream/representation/representation_stream.js +0 -395
- package/dist/es2017/core/stream/representation/types.d.ts +0 -314
- package/dist/es2017/core/stream/representation/types.d.ts.map +0 -1
- package/dist/es2017/core/stream/representation/types.js +0 -1
- package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.d.ts +0 -36
- package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.d.ts.map +0 -1
- package/dist/es2017/core/stream/representation/utils/append_segment_to_buffer.js +0 -79
- package/dist/es2017/core/stream/representation/utils/check_for_discontinuity.d.ts +0 -54
- package/dist/es2017/core/stream/representation/utils/check_for_discontinuity.d.ts.map +0 -1
- package/dist/es2017/core/stream/representation/utils/check_for_discontinuity.js +0 -245
- package/dist/es2017/core/stream/representation/utils/get_buffer_status.d.ts +0 -73
- package/dist/es2017/core/stream/representation/utils/get_buffer_status.d.ts.map +0 -1
- package/dist/es2017/core/stream/representation/utils/get_buffer_status.js +0 -198
- package/dist/es2017/core/stream/representation/utils/get_needed_segments.d.ts +0 -92
- package/dist/es2017/core/stream/representation/utils/get_needed_segments.d.ts.map +0 -1
- package/dist/es2017/core/stream/representation/utils/get_needed_segments.js +0 -450
- package/dist/es2017/core/stream/representation/utils/get_segment_priority.d.ts +0 -29
- package/dist/es2017/core/stream/representation/utils/get_segment_priority.d.ts.map +0 -1
- package/dist/es2017/core/stream/representation/utils/get_segment_priority.js +0 -38
- package/dist/es2017/core/stream/representation/utils/push_init_segment.d.ts +0 -42
- package/dist/es2017/core/stream/representation/utils/push_init_segment.d.ts.map +0 -1
- package/dist/es2017/core/stream/representation/utils/push_init_segment.js +0 -36
- package/dist/es2017/core/stream/representation/utils/push_media_segment.d.ts +0 -43
- package/dist/es2017/core/stream/representation/utils/push_media_segment.d.ts.map +0 -1
- package/dist/es2017/core/stream/representation/utils/push_media_segment.js +0 -63
- package/dist/es2017/core/types.d.ts +0 -9
- package/dist/es2017/core/types.d.ts.map +0 -1
- package/dist/es2017/core/types.js +0 -1
- package/dist/es2017/default_config.d.ts +0 -1200
- package/dist/es2017/default_config.d.ts.map +0 -1
- package/dist/es2017/default_config.js +0 -1234
- package/dist/es2017/errors/custom_loader_error.d.ts +0 -36
- package/dist/es2017/errors/custom_loader_error.d.ts.map +0 -1
- package/dist/es2017/errors/custom_loader_error.js +0 -39
- package/dist/es2017/errors/encrypted_media_error.d.ts +0 -72
- package/dist/es2017/errors/encrypted_media_error.d.ts.map +0 -1
- package/dist/es2017/errors/encrypted_media_error.js +0 -55
- package/dist/es2017/errors/error_codes.d.ts +0 -33
- package/dist/es2017/errors/error_codes.d.ts.map +0 -1
- package/dist/es2017/errors/error_codes.js +0 -68
- package/dist/es2017/errors/error_message.d.ts +0 -23
- package/dist/es2017/errors/error_message.d.ts.map +0 -1
- package/dist/es2017/errors/error_message.js +0 -24
- package/dist/es2017/errors/format_error.d.ts +0 -21
- package/dist/es2017/errors/format_error.d.ts.map +0 -1
- package/dist/es2017/errors/format_error.js +0 -29
- package/dist/es2017/errors/index.d.ts +0 -32
- package/dist/es2017/errors/index.d.ts.map +0 -1
- package/dist/es2017/errors/index.js +0 -25
- package/dist/es2017/errors/is_known_error.d.ts +0 -23
- package/dist/es2017/errors/is_known_error.d.ts.map +0 -1
- package/dist/es2017/errors/is_known_error.js +0 -32
- package/dist/es2017/errors/media_error.d.ts +0 -60
- package/dist/es2017/errors/media_error.d.ts.map +0 -1
- package/dist/es2017/errors/media_error.js +0 -53
- package/dist/es2017/errors/network_error.d.ts +0 -59
- package/dist/es2017/errors/network_error.d.ts.map +0 -1
- package/dist/es2017/errors/network_error.js +0 -65
- package/dist/es2017/errors/other_error.d.ts +0 -47
- package/dist/es2017/errors/other_error.d.ts.map +0 -1
- package/dist/es2017/errors/other_error.js +0 -51
- package/dist/es2017/errors/source_buffer_error.d.ts +0 -40
- package/dist/es2017/errors/source_buffer_error.d.ts.map +0 -1
- package/dist/es2017/errors/source_buffer_error.js +0 -42
- package/dist/es2017/errors/worker_initialization_error.d.ts +0 -19
- package/dist/es2017/errors/worker_initialization_error.d.ts.map +0 -1
- package/dist/es2017/errors/worker_initialization_error.js +0 -21
- package/dist/es2017/experimental/features/index.d.ts +0 -19
- package/dist/es2017/experimental/features/index.d.ts.map +0 -1
- package/dist/es2017/experimental/features/index.js +0 -18
- package/dist/es2017/experimental/features/local.d.ts +0 -20
- package/dist/es2017/experimental/features/local.d.ts.map +0 -1
- package/dist/es2017/experimental/features/local.js +0 -23
- package/dist/es2017/experimental/features/metaplaylist.d.ts +0 -20
- package/dist/es2017/experimental/features/metaplaylist.d.ts.map +0 -1
- package/dist/es2017/experimental/features/metaplaylist.js +0 -23
- package/dist/es2017/experimental/features/multi_thread.d.ts +0 -9
- package/dist/es2017/experimental/features/multi_thread.d.ts.map +0 -1
- package/dist/es2017/experimental/features/multi_thread.js +0 -10
- package/dist/es2017/experimental/index.d.ts +0 -3
- package/dist/es2017/experimental/index.d.ts.map +0 -1
- package/dist/es2017/experimental/index.js +0 -2
- package/dist/es2017/experimental/tools/DummyMediaElement/eme.d.ts +0 -225
- package/dist/es2017/experimental/tools/DummyMediaElement/eme.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/DummyMediaElement/eme.js +0 -790
- package/dist/es2017/experimental/tools/DummyMediaElement/html5.d.ts +0 -376
- package/dist/es2017/experimental/tools/DummyMediaElement/html5.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/DummyMediaElement/html5.js +0 -863
- package/dist/es2017/experimental/tools/DummyMediaElement/index.d.ts +0 -3
- package/dist/es2017/experimental/tools/DummyMediaElement/index.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/DummyMediaElement/index.js +0 -2
- package/dist/es2017/experimental/tools/DummyMediaElement/mse.d.ts +0 -217
- package/dist/es2017/experimental/tools/DummyMediaElement/mse.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/DummyMediaElement/mse.js +0 -586
- package/dist/es2017/experimental/tools/DummyMediaElement/utils.d.ts +0 -33
- package/dist/es2017/experimental/tools/DummyMediaElement/utils.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/DummyMediaElement/utils.js +0 -457
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/dash.d.ts +0 -18
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/dash.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/dash.js +0 -20
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts +0 -18
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/metaplaylist.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/features/metaplaylist.js +0 -20
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/index.d.ts +0 -19
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/index.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/index.js +0 -18
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts +0 -27
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/load_and_push_segment.js +0 -60
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts +0 -27
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/prepare_source_buffer.js +0 -71
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts +0 -30
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/remove_buffer_around_time.js +0 -40
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/types.d.ts +0 -26
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/types.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/types.js +0 -16
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts +0 -55
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +0 -281
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.d.ts +0 -25
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader_error.js +0 -29
- package/dist/es2017/experimental/tools/createMetaplaylist/get_duration_from_manifest.d.ts +0 -24
- package/dist/es2017/experimental/tools/createMetaplaylist/get_duration_from_manifest.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +0 -116
- package/dist/es2017/experimental/tools/createMetaplaylist/index.d.ts +0 -31
- package/dist/es2017/experimental/tools/createMetaplaylist/index.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/createMetaplaylist/index.js +0 -51
- package/dist/es2017/experimental/tools/index.d.ts +0 -20
- package/dist/es2017/experimental/tools/index.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/index.js +0 -19
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api.d.ts +0 -73
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/api.js +0 -196
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/index.d.ts +0 -19
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/index.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/index.js +0 -17
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/log.d.ts +0 -19
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/log.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/log.js +0 -18
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts +0 -21
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/HDCPPolicy.js +0 -58
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts +0 -22
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/decodingInfo.js +0 -66
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.d.ts +0 -30
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/defaultCodecsFinder.js +0 -60
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/isTypeSupportedWithFeatures.d.ts +0 -24
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/isTypeSupportedWithFeatures.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/isTypeSupportedWithFeatures.js +0 -140
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts +0 -22
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaContentType.js +0 -49
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts +0 -22
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/probers/mediaDisplayInfos.js +0 -36
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/types.d.ts +0 -56
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/types.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/types.js +0 -16
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/utils.d.ts +0 -35
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/utils.d.ts.map +0 -1
- package/dist/es2017/experimental/tools/mediaCapabilitiesProber/utils.js +0 -82
- package/dist/es2017/features/add_features.d.ts +0 -21
- package/dist/es2017/features/add_features.d.ts.map +0 -1
- package/dist/es2017/features/add_features.js +0 -34
- package/dist/es2017/features/features_object.d.ts +0 -23
- package/dist/es2017/features/features_object.d.ts.map +0 -1
- package/dist/es2017/features/features_object.js +0 -33
- package/dist/es2017/features/index.d.ts +0 -36
- package/dist/es2017/features/index.d.ts.map +0 -1
- package/dist/es2017/features/index.js +0 -33
- package/dist/es2017/features/list/dash.d.ts +0 -24
- package/dist/es2017/features/list/dash.d.ts.map +0 -1
- package/dist/es2017/features/list/dash.js +0 -31
- package/dist/es2017/features/list/dash_wasm.d.ts +0 -24
- package/dist/es2017/features/list/dash_wasm.d.ts.map +0 -1
- package/dist/es2017/features/list/dash_wasm.js +0 -33
- package/dist/es2017/features/list/debug_element.d.ts +0 -9
- package/dist/es2017/features/list/debug_element.d.ts.map +0 -1
- package/dist/es2017/features/list/debug_element.js +0 -10
- package/dist/es2017/features/list/directfile.d.ts +0 -25
- package/dist/es2017/features/list/directfile.d.ts.map +0 -1
- package/dist/es2017/features/list/directfile.js +0 -27
- package/dist/es2017/features/list/eme.d.ts +0 -24
- package/dist/es2017/features/list/eme.d.ts.map +0 -1
- package/dist/es2017/features/list/eme.js +0 -25
- package/dist/es2017/features/list/html_sami_parser.d.ts +0 -24
- package/dist/es2017/features/list/html_sami_parser.d.ts.map +0 -1
- package/dist/es2017/features/list/html_sami_parser.js +0 -27
- package/dist/es2017/features/list/html_srt_parser.d.ts +0 -24
- package/dist/es2017/features/list/html_srt_parser.d.ts.map +0 -1
- package/dist/es2017/features/list/html_srt_parser.js +0 -27
- package/dist/es2017/features/list/html_text_buffer.d.ts +0 -24
- package/dist/es2017/features/list/html_text_buffer.d.ts.map +0 -1
- package/dist/es2017/features/list/html_text_buffer.js +0 -25
- package/dist/es2017/features/list/html_ttml_parser.d.ts +0 -24
- package/dist/es2017/features/list/html_ttml_parser.d.ts.map +0 -1
- package/dist/es2017/features/list/html_ttml_parser.js +0 -27
- package/dist/es2017/features/list/html_vtt_parser.d.ts +0 -24
- package/dist/es2017/features/list/html_vtt_parser.d.ts.map +0 -1
- package/dist/es2017/features/list/html_vtt_parser.js +0 -28
- package/dist/es2017/features/list/index.d.ts +0 -33
- package/dist/es2017/features/list/index.d.ts.map +0 -1
- package/dist/es2017/features/list/index.js +0 -32
- package/dist/es2017/features/list/media_source_main.d.ts +0 -9
- package/dist/es2017/features/list/media_source_main.d.ts.map +0 -1
- package/dist/es2017/features/list/media_source_main.js +0 -10
- package/dist/es2017/features/list/native_sami_parser.d.ts +0 -24
- package/dist/es2017/features/list/native_sami_parser.d.ts.map +0 -1
- package/dist/es2017/features/list/native_sami_parser.js +0 -27
- package/dist/es2017/features/list/native_srt_parser.d.ts +0 -24
- package/dist/es2017/features/list/native_srt_parser.d.ts.map +0 -1
- package/dist/es2017/features/list/native_srt_parser.js +0 -27
- package/dist/es2017/features/list/native_text_buffer.d.ts +0 -24
- package/dist/es2017/features/list/native_text_buffer.d.ts.map +0 -1
- package/dist/es2017/features/list/native_text_buffer.js +0 -25
- package/dist/es2017/features/list/native_ttml_parser.d.ts +0 -24
- package/dist/es2017/features/list/native_ttml_parser.d.ts.map +0 -1
- package/dist/es2017/features/list/native_ttml_parser.js +0 -27
- package/dist/es2017/features/list/native_vtt_parser.d.ts +0 -24
- package/dist/es2017/features/list/native_vtt_parser.d.ts.map +0 -1
- package/dist/es2017/features/list/native_vtt_parser.js +0 -28
- package/dist/es2017/features/list/smooth.d.ts +0 -24
- package/dist/es2017/features/list/smooth.d.ts.map +0 -1
- package/dist/es2017/features/list/smooth.js +0 -29
- package/dist/es2017/features/types.d.ts +0 -146
- package/dist/es2017/features/types.d.ts.map +0 -1
- package/dist/es2017/features/types.js +0 -16
- package/dist/es2017/index.d.ts +0 -18
- package/dist/es2017/index.d.ts.map +0 -1
- package/dist/es2017/index.js +0 -42
- package/dist/es2017/log.d.ts +0 -19
- package/dist/es2017/log.d.ts.map +0 -1
- package/dist/es2017/log.js +0 -19
- package/dist/es2017/main_thread/api/debug/buffer_graph.d.ts +0 -29
- package/dist/es2017/main_thread/api/debug/buffer_graph.d.ts.map +0 -1
- package/dist/es2017/main_thread/api/debug/buffer_graph.js +0 -175
- package/dist/es2017/main_thread/api/debug/buffer_size_graph.d.ts +0 -11
- package/dist/es2017/main_thread/api/debug/buffer_size_graph.d.ts.map +0 -1
- package/dist/es2017/main_thread/api/debug/buffer_size_graph.js +0 -102
- package/dist/es2017/main_thread/api/debug/constants.d.ts +0 -3
- package/dist/es2017/main_thread/api/debug/constants.d.ts.map +0 -1
- package/dist/es2017/main_thread/api/debug/constants.js +0 -2
- package/dist/es2017/main_thread/api/debug/index.d.ts +0 -3
- package/dist/es2017/main_thread/api/debug/index.d.ts.map +0 -1
- package/dist/es2017/main_thread/api/debug/index.js +0 -2
- package/dist/es2017/main_thread/api/debug/modules/general_info.d.ts +0 -4
- package/dist/es2017/main_thread/api/debug/modules/general_info.d.ts.map +0 -1
- package/dist/es2017/main_thread/api/debug/modules/general_info.js +0 -192
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_content.d.ts +0 -5
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_content.d.ts.map +0 -1
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_content.js +0 -169
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_size.d.ts +0 -4
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_size.d.ts.map +0 -1
- package/dist/es2017/main_thread/api/debug/modules/segment_buffer_size.js +0 -35
- package/dist/es2017/main_thread/api/debug/render.d.ts +0 -4
- package/dist/es2017/main_thread/api/debug/render.d.ts.map +0 -1
- package/dist/es2017/main_thread/api/debug/render.js +0 -32
- package/dist/es2017/main_thread/api/debug/utils.d.ts +0 -40
- package/dist/es2017/main_thread/api/debug/utils.d.ts.map +0 -1
- package/dist/es2017/main_thread/api/debug/utils.js +0 -54
- package/dist/es2017/main_thread/api/index.d.ts +0 -18
- package/dist/es2017/main_thread/api/index.d.ts.map +0 -1
- package/dist/es2017/main_thread/api/index.js +0 -17
- package/dist/es2017/main_thread/api/option_utils.d.ts +0 -162
- package/dist/es2017/main_thread/api/option_utils.d.ts.map +0 -1
- package/dist/es2017/main_thread/api/option_utils.js +0 -334
- package/dist/es2017/main_thread/api/public_api.d.ts +0 -995
- package/dist/es2017/main_thread/api/public_api.d.ts.map +0 -1
- package/dist/es2017/main_thread/api/public_api.js +0 -2684
- package/dist/es2017/main_thread/api/utils.d.ts +0 -67
- package/dist/es2017/main_thread/api/utils.d.ts.map +0 -1
- package/dist/es2017/main_thread/api/utils.js +0 -179
- package/dist/es2017/main_thread/decrypt/clear_on_stop.d.ts +0 -24
- package/dist/es2017/main_thread/decrypt/clear_on_stop.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/clear_on_stop.js +0 -42
- package/dist/es2017/main_thread/decrypt/content_decryptor.d.ts +0 -237
- package/dist/es2017/main_thread/decrypt/content_decryptor.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/content_decryptor.js +0 -921
- package/dist/es2017/main_thread/decrypt/create_or_load_session.d.ts +0 -65
- package/dist/es2017/main_thread/decrypt/create_or_load_session.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/create_or_load_session.js +0 -88
- package/dist/es2017/main_thread/decrypt/create_session.d.ts +0 -55
- package/dist/es2017/main_thread/decrypt/create_session.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/create_session.js +0 -152
- package/dist/es2017/main_thread/decrypt/dispose_decryption_resources.d.ts +0 -23
- package/dist/es2017/main_thread/decrypt/dispose_decryption_resources.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/dispose_decryption_resources.js +0 -24
- package/dist/es2017/main_thread/decrypt/find_key_system.d.ts +0 -86
- package/dist/es2017/main_thread/decrypt/find_key_system.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/find_key_system.js +0 -446
- package/dist/es2017/main_thread/decrypt/get_key_system_configuration.d.ts +0 -24
- package/dist/es2017/main_thread/decrypt/get_key_system_configuration.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/get_key_system_configuration.js +0 -32
- package/dist/es2017/main_thread/decrypt/get_media_keys.d.ts +0 -55
- package/dist/es2017/main_thread/decrypt/get_media_keys.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/get_media_keys.js +0 -114
- package/dist/es2017/main_thread/decrypt/index.d.ts +0 -27
- package/dist/es2017/main_thread/decrypt/index.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/index.js +0 -26
- package/dist/es2017/main_thread/decrypt/init_media_keys.d.ts +0 -30
- package/dist/es2017/main_thread/decrypt/init_media_keys.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/init_media_keys.js +0 -38
- package/dist/es2017/main_thread/decrypt/session_events_listener.d.ts +0 -77
- package/dist/es2017/main_thread/decrypt/session_events_listener.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/session_events_listener.js +0 -273
- package/dist/es2017/main_thread/decrypt/set_server_certificate.d.ts +0 -58
- package/dist/es2017/main_thread/decrypt/set_server_certificate.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/set_server_certificate.js +0 -96
- package/dist/es2017/main_thread/decrypt/types.d.ts +0 -380
- package/dist/es2017/main_thread/decrypt/types.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/types.js +0 -55
- package/dist/es2017/main_thread/decrypt/utils/are_init_values_compatible.d.ts +0 -35
- package/dist/es2017/main_thread/decrypt/utils/are_init_values_compatible.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/utils/are_init_values_compatible.js +0 -141
- package/dist/es2017/main_thread/decrypt/utils/check_key_statuses.d.ts +0 -54
- package/dist/es2017/main_thread/decrypt/utils/check_key_statuses.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/utils/check_key_statuses.js +0 -180
- package/dist/es2017/main_thread/decrypt/utils/clean_old_loaded_sessions.d.ts +0 -27
- package/dist/es2017/main_thread/decrypt/utils/clean_old_loaded_sessions.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/utils/clean_old_loaded_sessions.js +0 -42
- package/dist/es2017/main_thread/decrypt/utils/clean_old_stored_persistent_info.d.ts +0 -33
- package/dist/es2017/main_thread/decrypt/utils/clean_old_stored_persistent_info.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/utils/clean_old_stored_persistent_info.js +0 -43
- package/dist/es2017/main_thread/decrypt/utils/get_drm_system_id.d.ts +0 -21
- package/dist/es2017/main_thread/decrypt/utils/get_drm_system_id.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/utils/get_drm_system_id.js +0 -37
- package/dist/es2017/main_thread/decrypt/utils/init_data_values_container.d.ts +0 -70
- package/dist/es2017/main_thread/decrypt/utils/init_data_values_container.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/utils/init_data_values_container.js +0 -105
- package/dist/es2017/main_thread/decrypt/utils/is_compatible_codec_supported.d.ts +0 -14
- package/dist/es2017/main_thread/decrypt/utils/is_compatible_codec_supported.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/utils/is_compatible_codec_supported.js +0 -28
- package/dist/es2017/main_thread/decrypt/utils/is_session_usable.d.ts +0 -25
- package/dist/es2017/main_thread/decrypt/utils/is_session_usable.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/utils/is_session_usable.js +0 -54
- package/dist/es2017/main_thread/decrypt/utils/key_id_comparison.d.ts +0 -32
- package/dist/es2017/main_thread/decrypt/utils/key_id_comparison.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/utils/key_id_comparison.js +0 -48
- package/dist/es2017/main_thread/decrypt/utils/key_session_record.d.ts +0 -105
- package/dist/es2017/main_thread/decrypt/utils/key_session_record.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/utils/key_session_record.js +0 -152
- package/dist/es2017/main_thread/decrypt/utils/loaded_sessions_store.d.ts +0 -214
- package/dist/es2017/main_thread/decrypt/utils/loaded_sessions_store.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/utils/loaded_sessions_store.js +0 -382
- package/dist/es2017/main_thread/decrypt/utils/media_keys_attacher.d.ts +0 -85
- package/dist/es2017/main_thread/decrypt/utils/media_keys_attacher.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/utils/media_keys_attacher.js +0 -184
- package/dist/es2017/main_thread/decrypt/utils/persistent_sessions_store.d.ts +0 -93
- package/dist/es2017/main_thread/decrypt/utils/persistent_sessions_store.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/utils/persistent_sessions_store.js +0 -369
- package/dist/es2017/main_thread/decrypt/utils/serializable_bytes.d.ts +0 -45
- package/dist/es2017/main_thread/decrypt/utils/serializable_bytes.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/utils/serializable_bytes.js +0 -46
- package/dist/es2017/main_thread/decrypt/utils/server_certificate_store.d.ts +0 -65
- package/dist/es2017/main_thread/decrypt/utils/server_certificate_store.d.ts.map +0 -1
- package/dist/es2017/main_thread/decrypt/utils/server_certificate_store.js +0 -121
- package/dist/es2017/main_thread/init/directfile_content_initializer.d.ts +0 -113
- package/dist/es2017/main_thread/init/directfile_content_initializer.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/directfile_content_initializer.js +0 -264
- package/dist/es2017/main_thread/init/index.d.ts +0 -18
- package/dist/es2017/main_thread/init/index.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/index.js +0 -16
- package/dist/es2017/main_thread/init/media_source_content_initializer.d.ts +0 -260
- package/dist/es2017/main_thread/init/media_source_content_initializer.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/media_source_content_initializer.js +0 -916
- package/dist/es2017/main_thread/init/multi_thread_content_initializer.d.ts +0 -308
- package/dist/es2017/main_thread/init/multi_thread_content_initializer.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/multi_thread_content_initializer.js +0 -1559
- package/dist/es2017/main_thread/init/send_message.d.ts +0 -3
- package/dist/es2017/main_thread/init/send_message.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/send_message.js +0 -10
- package/dist/es2017/main_thread/init/types.d.ts +0 -237
- package/dist/es2017/main_thread/init/types.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/types.js +0 -29
- package/dist/es2017/main_thread/init/utils/create_core_playback_observer.d.ts +0 -96
- package/dist/es2017/main_thread/init/utils/create_core_playback_observer.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/utils/create_core_playback_observer.js +0 -106
- package/dist/es2017/main_thread/init/utils/create_media_source.d.ts +0 -54
- package/dist/es2017/main_thread/init/utils/create_media_source.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/utils/create_media_source.js +0 -138
- package/dist/es2017/main_thread/init/utils/get_initial_time.d.ts +0 -77
- package/dist/es2017/main_thread/init/utils/get_initial_time.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/utils/get_initial_time.js +0 -149
- package/dist/es2017/main_thread/init/utils/get_loaded_reference.d.ts +0 -28
- package/dist/es2017/main_thread/init/utils/get_loaded_reference.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/utils/get_loaded_reference.js +0 -63
- package/dist/es2017/main_thread/init/utils/initial_seek_and_play.d.ts +0 -63
- package/dist/es2017/main_thread/init/utils/initial_seek_and_play.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/utils/initial_seek_and_play.js +0 -224
- package/dist/es2017/main_thread/init/utils/initialize_content_decryption.d.ts +0 -99
- package/dist/es2017/main_thread/init/utils/initialize_content_decryption.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/utils/initialize_content_decryption.js +0 -118
- package/dist/es2017/main_thread/init/utils/main_thread_text_displayer_interface.d.ts +0 -36
- package/dist/es2017/main_thread/init/utils/main_thread_text_displayer_interface.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/utils/main_thread_text_displayer_interface.js +0 -50
- package/dist/es2017/main_thread/init/utils/rebuffering_controller.d.ts +0 -115
- package/dist/es2017/main_thread/init/utils/rebuffering_controller.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/utils/rebuffering_controller.js +0 -444
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/are_same_stream_events.d.ts +0 -40
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/are_same_stream_events.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/are_same_stream_events.js +0 -33
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/index.d.ts +0 -19
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/index.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/index.js +0 -17
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts +0 -26
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/refresh_scheduled_events_list.js +0 -82
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts +0 -52
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/stream_events_emitter.js +0 -173
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/types.d.ts +0 -42
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/types.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/types.js +0 -16
- package/dist/es2017/main_thread/init/utils/throw_on_media_error.d.ts +0 -25
- package/dist/es2017/main_thread/init/utils/throw_on_media_error.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/utils/throw_on_media_error.js +0 -63
- package/dist/es2017/main_thread/init/utils/update_manifest_codec_support.d.ts +0 -35
- package/dist/es2017/main_thread/init/utils/update_manifest_codec_support.d.ts.map +0 -1
- package/dist/es2017/main_thread/init/utils/update_manifest_codec_support.js +0 -147
- package/dist/es2017/main_thread/render_thumbnail.d.ts +0 -27
- package/dist/es2017/main_thread/render_thumbnail.d.ts.map +0 -1
- package/dist/es2017/main_thread/render_thumbnail.js +0 -198
- package/dist/es2017/main_thread/text_displayer/html/html_parsers.d.ts +0 -20
- package/dist/es2017/main_thread/text_displayer/html/html_parsers.d.ts.map +0 -1
- package/dist/es2017/main_thread/text_displayer/html/html_parsers.js +0 -22
- package/dist/es2017/main_thread/text_displayer/html/html_text_displayer.d.ts +0 -103
- package/dist/es2017/main_thread/text_displayer/html/html_text_displayer.d.ts.map +0 -1
- package/dist/es2017/main_thread/text_displayer/html/html_text_displayer.js +0 -308
- package/dist/es2017/main_thread/text_displayer/html/index.d.ts +0 -3
- package/dist/es2017/main_thread/text_displayer/html/index.d.ts.map +0 -1
- package/dist/es2017/main_thread/text_displayer/html/index.js +0 -2
- package/dist/es2017/main_thread/text_displayer/html/text_track_cues_store.d.ts +0 -66
- package/dist/es2017/main_thread/text_displayer/html/text_track_cues_store.d.ts.map +0 -1
- package/dist/es2017/main_thread/text_displayer/html/text_track_cues_store.js +0 -356
- package/dist/es2017/main_thread/text_displayer/html/update_proportional_elements.d.ts +0 -16
- package/dist/es2017/main_thread/text_displayer/html/update_proportional_elements.d.ts.map +0 -1
- package/dist/es2017/main_thread/text_displayer/html/update_proportional_elements.js +0 -61
- package/dist/es2017/main_thread/text_displayer/html/utils.d.ts +0 -55
- package/dist/es2017/main_thread/text_displayer/html/utils.d.ts.map +0 -1
- package/dist/es2017/main_thread/text_displayer/html/utils.js +0 -133
- package/dist/es2017/main_thread/text_displayer/index.d.ts +0 -3
- package/dist/es2017/main_thread/text_displayer/index.d.ts.map +0 -1
- package/dist/es2017/main_thread/text_displayer/index.js +0 -1
- package/dist/es2017/main_thread/text_displayer/manual_time_ranges.d.ts +0 -15
- package/dist/es2017/main_thread/text_displayer/manual_time_ranges.d.ts.map +0 -1
- package/dist/es2017/main_thread/text_displayer/manual_time_ranges.js +0 -44
- package/dist/es2017/main_thread/text_displayer/native/index.d.ts +0 -3
- package/dist/es2017/main_thread/text_displayer/native/index.d.ts.map +0 -1
- package/dist/es2017/main_thread/text_displayer/native/index.js +0 -2
- package/dist/es2017/main_thread/text_displayer/native/native_parsers.d.ts +0 -16
- package/dist/es2017/main_thread/text_displayer/native/native_parsers.d.ts.map +0 -1
- package/dist/es2017/main_thread/text_displayer/native/native_parsers.js +0 -22
- package/dist/es2017/main_thread/text_displayer/native/native_text_displayer.d.ts +0 -59
- package/dist/es2017/main_thread/text_displayer/native/native_text_displayer.d.ts.map +0 -1
- package/dist/es2017/main_thread/text_displayer/native/native_text_displayer.js +0 -200
- package/dist/es2017/main_thread/text_displayer/types.d.ts +0 -72
- package/dist/es2017/main_thread/text_displayer/types.d.ts.map +0 -1
- package/dist/es2017/main_thread/text_displayer/types.js +0 -1
- package/dist/es2017/main_thread/tracks_store/index.d.ts +0 -21
- package/dist/es2017/main_thread/tracks_store/index.d.ts.map +0 -1
- package/dist/es2017/main_thread/tracks_store/index.js +0 -18
- package/dist/es2017/main_thread/tracks_store/media_element_tracks_store.d.ts +0 -208
- package/dist/es2017/main_thread/tracks_store/media_element_tracks_store.d.ts.map +0 -1
- package/dist/es2017/main_thread/tracks_store/media_element_tracks_store.js +0 -681
- package/dist/es2017/main_thread/tracks_store/track_dispatcher.d.ts +0 -105
- package/dist/es2017/main_thread/tracks_store/track_dispatcher.d.ts.map +0 -1
- package/dist/es2017/main_thread/tracks_store/track_dispatcher.js +0 -153
- package/dist/es2017/main_thread/tracks_store/tracks_store.d.ts +0 -538
- package/dist/es2017/main_thread/tracks_store/tracks_store.d.ts.map +0 -1
- package/dist/es2017/main_thread/tracks_store/tracks_store.js +0 -1354
- package/dist/es2017/main_thread/types.d.ts +0 -6
- package/dist/es2017/main_thread/types.d.ts.map +0 -1
- package/dist/es2017/main_thread/types.js +0 -1
- package/dist/es2017/manifest/classes/adaptation.d.ts +0 -135
- package/dist/es2017/manifest/classes/adaptation.d.ts.map +0 -1
- package/dist/es2017/manifest/classes/adaptation.js +0 -219
- package/dist/es2017/manifest/classes/codec_support_cache.d.ts +0 -45
- package/dist/es2017/manifest/classes/codec_support_cache.d.ts.map +0 -1
- package/dist/es2017/manifest/classes/codec_support_cache.js +0 -58
- package/dist/es2017/manifest/classes/index.d.ts +0 -32
- package/dist/es2017/manifest/classes/index.d.ts.map +0 -1
- package/dist/es2017/manifest/classes/index.js +0 -24
- package/dist/es2017/manifest/classes/manifest.d.ts +0 -425
- package/dist/es2017/manifest/classes/manifest.d.ts.map +0 -1
- package/dist/es2017/manifest/classes/manifest.js +0 -436
- package/dist/es2017/manifest/classes/period.d.ts +0 -157
- package/dist/es2017/manifest/classes/period.d.ts.map +0 -1
- package/dist/es2017/manifest/classes/period.js +0 -215
- package/dist/es2017/manifest/classes/representation.d.ts +0 -271
- package/dist/es2017/manifest/classes/representation.d.ts.map +0 -1
- package/dist/es2017/manifest/classes/representation.js +0 -366
- package/dist/es2017/manifest/classes/representation_index/index.d.ts +0 -20
- package/dist/es2017/manifest/classes/representation_index/index.d.ts.map +0 -1
- package/dist/es2017/manifest/classes/representation_index/index.js +0 -17
- package/dist/es2017/manifest/classes/representation_index/static.d.ts +0 -117
- package/dist/es2017/manifest/classes/representation_index/static.d.ts.map +0 -1
- package/dist/es2017/manifest/classes/representation_index/static.js +0 -160
- package/dist/es2017/manifest/classes/representation_index/types.d.ts +0 -441
- package/dist/es2017/manifest/classes/representation_index/types.d.ts.map +0 -1
- package/dist/es2017/manifest/classes/representation_index/types.js +0 -16
- package/dist/es2017/manifest/classes/types.d.ts +0 -30
- package/dist/es2017/manifest/classes/types.d.ts.map +0 -1
- package/dist/es2017/manifest/classes/types.js +0 -30
- package/dist/es2017/manifest/classes/update_period_in_place.d.ts +0 -63
- package/dist/es2017/manifest/classes/update_period_in_place.d.ts.map +0 -1
- package/dist/es2017/manifest/classes/update_period_in_place.js +0 -168
- package/dist/es2017/manifest/classes/update_periods.d.ts +0 -51
- package/dist/es2017/manifest/classes/update_periods.d.ts.map +0 -1
- package/dist/es2017/manifest/classes/update_periods.js +0 -193
- package/dist/es2017/manifest/classes/utils.d.ts +0 -47
- package/dist/es2017/manifest/classes/utils.d.ts.map +0 -1
- package/dist/es2017/manifest/classes/utils.js +0 -45
- package/dist/es2017/manifest/index.d.ts +0 -17
- package/dist/es2017/manifest/index.d.ts.map +0 -1
- package/dist/es2017/manifest/index.js +0 -3
- package/dist/es2017/manifest/types.d.ts +0 -466
- package/dist/es2017/manifest/types.d.ts.map +0 -1
- package/dist/es2017/manifest/types.js +0 -1
- package/dist/es2017/manifest/utils.d.ts +0 -184
- package/dist/es2017/manifest/utils.d.ts.map +0 -1
- package/dist/es2017/manifest/utils.js +0 -538
- package/dist/es2017/minimal.d.ts +0 -21
- package/dist/es2017/minimal.d.ts.map +0 -1
- package/dist/es2017/minimal.js +0 -28
- package/dist/es2017/mse/index.d.ts +0 -3
- package/dist/es2017/mse/index.d.ts.map +0 -1
- package/dist/es2017/mse/index.js +0 -1
- package/dist/es2017/mse/main_media_source_interface.d.ts +0 -128
- package/dist/es2017/mse/main_media_source_interface.d.ts.map +0 -1
- package/dist/es2017/mse/main_media_source_interface.js +0 -497
- package/dist/es2017/mse/types.d.ts +0 -289
- package/dist/es2017/mse/types.d.ts.map +0 -1
- package/dist/es2017/mse/types.js +0 -1
- package/dist/es2017/mse/utils/end_of_stream.d.ts +0 -35
- package/dist/es2017/mse/utils/end_of_stream.d.ts.map +0 -1
- package/dist/es2017/mse/utils/end_of_stream.js +0 -92
- package/dist/es2017/mse/utils/media_source_duration_updater.d.ts +0 -60
- package/dist/es2017/mse/utils/media_source_duration_updater.d.ts.map +0 -1
- package/dist/es2017/mse/utils/media_source_duration_updater.js +0 -267
- package/dist/es2017/mse/worker_media_source_interface.d.ts +0 -106
- package/dist/es2017/mse/worker_media_source_interface.d.ts.map +0 -1
- package/dist/es2017/mse/worker_media_source_interface.js +0 -305
- package/dist/es2017/multithread_types.d.ts +0 -915
- package/dist/es2017/multithread_types.d.ts.map +0 -1
- package/dist/es2017/multithread_types.js +0 -6
- package/dist/es2017/parsers/containers/isobmff/constants.d.ts +0 -24
- package/dist/es2017/parsers/containers/isobmff/constants.d.ts.map +0 -1
- package/dist/es2017/parsers/containers/isobmff/constants.js +0 -23
- package/dist/es2017/parsers/containers/isobmff/create_box.d.ts +0 -31
- package/dist/es2017/parsers/containers/isobmff/create_box.d.ts.map +0 -1
- package/dist/es2017/parsers/containers/isobmff/create_box.js +0 -65
- package/dist/es2017/parsers/containers/isobmff/drm/index.d.ts +0 -17
- package/dist/es2017/parsers/containers/isobmff/drm/index.d.ts.map +0 -1
- package/dist/es2017/parsers/containers/isobmff/drm/index.js +0 -16
- package/dist/es2017/parsers/containers/isobmff/drm/playready.d.ts +0 -22
- package/dist/es2017/parsers/containers/isobmff/drm/playready.d.ts.map +0 -1
- package/dist/es2017/parsers/containers/isobmff/drm/playready.js +0 -35
- package/dist/es2017/parsers/containers/isobmff/extract_complete_chunks.d.ts +0 -30
- package/dist/es2017/parsers/containers/isobmff/extract_complete_chunks.d.ts.map +0 -1
- package/dist/es2017/parsers/containers/isobmff/extract_complete_chunks.js +0 -85
- package/dist/es2017/parsers/containers/isobmff/find_complete_box.d.ts +0 -26
- package/dist/es2017/parsers/containers/isobmff/find_complete_box.d.ts.map +0 -1
- package/dist/es2017/parsers/containers/isobmff/find_complete_box.js +0 -54
- package/dist/es2017/parsers/containers/isobmff/get_box.d.ts +0 -107
- package/dist/es2017/parsers/containers/isobmff/get_box.d.ts.map +0 -1
- package/dist/es2017/parsers/containers/isobmff/get_box.js +0 -224
- package/dist/es2017/parsers/containers/isobmff/index.d.ts +0 -26
- package/dist/es2017/parsers/containers/isobmff/index.d.ts.map +0 -1
- package/dist/es2017/parsers/containers/isobmff/index.js +0 -24
- package/dist/es2017/parsers/containers/isobmff/read.d.ts +0 -58
- package/dist/es2017/parsers/containers/isobmff/read.d.ts.map +0 -1
- package/dist/es2017/parsers/containers/isobmff/read.js +0 -87
- package/dist/es2017/parsers/containers/isobmff/take_pssh_out.d.ts +0 -42
- package/dist/es2017/parsers/containers/isobmff/take_pssh_out.d.ts.map +0 -1
- package/dist/es2017/parsers/containers/isobmff/take_pssh_out.js +0 -82
- package/dist/es2017/parsers/containers/isobmff/utils.d.ts +0 -143
- package/dist/es2017/parsers/containers/isobmff/utils.d.ts.map +0 -1
- package/dist/es2017/parsers/containers/isobmff/utils.js +0 -537
- package/dist/es2017/parsers/containers/matroska/index.d.ts +0 -18
- package/dist/es2017/parsers/containers/matroska/index.d.ts.map +0 -1
- package/dist/es2017/parsers/containers/matroska/index.js +0 -16
- package/dist/es2017/parsers/containers/matroska/utils.d.ts +0 -35
- package/dist/es2017/parsers/containers/matroska/utils.d.ts.map +0 -1
- package/dist/es2017/parsers/containers/matroska/utils.js +0 -256
- package/dist/es2017/parsers/images/bif.d.ts +0 -40
- package/dist/es2017/parsers/images/bif.d.ts.map +0 -1
- package/dist/es2017/parsers/images/bif.js +0 -101
- package/dist/es2017/parsers/manifest/dash/common/attach_trickmode_track.d.ts +0 -29
- package/dist/es2017/parsers/manifest/dash/common/attach_trickmode_track.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/attach_trickmode_track.js +0 -44
- package/dist/es2017/parsers/manifest/dash/common/content_protection_parser.d.ts +0 -99
- package/dist/es2017/parsers/manifest/dash/common/content_protection_parser.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/content_protection_parser.js +0 -198
- package/dist/es2017/parsers/manifest/dash/common/convert_supplemental_codecs.d.ts +0 -18
- package/dist/es2017/parsers/manifest/dash/common/convert_supplemental_codecs.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/convert_supplemental_codecs.js +0 -24
- package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts +0 -44
- package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.js +0 -82
- package/dist/es2017/parsers/manifest/dash/common/get_clock_offset.d.ts +0 -30
- package/dist/es2017/parsers/manifest/dash/common/get_clock_offset.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/get_clock_offset.js +0 -38
- package/dist/es2017/parsers/manifest/dash/common/get_hdr_information.d.ts +0 -51
- package/dist/es2017/parsers/manifest/dash/common/get_hdr_information.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/get_hdr_information.js +0 -67
- package/dist/es2017/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts +0 -22
- package/dist/es2017/parsers/manifest/dash/common/get_http_utc-timing_url.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/get_http_utc-timing_url.js +0 -25
- package/dist/es2017/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts +0 -26
- package/dist/es2017/parsers/manifest/dash/common/get_minimum_and_maximum_positions.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/get_minimum_and_maximum_positions.js +0 -33
- package/dist/es2017/parsers/manifest/dash/common/get_periods_time_infos.d.ts +0 -44
- package/dist/es2017/parsers/manifest/dash/common/get_periods_time_infos.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/get_periods_time_infos.js +0 -68
- package/dist/es2017/parsers/manifest/dash/common/index.d.ts +0 -22
- package/dist/es2017/parsers/manifest/dash/common/index.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/index.js +0 -19
- package/dist/es2017/parsers/manifest/dash/common/indexes/base.d.ts +0 -267
- package/dist/es2017/parsers/manifest/dash/common/indexes/base.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/base.js +0 -285
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_init_segment.d.ts +0 -33
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_init_segment.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_init_segment.js +0 -44
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts +0 -40
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_segments_from_timeline.js +0 -109
- package/dist/es2017/parsers/manifest/dash/common/indexes/index.d.ts +0 -26
- package/dist/es2017/parsers/manifest/dash/common/indexes/index.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/index.js +0 -20
- package/dist/es2017/parsers/manifest/dash/common/indexes/list.d.ts +0 -209
- package/dist/es2017/parsers/manifest/dash/common/indexes/list.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/list.js +0 -227
- package/dist/es2017/parsers/manifest/dash/common/indexes/template.d.ts +0 -272
- package/dist/es2017/parsers/manifest/dash/common/indexes/template.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/template.js +0 -449
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts +0 -28
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_elements.js +0 -43
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts +0 -19
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/construct_timeline_from_previous_timeline.js +0 -79
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts +0 -38
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/convert_element_to_index_segment.js +0 -63
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts +0 -43
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/find_first_common_start_time.js +0 -140
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/index.d.ts +0 -20
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/index.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/index.js +0 -17
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts +0 -37
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/parse_s_element.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/parse_s_element.js +0 -65
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +0 -448
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +0 -685
- package/dist/es2017/parsers/manifest/dash/common/indexes/tokens.d.ts +0 -41
- package/dist/es2017/parsers/manifest/dash/common/indexes/tokens.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/tokens.js +0 -107
- package/dist/es2017/parsers/manifest/dash/common/indexes/utils.d.ts +0 -26
- package/dist/es2017/parsers/manifest/dash/common/indexes/utils.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/utils.js +0 -28
- package/dist/es2017/parsers/manifest/dash/common/infer_adaptation_type.d.ts +0 -48
- package/dist/es2017/parsers/manifest/dash/common/infer_adaptation_type.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/infer_adaptation_type.js +0 -154
- package/dist/es2017/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts +0 -120
- package/dist/es2017/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/manifest_bounds_calculator.js +0 -134
- package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.d.ts +0 -56
- package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.js +0 -434
- package/dist/es2017/parsers/manifest/dash/common/parse_availability_start_time.d.ts +0 -24
- package/dist/es2017/parsers/manifest/dash/common/parse_availability_start_time.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/parse_availability_start_time.js +0 -31
- package/dist/es2017/parsers/manifest/dash/common/parse_mpd.d.ts +0 -99
- package/dist/es2017/parsers/manifest/dash/common/parse_mpd.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/parse_mpd.js +0 -291
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.d.ts +0 -71
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.js +0 -266
- package/dist/es2017/parsers/manifest/dash/common/parse_representation_index.d.ts +0 -87
- package/dist/es2017/parsers/manifest/dash/common/parse_representation_index.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/parse_representation_index.js +0 -100
- package/dist/es2017/parsers/manifest/dash/common/parse_representations.d.ts +0 -51
- package/dist/es2017/parsers/manifest/dash/common/parse_representations.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/parse_representations.js +0 -236
- package/dist/es2017/parsers/manifest/dash/common/resolve_base_urls.d.ts +0 -27
- package/dist/es2017/parsers/manifest/dash/common/resolve_base_urls.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/common/resolve_base_urls.js +0 -46
- package/dist/es2017/parsers/manifest/dash/index.d.ts +0 -17
- package/dist/es2017/parsers/manifest/dash/index.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/index.js +0 -16
- package/dist/es2017/parsers/manifest/dash/js-parser/index.d.ts +0 -18
- package/dist/es2017/parsers/manifest/dash/js-parser/index.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/index.js +0 -17
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts +0 -25
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +0 -365
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts +0 -25
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/BaseURL.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/BaseURL.js +0 -30
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts +0 -24
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentComponent.js +0 -45
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts +0 -23
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/ContentProtection.js +0 -84
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts +0 -24
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/EventStream.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/EventStream.js +0 -101
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts +0 -23
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Initialization.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Initialization.js +0 -45
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts +0 -24
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/MPD.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/MPD.js +0 -194
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts +0 -24
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Period.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Period.js +0 -156
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts +0 -23
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Representation.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Representation.js +0 -227
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts +0 -24
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentBase.js +0 -111
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts +0 -23
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentList.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentList.js +0 -41
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts +0 -25
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTemplate.js +0 -84
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts +0 -23
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentTimeline.js +0 -33
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts +0 -25
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/SegmentURL.js +0 -57
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts +0 -176
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/utils.js +0 -309
- package/dist/es2017/parsers/manifest/dash/js-parser/parse_from_xml_string.d.ts +0 -25
- package/dist/es2017/parsers/manifest/dash/js-parser/parse_from_xml_string.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/js-parser/parse_from_xml_string.js +0 -114
- package/dist/es2017/parsers/manifest/dash/node_parser_types.d.ts +0 -404
- package/dist/es2017/parsers/manifest/dash/node_parser_types.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/node_parser_types.js +0 -16
- package/dist/es2017/parsers/manifest/dash/parsers_types.d.ts +0 -84
- package/dist/es2017/parsers/manifest/dash/parsers_types.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/parsers_types.js +0 -16
- package/dist/es2017/parsers/manifest/dash/wasm-parser/index.d.ts +0 -20
- package/dist/es2017/parsers/manifest/dash/wasm-parser/index.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/index.js +0 -17
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts +0 -112
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/dash-wasm-parser.js +0 -355
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts +0 -33
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +0 -272
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts +0 -25
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/BaseURL.js +0 -30
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts +0 -25
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentComponent.js +0 -41
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts +0 -24
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/ContentProtection.js +0 -58
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts +0 -34
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/EventStream.js +0 -112
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Label.d.ts +0 -4
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Label.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Label.js +0 -9
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts +0 -29
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/MPD.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/MPD.js +0 -164
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts +0 -34
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Period.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Period.js +0 -148
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts +0 -33
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +0 -179
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts +0 -25
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Scheme.js +0 -35
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts +0 -19
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentBase.js +0 -88
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts +0 -27
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentList.js +0 -45
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts +0 -19
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentTemplate.js +0 -101
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts +0 -26
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/SegmentUrl.js +0 -52
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts +0 -30
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/XLink.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/XLink.js +0 -47
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts +0 -17
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/index.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/index.js +0 -16
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts +0 -28
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/root.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/root.js +0 -50
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts +0 -39
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/parsers_stack.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/parsers_stack.js +0 -58
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/types.d.ts +0 -149
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/types.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/types.js +0 -16
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/utils.d.ts +0 -30
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/utils.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/utils.js +0 -40
- package/dist/es2017/parsers/manifest/index.d.ts +0 -17
- package/dist/es2017/parsers/manifest/index.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/index.js +0 -16
- package/dist/es2017/parsers/manifest/local/index.d.ts +0 -19
- package/dist/es2017/parsers/manifest/local/index.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/local/index.js +0 -17
- package/dist/es2017/parsers/manifest/local/parse_local_manifest.d.ts +0 -23
- package/dist/es2017/parsers/manifest/local/parse_local_manifest.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/local/parse_local_manifest.js +0 -133
- package/dist/es2017/parsers/manifest/local/representation_index.d.ts +0 -99
- package/dist/es2017/parsers/manifest/local/representation_index.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/local/representation_index.js +0 -243
- package/dist/es2017/parsers/manifest/local/types.d.ts +0 -288
- package/dist/es2017/parsers/manifest/local/types.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/local/types.js +0 -16
- package/dist/es2017/parsers/manifest/metaplaylist/index.d.ts +0 -20
- package/dist/es2017/parsers/manifest/metaplaylist/index.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/metaplaylist/index.js +0 -17
- package/dist/es2017/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts +0 -65
- package/dist/es2017/parsers/manifest/metaplaylist/metaplaylist_parser.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/metaplaylist/metaplaylist_parser.js +0 -265
- package/dist/es2017/parsers/manifest/metaplaylist/representation_index.d.ts +0 -165
- package/dist/es2017/parsers/manifest/metaplaylist/representation_index.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/metaplaylist/representation_index.js +0 -234
- package/dist/es2017/parsers/manifest/smooth/create_parser.d.ts +0 -34
- package/dist/es2017/parsers/manifest/smooth/create_parser.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/smooth/create_parser.js +0 -516
- package/dist/es2017/parsers/manifest/smooth/get_codecs.d.ts +0 -27
- package/dist/es2017/parsers/manifest/smooth/get_codecs.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/smooth/get_codecs.js +0 -50
- package/dist/es2017/parsers/manifest/smooth/index.d.ts +0 -22
- package/dist/es2017/parsers/manifest/smooth/index.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/smooth/index.js +0 -19
- package/dist/es2017/parsers/manifest/smooth/parse_C_nodes.d.ts +0 -27
- package/dist/es2017/parsers/manifest/smooth/parse_C_nodes.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/smooth/parse_C_nodes.js +0 -60
- package/dist/es2017/parsers/manifest/smooth/parse_protection_node.d.ts +0 -30
- package/dist/es2017/parsers/manifest/smooth/parse_protection_node.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/smooth/parse_protection_node.js +0 -62
- package/dist/es2017/parsers/manifest/smooth/representation_index.d.ts +0 -242
- package/dist/es2017/parsers/manifest/smooth/representation_index.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/smooth/representation_index.js +0 -420
- package/dist/es2017/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts +0 -120
- package/dist/es2017/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/smooth/shared_smooth_segment_timeline.js +0 -156
- package/dist/es2017/parsers/manifest/smooth/utils/add_segment_infos.d.ts +0 -39
- package/dist/es2017/parsers/manifest/smooth/utils/add_segment_infos.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/smooth/utils/add_segment_infos.js +0 -63
- package/dist/es2017/parsers/manifest/smooth/utils/parseBoolean.d.ts +0 -21
- package/dist/es2017/parsers/manifest/smooth/utils/parseBoolean.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/smooth/utils/parseBoolean.js +0 -30
- package/dist/es2017/parsers/manifest/smooth/utils/reduceChildren.d.ts +0 -24
- package/dist/es2017/parsers/manifest/smooth/utils/reduceChildren.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/smooth/utils/reduceChildren.js +0 -31
- package/dist/es2017/parsers/manifest/smooth/utils/tokens.d.ts +0 -29
- package/dist/es2017/parsers/manifest/smooth/utils/tokens.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/smooth/utils/tokens.js +0 -34
- package/dist/es2017/parsers/manifest/types.d.ts +0 -443
- package/dist/es2017/parsers/manifest/types.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/types.js +0 -16
- package/dist/es2017/parsers/manifest/utils/check_manifest_ids.d.ts +0 -26
- package/dist/es2017/parsers/manifest/utils/check_manifest_ids.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/utils/check_manifest_ids.js +0 -80
- package/dist/es2017/parsers/manifest/utils/clear_timeline_from_position.d.ts +0 -26
- package/dist/es2017/parsers/manifest/utils/clear_timeline_from_position.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/utils/clear_timeline_from_position.js +0 -73
- package/dist/es2017/parsers/manifest/utils/get_first_time_from_adaptation.d.ts +0 -28
- package/dist/es2017/parsers/manifest/utils/get_first_time_from_adaptation.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/utils/get_first_time_from_adaptation.js +0 -44
- package/dist/es2017/parsers/manifest/utils/get_last_time_from_adaptation.d.ts +0 -30
- package/dist/es2017/parsers/manifest/utils/get_last_time_from_adaptation.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/utils/get_last_time_from_adaptation.js +0 -46
- package/dist/es2017/parsers/manifest/utils/get_maximum_positions.d.ts +0 -25
- package/dist/es2017/parsers/manifest/utils/get_maximum_positions.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/utils/get_maximum_positions.js +0 -66
- package/dist/es2017/parsers/manifest/utils/get_minimum_position.d.ts +0 -22
- package/dist/es2017/parsers/manifest/utils/get_minimum_position.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/utils/get_minimum_position.js +0 -62
- package/dist/es2017/parsers/manifest/utils/index_helpers.d.ts +0 -89
- package/dist/es2017/parsers/manifest/utils/index_helpers.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/utils/index_helpers.js +0 -146
- package/dist/es2017/parsers/manifest/utils/update_segment_timeline.d.ts +0 -34
- package/dist/es2017/parsers/manifest/utils/update_segment_timeline.d.ts.map +0 -1
- package/dist/es2017/parsers/manifest/utils/update_segment_timeline.js +0 -129
- package/dist/es2017/parsers/texttracks/index.d.ts +0 -17
- package/dist/es2017/parsers/texttracks/index.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/index.js +0 -16
- package/dist/es2017/parsers/texttracks/sami/html.d.ts +0 -32
- package/dist/es2017/parsers/texttracks/sami/html.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/sami/html.js +0 -201
- package/dist/es2017/parsers/texttracks/sami/native.d.ts +0 -37
- package/dist/es2017/parsers/texttracks/sami/native.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/sami/native.js +0 -165
- package/dist/es2017/parsers/texttracks/srt/find_end_of_cue_block.d.ts +0 -30
- package/dist/es2017/parsers/texttracks/srt/find_end_of_cue_block.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/srt/find_end_of_cue_block.js +0 -39
- package/dist/es2017/parsers/texttracks/srt/get_cue_blocks.d.ts +0 -23
- package/dist/es2017/parsers/texttracks/srt/get_cue_blocks.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/srt/get_cue_blocks.js +0 -47
- package/dist/es2017/parsers/texttracks/srt/html.d.ts +0 -28
- package/dist/es2017/parsers/texttracks/srt/html.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/srt/html.js +0 -167
- package/dist/es2017/parsers/texttracks/srt/native.d.ts +0 -30
- package/dist/es2017/parsers/texttracks/srt/native.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/srt/native.js +0 -63
- package/dist/es2017/parsers/texttracks/srt/parse_cue.d.ts +0 -31
- package/dist/es2017/parsers/texttracks/srt/parse_cue.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/srt/parse_cue.js +0 -55
- package/dist/es2017/parsers/texttracks/srt/parse_timestamp.d.ts +0 -22
- package/dist/es2017/parsers/texttracks/srt/parse_timestamp.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/srt/parse_timestamp.js +0 -33
- package/dist/es2017/parsers/texttracks/ttml/get_parameters.d.ts +0 -33
- package/dist/es2017/parsers/texttracks/ttml/get_parameters.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/get_parameters.js +0 -87
- package/dist/es2017/parsers/texttracks/ttml/get_styling.d.ts +0 -42
- package/dist/es2017/parsers/texttracks/ttml/get_styling.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/get_styling.js +0 -127
- package/dist/es2017/parsers/texttracks/ttml/get_time_delimiters.d.ts +0 -27
- package/dist/es2017/parsers/texttracks/ttml/get_time_delimiters.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/get_time_delimiters.js +0 -40
- package/dist/es2017/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.d.ts +0 -49
- package/dist/es2017/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/html/apply_default_ttml_paragraph_style.js +0 -61
- package/dist/es2017/parsers/texttracks/ttml/html/apply_extent.d.ts +0 -22
- package/dist/es2017/parsers/texttracks/ttml/html/apply_extent.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/html/apply_extent.js +0 -57
- package/dist/es2017/parsers/texttracks/ttml/html/apply_font_size.d.ts +0 -22
- package/dist/es2017/parsers/texttracks/ttml/html/apply_font_size.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/html/apply_font_size.js +0 -56
- package/dist/es2017/parsers/texttracks/ttml/html/apply_line_height.d.ts +0 -21
- package/dist/es2017/parsers/texttracks/ttml/html/apply_line_height.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/html/apply_line_height.js +0 -45
- package/dist/es2017/parsers/texttracks/ttml/html/apply_origin.d.ts +0 -21
- package/dist/es2017/parsers/texttracks/ttml/html/apply_origin.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/html/apply_origin.js +0 -56
- package/dist/es2017/parsers/texttracks/ttml/html/apply_padding.d.ts +0 -21
- package/dist/es2017/parsers/texttracks/ttml/html/apply_padding.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/html/apply_padding.js +0 -135
- package/dist/es2017/parsers/texttracks/ttml/html/create_element.d.ts +0 -33
- package/dist/es2017/parsers/texttracks/ttml/html/create_element.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/html/create_element.js +0 -448
- package/dist/es2017/parsers/texttracks/ttml/html/generate_css_test_outline.d.ts +0 -27
- package/dist/es2017/parsers/texttracks/ttml/html/generate_css_test_outline.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/html/generate_css_test_outline.js +0 -41
- package/dist/es2017/parsers/texttracks/ttml/html/index.d.ts +0 -22
- package/dist/es2017/parsers/texttracks/ttml/html/index.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/html/index.js +0 -21
- package/dist/es2017/parsers/texttracks/ttml/html/parse_cue.d.ts +0 -27
- package/dist/es2017/parsers/texttracks/ttml/html/parse_cue.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/html/parse_cue.js +0 -40
- package/dist/es2017/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts +0 -36
- package/dist/es2017/parsers/texttracks/ttml/html/parse_ttml_to_div.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/html/parse_ttml_to_div.js +0 -62
- package/dist/es2017/parsers/texttracks/ttml/html/ttml_color_to_css_color.d.ts +0 -22
- package/dist/es2017/parsers/texttracks/ttml/html/ttml_color_to_css_color.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/html/ttml_color_to_css_color.js +0 -73
- package/dist/es2017/parsers/texttracks/ttml/native/index.d.ts +0 -22
- package/dist/es2017/parsers/texttracks/ttml/native/index.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/native/index.js +0 -21
- package/dist/es2017/parsers/texttracks/ttml/native/parse_cue.d.ts +0 -25
- package/dist/es2017/parsers/texttracks/ttml/native/parse_cue.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/native/parse_cue.js +0 -197
- package/dist/es2017/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts +0 -24
- package/dist/es2017/parsers/texttracks/ttml/native/parse_ttml_to_vtt.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/native/parse_ttml_to_vtt.js +0 -45
- package/dist/es2017/parsers/texttracks/ttml/parse_ttml.d.ts +0 -44
- package/dist/es2017/parsers/texttracks/ttml/parse_ttml.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/parse_ttml.js +0 -156
- package/dist/es2017/parsers/texttracks/ttml/regexps.d.ts +0 -29
- package/dist/es2017/parsers/texttracks/ttml/regexps.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/regexps.js +0 -35
- package/dist/es2017/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts +0 -50
- package/dist/es2017/parsers/texttracks/ttml/resolve_styles_inheritance.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/resolve_styles_inheritance.js +0 -79
- package/dist/es2017/parsers/texttracks/ttml/time_parsing.d.ts +0 -31
- package/dist/es2017/parsers/texttracks/ttml/time_parsing.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/time_parsing.js +0 -124
- package/dist/es2017/parsers/texttracks/ttml/xml_utils.d.ts +0 -71
- package/dist/es2017/parsers/texttracks/ttml/xml_utils.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/ttml/xml_utils.js +0 -150
- package/dist/es2017/parsers/texttracks/types.d.ts +0 -80
- package/dist/es2017/parsers/texttracks/types.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/types.js +0 -16
- package/dist/es2017/parsers/texttracks/webvtt/create_default_style_elements.d.ts +0 -3
- package/dist/es2017/parsers/texttracks/webvtt/create_default_style_elements.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/create_default_style_elements.js +0 -22
- package/dist/es2017/parsers/texttracks/webvtt/get_cue_blocks.d.ts +0 -25
- package/dist/es2017/parsers/texttracks/webvtt/get_cue_blocks.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/get_cue_blocks.js +0 -44
- package/dist/es2017/parsers/texttracks/webvtt/get_style_blocks.d.ts +0 -25
- package/dist/es2017/parsers/texttracks/webvtt/get_style_blocks.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/get_style_blocks.js +0 -52
- package/dist/es2017/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts +0 -23
- package/dist/es2017/parsers/texttracks/webvtt/html/convert_payload_to_html.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/convert_payload_to_html.js +0 -35
- package/dist/es2017/parsers/texttracks/webvtt/html/create_style_attribute.d.ts +0 -22
- package/dist/es2017/parsers/texttracks/webvtt/html/create_style_attribute.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/create_style_attribute.js +0 -166
- package/dist/es2017/parsers/texttracks/webvtt/html/create_styled_element.d.ts +0 -25
- package/dist/es2017/parsers/texttracks/webvtt/html/create_styled_element.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/create_styled_element.js +0 -81
- package/dist/es2017/parsers/texttracks/webvtt/html/index.d.ts +0 -28
- package/dist/es2017/parsers/texttracks/webvtt/html/index.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/index.js +0 -26
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_mp4.d.ts +0 -13
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_mp4.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_mp4.js +0 -18
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_plain_text.d.ts +0 -33
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_plain_text.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/parse_webvtt_plain_text.js +0 -66
- package/dist/es2017/parsers/texttracks/webvtt/html/to_html.d.ts +0 -50
- package/dist/es2017/parsers/texttracks/webvtt/html/to_html.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/html/to_html.js +0 -70
- package/dist/es2017/parsers/texttracks/webvtt/native/index.d.ts +0 -23
- package/dist/es2017/parsers/texttracks/webvtt/native/index.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/native/index.js +0 -22
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_vtt_plain_text_to_cues.d.ts +0 -30
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_vtt_plain_text_to_cues.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_vtt_plain_text_to_cues.js +0 -69
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_webvtt_mp4_to_cues.d.ts +0 -13
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_webvtt_mp4_to_cues.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/native/parse_webvtt_mp4_to_cues.js +0 -20
- package/dist/es2017/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts +0 -24
- package/dist/es2017/parsers/texttracks/webvtt/native/set_settings_on_cue.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/native/set_settings_on_cue.js +0 -80
- package/dist/es2017/parsers/texttracks/webvtt/native/to_native_cue.d.ts +0 -33
- package/dist/es2017/parsers/texttracks/webvtt/native/to_native_cue.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/native/to_native_cue.js +0 -27
- package/dist/es2017/parsers/texttracks/webvtt/parse_cue_block.d.ts +0 -40
- package/dist/es2017/parsers/texttracks/webvtt/parse_cue_block.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/parse_cue_block.js +0 -100
- package/dist/es2017/parsers/texttracks/webvtt/parse_mp4_embedded_wvtt.d.ts +0 -22
- package/dist/es2017/parsers/texttracks/webvtt/parse_mp4_embedded_wvtt.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/parse_mp4_embedded_wvtt.js +0 -129
- package/dist/es2017/parsers/texttracks/webvtt/parse_style_block.d.ts +0 -28
- package/dist/es2017/parsers/texttracks/webvtt/parse_style_block.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/parse_style_block.js +0 -66
- package/dist/es2017/parsers/texttracks/webvtt/parse_timestamp.d.ts +0 -22
- package/dist/es2017/parsers/texttracks/webvtt/parse_timestamp.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/parse_timestamp.js +0 -33
- package/dist/es2017/parsers/texttracks/webvtt/utils.d.ts +0 -58
- package/dist/es2017/parsers/texttracks/webvtt/utils.d.ts.map +0 -1
- package/dist/es2017/parsers/texttracks/webvtt/utils.js +0 -114
- package/dist/es2017/playback_observer/index.d.ts +0 -7
- package/dist/es2017/playback_observer/index.d.ts.map +0 -1
- package/dist/es2017/playback_observer/index.js +0 -2
- package/dist/es2017/playback_observer/media_element_playback_observer.d.ts +0 -285
- package/dist/es2017/playback_observer/media_element_playback_observer.d.ts.map +0 -1
- package/dist/es2017/playback_observer/media_element_playback_observer.js +0 -832
- package/dist/es2017/playback_observer/types.d.ts +0 -226
- package/dist/es2017/playback_observer/types.d.ts.map +0 -1
- package/dist/es2017/playback_observer/types.js +0 -1
- package/dist/es2017/playback_observer/utils/generate_read_only_observer.d.ts +0 -12
- package/dist/es2017/playback_observer/utils/generate_read_only_observer.d.ts.map +0 -1
- package/dist/es2017/playback_observer/utils/generate_read_only_observer.js +0 -39
- package/dist/es2017/playback_observer/utils/observation_position.d.ts +0 -99
- package/dist/es2017/playback_observer/utils/observation_position.d.ts.map +0 -1
- package/dist/es2017/playback_observer/utils/observation_position.js +0 -95
- package/dist/es2017/playback_observer/worker_playback_observer.d.ts +0 -85
- package/dist/es2017/playback_observer/worker_playback_observer.d.ts.map +0 -1
- package/dist/es2017/playback_observer/worker_playback_observer.js +0 -43
- package/dist/es2017/public_types.d.ts +0 -1279
- package/dist/es2017/public_types.d.ts.map +0 -1
- package/dist/es2017/public_types.js +0 -5
- package/dist/es2017/tools/TextTrackRenderer/index.d.ts +0 -24
- package/dist/es2017/tools/TextTrackRenderer/index.d.ts.map +0 -1
- package/dist/es2017/tools/TextTrackRenderer/index.js +0 -22
- package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.d.ts +0 -77
- package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.d.ts.map +0 -1
- package/dist/es2017/tools/TextTrackRenderer/text_track_renderer.js +0 -77
- package/dist/es2017/tools/index.d.ts +0 -20
- package/dist/es2017/tools/index.d.ts.map +0 -1
- package/dist/es2017/tools/index.js +0 -20
- package/dist/es2017/tools/parseBIFThumbnails/index.d.ts +0 -30
- package/dist/es2017/tools/parseBIFThumbnails/index.d.ts.map +0 -1
- package/dist/es2017/tools/parseBIFThumbnails/index.js +0 -30
- package/dist/es2017/tools/string_utils/index.d.ts +0 -17
- package/dist/es2017/tools/string_utils/index.d.ts.map +0 -1
- package/dist/es2017/tools/string_utils/index.js +0 -16
- package/dist/es2017/transports/dash/construct_segment_url.d.ts +0 -19
- package/dist/es2017/transports/dash/construct_segment_url.d.ts.map +0 -1
- package/dist/es2017/transports/dash/construct_segment_url.js +0 -25
- package/dist/es2017/transports/dash/get_events_out_of_emsgs.d.ts +0 -29
- package/dist/es2017/transports/dash/get_events_out_of_emsgs.d.ts.map +0 -1
- package/dist/es2017/transports/dash/get_events_out_of_emsgs.js +0 -93
- package/dist/es2017/transports/dash/index.d.ts +0 -22
- package/dist/es2017/transports/dash/index.d.ts.map +0 -1
- package/dist/es2017/transports/dash/index.js +0 -21
- package/dist/es2017/transports/dash/init_segment_loader.d.ts +0 -29
- package/dist/es2017/transports/dash/init_segment_loader.d.ts.map +0 -1
- package/dist/es2017/transports/dash/init_segment_loader.js +0 -104
- package/dist/es2017/transports/dash/integrity_checks.d.ts +0 -18
- package/dist/es2017/transports/dash/integrity_checks.d.ts.map +0 -1
- package/dist/es2017/transports/dash/integrity_checks.js +0 -150
- package/dist/es2017/transports/dash/load_chunked_segment_data.d.ts +0 -40
- package/dist/es2017/transports/dash/load_chunked_segment_data.d.ts.map +0 -1
- package/dist/es2017/transports/dash/load_chunked_segment_data.js +0 -77
- package/dist/es2017/transports/dash/manifest_parser.d.ts +0 -19
- package/dist/es2017/transports/dash/manifest_parser.d.ts.map +0 -1
- package/dist/es2017/transports/dash/manifest_parser.js +0 -295
- package/dist/es2017/transports/dash/pipelines.d.ts +0 -24
- package/dist/es2017/transports/dash/pipelines.d.ts.map +0 -1
- package/dist/es2017/transports/dash/pipelines.js +0 -65
- package/dist/es2017/transports/dash/segment_loader.d.ts +0 -39
- package/dist/es2017/transports/dash/segment_loader.d.ts.map +0 -1
- package/dist/es2017/transports/dash/segment_loader.js +0 -214
- package/dist/es2017/transports/dash/segment_parser.d.ts +0 -24
- package/dist/es2017/transports/dash/segment_parser.d.ts.map +0 -1
- package/dist/es2017/transports/dash/segment_parser.js +0 -156
- package/dist/es2017/transports/dash/text_loader.d.ts +0 -26
- package/dist/es2017/transports/dash/text_loader.d.ts.map +0 -1
- package/dist/es2017/transports/dash/text_loader.js +0 -106
- package/dist/es2017/transports/dash/text_parser.d.ts +0 -26
- package/dist/es2017/transports/dash/text_parser.d.ts.map +0 -1
- package/dist/es2017/transports/dash/text_parser.js +0 -190
- package/dist/es2017/transports/dash/thumbnails.d.ts +0 -21
- package/dist/es2017/transports/dash/thumbnails.d.ts.map +0 -1
- package/dist/es2017/transports/dash/thumbnails.js +0 -72
- package/dist/es2017/transports/index.d.ts +0 -17
- package/dist/es2017/transports/index.d.ts.map +0 -1
- package/dist/es2017/transports/index.js +0 -16
- package/dist/es2017/transports/local/index.d.ts +0 -18
- package/dist/es2017/transports/local/index.d.ts.map +0 -1
- package/dist/es2017/transports/local/index.js +0 -17
- package/dist/es2017/transports/local/pipelines.d.ts +0 -23
- package/dist/es2017/transports/local/pipelines.d.ts.map +0 -1
- package/dist/es2017/transports/local/pipelines.js +0 -76
- package/dist/es2017/transports/local/segment_loader.d.ts +0 -29
- package/dist/es2017/transports/local/segment_loader.d.ts.map +0 -1
- package/dist/es2017/transports/local/segment_loader.js +0 -152
- package/dist/es2017/transports/local/segment_parser.d.ts +0 -21
- package/dist/es2017/transports/local/segment_parser.d.ts.map +0 -1
- package/dist/es2017/transports/local/segment_parser.js +0 -87
- package/dist/es2017/transports/local/text_parser.d.ts +0 -28
- package/dist/es2017/transports/local/text_parser.d.ts.map +0 -1
- package/dist/es2017/transports/local/text_parser.js +0 -162
- package/dist/es2017/transports/metaplaylist/index.d.ts +0 -22
- package/dist/es2017/transports/metaplaylist/index.d.ts.map +0 -1
- package/dist/es2017/transports/metaplaylist/index.js +0 -21
- package/dist/es2017/transports/metaplaylist/manifest_loader.d.ts +0 -27
- package/dist/es2017/transports/metaplaylist/manifest_loader.d.ts.map +0 -1
- package/dist/es2017/transports/metaplaylist/manifest_loader.js +0 -53
- package/dist/es2017/transports/metaplaylist/pipelines.d.ts +0 -18
- package/dist/es2017/transports/metaplaylist/pipelines.d.ts.map +0 -1
- package/dist/es2017/transports/metaplaylist/pipelines.js +0 -250
- package/dist/es2017/transports/smooth/extract_timings_infos.d.ts +0 -63
- package/dist/es2017/transports/smooth/extract_timings_infos.d.ts.map +0 -1
- package/dist/es2017/transports/smooth/extract_timings_infos.js +0 -79
- package/dist/es2017/transports/smooth/index.d.ts +0 -22
- package/dist/es2017/transports/smooth/index.d.ts.map +0 -1
- package/dist/es2017/transports/smooth/index.js +0 -21
- package/dist/es2017/transports/smooth/is_mp4_embedded_track.d.ts +0 -23
- package/dist/es2017/transports/smooth/is_mp4_embedded_track.d.ts.map +0 -1
- package/dist/es2017/transports/smooth/is_mp4_embedded_track.js +0 -24
- package/dist/es2017/transports/smooth/isobmff/create_audio_init_segment.d.ts +0 -29
- package/dist/es2017/transports/smooth/isobmff/create_audio_init_segment.d.ts.map +0 -1
- package/dist/es2017/transports/smooth/isobmff/create_audio_init_segment.js +0 -51
- package/dist/es2017/transports/smooth/isobmff/create_boxes.d.ts +0 -172
- package/dist/es2017/transports/smooth/isobmff/create_boxes.d.ts.map +0 -1
- package/dist/es2017/transports/smooth/isobmff/create_boxes.js +0 -319
- package/dist/es2017/transports/smooth/isobmff/create_init_segment.d.ts +0 -32
- package/dist/es2017/transports/smooth/isobmff/create_init_segment.d.ts.map +0 -1
- package/dist/es2017/transports/smooth/isobmff/create_init_segment.js +0 -63
- package/dist/es2017/transports/smooth/isobmff/create_traf_box.d.ts +0 -17
- package/dist/es2017/transports/smooth/isobmff/create_traf_box.d.ts.map +0 -1
- package/dist/es2017/transports/smooth/isobmff/create_traf_box.js +0 -24
- package/dist/es2017/transports/smooth/isobmff/create_video_init_segment.d.ts +0 -30
- package/dist/es2017/transports/smooth/isobmff/create_video_init_segment.d.ts.map +0 -1
- package/dist/es2017/transports/smooth/isobmff/create_video_init_segment.js +0 -57
- package/dist/es2017/transports/smooth/isobmff/get_aaces_header.d.ts +0 -28
- package/dist/es2017/transports/smooth/isobmff/get_aaces_header.d.ts.map +0 -1
- package/dist/es2017/transports/smooth/isobmff/get_aaces_header.js +0 -43
- package/dist/es2017/transports/smooth/isobmff/index.d.ts +0 -24
- package/dist/es2017/transports/smooth/isobmff/index.d.ts.map +0 -1
- package/dist/es2017/transports/smooth/isobmff/index.js +0 -21
- package/dist/es2017/transports/smooth/isobmff/parse_tfrf.d.ts +0 -25
- package/dist/es2017/transports/smooth/isobmff/parse_tfrf.d.ts.map +0 -1
- package/dist/es2017/transports/smooth/isobmff/parse_tfrf.js +0 -47
- package/dist/es2017/transports/smooth/isobmff/parse_tfxd.d.ts +0 -25
- package/dist/es2017/transports/smooth/isobmff/parse_tfxd.d.ts.map +0 -1
- package/dist/es2017/transports/smooth/isobmff/parse_tfxd.js +0 -31
- package/dist/es2017/transports/smooth/isobmff/patch_segment.d.ts +0 -24
- package/dist/es2017/transports/smooth/isobmff/patch_segment.d.ts.map +0 -1
- package/dist/es2017/transports/smooth/isobmff/patch_segment.js +0 -128
- package/dist/es2017/transports/smooth/pipelines.d.ts +0 -18
- package/dist/es2017/transports/smooth/pipelines.d.ts.map +0 -1
- package/dist/es2017/transports/smooth/pipelines.js +0 -336
- package/dist/es2017/transports/smooth/segment_loader.d.ts +0 -28
- package/dist/es2017/transports/smooth/segment_loader.d.ts.map +0 -1
- package/dist/es2017/transports/smooth/segment_loader.js +0 -238
- package/dist/es2017/transports/smooth/utils.d.ts +0 -27
- package/dist/es2017/transports/smooth/utils.d.ts.map +0 -1
- package/dist/es2017/transports/smooth/utils.js +0 -36
- package/dist/es2017/transports/types.d.ts +0 -772
- package/dist/es2017/transports/types.d.ts.map +0 -1
- package/dist/es2017/transports/types.js +0 -16
- package/dist/es2017/transports/utils/add_query_string.d.ts +0 -13
- package/dist/es2017/transports/utils/add_query_string.d.ts.map +0 -1
- package/dist/es2017/transports/utils/add_query_string.js +0 -51
- package/dist/es2017/transports/utils/byte_range.d.ts +0 -22
- package/dist/es2017/transports/utils/byte_range.d.ts.map +0 -1
- package/dist/es2017/transports/utils/byte_range.js +0 -23
- package/dist/es2017/transports/utils/call_custom_manifest_loader.d.ts +0 -20
- package/dist/es2017/transports/utils/call_custom_manifest_loader.d.ts.map +0 -1
- package/dist/es2017/transports/utils/call_custom_manifest_loader.js +0 -96
- package/dist/es2017/transports/utils/check_isobmff_integrity.d.ts +0 -24
- package/dist/es2017/transports/utils/check_isobmff_integrity.d.ts.map +0 -1
- package/dist/es2017/transports/utils/check_isobmff_integrity.js +0 -46
- package/dist/es2017/transports/utils/generate_manifest_loader.d.ts +0 -27
- package/dist/es2017/transports/utils/generate_manifest_loader.d.ts.map +0 -1
- package/dist/es2017/transports/utils/generate_manifest_loader.js +0 -85
- package/dist/es2017/transports/utils/get_isobmff_timing_infos.d.ts +0 -30
- package/dist/es2017/transports/utils/get_isobmff_timing_infos.d.ts.map +0 -1
- package/dist/es2017/transports/utils/get_isobmff_timing_infos.js +0 -67
- package/dist/es2017/transports/utils/infer_segment_container.d.ts +0 -30
- package/dist/es2017/transports/utils/infer_segment_container.d.ts.map +0 -1
- package/dist/es2017/transports/utils/infer_segment_container.js +0 -42
- package/dist/es2017/transports/utils/parse_text_track.d.ts +0 -53
- package/dist/es2017/transports/utils/parse_text_track.d.ts.map +0 -1
- package/dist/es2017/transports/utils/parse_text_track.js +0 -154
- package/dist/es2017/utils/are_arrays_of_numbers_equal.d.ts +0 -23
- package/dist/es2017/utils/are_arrays_of_numbers_equal.d.ts.map +0 -1
- package/dist/es2017/utils/are_arrays_of_numbers_equal.js +0 -35
- package/dist/es2017/utils/are_codecs_compatible.d.ts +0 -30
- package/dist/es2017/utils/are_codecs_compatible.d.ts.map +0 -1
- package/dist/es2017/utils/are_codecs_compatible.js +0 -57
- package/dist/es2017/utils/array_find.d.ts +0 -24
- package/dist/es2017/utils/array_find.d.ts.map +0 -1
- package/dist/es2017/utils/array_find.js +0 -37
- package/dist/es2017/utils/array_find_index.d.ts +0 -24
- package/dist/es2017/utils/array_find_index.d.ts.map +0 -1
- package/dist/es2017/utils/array_find_index.js +0 -36
- package/dist/es2017/utils/array_includes.d.ts +0 -54
- package/dist/es2017/utils/array_includes.d.ts.map +0 -1
- package/dist/es2017/utils/array_includes.js +0 -75
- package/dist/es2017/utils/assert.d.ts +0 -75
- package/dist/es2017/utils/assert.d.ts.map +0 -1
- package/dist/es2017/utils/assert.js +0 -91
- package/dist/es2017/utils/base64.d.ts +0 -15
- package/dist/es2017/utils/base64.d.ts.map +0 -1
- package/dist/es2017/utils/base64.js +0 -208
- package/dist/es2017/utils/buffer_source_to_uint8.d.ts +0 -8
- package/dist/es2017/utils/buffer_source_to_uint8.d.ts.map +0 -1
- package/dist/es2017/utils/buffer_source_to_uint8.js +0 -15
- package/dist/es2017/utils/byte_parsing.d.ts +0 -132
- package/dist/es2017/utils/byte_parsing.d.ts.map +0 -1
- package/dist/es2017/utils/byte_parsing.js +0 -252
- package/dist/es2017/utils/cancellable_sleep.d.ts +0 -31
- package/dist/es2017/utils/cancellable_sleep.d.ts.map +0 -1
- package/dist/es2017/utils/cancellable_sleep.js +0 -35
- package/dist/es2017/utils/create_cancellable_promise.d.ts +0 -27
- package/dist/es2017/utils/create_cancellable_promise.d.ts.map +0 -1
- package/dist/es2017/utils/create_cancellable_promise.js +0 -52
- package/dist/es2017/utils/create_uuid.d.ts +0 -9
- package/dist/es2017/utils/create_uuid.d.ts.map +0 -1
- package/dist/es2017/utils/create_uuid.js +0 -29
- package/dist/es2017/utils/deep_merge.d.ts +0 -10
- package/dist/es2017/utils/deep_merge.d.ts.map +0 -1
- package/dist/es2017/utils/deep_merge.js +0 -40
- package/dist/es2017/utils/event_emitter.d.ts +0 -63
- package/dist/es2017/utils/event_emitter.d.ts.map +0 -1
- package/dist/es2017/utils/event_emitter.js +0 -105
- package/dist/es2017/utils/flat_map.d.ts +0 -23
- package/dist/es2017/utils/flat_map.d.ts.map +0 -1
- package/dist/es2017/utils/flat_map.js +0 -35
- package/dist/es2017/utils/get_fuzzed_delay.d.ts +0 -22
- package/dist/es2017/utils/get_fuzzed_delay.d.ts.map +0 -1
- package/dist/es2017/utils/get_fuzzed_delay.js +0 -25
- package/dist/es2017/utils/global_scope.d.ts +0 -10
- package/dist/es2017/utils/global_scope.d.ts.map +0 -1
- package/dist/es2017/utils/global_scope.js +0 -20
- package/dist/es2017/utils/hash_buffer.d.ts +0 -33
- package/dist/es2017/utils/hash_buffer.d.ts.map +0 -1
- package/dist/es2017/utils/hash_buffer.js +0 -41
- package/dist/es2017/utils/id_generator.d.ts +0 -22
- package/dist/es2017/utils/id_generator.d.ts.map +0 -1
- package/dist/es2017/utils/id_generator.js +0 -32
- package/dist/es2017/utils/is_node.d.ts +0 -19
- package/dist/es2017/utils/is_node.d.ts.map +0 -1
- package/dist/es2017/utils/is_node.js +0 -19
- package/dist/es2017/utils/is_non_empty_string.d.ts +0 -21
- package/dist/es2017/utils/is_non_empty_string.d.ts.map +0 -1
- package/dist/es2017/utils/is_non_empty_string.js +0 -22
- package/dist/es2017/utils/is_null_or_undefined.d.ts +0 -25
- package/dist/es2017/utils/is_null_or_undefined.d.ts.map +0 -1
- package/dist/es2017/utils/is_null_or_undefined.js +0 -26
- package/dist/es2017/utils/is_worker.d.ts +0 -6
- package/dist/es2017/utils/is_worker.d.ts.map +0 -1
- package/dist/es2017/utils/is_worker.js +0 -5
- package/dist/es2017/utils/languages/ISO_639-1_to_ISO_639-3.d.ts +0 -23
- package/dist/es2017/utils/languages/ISO_639-1_to_ISO_639-3.d.ts.map +0 -1
- package/dist/es2017/utils/languages/ISO_639-1_to_ISO_639-3.js +0 -205
- package/dist/es2017/utils/languages/ISO_639-2_to_ISO_639-3.d.ts +0 -23
- package/dist/es2017/utils/languages/ISO_639-2_to_ISO_639-3.d.ts.map +0 -1
- package/dist/es2017/utils/languages/ISO_639-2_to_ISO_639-3.js +0 -41
- package/dist/es2017/utils/languages/index.d.ts +0 -21
- package/dist/es2017/utils/languages/index.d.ts.map +0 -1
- package/dist/es2017/utils/languages/index.js +0 -18
- package/dist/es2017/utils/languages/normalize.d.ts +0 -70
- package/dist/es2017/utils/languages/normalize.d.ts.map +0 -1
- package/dist/es2017/utils/languages/normalize.js +0 -122
- package/dist/es2017/utils/logger.d.ts +0 -157
- package/dist/es2017/utils/logger.d.ts.map +0 -1
- package/dist/es2017/utils/logger.js +0 -166
- package/dist/es2017/utils/monotonic_timestamp.d.ts +0 -23
- package/dist/es2017/utils/monotonic_timestamp.d.ts.map +0 -1
- package/dist/es2017/utils/monotonic_timestamp.js +0 -36
- package/dist/es2017/utils/noop.d.ts +0 -24
- package/dist/es2017/utils/noop.d.ts.map +0 -1
- package/dist/es2017/utils/noop.js +0 -24
- package/dist/es2017/utils/object_assign.d.ts +0 -47
- package/dist/es2017/utils/object_assign.d.ts.map +0 -1
- package/dist/es2017/utils/object_assign.js +0 -47
- package/dist/es2017/utils/object_values.d.ts +0 -31
- package/dist/es2017/utils/object_values.d.ts.map +0 -1
- package/dist/es2017/utils/object_values.js +0 -25
- package/dist/es2017/utils/queue_microtask.d.ts +0 -3
- package/dist/es2017/utils/queue_microtask.d.ts.map +0 -1
- package/dist/es2017/utils/queue_microtask.js +0 -5
- package/dist/es2017/utils/ranges.d.ts +0 -214
- package/dist/es2017/utils/ranges.d.ts.map +0 -1
- package/dist/es2017/utils/ranges.js +0 -495
- package/dist/es2017/utils/reference.d.ts +0 -215
- package/dist/es2017/utils/reference.d.ts.map +0 -1
- package/dist/es2017/utils/reference.js +0 -282
- package/dist/es2017/utils/request/fetch.d.ts +0 -81
- package/dist/es2017/utils/request/fetch.d.ts.map +0 -1
- package/dist/es2017/utils/request/fetch.js +0 -206
- package/dist/es2017/utils/request/index.d.ts +0 -25
- package/dist/es2017/utils/request/index.d.ts.map +0 -1
- package/dist/es2017/utils/request/index.js +0 -20
- package/dist/es2017/utils/request/request_error.d.ts +0 -47
- package/dist/es2017/utils/request/request_error.d.ts.map +0 -1
- package/dist/es2017/utils/request/request_error.js +0 -66
- package/dist/es2017/utils/request/xhr.d.ts +0 -100
- package/dist/es2017/utils/request/xhr.d.ts.map +0 -1
- package/dist/es2017/utils/request/xhr.js +0 -202
- package/dist/es2017/utils/retry_promise_with_backoff.d.ts +0 -55
- package/dist/es2017/utils/retry_promise_with_backoff.d.ts.map +0 -1
- package/dist/es2017/utils/retry_promise_with_backoff.js +0 -81
- package/dist/es2017/utils/sleep.d.ts +0 -11
- package/dist/es2017/utils/sleep.d.ts.map +0 -1
- package/dist/es2017/utils/sleep.js +0 -14
- package/dist/es2017/utils/slice_uint8array.d.ts +0 -28
- package/dist/es2017/utils/slice_uint8array.d.ts.map +0 -1
- package/dist/es2017/utils/slice_uint8array.js +0 -42
- package/dist/es2017/utils/sorted_list.d.ts +0 -128
- package/dist/es2017/utils/sorted_list.d.ts.map +0 -1
- package/dist/es2017/utils/sorted_list.js +0 -177
- package/dist/es2017/utils/starts_with.d.ts +0 -27
- package/dist/es2017/utils/starts_with.d.ts.map +0 -1
- package/dist/es2017/utils/starts_with.js +0 -35
- package/dist/es2017/utils/string_parsing.d.ts +0 -89
- package/dist/es2017/utils/string_parsing.d.ts.map +0 -1
- package/dist/es2017/utils/string_parsing.js +0 -370
- package/dist/es2017/utils/sync_or_async.d.ts +0 -71
- package/dist/es2017/utils/sync_or_async.d.ts.map +0 -1
- package/dist/es2017/utils/sync_or_async.js +0 -51
- package/dist/es2017/utils/task_canceller.d.ts +0 -263
- package/dist/es2017/utils/task_canceller.d.ts.map +0 -1
- package/dist/es2017/utils/task_canceller.js +0 -298
- package/dist/es2017/utils/url-utils.d.ts +0 -50
- package/dist/es2017/utils/url-utils.d.ts.map +0 -1
- package/dist/es2017/utils/url-utils.js +0 -323
- package/dist/es2017/utils/warn_once.d.ts +0 -24
- package/dist/es2017/utils/warn_once.d.ts.map +0 -1
- package/dist/es2017/utils/warn_once.js +0 -31
- package/dist/es2017/utils/weak_map_memory.d.ts +0 -71
- package/dist/es2017/utils/weak_map_memory.d.ts.map +0 -1
- package/dist/es2017/utils/weak_map_memory.js +0 -83
- package/dist/es2017/utils/wrapInPromise.d.ts +0 -8
- package/dist/es2017/utils/wrapInPromise.d.ts.map +0 -1
- package/dist/es2017/utils/wrapInPromise.js +0 -22
- package/dist/es2017/utils/xml-parser.d.ts +0 -71
- package/dist/es2017/utils/xml-parser.d.ts.map +0 -1
- package/dist/es2017/utils/xml-parser.js +0 -324
- package/dist/es2017/worker_entry_point.d.ts +0 -6
- package/dist/es2017/worker_entry_point.d.ts.map +0 -1
- package/dist/es2017/worker_entry_point.js +0 -6
- package/dist/mpd-parser.wasm +0 -0
- package/dist/rx-player.d.ts +0 -1
- package/dist/rx-player.js +0 -42741
- package/dist/rx-player.min.d.ts +0 -1
- package/dist/rx-player.min.js +0 -23
- package/dist/worker.js +0 -9
- package/src/__GENERATED_CODE/embedded_dash_wasm.ts +0 -3
- package/src/__GENERATED_CODE/embedded_worker.ts +0 -3
- package/src/__GENERATED_CODE/index.ts +0 -2
- package/src/core/main/worker/globals.ts +0 -38
- package/src/core/main/worker/index.ts +0 -2
- package/src/core/main/worker/send_message.ts +0 -28
- package/src/main_thread/init/multi_thread_content_initializer.ts +0 -2330
- package/src/main_thread/init/send_message.ts +0 -15
- package/src/main_thread/init/utils/create_media_source.ts +0 -169
- package/src/multithread_types.ts +0 -1095
|
@@ -1,150 +1,149 @@
|
|
|
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
1
|
import type { IMediaElement } from "../../compat/browser_compatibility_types";
|
|
18
|
-
import
|
|
2
|
+
import disableRemotePlaybackOnManagedMediaSource from "../../compat/disable_remote_playback_on_managed_media_source";
|
|
3
|
+
import getEmeApiImplementation from "../../compat/eme";
|
|
19
4
|
import mayMediaElementFailOnUndecipherableData from "../../compat/may_media_element_fail_on_undecipherable_data";
|
|
5
|
+
import resetMediaElement from "../../compat/reset_media_element";
|
|
20
6
|
import shouldReloadMediaSourceOnDecipherabilityUpdate from "../../compat/should_reload_media_source_on_decipherability_update";
|
|
21
|
-
import
|
|
7
|
+
import type { ISegmentSinkMetrics } from "../../core/segment_sinks/segment_sinks_store";
|
|
22
8
|
import type {
|
|
23
9
|
IAdaptiveRepresentationSelectorArguments,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
10
|
+
IAdaptationChoice,
|
|
11
|
+
IResolutionInfo,
|
|
12
|
+
ICreateMediaSourceCoreMessage,
|
|
13
|
+
ISentError,
|
|
14
|
+
ICoreMessage,
|
|
15
|
+
ISentLogValue,
|
|
16
|
+
} from "../../core/types";
|
|
17
|
+
import { CoreMessageType } from "../../core/types";
|
|
28
18
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
import type { IFreezeResolution } from "../../core/main/common/FreezeResolver";
|
|
36
|
-
import FreezeResolver from "../../core/main/common/FreezeResolver";
|
|
37
|
-
import getThumbnailData from "../../core/main/common/get_thumbnail_data";
|
|
38
|
-
import synchronizeSegmentSinksOnObservation from "../../core/main/common/synchronize_sinks_on_observation";
|
|
39
|
-
import SegmentSinksStore from "../../core/segment_sinks";
|
|
40
|
-
import type {
|
|
41
|
-
IStreamOrchestratorOptions,
|
|
42
|
-
IStreamOrchestratorCallbacks,
|
|
43
|
-
INeedsBufferFlushPayload,
|
|
44
|
-
} from "../../core/stream";
|
|
45
|
-
import StreamOrchestrator from "../../core/stream";
|
|
46
|
-
import type { ITextDisplayerInterface } from "../../core/types";
|
|
47
|
-
import type { EncryptedMediaError } from "../../errors";
|
|
48
|
-
import { MediaError } from "../../errors";
|
|
19
|
+
EncryptedMediaError,
|
|
20
|
+
MediaError,
|
|
21
|
+
NetworkError,
|
|
22
|
+
OtherError,
|
|
23
|
+
SourceBufferError,
|
|
24
|
+
} from "../../errors";
|
|
49
25
|
import features from "../../features";
|
|
50
26
|
import log from "../../log";
|
|
51
|
-
import type {
|
|
52
|
-
import
|
|
53
|
-
|
|
27
|
+
import type { IManifestMetadata } from "../../manifest";
|
|
28
|
+
import {
|
|
29
|
+
ManifestMetadataFormat,
|
|
30
|
+
replicateUpdatesOnManifestMetadata,
|
|
31
|
+
updateDecipherabilityFromKeyIds,
|
|
32
|
+
updateDecipherabilityFromProtectionData,
|
|
33
|
+
} from "../../manifest";
|
|
34
|
+
import MainMediaSourceInterface from "../../mse/main_media_source_interface";
|
|
35
|
+
import type {
|
|
36
|
+
IReadOnlyPlaybackObserver,
|
|
37
|
+
IMediaElementPlaybackObserver,
|
|
38
|
+
} from "../../playback_observer";
|
|
54
39
|
import type {
|
|
55
40
|
ICmcdOptions,
|
|
56
41
|
IInitialManifest,
|
|
57
42
|
IKeySystemOption,
|
|
58
43
|
IPlayerError,
|
|
44
|
+
IRepresentationFilter,
|
|
45
|
+
IManifestLoader,
|
|
46
|
+
ISegmentLoader,
|
|
59
47
|
} from "../../public_types";
|
|
60
|
-
import type { IThumbnailResponse,
|
|
61
|
-
import
|
|
48
|
+
import type { IThumbnailResponse, ITransportOptions } from "../../transports";
|
|
49
|
+
import arrayFind from "../../utils/array_find";
|
|
62
50
|
import assert, { assertUnreachable } from "../../utils/assert";
|
|
63
|
-
import
|
|
51
|
+
import idGenerator from "../../utils/id_generator";
|
|
64
52
|
import isNullOrUndefined from "../../utils/is_null_or_undefined";
|
|
65
|
-
import
|
|
53
|
+
import type { IAcceptedLogValue } from "../../utils/logger";
|
|
66
54
|
import objectAssign from "../../utils/object_assign";
|
|
67
55
|
import type { IReadOnlySharedReference } from "../../utils/reference";
|
|
68
|
-
import
|
|
69
|
-
import
|
|
56
|
+
import SharedReference from "../../utils/reference";
|
|
57
|
+
import { RequestError } from "../../utils/request";
|
|
70
58
|
import type { CancellationSignal } from "../../utils/task_canceller";
|
|
71
|
-
import TaskCanceller from "../../utils/task_canceller";
|
|
59
|
+
import TaskCanceller, { CancellationError } from "../../utils/task_canceller";
|
|
60
|
+
import type CoreInterface from "../core_interface/types";
|
|
61
|
+
import type { IContentProtection } from "../decrypt";
|
|
62
|
+
import type IContentDecryptor from "../decrypt";
|
|
72
63
|
import { ContentDecryptorState, getKeySystemConfiguration } from "../decrypt";
|
|
73
|
-
import type { IProcessedProtectionData } from "../decrypt";
|
|
74
|
-
import type ContentDecryptor from "../decrypt";
|
|
75
64
|
import type { ITextDisplayer } from "../text_displayer";
|
|
65
|
+
import { MainThreadMessageType } from "../types";
|
|
76
66
|
import type { ITextDisplayerOptions } from "./types";
|
|
77
67
|
import { ContentInitializer } from "./types";
|
|
68
|
+
import type { ICorePlaybackObservation } from "./utils/create_core_playback_observer";
|
|
78
69
|
import createCorePlaybackObserver from "./utils/create_core_playback_observer";
|
|
79
|
-
import createMediaSource from "./utils/create_media_source";
|
|
80
70
|
import type { IInitialTimeOptions } from "./utils/get_initial_time";
|
|
81
71
|
import getInitialTime from "./utils/get_initial_time";
|
|
82
72
|
import getLoadedReference from "./utils/get_loaded_reference";
|
|
83
73
|
import performInitialSeekAndPlay from "./utils/initial_seek_and_play";
|
|
84
|
-
import initializeContentDecryption from "./utils/initialize_content_decryption";
|
|
85
|
-
import MainThreadTextDisplayerInterface from "./utils/main_thread_text_displayer_interface";
|
|
86
74
|
import RebufferingController from "./utils/rebuffering_controller";
|
|
87
|
-
import StreamEventsEmitter from "./utils/stream_events_emitter";
|
|
75
|
+
import StreamEventsEmitter from "./utils/stream_events_emitter/stream_events_emitter";
|
|
88
76
|
import listenToMediaError from "./utils/throw_on_media_error";
|
|
77
|
+
import { updateManifestCodecSupport } from "./utils/update_manifest_codec_support";
|
|
78
|
+
|
|
79
|
+
const generateContentId = idGenerator();
|
|
89
80
|
|
|
90
81
|
/**
|
|
91
|
-
* Allows to load a new content thanks to the MediaSource Extensions (a.k.a. MSE)
|
|
92
|
-
* Web APIs.
|
|
93
|
-
*
|
|
94
|
-
* Through this `ContentInitializer`, a Manifest will be fetched (and depending
|
|
95
|
-
* on the situation, refreshed), a `MediaSource` instance will be linked to the
|
|
96
|
-
* wanted `HTMLMediaElement` and chunks of media data, called segments, will be
|
|
97
|
-
* pushed on buffers associated to this `MediaSource` instance.
|
|
98
|
-
*
|
|
99
82
|
* @class MediaSourceContentInitializer
|
|
100
83
|
*/
|
|
101
84
|
export default class MediaSourceContentInitializer extends ContentInitializer {
|
|
102
85
|
/** Constructor settings associated to this `MediaSourceContentInitializer`. */
|
|
103
|
-
private
|
|
86
|
+
private _settings: IInitializeArguments;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The Core may be sending messages as soon as we're preparing the content but
|
|
90
|
+
* the `MediaSourceContentInitializer` is only able to handle all of them only
|
|
91
|
+
* once `start`ed.
|
|
92
|
+
*
|
|
93
|
+
* As such `_queuedCoreMessages` is set to an Array when `prepare` has been
|
|
94
|
+
* called but not `start` yet, and contains all core messages that have to
|
|
95
|
+
* be processed when `start` is called.
|
|
96
|
+
*
|
|
97
|
+
* It is set to `null` when there's no need to rely on that queue (either not
|
|
98
|
+
* yet `prepare`d or already `start`ed).
|
|
99
|
+
*/
|
|
100
|
+
private _queuedCoreMessages: ICoreMessage[] | null;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Information relative to the current loaded content.
|
|
104
|
+
*
|
|
105
|
+
* `null` when no content is prepared yet.
|
|
106
|
+
*/
|
|
107
|
+
private _currentContentInfo: IMediaSourceContentInitializerContentInfos | null;
|
|
104
108
|
/**
|
|
105
109
|
* `TaskCanceller` allowing to abort everything that the
|
|
106
110
|
* `MediaSourceContentInitializer` is doing.
|
|
107
111
|
*/
|
|
108
112
|
private _initCanceller: TaskCanceller;
|
|
109
|
-
/** Interface allowing to fetch and refresh the Manifest. */
|
|
110
|
-
private _manifestFetcher: ManifestFetcher;
|
|
111
|
-
/**
|
|
112
|
-
* Reference to the `Manifest` Object:
|
|
113
|
-
* - as an asynchronous value if it is still in the process of being loaded.
|
|
114
|
-
* - as an synchronous value if it has been loaded
|
|
115
|
-
* - `null` if the load task has not started yet.
|
|
116
|
-
*/
|
|
117
|
-
private _manifest: ISyncOrAsyncValue<IManifest> | null;
|
|
118
|
-
|
|
119
|
-
private _cmcdDataBuilder: CmcdDataBuilder | null;
|
|
120
|
-
|
|
121
113
|
/**
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
* - If set to `"uninitialized"`, decryption capabilities have not been
|
|
126
|
-
* set up yet.
|
|
114
|
+
* `TaskCanceller` allowing to abort and clean-up every task and resource
|
|
115
|
+
* linked to the current `MediaSource` instance.
|
|
127
116
|
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
* error `value` describes the reason why decryption is not enabled.
|
|
131
|
-
*
|
|
132
|
-
* - If set to `"enabled"`, decryption capabilities are available, and
|
|
133
|
-
* `value` points to the corresponding `ContentDecryptor`.
|
|
117
|
+
* It may be triggered either at content stop (and thus at the same time than
|
|
118
|
+
* the `_initCanceller`) or when reloading the content.
|
|
134
119
|
*/
|
|
135
|
-
private
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
120
|
+
private _currentMediaSourceCanceller: TaskCanceller;
|
|
121
|
+
|
|
122
|
+
private _awaitingRequests: {
|
|
123
|
+
nextRequestId: number;
|
|
124
|
+
/**
|
|
125
|
+
* Stores the resolvers and the current messageId that is sent to the core to
|
|
126
|
+
* receive segment sink metrics.
|
|
127
|
+
* The purpose of collecting metrics is for monitoring and debugging.
|
|
128
|
+
*/
|
|
129
|
+
pendingSinkMetrics: Map<
|
|
130
|
+
number /* request id */,
|
|
131
|
+
{
|
|
132
|
+
resolve: (value: ISegmentSinkMetrics | undefined) => void;
|
|
139
133
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
134
|
+
>;
|
|
135
|
+
/**
|
|
136
|
+
* Stores the resolvers and the current messageId that is sent to the web worker to
|
|
137
|
+
* receive image thumbnails.
|
|
138
|
+
*/
|
|
139
|
+
pendingThumbnailFetching: Map<
|
|
140
|
+
number /* request id */,
|
|
141
|
+
{
|
|
142
|
+
resolve: (value: IThumbnailResponse) => void;
|
|
143
|
+
reject: (error: Error) => void;
|
|
143
144
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
value: ContentDecryptor;
|
|
147
|
-
};
|
|
145
|
+
>;
|
|
146
|
+
};
|
|
148
147
|
|
|
149
148
|
/**
|
|
150
149
|
* Create a new `MediaSourceContentInitializer`, associated to the given
|
|
@@ -153,78 +152,173 @@ export default class MediaSourceContentInitializer extends ContentInitializer {
|
|
|
153
152
|
*/
|
|
154
153
|
constructor(settings: IInitializeArguments) {
|
|
155
154
|
super();
|
|
156
|
-
this.
|
|
157
|
-
this._initCanceller = new TaskCanceller();
|
|
158
|
-
this.
|
|
159
|
-
this.
|
|
160
|
-
|
|
161
|
-
this.
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
});
|
|
155
|
+
this._settings = settings;
|
|
156
|
+
this._initCanceller = new TaskCanceller("Init");
|
|
157
|
+
this._currentMediaSourceCanceller = new TaskCanceller("Init MediaSource");
|
|
158
|
+
this._currentMediaSourceCanceller.linkToSignal(this._initCanceller.signal);
|
|
159
|
+
this._currentContentInfo = null;
|
|
160
|
+
this._awaitingRequests = {
|
|
161
|
+
nextRequestId: 0,
|
|
162
|
+
pendingSinkMetrics: new Map(),
|
|
163
|
+
pendingThumbnailFetching: new Map(),
|
|
164
|
+
};
|
|
165
|
+
this._queuedCoreMessages = null;
|
|
168
166
|
}
|
|
169
167
|
|
|
170
168
|
/**
|
|
171
169
|
* Perform non-destructive preparation steps, to prepare a future content.
|
|
172
|
-
* For now, this mainly mean loading the Manifest document.
|
|
173
170
|
*/
|
|
174
171
|
public prepare(): void {
|
|
175
|
-
if (this.
|
|
172
|
+
if (this._currentContentInfo !== null || this._initCanceller.isUsed()) {
|
|
176
173
|
return;
|
|
177
174
|
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
175
|
+
const contentId = generateContentId();
|
|
176
|
+
const {
|
|
177
|
+
adaptiveOptions,
|
|
178
|
+
transport,
|
|
179
|
+
transportOptions,
|
|
180
|
+
useMseInWorker,
|
|
181
|
+
coreInterface,
|
|
182
|
+
} = this._settings;
|
|
183
|
+
const { wantedBufferAhead, maxVideoBufferSize, maxBufferAhead, maxBufferBehind } =
|
|
184
|
+
this._settings.bufferOptions;
|
|
185
|
+
const initialVideoBitrate = adaptiveOptions.initialBitrates.video;
|
|
186
|
+
const initialAudioBitrate = adaptiveOptions.initialBitrates.audio;
|
|
187
|
+
this._currentContentInfo = {
|
|
188
|
+
contentId,
|
|
189
|
+
contentDecryptor: null,
|
|
190
|
+
manifest: null,
|
|
191
|
+
mediaSourceInfo: null,
|
|
192
|
+
rebufferingController: null,
|
|
193
|
+
streamEventsEmitter: null,
|
|
194
|
+
initialTime: undefined,
|
|
195
|
+
autoPlay: undefined,
|
|
196
|
+
initialPlayPerformed: null,
|
|
197
|
+
useMseInWorker,
|
|
198
|
+
};
|
|
199
|
+
coreInterface.sendMessage({
|
|
200
|
+
type: MainThreadMessageType.PrepareContent,
|
|
201
|
+
value: {
|
|
202
|
+
contentId,
|
|
203
|
+
cmcd: this._settings.cmcd,
|
|
204
|
+
enableRepresentationAvoidance: this._settings.enableRepresentationAvoidance,
|
|
205
|
+
url: this._settings.url,
|
|
206
|
+
hasText: this._hasTextBufferFeature(),
|
|
207
|
+
transport,
|
|
208
|
+
transportOptions,
|
|
209
|
+
initialVideoBitrate,
|
|
210
|
+
initialAudioBitrate,
|
|
211
|
+
manifestRetryOptions: {
|
|
212
|
+
...this._settings.manifestRequestSettings,
|
|
213
|
+
lowLatencyMode: this._settings.lowLatencyMode,
|
|
214
|
+
},
|
|
215
|
+
segmentRetryOptions: this._settings.segmentRequestOptions,
|
|
216
|
+
useMseInWorker,
|
|
217
|
+
},
|
|
218
|
+
});
|
|
193
219
|
this._initCanceller.signal.register(() => {
|
|
194
|
-
|
|
220
|
+
coreInterface.sendMessage({
|
|
221
|
+
type: MainThreadMessageType.StopContent,
|
|
222
|
+
contentId,
|
|
223
|
+
value: null,
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
if (this._initCanceller.isUsed()) {
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
this._queuedCoreMessages = [];
|
|
230
|
+
log.debug("Init", "addEventListener prepare buffering core messages");
|
|
231
|
+
const onmessage = (msgData: ICoreMessage): void => {
|
|
232
|
+
if (msgData.type !== CoreMessageType.LogMessage) {
|
|
233
|
+
log.debug("Init", "Core message received", msgData.type);
|
|
234
|
+
}
|
|
235
|
+
const type = msgData.type;
|
|
236
|
+
switch (type) {
|
|
237
|
+
case CoreMessageType.LogMessage: {
|
|
238
|
+
const formatted: IAcceptedLogValue[] = msgData.value.logs.map((l) => {
|
|
239
|
+
switch (typeof l) {
|
|
240
|
+
case "string":
|
|
241
|
+
case "number":
|
|
242
|
+
case "boolean":
|
|
243
|
+
case "undefined":
|
|
244
|
+
return l;
|
|
245
|
+
case "object":
|
|
246
|
+
if (l === null) {
|
|
247
|
+
return null;
|
|
248
|
+
}
|
|
249
|
+
return formatSentLogObject(l);
|
|
250
|
+
default:
|
|
251
|
+
assertUnreachable(l);
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
switch (msgData.value.logLevel) {
|
|
255
|
+
case "NONE":
|
|
256
|
+
break;
|
|
257
|
+
case "ERROR":
|
|
258
|
+
log.error(msgData.value.namespace, ...formatted);
|
|
259
|
+
break;
|
|
260
|
+
case "WARNING":
|
|
261
|
+
log.warn(msgData.value.namespace, ...formatted);
|
|
262
|
+
break;
|
|
263
|
+
case "INFO":
|
|
264
|
+
log.info(msgData.value.namespace, ...formatted);
|
|
265
|
+
break;
|
|
266
|
+
case "DEBUG":
|
|
267
|
+
log.debug(msgData.value.namespace, ...formatted);
|
|
268
|
+
break;
|
|
269
|
+
default:
|
|
270
|
+
assertUnreachable(msgData.value.logLevel);
|
|
271
|
+
}
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
default:
|
|
275
|
+
if (this._queuedCoreMessages !== null) {
|
|
276
|
+
this._queuedCoreMessages.push(msgData);
|
|
277
|
+
}
|
|
278
|
+
break;
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
this._settings.coreInterface.addMessageListener(onmessage);
|
|
282
|
+
const onmessageerror = () => {
|
|
283
|
+
log.error("Init", "Error when receiving message from core.");
|
|
284
|
+
};
|
|
285
|
+
this._settings.coreInterface.addErrorListener(onmessageerror);
|
|
286
|
+
this._initCanceller.signal.register(() => {
|
|
287
|
+
log.debug("Init", "removeEventListener prepare for core message");
|
|
288
|
+
this._settings.coreInterface.removeMessageListener(onmessage);
|
|
289
|
+
this._settings.coreInterface.removeErrorListener(onmessageerror);
|
|
195
290
|
});
|
|
196
|
-
}
|
|
197
291
|
|
|
198
|
-
|
|
199
|
-
* @param {HTMLMediaElement} mediaElement
|
|
200
|
-
* @param {Object} playbackObserver
|
|
201
|
-
*/
|
|
202
|
-
public start(
|
|
203
|
-
mediaElement: IMediaElement,
|
|
204
|
-
playbackObserver: IMediaElementPlaybackObserver,
|
|
205
|
-
): void {
|
|
206
|
-
this.prepare(); // Load Manifest if not already done
|
|
292
|
+
// Also bind all `SharedReference` objects:
|
|
207
293
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
294
|
+
const throttleVideoBitrate =
|
|
295
|
+
adaptiveOptions.throttlers.throttleBitrate.video ?? new SharedReference(Infinity);
|
|
296
|
+
bindNumberReferencesToCore(
|
|
297
|
+
coreInterface,
|
|
212
298
|
this._initCanceller.signal,
|
|
299
|
+
[wantedBufferAhead, "wantedBufferAhead"],
|
|
300
|
+
[maxVideoBufferSize, "maxVideoBufferSize"],
|
|
301
|
+
[maxBufferAhead, "maxBufferAhead"],
|
|
302
|
+
[maxBufferBehind, "maxBufferBehind"],
|
|
303
|
+
[throttleVideoBitrate, "throttleVideoBitrate"],
|
|
213
304
|
);
|
|
214
305
|
|
|
215
|
-
|
|
216
|
-
.
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
initResult.drmSystemId,
|
|
222
|
-
initResult.unlinkMediaSource,
|
|
223
|
-
),
|
|
224
|
-
)
|
|
225
|
-
.catch((err) => {
|
|
226
|
-
this._onFatalError(err);
|
|
306
|
+
const limitVideoResolution =
|
|
307
|
+
adaptiveOptions.throttlers.limitResolution.video ??
|
|
308
|
+
new SharedReference<IResolutionInfo>({
|
|
309
|
+
height: undefined,
|
|
310
|
+
width: undefined,
|
|
311
|
+
pixelRatio: 1,
|
|
227
312
|
});
|
|
313
|
+
limitVideoResolution.onUpdate(
|
|
314
|
+
(newVal) => {
|
|
315
|
+
coreInterface.sendMessage({
|
|
316
|
+
type: MainThreadMessageType.ReferenceUpdate,
|
|
317
|
+
value: { name: "limitVideoResolution", newVal },
|
|
318
|
+
});
|
|
319
|
+
},
|
|
320
|
+
{ clearSignal: this._initCanceller.signal, emitCurrentValue: true },
|
|
321
|
+
);
|
|
228
322
|
}
|
|
229
323
|
|
|
230
324
|
/**
|
|
@@ -235,843 +329,1373 @@ export default class MediaSourceContentInitializer extends ContentInitializer {
|
|
|
235
329
|
* DASH's MPD) will be refreshed immediately.
|
|
236
330
|
*/
|
|
237
331
|
public updateContentUrls(urls: string[] | undefined, refreshNow: boolean): void {
|
|
238
|
-
this.
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
this._initCanceller.cancel();
|
|
332
|
+
if (this._currentContentInfo === null) {
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
335
|
+
this._settings.coreInterface.sendMessage({
|
|
336
|
+
type: MainThreadMessageType.ContentUrlsUpdate,
|
|
337
|
+
contentId: this._currentContentInfo.contentId,
|
|
338
|
+
value: { urls, refreshNow },
|
|
339
|
+
});
|
|
247
340
|
}
|
|
248
341
|
|
|
249
342
|
/**
|
|
250
|
-
*
|
|
251
|
-
* @param {
|
|
343
|
+
* @param {HTMLMediaElement} mediaElement
|
|
344
|
+
* @param {Object} playbackObserver
|
|
252
345
|
*/
|
|
253
|
-
|
|
346
|
+
public start(
|
|
347
|
+
mediaElement: IMediaElement,
|
|
348
|
+
playbackObserver: IMediaElementPlaybackObserver,
|
|
349
|
+
): void {
|
|
350
|
+
this.prepare(); // Load Manifest if not already done
|
|
254
351
|
if (this._initCanceller.isUsed()) {
|
|
255
352
|
return;
|
|
256
353
|
}
|
|
257
|
-
this._initCanceller.cancel();
|
|
258
|
-
this.trigger("error", err);
|
|
259
|
-
}
|
|
260
354
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
mediaSource: MainMediaSourceInterface;
|
|
269
|
-
drmSystemId: string | undefined;
|
|
270
|
-
unlinkMediaSource: TaskCanceller;
|
|
271
|
-
}> {
|
|
272
|
-
const initCanceller = this._initCanceller;
|
|
273
|
-
return createCancellablePromise(initCanceller.signal, (resolve) => {
|
|
274
|
-
const { keySystems } = this._initSettings;
|
|
275
|
-
|
|
276
|
-
/** Initialize decryption capabilities. */
|
|
277
|
-
const { statusRef: drmInitRef, contentDecryptor } = initializeContentDecryption(
|
|
355
|
+
let textDisplayer: ITextDisplayer | null = null;
|
|
356
|
+
if (
|
|
357
|
+
this._settings.textTrackOptions.textTrackMode === "html" &&
|
|
358
|
+
features.htmlTextDisplayer !== null
|
|
359
|
+
) {
|
|
360
|
+
assert(this._hasTextBufferFeature());
|
|
361
|
+
textDisplayer = new features.htmlTextDisplayer(
|
|
278
362
|
mediaElement,
|
|
279
|
-
|
|
280
|
-
{
|
|
281
|
-
onWarning: (err: IPlayerError) => this.trigger("warning", err),
|
|
282
|
-
onError: (err: Error) => this._onFatalError(err),
|
|
283
|
-
onBlackListProtectionData: (val) => {
|
|
284
|
-
// Ugly IIFE workaround to allow async event listener
|
|
285
|
-
(async () => {
|
|
286
|
-
if (this._manifest === null) {
|
|
287
|
-
return;
|
|
288
|
-
}
|
|
289
|
-
const manifest =
|
|
290
|
-
this._manifest.syncValue ?? (await this._manifest.getValueAsAsync());
|
|
291
|
-
blackListProtectionDataOnManifest(manifest, val);
|
|
292
|
-
})().catch(noop);
|
|
293
|
-
},
|
|
294
|
-
onKeyIdsCompatibilityUpdate: (updates) => {
|
|
295
|
-
// Ugly IIFE workaround to allow async event listener
|
|
296
|
-
(async () => {
|
|
297
|
-
if (this._manifest === null) {
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
const manifest =
|
|
301
|
-
this._manifest.syncValue ?? (await this._manifest.getValueAsAsync());
|
|
302
|
-
updateKeyIdsDecipherabilityOnManifest(
|
|
303
|
-
manifest,
|
|
304
|
-
updates.whitelistedKeyIds,
|
|
305
|
-
updates.blacklistedKeyIds,
|
|
306
|
-
updates.delistedKeyIds,
|
|
307
|
-
);
|
|
308
|
-
})().catch(noop);
|
|
309
|
-
},
|
|
310
|
-
|
|
311
|
-
onCodecSupportUpdate: () => {
|
|
312
|
-
const syncManifest = this._manifest?.syncValue;
|
|
313
|
-
if (isNullOrUndefined(syncManifest)) {
|
|
314
|
-
// The Manifest is not yet fetched, but we will be able to check
|
|
315
|
-
// the codecs once it is the case
|
|
316
|
-
this._manifest?.getValueAsAsync().then((loadedManifest) => {
|
|
317
|
-
if (this._initCanceller.isUsed()) {
|
|
318
|
-
return;
|
|
319
|
-
}
|
|
320
|
-
this._refreshManifestCodecSupport(loadedManifest, mediaElement);
|
|
321
|
-
}, noop);
|
|
322
|
-
} else {
|
|
323
|
-
this._refreshManifestCodecSupport(syncManifest, mediaElement);
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
},
|
|
327
|
-
initCanceller.signal,
|
|
328
|
-
);
|
|
329
|
-
|
|
330
|
-
if (contentDecryptor.enabled) {
|
|
331
|
-
this._decryptionCapabilities = {
|
|
332
|
-
status: "enabled",
|
|
333
|
-
value: contentDecryptor.value,
|
|
334
|
-
};
|
|
335
|
-
} else {
|
|
336
|
-
this._decryptionCapabilities = {
|
|
337
|
-
status: "disabled",
|
|
338
|
-
value: contentDecryptor.value,
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
drmInitRef.onUpdate(
|
|
343
|
-
(drmStatus, stopListeningToDrmUpdates) => {
|
|
344
|
-
if (drmStatus.initializationState.type === "uninitialized") {
|
|
345
|
-
return;
|
|
346
|
-
}
|
|
347
|
-
stopListeningToDrmUpdates();
|
|
348
|
-
|
|
349
|
-
const mediaSourceCanceller = new TaskCanceller();
|
|
350
|
-
mediaSourceCanceller.linkToSignal(initCanceller.signal);
|
|
351
|
-
createMediaSource(mediaElement, mediaSourceCanceller.signal)
|
|
352
|
-
.then((mediaSource) => {
|
|
353
|
-
const lastDrmStatus = drmInitRef.getValue();
|
|
354
|
-
if (lastDrmStatus.initializationState.type === "awaiting-media-link") {
|
|
355
|
-
lastDrmStatus.initializationState.value.isMediaLinked.setValue(true);
|
|
356
|
-
drmInitRef.onUpdate(
|
|
357
|
-
(newDrmStatus, stopListeningToDrmUpdatesAgain) => {
|
|
358
|
-
if (newDrmStatus.initializationState.type === "initialized") {
|
|
359
|
-
stopListeningToDrmUpdatesAgain();
|
|
360
|
-
resolve({
|
|
361
|
-
mediaSource,
|
|
362
|
-
drmSystemId: newDrmStatus.drmSystemId,
|
|
363
|
-
unlinkMediaSource: mediaSourceCanceller,
|
|
364
|
-
});
|
|
365
|
-
return;
|
|
366
|
-
}
|
|
367
|
-
},
|
|
368
|
-
{ emitCurrentValue: true, clearSignal: initCanceller.signal },
|
|
369
|
-
);
|
|
370
|
-
} else if (drmStatus.initializationState.type === "initialized") {
|
|
371
|
-
resolve({
|
|
372
|
-
mediaSource,
|
|
373
|
-
drmSystemId: drmStatus.drmSystemId,
|
|
374
|
-
unlinkMediaSource: mediaSourceCanceller,
|
|
375
|
-
});
|
|
376
|
-
return;
|
|
377
|
-
}
|
|
378
|
-
})
|
|
379
|
-
.catch((err) => {
|
|
380
|
-
if (mediaSourceCanceller.isUsed()) {
|
|
381
|
-
return;
|
|
382
|
-
}
|
|
383
|
-
this._onFatalError(err);
|
|
384
|
-
});
|
|
385
|
-
},
|
|
386
|
-
{ emitCurrentValue: true, clearSignal: initCanceller.signal },
|
|
363
|
+
this._settings.textTrackOptions.textTrackElement,
|
|
387
364
|
);
|
|
388
|
-
})
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
initialMediaSource: MainMediaSourceInterface,
|
|
394
|
-
playbackObserver: IMediaElementPlaybackObserver,
|
|
395
|
-
drmSystemId: string | undefined,
|
|
396
|
-
initialMediaSourceCanceller: TaskCanceller,
|
|
397
|
-
): Promise<void> {
|
|
398
|
-
const {
|
|
399
|
-
adaptiveOptions,
|
|
400
|
-
autoPlay,
|
|
401
|
-
bufferOptions,
|
|
402
|
-
lowLatencyMode,
|
|
403
|
-
segmentRequestOptions,
|
|
404
|
-
speed,
|
|
405
|
-
startAt,
|
|
406
|
-
textTrackOptions,
|
|
407
|
-
transport,
|
|
408
|
-
} = this._initSettings;
|
|
409
|
-
const initCanceller = this._initCanceller;
|
|
410
|
-
assert(this._manifest !== null);
|
|
411
|
-
let manifest: IManifest;
|
|
412
|
-
try {
|
|
413
|
-
manifest = this._manifest.syncValue ?? (await this._manifest.getValueAsAsync());
|
|
414
|
-
} catch (_e) {
|
|
415
|
-
return; // The error should already have been processed through an event listener
|
|
365
|
+
} else if (features.nativeTextDisplayer !== null) {
|
|
366
|
+
assert(this._hasTextBufferFeature());
|
|
367
|
+
textDisplayer = new features.nativeTextDisplayer(mediaElement);
|
|
368
|
+
} else {
|
|
369
|
+
assert(!this._hasTextBufferFeature());
|
|
416
370
|
}
|
|
371
|
+
this._initCanceller.signal.register((err) => {
|
|
372
|
+
textDisplayer?.stop(err.reason);
|
|
373
|
+
});
|
|
417
374
|
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
},
|
|
424
|
-
initCanceller.signal,
|
|
425
|
-
);
|
|
426
|
-
|
|
427
|
-
manifest.addEventListener(
|
|
428
|
-
"decipherabilityUpdate",
|
|
429
|
-
(elts) => {
|
|
430
|
-
this.trigger("decipherabilityUpdate", elts);
|
|
431
|
-
},
|
|
432
|
-
initCanceller.signal,
|
|
433
|
-
);
|
|
434
|
-
|
|
435
|
-
manifest.addEventListener(
|
|
436
|
-
"supportUpdate",
|
|
437
|
-
() => {
|
|
438
|
-
this.trigger("codecSupportUpdate", null);
|
|
439
|
-
},
|
|
440
|
-
initCanceller.signal,
|
|
375
|
+
/** Translate errors coming from the media element into RxPlayer errors. */
|
|
376
|
+
listenToMediaError(
|
|
377
|
+
mediaElement,
|
|
378
|
+
(error: MediaError) => this._onFatalError(error),
|
|
379
|
+
this._initCanceller.signal,
|
|
441
380
|
);
|
|
442
381
|
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
const representationEstimator = AdaptiveRepresentationSelector(adaptiveOptions);
|
|
449
|
-
const subBufferOptions = objectAssign(
|
|
450
|
-
{ textTrackOptions, drmSystemId },
|
|
451
|
-
bufferOptions,
|
|
452
|
-
);
|
|
382
|
+
/**
|
|
383
|
+
* Send content protection initialization data.
|
|
384
|
+
* TODO remove and use ContentDecryptor directly when possible.
|
|
385
|
+
*/
|
|
386
|
+
const lastContentProtection = new SharedReference<IContentProtection | null>(null);
|
|
453
387
|
|
|
454
|
-
const
|
|
455
|
-
|
|
456
|
-
transport,
|
|
457
|
-
cdnPrioritizer,
|
|
458
|
-
this._cmcdDataBuilder,
|
|
459
|
-
segmentRequestOptions,
|
|
388
|
+
const mediaSourceStatus = new SharedReference<MediaSourceInitializationStatus>(
|
|
389
|
+
MediaSourceInitializationStatus.Nothing,
|
|
460
390
|
);
|
|
461
391
|
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
392
|
+
const { statusRef: drmInitializationStatus, contentDecryptor } =
|
|
393
|
+
this._initializeContentDecryption(
|
|
394
|
+
mediaElement,
|
|
395
|
+
lastContentProtection,
|
|
396
|
+
mediaSourceStatus,
|
|
397
|
+
() => notifyAndStartMediaSourceReload(0, undefined, undefined),
|
|
398
|
+
this._initCanceller.signal,
|
|
399
|
+
);
|
|
400
|
+
const contentInfo = this._currentContentInfo;
|
|
401
|
+
if (contentInfo !== null) {
|
|
402
|
+
contentInfo.contentDecryptor = contentDecryptor;
|
|
466
403
|
}
|
|
467
404
|
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
bufferOptions: subBufferOptions,
|
|
405
|
+
const playbackStartParams = {
|
|
406
|
+
mediaElement,
|
|
407
|
+
textDisplayer,
|
|
408
|
+
playbackObserver,
|
|
409
|
+
drmInitializationStatus,
|
|
410
|
+
mediaSourceStatus,
|
|
411
|
+
};
|
|
412
|
+
mediaSourceStatus.onUpdate(
|
|
413
|
+
(msInitStatus, stopListeningMSStatus) => {
|
|
414
|
+
if (msInitStatus === MediaSourceInitializationStatus.Attached) {
|
|
415
|
+
stopListeningMSStatus();
|
|
416
|
+
this._startPlaybackIfReady(playbackStartParams);
|
|
417
|
+
}
|
|
482
418
|
},
|
|
483
|
-
|
|
419
|
+
{ clearSignal: this._initCanceller.signal, emitCurrentValue: true },
|
|
484
420
|
);
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
* @param {Object} currentCanceller
|
|
494
|
-
*/
|
|
495
|
-
private _setupContentWithNewMediaSource(
|
|
496
|
-
args: IBufferingMediaSettings,
|
|
497
|
-
currentCanceller: TaskCanceller,
|
|
498
|
-
): void {
|
|
499
|
-
this._startLoadingContentOnMediaSource(
|
|
500
|
-
args,
|
|
501
|
-
this._createReloadMediaSourceCallback(args, currentCanceller),
|
|
502
|
-
currentCanceller.signal,
|
|
421
|
+
drmInitializationStatus.onUpdate(
|
|
422
|
+
(initializationStatus, stopListeningDrm) => {
|
|
423
|
+
if (initializationStatus.initializationState.type === "initialized") {
|
|
424
|
+
stopListeningDrm();
|
|
425
|
+
this._startPlaybackIfReady(playbackStartParams);
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
{ emitCurrentValue: true, clearSignal: this._initCanceller.signal },
|
|
503
429
|
);
|
|
504
|
-
}
|
|
505
430
|
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
431
|
+
/**
|
|
432
|
+
* Reset directly (synchronously) the current `MediaSource` and signal to
|
|
433
|
+
* the core that we did so.
|
|
434
|
+
* @param {number} deltaPosition - Position you want to seek to after
|
|
435
|
+
* reloading, as a delta in seconds from the last polled playing position.
|
|
436
|
+
* @param {number|undefined} minimumPosition - If set, minimum time bound
|
|
437
|
+
* in seconds after `deltaPosition` has been applied.
|
|
438
|
+
* @param {number|undefined} maximumPosition - If set, minimum time bound
|
|
439
|
+
* in seconds after `deltaPosition` has been applied.
|
|
440
|
+
*/
|
|
441
|
+
const notifyAndStartMediaSourceReload = (
|
|
442
|
+
deltaPosition: number,
|
|
443
|
+
minimumPosition: number | undefined,
|
|
444
|
+
maximumPosition: number | undefined,
|
|
445
|
+
): void => {
|
|
446
|
+
const reloadingContentInfo = this._currentContentInfo;
|
|
447
|
+
if (reloadingContentInfo === null) {
|
|
448
|
+
log.warn("Init", "Asked to reload when no content is loaded.");
|
|
519
449
|
return;
|
|
520
450
|
}
|
|
521
|
-
|
|
522
|
-
|
|
451
|
+
if (
|
|
452
|
+
reloadingContentInfo === null ||
|
|
453
|
+
reloadingContentInfo.mediaSourceInfo === null
|
|
454
|
+
) {
|
|
455
|
+
log.warn("Init", "Asked to reload when no MediaSource is active.");
|
|
523
456
|
return;
|
|
524
457
|
}
|
|
525
458
|
|
|
526
|
-
const
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
459
|
+
const mediaSourceId =
|
|
460
|
+
reloadingContentInfo.mediaSourceInfo.type === "main"
|
|
461
|
+
? reloadingContentInfo.mediaSourceInfo.mediaSource.id
|
|
462
|
+
: reloadingContentInfo.mediaSourceInfo.mediaSourceId;
|
|
463
|
+
this._settings.coreInterface.sendMessage({
|
|
464
|
+
type: MainThreadMessageType.MediaSourceReload,
|
|
465
|
+
mediaSourceId,
|
|
466
|
+
value: null,
|
|
467
|
+
});
|
|
468
|
+
reloadMediaSource(deltaPosition, minimumPosition, maximumPosition);
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Reset directly (synchronously) the current `MediaSource`.
|
|
473
|
+
*
|
|
474
|
+
* It is assumed that `core` already knows about this action. If not, call
|
|
475
|
+
* `notifyAndStartMediaSourceReload` instead.
|
|
476
|
+
* @param {number} deltaPosition - Position you want to seek to after
|
|
477
|
+
* reloading, as a delta in seconds from the last polled playing position.
|
|
478
|
+
* @param {number|undefined} minimumPosition - If set, minimum time bound
|
|
479
|
+
* in seconds after `deltaPosition` has been applied.
|
|
480
|
+
* @param {number|undefined} maximumPosition - If set, minimum time bound
|
|
481
|
+
* in seconds after `deltaPosition` has been applied.
|
|
482
|
+
*/
|
|
483
|
+
const reloadMediaSource = (
|
|
484
|
+
deltaPosition: number,
|
|
485
|
+
minimumPosition: number | undefined,
|
|
486
|
+
maximumPosition: number | undefined,
|
|
487
|
+
): void => {
|
|
488
|
+
const reloadingContentInfo = this._currentContentInfo;
|
|
489
|
+
if (reloadingContentInfo === null) {
|
|
490
|
+
log.warn("Init", "Asked to reload when no content is loaded.");
|
|
491
|
+
return;
|
|
492
|
+
}
|
|
493
|
+
const lastObservation = playbackObserver.getReference().getValue();
|
|
494
|
+
const currentPosition = lastObservation.position.getWanted();
|
|
495
|
+
const isPaused =
|
|
496
|
+
reloadingContentInfo.initialPlayPerformed?.getValue() === true ||
|
|
497
|
+
reloadingContentInfo.autoPlay === undefined
|
|
498
|
+
? lastObservation.paused
|
|
499
|
+
: !reloadingContentInfo.autoPlay;
|
|
500
|
+
let position = currentPosition + deltaPosition;
|
|
501
|
+
if (minimumPosition !== undefined) {
|
|
502
|
+
position = Math.max(minimumPosition, position);
|
|
503
|
+
}
|
|
504
|
+
if (maximumPosition !== undefined) {
|
|
505
|
+
position = Math.min(maximumPosition, position);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
this._reload(
|
|
509
|
+
mediaElement,
|
|
510
|
+
textDisplayer,
|
|
511
|
+
playbackObserver,
|
|
512
|
+
mediaSourceStatus,
|
|
513
|
+
position,
|
|
514
|
+
!isPaused,
|
|
515
|
+
);
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
const onmessage = (msgData: ICoreMessage) => {
|
|
519
|
+
switch (msgData.type) {
|
|
520
|
+
case CoreMessageType.AttachMediaSource: {
|
|
521
|
+
if (this._currentContentInfo?.contentId !== msgData.contentId) {
|
|
522
|
+
return;
|
|
523
|
+
}
|
|
524
|
+
if (this._currentContentInfo !== null) {
|
|
525
|
+
if (this._currentContentInfo.mediaSourceInfo?.type === "main") {
|
|
526
|
+
this._currentContentInfo.mediaSourceInfo.mediaSource.dispose(
|
|
527
|
+
"new AttachMediaSource message",
|
|
528
|
+
);
|
|
529
|
+
}
|
|
530
|
+
this._currentContentInfo.mediaSourceInfo = {
|
|
531
|
+
type: "core",
|
|
532
|
+
mediaSourceId: msgData.mediaSourceId,
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
const mediaSourceLink = msgData.value;
|
|
536
|
+
mediaSourceStatus.onUpdate(
|
|
537
|
+
(currStatus, stopListening) => {
|
|
538
|
+
if (currStatus === MediaSourceInitializationStatus.AttachNow) {
|
|
539
|
+
stopListening();
|
|
540
|
+
log.info("media", "Attaching MediaSource URL to the media element");
|
|
541
|
+
if (mediaSourceLink.type === "handle") {
|
|
542
|
+
mediaElement.srcObject = mediaSourceLink.value;
|
|
543
|
+
this._currentMediaSourceCanceller.signal.register(() => {
|
|
544
|
+
mediaElement.srcObject = null;
|
|
545
|
+
});
|
|
546
|
+
} else {
|
|
547
|
+
mediaElement.src = mediaSourceLink.value;
|
|
548
|
+
this._currentMediaSourceCanceller.signal.register(() => {
|
|
549
|
+
resetMediaElement(mediaElement, mediaSourceLink.value);
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
disableRemotePlaybackOnManagedMediaSource(
|
|
553
|
+
mediaElement,
|
|
554
|
+
this._currentMediaSourceCanceller.signal,
|
|
555
|
+
);
|
|
556
|
+
mediaSourceStatus.setValue(MediaSourceInitializationStatus.Attached);
|
|
557
|
+
}
|
|
536
558
|
},
|
|
537
|
-
|
|
559
|
+
{ emitCurrentValue: true, clearSignal: this._initCanceller.signal },
|
|
538
560
|
);
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
561
|
+
break;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
case CoreMessageType.Warning:
|
|
565
|
+
if (this._currentContentInfo?.contentId !== msgData.contentId) {
|
|
542
566
|
return;
|
|
543
567
|
}
|
|
544
|
-
this.
|
|
545
|
-
|
|
546
|
-
};
|
|
547
|
-
}
|
|
568
|
+
this.trigger("warning", formatCoreError(msgData.value));
|
|
569
|
+
break;
|
|
548
570
|
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
571
|
+
case CoreMessageType.Error:
|
|
572
|
+
if (this._currentContentInfo?.contentId !== msgData.contentId) {
|
|
573
|
+
return;
|
|
574
|
+
}
|
|
575
|
+
this._onFatalError(formatCoreError(msgData.value));
|
|
576
|
+
break;
|
|
577
|
+
|
|
578
|
+
case CoreMessageType.CreateMediaSource:
|
|
579
|
+
this._onCreateMediaSourceMessage(
|
|
580
|
+
msgData,
|
|
581
|
+
mediaElement,
|
|
582
|
+
mediaSourceStatus,
|
|
583
|
+
this._settings.coreInterface,
|
|
584
|
+
);
|
|
585
|
+
break;
|
|
586
|
+
|
|
587
|
+
case CoreMessageType.AddSourceBuffer:
|
|
588
|
+
{
|
|
589
|
+
if (
|
|
590
|
+
this._currentContentInfo?.mediaSourceInfo?.type !== "main" ||
|
|
591
|
+
this._currentContentInfo.mediaSourceInfo.mediaSource.id !==
|
|
592
|
+
msgData.mediaSourceId
|
|
593
|
+
) {
|
|
594
|
+
return;
|
|
595
|
+
}
|
|
596
|
+
const { mediaSource } = this._currentContentInfo.mediaSourceInfo;
|
|
597
|
+
mediaSource.addSourceBuffer(
|
|
598
|
+
msgData.value.sourceBufferType,
|
|
599
|
+
msgData.value.codec,
|
|
600
|
+
);
|
|
601
|
+
}
|
|
602
|
+
break;
|
|
603
|
+
|
|
604
|
+
case CoreMessageType.SourceBufferAppend:
|
|
605
|
+
{
|
|
606
|
+
if (
|
|
607
|
+
this._currentContentInfo?.mediaSourceInfo?.type !== "main" ||
|
|
608
|
+
this._currentContentInfo.mediaSourceInfo.mediaSource.id !==
|
|
609
|
+
msgData.mediaSourceId
|
|
610
|
+
) {
|
|
611
|
+
return;
|
|
612
|
+
}
|
|
613
|
+
const { mediaSource } = this._currentContentInfo.mediaSourceInfo;
|
|
614
|
+
const sourceBuffer = arrayFind(
|
|
615
|
+
mediaSource.sourceBuffers,
|
|
616
|
+
(s) => s.type === msgData.sourceBufferType,
|
|
617
|
+
);
|
|
618
|
+
if (sourceBuffer === undefined) {
|
|
619
|
+
return;
|
|
620
|
+
}
|
|
621
|
+
sourceBuffer
|
|
622
|
+
.appendBuffer(msgData.value.data, msgData.value.params)
|
|
623
|
+
.then((buffered) => {
|
|
624
|
+
this._settings.coreInterface.sendMessage({
|
|
625
|
+
type: MainThreadMessageType.SourceBufferSuccess,
|
|
626
|
+
mediaSourceId: mediaSource.id,
|
|
627
|
+
sourceBufferType: sourceBuffer.type,
|
|
628
|
+
operationId: msgData.operationId,
|
|
629
|
+
value: { buffered },
|
|
630
|
+
});
|
|
631
|
+
})
|
|
632
|
+
.catch((error) => {
|
|
633
|
+
this._settings.coreInterface.sendMessage({
|
|
634
|
+
type: MainThreadMessageType.SourceBufferError,
|
|
635
|
+
mediaSourceId: mediaSource.id,
|
|
636
|
+
sourceBufferType: sourceBuffer.type,
|
|
637
|
+
operationId: msgData.operationId,
|
|
638
|
+
value:
|
|
639
|
+
error instanceof CancellationError
|
|
640
|
+
? { errorName: "CancellationError" }
|
|
641
|
+
: formatSourceBufferError(error).serialize(),
|
|
642
|
+
});
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
break;
|
|
646
|
+
|
|
647
|
+
case CoreMessageType.SourceBufferRemove:
|
|
648
|
+
{
|
|
649
|
+
if (
|
|
650
|
+
this._currentContentInfo?.mediaSourceInfo?.type !== "main" ||
|
|
651
|
+
this._currentContentInfo.mediaSourceInfo.mediaSource.id !==
|
|
652
|
+
msgData.mediaSourceId
|
|
653
|
+
) {
|
|
654
|
+
return;
|
|
655
|
+
}
|
|
656
|
+
const { mediaSource } = this._currentContentInfo.mediaSourceInfo;
|
|
657
|
+
const sourceBuffer = arrayFind(
|
|
658
|
+
mediaSource.sourceBuffers,
|
|
659
|
+
(s) => s.type === msgData.sourceBufferType,
|
|
660
|
+
);
|
|
661
|
+
if (sourceBuffer === undefined) {
|
|
662
|
+
return;
|
|
663
|
+
}
|
|
664
|
+
sourceBuffer
|
|
665
|
+
.remove(msgData.value.start, msgData.value.end)
|
|
666
|
+
.then((buffered) => {
|
|
667
|
+
this._settings.coreInterface.sendMessage({
|
|
668
|
+
type: MainThreadMessageType.SourceBufferSuccess,
|
|
669
|
+
mediaSourceId: mediaSource.id,
|
|
670
|
+
sourceBufferType: sourceBuffer.type,
|
|
671
|
+
operationId: msgData.operationId,
|
|
672
|
+
value: { buffered },
|
|
673
|
+
});
|
|
674
|
+
})
|
|
675
|
+
.catch((error) => {
|
|
676
|
+
this._settings.coreInterface.sendMessage({
|
|
677
|
+
type: MainThreadMessageType.SourceBufferError,
|
|
678
|
+
mediaSourceId: mediaSource.id,
|
|
679
|
+
sourceBufferType: sourceBuffer.type,
|
|
680
|
+
operationId: msgData.operationId,
|
|
681
|
+
value:
|
|
682
|
+
error instanceof CancellationError
|
|
683
|
+
? { errorName: "CancellationError" }
|
|
684
|
+
: formatSourceBufferError(error).serialize(),
|
|
685
|
+
});
|
|
686
|
+
});
|
|
687
|
+
}
|
|
688
|
+
break;
|
|
689
|
+
|
|
690
|
+
case CoreMessageType.AbortSourceBuffer:
|
|
691
|
+
{
|
|
692
|
+
if (
|
|
693
|
+
this._currentContentInfo?.mediaSourceInfo?.type !== "main" ||
|
|
694
|
+
this._currentContentInfo.mediaSourceInfo.mediaSource.id !==
|
|
695
|
+
msgData.mediaSourceId
|
|
696
|
+
) {
|
|
697
|
+
return;
|
|
698
|
+
}
|
|
699
|
+
const { mediaSource } = this._currentContentInfo.mediaSourceInfo;
|
|
700
|
+
const sourceBuffer = arrayFind(
|
|
701
|
+
mediaSource.sourceBuffers,
|
|
702
|
+
(s) => s.type === msgData.sourceBufferType,
|
|
703
|
+
);
|
|
704
|
+
if (sourceBuffer === undefined) {
|
|
705
|
+
return;
|
|
706
|
+
}
|
|
707
|
+
sourceBuffer.abort("received AbortSourceBuffer message");
|
|
708
|
+
}
|
|
709
|
+
break;
|
|
710
|
+
|
|
711
|
+
case CoreMessageType.UpdateMediaSourceDuration:
|
|
712
|
+
{
|
|
713
|
+
if (
|
|
714
|
+
this._currentContentInfo?.mediaSourceInfo?.type !== "main" ||
|
|
715
|
+
this._currentContentInfo.mediaSourceInfo.mediaSource.id !==
|
|
716
|
+
msgData.mediaSourceId
|
|
717
|
+
) {
|
|
718
|
+
return;
|
|
719
|
+
}
|
|
720
|
+
const { mediaSource } = this._currentContentInfo.mediaSourceInfo;
|
|
721
|
+
if (mediaSource?.id !== msgData.mediaSourceId) {
|
|
722
|
+
return;
|
|
723
|
+
}
|
|
724
|
+
mediaSource.setDuration(msgData.value.duration, msgData.value.isRealEndKnown);
|
|
725
|
+
}
|
|
726
|
+
break;
|
|
727
|
+
|
|
728
|
+
case CoreMessageType.InterruptMediaSourceDurationUpdate:
|
|
729
|
+
{
|
|
730
|
+
if (
|
|
731
|
+
this._currentContentInfo?.mediaSourceInfo?.type !== "main" ||
|
|
732
|
+
this._currentContentInfo.mediaSourceInfo.mediaSource.id !==
|
|
733
|
+
msgData.mediaSourceId
|
|
734
|
+
) {
|
|
735
|
+
return;
|
|
736
|
+
}
|
|
737
|
+
const { mediaSource } = this._currentContentInfo.mediaSourceInfo;
|
|
738
|
+
if (mediaSource?.id !== msgData.mediaSourceId) {
|
|
739
|
+
return;
|
|
740
|
+
}
|
|
741
|
+
mediaSource.interruptDurationSetting(
|
|
742
|
+
"received InterrupMediaSourceDurationUpdate message",
|
|
743
|
+
);
|
|
744
|
+
}
|
|
745
|
+
break;
|
|
746
|
+
|
|
747
|
+
case CoreMessageType.EndOfStream:
|
|
748
|
+
{
|
|
749
|
+
if (
|
|
750
|
+
this._currentContentInfo?.mediaSourceInfo?.type !== "main" ||
|
|
751
|
+
this._currentContentInfo.mediaSourceInfo.mediaSource.id !==
|
|
752
|
+
msgData.mediaSourceId
|
|
753
|
+
) {
|
|
754
|
+
return;
|
|
755
|
+
}
|
|
756
|
+
const { mediaSource } = this._currentContentInfo.mediaSourceInfo;
|
|
757
|
+
mediaSource.maintainEndOfStream();
|
|
758
|
+
}
|
|
759
|
+
break;
|
|
760
|
+
|
|
761
|
+
case CoreMessageType.InterruptEndOfStream:
|
|
762
|
+
{
|
|
763
|
+
if (
|
|
764
|
+
this._currentContentInfo?.mediaSourceInfo?.type !== "main" ||
|
|
765
|
+
this._currentContentInfo.mediaSourceInfo.mediaSource.id !==
|
|
766
|
+
msgData.mediaSourceId
|
|
767
|
+
) {
|
|
768
|
+
return;
|
|
769
|
+
}
|
|
770
|
+
const { mediaSource } = this._currentContentInfo.mediaSourceInfo;
|
|
771
|
+
mediaSource.stopEndOfStream();
|
|
772
|
+
}
|
|
773
|
+
break;
|
|
774
|
+
|
|
775
|
+
case CoreMessageType.DisposeMediaSource:
|
|
776
|
+
{
|
|
777
|
+
if (
|
|
778
|
+
this._currentContentInfo?.mediaSourceInfo?.type !== "main" ||
|
|
779
|
+
this._currentContentInfo.mediaSourceInfo.mediaSource.id !==
|
|
780
|
+
msgData.mediaSourceId
|
|
781
|
+
) {
|
|
782
|
+
return;
|
|
783
|
+
}
|
|
784
|
+
const { mediaSource } = this._currentContentInfo.mediaSourceInfo;
|
|
785
|
+
mediaSource.dispose("DisposeMediaSource message");
|
|
786
|
+
}
|
|
787
|
+
break;
|
|
598
788
|
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
789
|
+
case CoreMessageType.NeedsBufferFlush: {
|
|
790
|
+
if (this._currentContentInfo?.contentId !== msgData.contentId) {
|
|
791
|
+
return;
|
|
792
|
+
}
|
|
793
|
+
const lastObservation = playbackObserver.getReference().getValue();
|
|
794
|
+
const currentTime = lastObservation.position.isAwaitingFuturePosition()
|
|
795
|
+
? lastObservation.position.getWanted()
|
|
796
|
+
: mediaElement.currentTime;
|
|
797
|
+
const relativeResumingPosition = msgData.value?.relativeResumingPosition ?? 0;
|
|
798
|
+
const canBeApproximateSeek = Boolean(
|
|
799
|
+
msgData.value?.relativePosHasBeenDefaulted,
|
|
800
|
+
);
|
|
801
|
+
let wantedSeekingTime: number;
|
|
605
802
|
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
803
|
+
if (relativeResumingPosition === 0 && canBeApproximateSeek) {
|
|
804
|
+
// in case relativeResumingPosition is 0, we still perform
|
|
805
|
+
// a tiny seek to be sure that the browser will correclty reload the video.
|
|
806
|
+
wantedSeekingTime = currentTime + 0.001;
|
|
807
|
+
} else {
|
|
808
|
+
wantedSeekingTime = currentTime + relativeResumingPosition;
|
|
809
|
+
}
|
|
810
|
+
playbackObserver.setCurrentTime(wantedSeekingTime);
|
|
811
|
+
break;
|
|
812
|
+
}
|
|
609
813
|
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
814
|
+
case CoreMessageType.ActivePeriodChanged: {
|
|
815
|
+
if (
|
|
816
|
+
this._currentContentInfo?.contentId !== msgData.contentId ||
|
|
817
|
+
this._currentContentInfo.manifest === null
|
|
818
|
+
) {
|
|
819
|
+
return;
|
|
820
|
+
}
|
|
821
|
+
const period = arrayFind(
|
|
822
|
+
this._currentContentInfo.manifest.periods,
|
|
823
|
+
(p) => p.id === msgData.value.periodId,
|
|
824
|
+
);
|
|
825
|
+
if (period !== undefined) {
|
|
826
|
+
this.trigger("activePeriodChanged", { period });
|
|
827
|
+
}
|
|
828
|
+
break;
|
|
829
|
+
}
|
|
623
830
|
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
831
|
+
case CoreMessageType.AdaptationChanged: {
|
|
832
|
+
if (
|
|
833
|
+
this._currentContentInfo?.contentId !== msgData.contentId ||
|
|
834
|
+
this._currentContentInfo.manifest === null
|
|
835
|
+
) {
|
|
836
|
+
return;
|
|
837
|
+
}
|
|
838
|
+
const period = arrayFind(
|
|
839
|
+
this._currentContentInfo.manifest.periods,
|
|
840
|
+
(p) => p.id === msgData.value.periodId,
|
|
841
|
+
);
|
|
842
|
+
if (period === undefined) {
|
|
843
|
+
return;
|
|
844
|
+
}
|
|
845
|
+
if (msgData.value.adaptationId === null) {
|
|
846
|
+
this.trigger("adaptationChange", {
|
|
847
|
+
period,
|
|
848
|
+
adaptation: null,
|
|
849
|
+
type: msgData.value.type,
|
|
850
|
+
});
|
|
851
|
+
return;
|
|
852
|
+
}
|
|
853
|
+
const adaptations = period.adaptations[msgData.value.type] ?? [];
|
|
854
|
+
const adaptation = arrayFind(
|
|
855
|
+
adaptations,
|
|
856
|
+
(a) => a.id === msgData.value.adaptationId,
|
|
857
|
+
);
|
|
858
|
+
if (adaptation !== undefined) {
|
|
859
|
+
this.trigger("adaptationChange", {
|
|
860
|
+
period,
|
|
861
|
+
adaptation,
|
|
862
|
+
type: msgData.value.type,
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
break;
|
|
866
|
+
}
|
|
627
867
|
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
cancelSignal,
|
|
868
|
+
case CoreMessageType.RepresentationChanged: {
|
|
869
|
+
if (
|
|
870
|
+
this._currentContentInfo?.contentId !== msgData.contentId ||
|
|
871
|
+
this._currentContentInfo.manifest === null
|
|
872
|
+
) {
|
|
873
|
+
return;
|
|
874
|
+
}
|
|
875
|
+
const period = arrayFind(
|
|
876
|
+
this._currentContentInfo.manifest.periods,
|
|
877
|
+
(p) => p.id === msgData.value.periodId,
|
|
639
878
|
);
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
879
|
+
if (period === undefined) {
|
|
880
|
+
return;
|
|
881
|
+
}
|
|
882
|
+
if (msgData.value.representationId === null) {
|
|
883
|
+
this.trigger("representationChange", {
|
|
884
|
+
period,
|
|
885
|
+
type: msgData.value.type,
|
|
886
|
+
representation: null,
|
|
887
|
+
});
|
|
888
|
+
return;
|
|
889
|
+
}
|
|
890
|
+
const adaptations = period.adaptations[msgData.value.type] ?? [];
|
|
891
|
+
const adaptation = arrayFind(
|
|
892
|
+
adaptations,
|
|
893
|
+
(a) => a.id === msgData.value.adaptationId,
|
|
646
894
|
);
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
895
|
+
if (adaptation === undefined) {
|
|
896
|
+
return;
|
|
897
|
+
}
|
|
898
|
+
const representation = arrayFind(
|
|
899
|
+
adaptation.representations,
|
|
900
|
+
(r) => r.id === msgData.value.representationId,
|
|
653
901
|
);
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
902
|
+
if (representation !== undefined) {
|
|
903
|
+
this.trigger("representationChange", {
|
|
904
|
+
period,
|
|
905
|
+
type: msgData.value.type,
|
|
906
|
+
representation,
|
|
907
|
+
});
|
|
908
|
+
}
|
|
909
|
+
break;
|
|
658
910
|
}
|
|
659
|
-
},
|
|
660
|
-
{ clearSignal: cancelSignal, emitCurrentValue: true },
|
|
661
|
-
);
|
|
662
911
|
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
autoPlay,
|
|
667
|
-
manifest,
|
|
668
|
-
mediaSource,
|
|
669
|
-
textDisplayer,
|
|
670
|
-
initialPlayPerformed,
|
|
671
|
-
speed,
|
|
672
|
-
},
|
|
673
|
-
cancelSignal,
|
|
674
|
-
);
|
|
675
|
-
|
|
676
|
-
this._cmcdDataBuilder?.startMonitoringPlayback(coreObserver);
|
|
677
|
-
cancelSignal.register(() => {
|
|
678
|
-
this._cmcdDataBuilder?.stopMonitoringPlayback();
|
|
679
|
-
});
|
|
680
|
-
|
|
681
|
-
const rebufferingController = this._createRebufferingController(
|
|
682
|
-
playbackObserver,
|
|
683
|
-
manifest,
|
|
684
|
-
speed,
|
|
685
|
-
cancelSignal,
|
|
686
|
-
);
|
|
687
|
-
const freezeResolver = new FreezeResolver(segmentSinksStore);
|
|
688
|
-
|
|
689
|
-
if (mayMediaElementFailOnUndecipherableData()) {
|
|
690
|
-
// On some devices, just reload immediately when data become undecipherable
|
|
691
|
-
manifest.addEventListener(
|
|
692
|
-
"decipherabilityUpdate",
|
|
693
|
-
(elts) => {
|
|
694
|
-
if (elts.some((e) => e.representation.decipherable !== true)) {
|
|
695
|
-
reloadMediaSource(0, undefined, undefined);
|
|
912
|
+
case CoreMessageType.EncryptionDataEncountered:
|
|
913
|
+
if (this._currentContentInfo?.contentId !== msgData.contentId) {
|
|
914
|
+
return;
|
|
696
915
|
}
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
);
|
|
700
|
-
}
|
|
916
|
+
lastContentProtection.setValue(msgData.value);
|
|
917
|
+
break;
|
|
701
918
|
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
919
|
+
case CoreMessageType.ManifestReady: {
|
|
920
|
+
if (this._currentContentInfo?.contentId !== msgData.contentId) {
|
|
921
|
+
return;
|
|
922
|
+
}
|
|
923
|
+
const manifest = msgData.value.manifest;
|
|
924
|
+
this._currentContentInfo.manifest = manifest;
|
|
925
|
+
this._updateCodecSupport(manifest, mediaElement);
|
|
926
|
+
this._startPlaybackIfReady(playbackStartParams);
|
|
927
|
+
break;
|
|
708
928
|
}
|
|
709
929
|
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
const
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
: autoPlay;
|
|
720
|
-
onReloadOrder({ position, autoPlay: autoplay });
|
|
721
|
-
};
|
|
722
|
-
|
|
723
|
-
handleFreezeResolution(freezeResolution, {
|
|
724
|
-
enableRepresentationAvoidance: this._initSettings.enableRepresentationAvoidance,
|
|
725
|
-
manifest,
|
|
726
|
-
triggerReload,
|
|
727
|
-
playbackObserver,
|
|
728
|
-
});
|
|
729
|
-
},
|
|
730
|
-
{ clearSignal: cancelSignal },
|
|
731
|
-
);
|
|
930
|
+
case CoreMessageType.ManifestUpdate: {
|
|
931
|
+
if (this._currentContentInfo?.contentId !== msgData.contentId) {
|
|
932
|
+
return;
|
|
933
|
+
}
|
|
934
|
+
const manifest = this._currentContentInfo?.manifest;
|
|
935
|
+
if (isNullOrUndefined(manifest)) {
|
|
936
|
+
log.error("Init", "Manifest update but no Manifest loaded");
|
|
937
|
+
return;
|
|
938
|
+
}
|
|
732
939
|
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
940
|
+
if (manifest.manifestFormat === ManifestMetadataFormat.MetadataObject) {
|
|
941
|
+
// If we're currently in possession of an `IManifestMetadata`, we need
|
|
942
|
+
// to replicate the updates sent by the Core on it.
|
|
943
|
+
// If we rely on **the** `Manifest` instance directly however, we already
|
|
944
|
+
// share it with Core and as such don't need to replicate the updates.
|
|
945
|
+
replicateUpdatesOnManifestMetadata(
|
|
946
|
+
manifest,
|
|
947
|
+
msgData.value.manifest,
|
|
948
|
+
msgData.value.updates,
|
|
949
|
+
);
|
|
950
|
+
}
|
|
951
|
+
this._currentContentInfo?.streamEventsEmitter?.onManifestUpdate(manifest);
|
|
745
952
|
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
* Also emits warning events if issues arise when doing so.
|
|
750
|
-
*/
|
|
751
|
-
autoPlayResult
|
|
752
|
-
.then(() => {
|
|
753
|
-
getLoadedReference(playbackObserver, false, cancelSignal).onUpdate(
|
|
754
|
-
(isLoaded, stopListening) => {
|
|
755
|
-
if (isLoaded) {
|
|
756
|
-
const fetchThumbnails = createThumbnailFetcher(
|
|
757
|
-
transport.thumbnails,
|
|
758
|
-
cdnPrioritizer,
|
|
759
|
-
);
|
|
760
|
-
stopListening();
|
|
761
|
-
this.trigger("loaded", {
|
|
762
|
-
getSegmentSinkMetrics: async () => {
|
|
763
|
-
return new Promise((resolve) =>
|
|
764
|
-
resolve(segmentSinksStore.getSegmentSinksMetrics()),
|
|
765
|
-
);
|
|
766
|
-
},
|
|
767
|
-
getThumbnailData: async (
|
|
768
|
-
periodId: string,
|
|
769
|
-
thumbnailTrackId: string,
|
|
770
|
-
time: number,
|
|
771
|
-
): Promise<IThumbnailResponse> => {
|
|
772
|
-
return getThumbnailData(
|
|
773
|
-
fetchThumbnails,
|
|
774
|
-
manifest,
|
|
775
|
-
periodId,
|
|
776
|
-
thumbnailTrackId,
|
|
777
|
-
time,
|
|
778
|
-
);
|
|
779
|
-
},
|
|
780
|
-
});
|
|
781
|
-
}
|
|
782
|
-
},
|
|
783
|
-
{ emitCurrentValue: true, clearSignal: cancelSignal },
|
|
784
|
-
);
|
|
785
|
-
})
|
|
786
|
-
.catch((err) => {
|
|
787
|
-
if (cancelSignal.isCancelled()) {
|
|
788
|
-
return; // Current loading cancelled, no need to trigger the error
|
|
953
|
+
this._updateCodecSupport(manifest, mediaElement);
|
|
954
|
+
this.trigger("manifestUpdate", msgData.value.updates);
|
|
955
|
+
break;
|
|
789
956
|
}
|
|
790
|
-
this._onFatalError(err);
|
|
791
|
-
});
|
|
792
957
|
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
segmentSinksStore,
|
|
800
|
-
segmentQueueCreator,
|
|
801
|
-
bufferOptions,
|
|
802
|
-
handleStreamOrchestratorCallbacks(),
|
|
803
|
-
cancelSignal,
|
|
804
|
-
);
|
|
958
|
+
case CoreMessageType.UpdatePlaybackRate:
|
|
959
|
+
if (this._currentContentInfo?.contentId !== msgData.contentId) {
|
|
960
|
+
return;
|
|
961
|
+
}
|
|
962
|
+
playbackObserver.setPlaybackRate(msgData.value);
|
|
963
|
+
break;
|
|
805
964
|
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
const lastObservation = playbackObserver.getReference().getValue();
|
|
816
|
-
const currentTime = lastObservation.position.isAwaitingFuturePosition()
|
|
817
|
-
? lastObservation.position.getWanted()
|
|
818
|
-
: mediaElement.currentTime;
|
|
819
|
-
const relativeResumingPosition = payload?.relativeResumingPosition ?? 0;
|
|
820
|
-
const canBeApproximateSeek = Boolean(payload?.relativePosHasBeenDefaulted);
|
|
965
|
+
case CoreMessageType.BitrateEstimateChange:
|
|
966
|
+
if (this._currentContentInfo?.contentId !== msgData.contentId) {
|
|
967
|
+
return;
|
|
968
|
+
}
|
|
969
|
+
this.trigger("bitrateEstimateChange", {
|
|
970
|
+
type: msgData.value.bufferType,
|
|
971
|
+
bitrate: msgData.value.bitrate,
|
|
972
|
+
});
|
|
973
|
+
break;
|
|
821
974
|
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
wantedSeekingTime = currentTime + 0.001;
|
|
826
|
-
} else {
|
|
827
|
-
wantedSeekingTime = currentTime + relativeResumingPosition;
|
|
975
|
+
case CoreMessageType.InbandEvent:
|
|
976
|
+
if (this._currentContentInfo?.contentId !== msgData.contentId) {
|
|
977
|
+
return;
|
|
828
978
|
}
|
|
829
|
-
|
|
979
|
+
this.trigger("inbandEvents", msgData.value);
|
|
980
|
+
break;
|
|
830
981
|
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
982
|
+
case CoreMessageType.LockedStream: {
|
|
983
|
+
if (
|
|
984
|
+
this._currentContentInfo?.contentId !== msgData.contentId ||
|
|
985
|
+
this._currentContentInfo.manifest === null
|
|
986
|
+
) {
|
|
987
|
+
return;
|
|
988
|
+
}
|
|
989
|
+
const period = arrayFind(
|
|
990
|
+
this._currentContentInfo.manifest.periods,
|
|
991
|
+
(p) => p.id === msgData.value.periodId,
|
|
992
|
+
);
|
|
993
|
+
if (period === undefined) {
|
|
994
|
+
return;
|
|
995
|
+
}
|
|
996
|
+
this._currentContentInfo.rebufferingController?.onLockedStream(
|
|
997
|
+
msgData.value.bufferType,
|
|
998
|
+
period,
|
|
999
|
+
);
|
|
1000
|
+
break;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
case CoreMessageType.PeriodStreamReady: {
|
|
1004
|
+
if (
|
|
1005
|
+
this._currentContentInfo?.contentId !== msgData.contentId ||
|
|
1006
|
+
this._currentContentInfo.manifest === null
|
|
1007
|
+
) {
|
|
1008
|
+
return;
|
|
1009
|
+
}
|
|
1010
|
+
const period = arrayFind(
|
|
1011
|
+
this._currentContentInfo.manifest.periods,
|
|
1012
|
+
(p) => p.id === msgData.value.periodId,
|
|
1013
|
+
);
|
|
1014
|
+
if (period === undefined) {
|
|
1015
|
+
return;
|
|
1016
|
+
}
|
|
1017
|
+
const ref = new SharedReference<IAdaptationChoice | null | undefined>(
|
|
1018
|
+
undefined,
|
|
1019
|
+
);
|
|
1020
|
+
ref.onUpdate(
|
|
1021
|
+
(adapChoice) => {
|
|
1022
|
+
if (this._currentContentInfo === null) {
|
|
1023
|
+
ref.finish();
|
|
1024
|
+
return;
|
|
1025
|
+
}
|
|
1026
|
+
if (!isNullOrUndefined(adapChoice)) {
|
|
1027
|
+
adapChoice.representations.onUpdate(
|
|
1028
|
+
(repChoice, stopListening) => {
|
|
1029
|
+
if (this._currentContentInfo === null) {
|
|
1030
|
+
stopListening();
|
|
1031
|
+
return;
|
|
1032
|
+
}
|
|
1033
|
+
this._settings.coreInterface.sendMessage({
|
|
1034
|
+
type: MainThreadMessageType.RepresentationUpdate,
|
|
1035
|
+
contentId: this._currentContentInfo.contentId,
|
|
1036
|
+
value: {
|
|
1037
|
+
periodId: msgData.value.periodId,
|
|
1038
|
+
adaptationId: adapChoice.adaptationId,
|
|
1039
|
+
bufferType: msgData.value.bufferType,
|
|
1040
|
+
choice: repChoice,
|
|
1041
|
+
},
|
|
1042
|
+
});
|
|
1043
|
+
},
|
|
1044
|
+
{ clearSignal: this._initCanceller.signal },
|
|
1045
|
+
);
|
|
855
1046
|
}
|
|
1047
|
+
this._settings.coreInterface.sendMessage({
|
|
1048
|
+
type: MainThreadMessageType.TrackUpdate,
|
|
1049
|
+
contentId: this._currentContentInfo.contentId,
|
|
1050
|
+
value: {
|
|
1051
|
+
periodId: msgData.value.periodId,
|
|
1052
|
+
bufferType: msgData.value.bufferType,
|
|
1053
|
+
choice: isNullOrUndefined(adapChoice)
|
|
1054
|
+
? adapChoice
|
|
1055
|
+
: {
|
|
1056
|
+
adaptationId: adapChoice.adaptationId,
|
|
1057
|
+
switchingMode: adapChoice.switchingMode,
|
|
1058
|
+
initialRepresentations: adapChoice.representations.getValue(),
|
|
1059
|
+
relativeResumingPosition: adapChoice.relativeResumingPosition,
|
|
1060
|
+
},
|
|
1061
|
+
},
|
|
1062
|
+
});
|
|
856
1063
|
},
|
|
857
|
-
{
|
|
1064
|
+
{ clearSignal: this._initCanceller.signal },
|
|
858
1065
|
);
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
streamStatusUpdate(value) {
|
|
862
|
-
// Announce discontinuities if found
|
|
863
|
-
const { period, bufferType, imminentDiscontinuity, position } = value;
|
|
864
|
-
rebufferingController.updateDiscontinuityInfo({
|
|
1066
|
+
this.trigger("periodStreamReady", {
|
|
865
1067
|
period,
|
|
866
|
-
bufferType,
|
|
867
|
-
|
|
868
|
-
position,
|
|
1068
|
+
type: msgData.value.bufferType,
|
|
1069
|
+
adaptationRef: ref,
|
|
869
1070
|
});
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
}
|
|
1071
|
+
break;
|
|
1072
|
+
}
|
|
873
1073
|
|
|
874
|
-
|
|
875
|
-
// or on the contrary that the loading resumed, announce it to the
|
|
876
|
-
// ContentTimeBoundariesObserver.
|
|
1074
|
+
case CoreMessageType.PeriodStreamCleared: {
|
|
877
1075
|
if (
|
|
878
|
-
|
|
879
|
-
|
|
1076
|
+
this._currentContentInfo?.contentId !== msgData.contentId ||
|
|
1077
|
+
this._currentContentInfo.manifest === null
|
|
880
1078
|
) {
|
|
881
|
-
|
|
882
|
-
value.hasFinishedLoading || value.isEmptyStream;
|
|
883
|
-
if (hasFinishedLoadingLastPeriod) {
|
|
884
|
-
contentTimeBoundariesObserver.onLastSegmentFinishedLoading(
|
|
885
|
-
value.bufferType,
|
|
886
|
-
);
|
|
887
|
-
} else {
|
|
888
|
-
contentTimeBoundariesObserver.onLastSegmentLoadingResume(value.bufferType);
|
|
889
|
-
}
|
|
1079
|
+
return;
|
|
890
1080
|
}
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
self._manifestFetcher.scheduleManualRefresh({
|
|
895
|
-
enablePartialRefresh: true,
|
|
896
|
-
canUseUnsafeMode: true,
|
|
897
|
-
}),
|
|
898
|
-
|
|
899
|
-
manifestMightBeOufOfSync: () => {
|
|
900
|
-
const { OUT_OF_SYNC_MANIFEST_REFRESH_DELAY } = config.getCurrent();
|
|
901
|
-
self._manifestFetcher.scheduleManualRefresh({
|
|
902
|
-
enablePartialRefresh: false,
|
|
903
|
-
canUseUnsafeMode: false,
|
|
904
|
-
delay: OUT_OF_SYNC_MANIFEST_REFRESH_DELAY,
|
|
1081
|
+
this.trigger("periodStreamCleared", {
|
|
1082
|
+
periodId: msgData.value.periodId,
|
|
1083
|
+
type: msgData.value.bufferType,
|
|
905
1084
|
});
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
lockedStream: (value) =>
|
|
909
|
-
rebufferingController.onLockedStream(value.bufferType, value.period),
|
|
1085
|
+
break;
|
|
1086
|
+
}
|
|
910
1087
|
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
1088
|
+
case CoreMessageType.DiscontinuityUpdate: {
|
|
1089
|
+
if (
|
|
1090
|
+
this._currentContentInfo?.contentId !== msgData.contentId ||
|
|
1091
|
+
this._currentContentInfo.manifest === null
|
|
1092
|
+
) {
|
|
1093
|
+
return;
|
|
915
1094
|
}
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
value.
|
|
919
|
-
value.adaptation,
|
|
1095
|
+
const period = arrayFind(
|
|
1096
|
+
this._currentContentInfo.manifest.periods,
|
|
1097
|
+
(p) => p.id === msgData.value.periodId,
|
|
920
1098
|
);
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
return; // Previous call has stopped streams due to a side-effect
|
|
1099
|
+
if (period === undefined) {
|
|
1100
|
+
log.warn("Init", "Discontinuity's Period not found", {
|
|
1101
|
+
periodId: msgData.value.periodId,
|
|
1102
|
+
});
|
|
1103
|
+
return;
|
|
927
1104
|
}
|
|
928
|
-
|
|
929
|
-
|
|
1105
|
+
this._currentContentInfo.rebufferingController?.updateDiscontinuityInfo({
|
|
1106
|
+
period,
|
|
1107
|
+
bufferType: msgData.value.bufferType,
|
|
1108
|
+
discontinuity: msgData.value.discontinuity,
|
|
1109
|
+
position: msgData.value.position,
|
|
1110
|
+
});
|
|
1111
|
+
break;
|
|
1112
|
+
}
|
|
930
1113
|
|
|
931
|
-
|
|
1114
|
+
case CoreMessageType.PushTextData: {
|
|
1115
|
+
if (this._currentContentInfo?.contentId !== msgData.contentId) {
|
|
1116
|
+
return;
|
|
1117
|
+
}
|
|
1118
|
+
if (textDisplayer === null) {
|
|
1119
|
+
log.warn("text", "Received AddTextData message but no text displayer exists");
|
|
1120
|
+
} else {
|
|
1121
|
+
try {
|
|
1122
|
+
const ranges = textDisplayer.pushTextData(msgData.value);
|
|
1123
|
+
this._settings.coreInterface.sendMessage({
|
|
1124
|
+
type: MainThreadMessageType.PushTextDataSuccess,
|
|
1125
|
+
contentId: msgData.contentId,
|
|
1126
|
+
value: { ranges },
|
|
1127
|
+
});
|
|
1128
|
+
} catch (err) {
|
|
1129
|
+
const message = err instanceof Error ? err.message : "Unknown error";
|
|
1130
|
+
this._settings.coreInterface.sendMessage({
|
|
1131
|
+
type: MainThreadMessageType.PushTextDataError,
|
|
1132
|
+
contentId: msgData.contentId,
|
|
1133
|
+
value: { message },
|
|
1134
|
+
});
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
break;
|
|
1138
|
+
}
|
|
932
1139
|
|
|
933
|
-
|
|
1140
|
+
case CoreMessageType.RemoveTextData: {
|
|
1141
|
+
if (this._currentContentInfo?.contentId !== msgData.contentId) {
|
|
1142
|
+
return;
|
|
1143
|
+
}
|
|
1144
|
+
if (textDisplayer === null) {
|
|
1145
|
+
log.warn(
|
|
1146
|
+
"text",
|
|
1147
|
+
"Received RemoveTextData message but no text displayer exists",
|
|
1148
|
+
);
|
|
1149
|
+
} else {
|
|
1150
|
+
try {
|
|
1151
|
+
const ranges = textDisplayer.removeBuffer(
|
|
1152
|
+
msgData.value.start,
|
|
1153
|
+
msgData.value.end,
|
|
1154
|
+
);
|
|
1155
|
+
this._settings.coreInterface.sendMessage({
|
|
1156
|
+
type: MainThreadMessageType.RemoveTextDataSuccess,
|
|
1157
|
+
contentId: msgData.contentId,
|
|
1158
|
+
value: { ranges },
|
|
1159
|
+
});
|
|
1160
|
+
} catch (err) {
|
|
1161
|
+
const message = err instanceof Error ? err.message : "Unknown error";
|
|
1162
|
+
this._settings.coreInterface.sendMessage({
|
|
1163
|
+
type: MainThreadMessageType.RemoveTextDataError,
|
|
1164
|
+
contentId: msgData.contentId,
|
|
1165
|
+
value: { message },
|
|
1166
|
+
});
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
break;
|
|
1170
|
+
}
|
|
934
1171
|
|
|
935
|
-
|
|
1172
|
+
case CoreMessageType.ResetTextDisplayer: {
|
|
1173
|
+
if (this._currentContentInfo?.contentId !== msgData.contentId) {
|
|
1174
|
+
return;
|
|
1175
|
+
}
|
|
1176
|
+
if (textDisplayer === null) {
|
|
1177
|
+
log.warn(
|
|
1178
|
+
"text",
|
|
1179
|
+
"Received ResetTextDisplayer message but no text displayer exists",
|
|
1180
|
+
);
|
|
1181
|
+
} else {
|
|
1182
|
+
textDisplayer.reset();
|
|
1183
|
+
}
|
|
1184
|
+
break;
|
|
1185
|
+
}
|
|
936
1186
|
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
return; // Previous call has stopped streams due to a side-effect
|
|
1187
|
+
case CoreMessageType.StopTextDisplayer: {
|
|
1188
|
+
if (this._currentContentInfo?.contentId !== msgData.contentId) {
|
|
1189
|
+
return;
|
|
941
1190
|
}
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
1191
|
+
if (textDisplayer === null) {
|
|
1192
|
+
log.warn(
|
|
1193
|
+
"text",
|
|
1194
|
+
"Received StopTextDisplayer message but no text displayer exists",
|
|
1195
|
+
);
|
|
1196
|
+
} else {
|
|
1197
|
+
textDisplayer.stop("received StopTextDisplayer message");
|
|
1198
|
+
}
|
|
1199
|
+
break;
|
|
1200
|
+
}
|
|
947
1201
|
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
1202
|
+
case CoreMessageType.ReloadingMediaSource:
|
|
1203
|
+
{
|
|
1204
|
+
if (
|
|
1205
|
+
this._currentContentInfo === null ||
|
|
1206
|
+
this._currentContentInfo.mediaSourceInfo === null
|
|
1207
|
+
) {
|
|
1208
|
+
return;
|
|
1209
|
+
}
|
|
1210
|
+
const mediaSourceId =
|
|
1211
|
+
this._currentContentInfo.mediaSourceInfo.type === "main"
|
|
1212
|
+
? this._currentContentInfo.mediaSourceInfo.mediaSource.id
|
|
1213
|
+
: this._currentContentInfo.mediaSourceInfo.mediaSourceId;
|
|
952
1214
|
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
1215
|
+
if (mediaSourceId !== msgData.mediaSourceId) {
|
|
1216
|
+
return;
|
|
1217
|
+
}
|
|
1218
|
+
reloadMediaSource(
|
|
1219
|
+
msgData.value.timeOffset,
|
|
1220
|
+
msgData.value.minimumPosition,
|
|
1221
|
+
msgData.value.maximumPosition,
|
|
1222
|
+
);
|
|
1223
|
+
}
|
|
1224
|
+
break;
|
|
960
1225
|
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
coreObserver.getIsPaused() ??
|
|
971
|
-
lastObservation.paused.last;
|
|
972
|
-
onReloadOrder({ position, autoPlay: !isPaused });
|
|
973
|
-
} else {
|
|
974
|
-
const lastObservation = coreObserver.getReference().getValue();
|
|
975
|
-
const position = lastObservation.position.isAwaitingFuturePosition()
|
|
976
|
-
? lastObservation.position.getWanted()
|
|
977
|
-
: (coreObserver.getCurrentTime() ?? lastObservation.position.getPolled());
|
|
978
|
-
// simple seek close to the current position
|
|
979
|
-
// to flush the buffers
|
|
980
|
-
if (position + 0.001 < lastObservation.duration) {
|
|
981
|
-
playbackObserver.setCurrentTime(mediaElement.currentTime + 0.001);
|
|
1226
|
+
case CoreMessageType.NeedsDecipherabilityFlush:
|
|
1227
|
+
{
|
|
1228
|
+
if (this._currentContentInfo?.contentId !== msgData.contentId) {
|
|
1229
|
+
return;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
const keySystem = getKeySystemConfiguration(mediaElement);
|
|
1233
|
+
if (shouldReloadMediaSourceOnDecipherabilityUpdate(keySystem?.[0])) {
|
|
1234
|
+
notifyAndStartMediaSourceReload(0, undefined, undefined);
|
|
982
1235
|
} else {
|
|
983
|
-
playbackObserver.
|
|
1236
|
+
const lastObservation = playbackObserver.getReference().getValue();
|
|
1237
|
+
|
|
1238
|
+
const currentPosition = lastObservation.position.getWanted();
|
|
1239
|
+
|
|
1240
|
+
// simple seek close to the current position
|
|
1241
|
+
// to flush the buffers
|
|
1242
|
+
if (currentPosition + 0.001 < lastObservation.duration) {
|
|
1243
|
+
playbackObserver.setCurrentTime(mediaElement.currentTime + 0.001);
|
|
1244
|
+
} else {
|
|
1245
|
+
playbackObserver.setCurrentTime(currentPosition);
|
|
1246
|
+
}
|
|
984
1247
|
}
|
|
985
1248
|
}
|
|
986
|
-
|
|
1249
|
+
break;
|
|
987
1250
|
|
|
988
|
-
|
|
989
|
-
if (
|
|
990
|
-
self._onFatalError(self._decryptionCapabilities.value);
|
|
1251
|
+
case CoreMessageType.SegmentSinkStoreUpdate: {
|
|
1252
|
+
if (this._currentContentInfo?.contentId !== msgData.contentId) {
|
|
991
1253
|
return;
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
);
|
|
1254
|
+
}
|
|
1255
|
+
const sinkObj = this._awaitingRequests.pendingSinkMetrics.get(
|
|
1256
|
+
msgData.value.requestId,
|
|
1257
|
+
);
|
|
1258
|
+
if (sinkObj !== undefined) {
|
|
1259
|
+
sinkObj.resolve(msgData.value.segmentSinkMetrics);
|
|
1260
|
+
} else {
|
|
1261
|
+
log.error("Init", "Failed to send segment sink store update");
|
|
1262
|
+
}
|
|
1263
|
+
break;
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
case CoreMessageType.InitSuccess:
|
|
1267
|
+
case CoreMessageType.InitError:
|
|
1268
|
+
// Should already be handled by the API
|
|
1269
|
+
break;
|
|
1270
|
+
|
|
1271
|
+
case CoreMessageType.LogMessage:
|
|
1272
|
+
// Already handled by prepare's handler
|
|
1273
|
+
break;
|
|
1274
|
+
case CoreMessageType.ThumbnailDataResponse: {
|
|
1275
|
+
if (this._currentContentInfo?.contentId !== msgData.contentId) {
|
|
998
1276
|
return;
|
|
999
1277
|
}
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1278
|
+
const tObj = this._awaitingRequests.pendingThumbnailFetching.get(
|
|
1279
|
+
msgData.value.requestId,
|
|
1280
|
+
);
|
|
1281
|
+
if (tObj !== undefined) {
|
|
1282
|
+
if (msgData.value.status === "error") {
|
|
1283
|
+
tObj.reject(formatCoreError(msgData.value.error));
|
|
1284
|
+
} else {
|
|
1285
|
+
tObj.resolve(msgData.value.data);
|
|
1004
1286
|
}
|
|
1287
|
+
} else {
|
|
1288
|
+
log.error("Init", "Failed to send segment sink store update");
|
|
1005
1289
|
}
|
|
1290
|
+
break;
|
|
1291
|
+
}
|
|
1292
|
+
case CoreMessageType.AppDefined:
|
|
1293
|
+
break;
|
|
1294
|
+
default:
|
|
1295
|
+
assertUnreachable(msgData);
|
|
1296
|
+
}
|
|
1297
|
+
};
|
|
1298
|
+
|
|
1299
|
+
log.debug("Init", "addEventListener for core message");
|
|
1300
|
+
if (this._queuedCoreMessages !== null) {
|
|
1301
|
+
const bufferedMessages = this._queuedCoreMessages.slice();
|
|
1302
|
+
log.debug("Init", "Processing buffered messages", {
|
|
1303
|
+
ammount: bufferedMessages.length,
|
|
1304
|
+
});
|
|
1305
|
+
for (const message of bufferedMessages) {
|
|
1306
|
+
onmessage(message);
|
|
1307
|
+
}
|
|
1308
|
+
this._queuedCoreMessages = null;
|
|
1309
|
+
}
|
|
1310
|
+
this._settings.coreInterface.addMessageListener(onmessage);
|
|
1311
|
+
this._initCanceller.signal.register(() => {
|
|
1312
|
+
log.debug("Init", "removeEventListener for core message");
|
|
1313
|
+
this._settings.coreInterface.removeMessageListener(onmessage);
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
public dispose(reason: string | undefined): void {
|
|
1318
|
+
this._initCanceller.cancel("Init dispose");
|
|
1319
|
+
if (this._currentContentInfo !== null) {
|
|
1320
|
+
if (this._currentContentInfo.mediaSourceInfo?.type === "main") {
|
|
1321
|
+
this._currentContentInfo.mediaSourceInfo.mediaSource.dispose(reason);
|
|
1322
|
+
}
|
|
1323
|
+
this._currentContentInfo = null;
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
private _onFatalError(err: unknown) {
|
|
1328
|
+
if (this._initCanceller.isUsed()) {
|
|
1329
|
+
return;
|
|
1330
|
+
}
|
|
1331
|
+
this._initCanceller.cancel("Init dispose due to fatal Error");
|
|
1332
|
+
this.trigger("error", err);
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
private _initializeContentDecryption(
|
|
1336
|
+
mediaElement: IMediaElement,
|
|
1337
|
+
lastContentProtection: IReadOnlySharedReference<null | IContentProtection>,
|
|
1338
|
+
mediaSourceStatus: SharedReference<MediaSourceInitializationStatus>,
|
|
1339
|
+
reloadMediaSource: () => void,
|
|
1340
|
+
cancelSignal: CancellationSignal,
|
|
1341
|
+
): {
|
|
1342
|
+
statusRef: IReadOnlySharedReference<IDrmInitializationStatus>;
|
|
1343
|
+
contentDecryptor: IContentDecryptor | null;
|
|
1344
|
+
} {
|
|
1345
|
+
const { keySystems } = this._settings;
|
|
1346
|
+
|
|
1347
|
+
// TODO private?
|
|
1348
|
+
const createEmeDisabledReference = (errMsg: string) => {
|
|
1349
|
+
mediaSourceStatus.setValue(MediaSourceInitializationStatus.AttachNow);
|
|
1350
|
+
lastContentProtection.onUpdate(
|
|
1351
|
+
(data, stopListening) => {
|
|
1352
|
+
if (data === null) {
|
|
1353
|
+
// initial value
|
|
1354
|
+
return;
|
|
1355
|
+
}
|
|
1356
|
+
stopListening();
|
|
1357
|
+
const err = new EncryptedMediaError("MEDIA_IS_ENCRYPTED_ERROR", errMsg, {
|
|
1358
|
+
keyStatuses: undefined,
|
|
1359
|
+
keySystemConfiguration: undefined,
|
|
1360
|
+
keySystem: undefined,
|
|
1361
|
+
});
|
|
1362
|
+
this._onFatalError(err);
|
|
1006
1363
|
},
|
|
1364
|
+
{ clearSignal: cancelSignal },
|
|
1365
|
+
);
|
|
1366
|
+
const ref = new SharedReference({
|
|
1367
|
+
initializationState: {
|
|
1368
|
+
type: "initialized" as const,
|
|
1369
|
+
value: null,
|
|
1370
|
+
},
|
|
1371
|
+
contentDecryptor: null,
|
|
1372
|
+
drmSystemId: undefined,
|
|
1373
|
+
});
|
|
1374
|
+
ref.finish(); // We know that no new value will be triggered
|
|
1375
|
+
return { statusRef: ref, contentDecryptor: null };
|
|
1376
|
+
};
|
|
1007
1377
|
|
|
1008
|
-
|
|
1009
|
-
|
|
1378
|
+
if (keySystems.length === 0) {
|
|
1379
|
+
return createEmeDisabledReference("No `keySystems` option given.");
|
|
1380
|
+
} else if (features.decrypt === null) {
|
|
1381
|
+
return createEmeDisabledReference("EME feature not activated.");
|
|
1010
1382
|
}
|
|
1011
1383
|
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1384
|
+
const emeApi = mediaElement.FORCED_EME_API ?? getEmeApiImplementation("auto");
|
|
1385
|
+
if (emeApi === null) {
|
|
1386
|
+
return createEmeDisabledReference("EME API not available on the current page.");
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
log.debug("Init", "Creating ContentDecryptor");
|
|
1390
|
+
|
|
1391
|
+
const ContentDecryptor = features.decrypt;
|
|
1392
|
+
const contentDecryptor = new ContentDecryptor(emeApi, mediaElement, keySystems);
|
|
1393
|
+
const drmStatusRef = new SharedReference<IDrmInitializationStatus>(
|
|
1394
|
+
{
|
|
1395
|
+
initializationState: { type: "uninitialized", value: null },
|
|
1396
|
+
drmSystemId: undefined,
|
|
1397
|
+
},
|
|
1398
|
+
cancelSignal,
|
|
1399
|
+
);
|
|
1400
|
+
|
|
1401
|
+
const updateCodecSupportOnStateChange = (state: ContentDecryptorState) => {
|
|
1402
|
+
if (state > ContentDecryptorState.Initializing) {
|
|
1403
|
+
const manifest = this._currentContentInfo?.manifest;
|
|
1404
|
+
if (isNullOrUndefined(manifest)) {
|
|
1405
|
+
return;
|
|
1406
|
+
}
|
|
1407
|
+
this._updateCodecSupport(manifest, mediaElement);
|
|
1408
|
+
contentDecryptor.removeEventListener(
|
|
1409
|
+
"stateChange",
|
|
1410
|
+
updateCodecSupportOnStateChange,
|
|
1411
|
+
);
|
|
1037
1412
|
}
|
|
1038
|
-
|
|
1039
|
-
|
|
1413
|
+
};
|
|
1414
|
+
contentDecryptor.addEventListener("stateChange", updateCodecSupportOnStateChange);
|
|
1415
|
+
|
|
1416
|
+
contentDecryptor.addEventListener("keyIdsCompatibilityUpdate", (updates) => {
|
|
1417
|
+
if (
|
|
1418
|
+
this._currentContentInfo === null ||
|
|
1419
|
+
this._currentContentInfo.manifest === null
|
|
1420
|
+
) {
|
|
1421
|
+
return;
|
|
1422
|
+
}
|
|
1423
|
+
const manUpdates = updateDecipherabilityFromKeyIds(
|
|
1424
|
+
this._currentContentInfo.manifest,
|
|
1425
|
+
updates,
|
|
1426
|
+
);
|
|
1427
|
+
if (
|
|
1428
|
+
mayMediaElementFailOnUndecipherableData() &&
|
|
1429
|
+
manUpdates.some((e) => e.representation.decipherable !== true)
|
|
1430
|
+
) {
|
|
1431
|
+
reloadMediaSource();
|
|
1432
|
+
} else {
|
|
1433
|
+
this._settings.coreInterface.sendMessage({
|
|
1434
|
+
type: MainThreadMessageType.DecipherabilityStatusUpdate,
|
|
1435
|
+
contentId: this._currentContentInfo.contentId,
|
|
1436
|
+
value: manUpdates.map((s) => ({
|
|
1437
|
+
representationUniqueId: s.representation.uniqueId,
|
|
1438
|
+
decipherable: s.representation.decipherable,
|
|
1439
|
+
})),
|
|
1440
|
+
});
|
|
1040
1441
|
}
|
|
1041
|
-
|
|
1442
|
+
this.trigger("decipherabilityUpdate", manUpdates);
|
|
1443
|
+
});
|
|
1444
|
+
contentDecryptor.addEventListener("blackListProtectionData", (protData) => {
|
|
1445
|
+
if (
|
|
1446
|
+
this._currentContentInfo === null ||
|
|
1447
|
+
this._currentContentInfo.manifest === null
|
|
1448
|
+
) {
|
|
1449
|
+
return;
|
|
1450
|
+
}
|
|
1451
|
+
const manUpdates = updateDecipherabilityFromProtectionData(
|
|
1452
|
+
this._currentContentInfo.manifest,
|
|
1453
|
+
protData,
|
|
1454
|
+
);
|
|
1455
|
+
if (
|
|
1456
|
+
mayMediaElementFailOnUndecipherableData() &&
|
|
1457
|
+
manUpdates.some((e) => e.representation.decipherable !== true)
|
|
1458
|
+
) {
|
|
1459
|
+
reloadMediaSource();
|
|
1460
|
+
} else {
|
|
1461
|
+
this._settings.coreInterface.sendMessage({
|
|
1462
|
+
type: MainThreadMessageType.DecipherabilityStatusUpdate,
|
|
1463
|
+
contentId: this._currentContentInfo.contentId,
|
|
1464
|
+
value: manUpdates.map((s) => ({
|
|
1465
|
+
representationUniqueId: s.representation.uniqueId,
|
|
1466
|
+
decipherable: s.representation.decipherable,
|
|
1467
|
+
})),
|
|
1468
|
+
});
|
|
1469
|
+
}
|
|
1470
|
+
this.trigger("decipherabilityUpdate", manUpdates);
|
|
1471
|
+
});
|
|
1472
|
+
contentDecryptor.addEventListener("stateChange", (state) => {
|
|
1473
|
+
if (state === ContentDecryptorState.WaitingForAttachment) {
|
|
1474
|
+
mediaSourceStatus.onUpdate(
|
|
1475
|
+
(currStatus, stopListening) => {
|
|
1476
|
+
if (currStatus === MediaSourceInitializationStatus.Nothing) {
|
|
1477
|
+
mediaSourceStatus.setValue(MediaSourceInitializationStatus.AttachNow);
|
|
1478
|
+
} else if (currStatus === MediaSourceInitializationStatus.Attached) {
|
|
1479
|
+
stopListening();
|
|
1480
|
+
if (state === ContentDecryptorState.WaitingForAttachment) {
|
|
1481
|
+
contentDecryptor.attach();
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
},
|
|
1485
|
+
{ clearSignal: cancelSignal, emitCurrentValue: true },
|
|
1486
|
+
);
|
|
1487
|
+
} else if (state === ContentDecryptorState.ReadyForContent) {
|
|
1488
|
+
drmStatusRef.setValue({
|
|
1489
|
+
initializationState: { type: "initialized", value: null },
|
|
1490
|
+
drmSystemId: contentDecryptor.systemId,
|
|
1491
|
+
});
|
|
1492
|
+
contentDecryptor.removeEventListener("stateChange");
|
|
1493
|
+
}
|
|
1494
|
+
});
|
|
1495
|
+
|
|
1496
|
+
contentDecryptor.addEventListener("error", (error) => {
|
|
1497
|
+
this._onFatalError(error);
|
|
1498
|
+
});
|
|
1499
|
+
|
|
1500
|
+
contentDecryptor.addEventListener("warning", (error) => {
|
|
1501
|
+
this.trigger("warning", error);
|
|
1502
|
+
});
|
|
1503
|
+
|
|
1504
|
+
lastContentProtection.onUpdate(
|
|
1505
|
+
(data) => {
|
|
1506
|
+
if (data === null) {
|
|
1507
|
+
return;
|
|
1508
|
+
}
|
|
1509
|
+
contentDecryptor.onInitializationData(data);
|
|
1510
|
+
},
|
|
1511
|
+
{ clearSignal: cancelSignal },
|
|
1512
|
+
);
|
|
1513
|
+
|
|
1514
|
+
cancelSignal.register((err) => {
|
|
1515
|
+
contentDecryptor.dispose(err.reason);
|
|
1516
|
+
});
|
|
1517
|
+
|
|
1518
|
+
return { statusRef: drmStatusRef, contentDecryptor };
|
|
1519
|
+
}
|
|
1520
|
+
/**
|
|
1521
|
+
* Retrieves all unknown codecs from the current manifest, checks these unknown codecs
|
|
1522
|
+
* to determine if they are supported, updates the manifest with the support
|
|
1523
|
+
* status of these codecs, and forwards the list of supported codecs to core.
|
|
1524
|
+
* @param manifest
|
|
1525
|
+
*/
|
|
1526
|
+
private _updateCodecSupport(manifest: IManifestMetadata, mediaElement: IMediaElement) {
|
|
1527
|
+
try {
|
|
1528
|
+
const updatedCodecs = updateManifestCodecSupport(
|
|
1529
|
+
manifest,
|
|
1530
|
+
this._currentContentInfo?.contentDecryptor ?? null,
|
|
1531
|
+
mediaElement,
|
|
1532
|
+
this._currentContentInfo?.useMseInWorker ?? false,
|
|
1533
|
+
);
|
|
1534
|
+
if (updatedCodecs.length > 0) {
|
|
1535
|
+
this._settings.coreInterface.sendMessage({
|
|
1536
|
+
type: MainThreadMessageType.CodecSupportUpdate,
|
|
1537
|
+
value: updatedCodecs,
|
|
1538
|
+
});
|
|
1539
|
+
// TODO what if one day the core updates codec support by itself?
|
|
1540
|
+
// We wouldn't know...
|
|
1541
|
+
this.trigger("codecSupportUpdate", null);
|
|
1542
|
+
}
|
|
1543
|
+
} catch (err) {
|
|
1544
|
+
this._onFatalError(err);
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
private _hasTextBufferFeature(): boolean {
|
|
1549
|
+
return (
|
|
1550
|
+
(this._settings.textTrackOptions.textTrackMode === "html" &&
|
|
1551
|
+
features.htmlTextDisplayer !== null) ||
|
|
1552
|
+
features.nativeTextDisplayer !== null
|
|
1553
|
+
);
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
private _reload(
|
|
1557
|
+
mediaElement: IMediaElement,
|
|
1558
|
+
textDisplayer: ITextDisplayer | null,
|
|
1559
|
+
playbackObserver: IMediaElementPlaybackObserver,
|
|
1560
|
+
mediaSourceStatus: SharedReference<MediaSourceInitializationStatus>,
|
|
1561
|
+
position: number,
|
|
1562
|
+
autoPlay: boolean,
|
|
1563
|
+
) {
|
|
1564
|
+
this._currentMediaSourceCanceller.cancel("Init MediaSource Reload");
|
|
1565
|
+
this._currentMediaSourceCanceller = new TaskCanceller("Init MediaSource");
|
|
1566
|
+
this._currentMediaSourceCanceller.linkToSignal(this._initCanceller.signal);
|
|
1567
|
+
mediaSourceStatus.setValue(MediaSourceInitializationStatus.AttachNow);
|
|
1568
|
+
this.trigger("reloadingMediaSource", { position, autoPlay });
|
|
1569
|
+
|
|
1570
|
+
mediaSourceStatus.onUpdate(
|
|
1571
|
+
(status, stopListeningMSStatusUpdates) => {
|
|
1572
|
+
if (status !== MediaSourceInitializationStatus.Attached) {
|
|
1573
|
+
return;
|
|
1574
|
+
}
|
|
1575
|
+
stopListeningMSStatusUpdates();
|
|
1576
|
+
const corePlaybackObserver = this._setUpModulesOnNewMediaSource(
|
|
1577
|
+
{
|
|
1578
|
+
initialTime: position,
|
|
1579
|
+
autoPlay,
|
|
1580
|
+
mediaElement,
|
|
1581
|
+
textDisplayer,
|
|
1582
|
+
playbackObserver,
|
|
1583
|
+
},
|
|
1584
|
+
this._currentMediaSourceCanceller.signal,
|
|
1585
|
+
);
|
|
1586
|
+
|
|
1587
|
+
if (
|
|
1588
|
+
!this._currentMediaSourceCanceller.isUsed() &&
|
|
1589
|
+
corePlaybackObserver !== null &&
|
|
1590
|
+
this._currentContentInfo !== null
|
|
1591
|
+
) {
|
|
1592
|
+
const contentId = this._currentContentInfo.contentId;
|
|
1593
|
+
corePlaybackObserver.listen(
|
|
1594
|
+
(obs) => {
|
|
1595
|
+
this._settings.coreInterface.sendMessage({
|
|
1596
|
+
type: MainThreadMessageType.PlaybackObservation,
|
|
1597
|
+
contentId,
|
|
1598
|
+
value: objectAssign(obs, {
|
|
1599
|
+
position: obs.position.serialize(),
|
|
1600
|
+
}),
|
|
1601
|
+
});
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
includeLastObservation: true,
|
|
1605
|
+
clearSignal: this._currentMediaSourceCanceller.signal,
|
|
1606
|
+
},
|
|
1607
|
+
);
|
|
1608
|
+
}
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
clearSignal: this._currentMediaSourceCanceller.signal,
|
|
1612
|
+
emitCurrentValue: true,
|
|
1613
|
+
},
|
|
1614
|
+
);
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
* Start-up modules and mechanisms (initial seek, auto-play etc.) needed each
|
|
1619
|
+
* time a content is loaded AND re-loaded on a `HTMLMediaElement`, when the
|
|
1620
|
+
* manifest is known.
|
|
1621
|
+
*
|
|
1622
|
+
* Note that this does not include reacting to incoming core messages nor
|
|
1623
|
+
* sending them, those actions have to be handled separately.
|
|
1624
|
+
*
|
|
1625
|
+
* @param {Object} parameters
|
|
1626
|
+
* @param {Object} cancelSignal
|
|
1627
|
+
* @returns {Object|null} - Playback Observer created for this content. `null`
|
|
1628
|
+
* only if playback initialization failed (most likely because it has been
|
|
1629
|
+
* cancelled).
|
|
1630
|
+
*/
|
|
1631
|
+
private _setUpModulesOnNewMediaSource(
|
|
1632
|
+
parameters: {
|
|
1633
|
+
initialTime: number;
|
|
1634
|
+
autoPlay: boolean;
|
|
1635
|
+
mediaElement: IMediaElement;
|
|
1636
|
+
textDisplayer: ITextDisplayer | null;
|
|
1637
|
+
playbackObserver: IMediaElementPlaybackObserver;
|
|
1638
|
+
},
|
|
1639
|
+
cancelSignal: CancellationSignal,
|
|
1640
|
+
): IReadOnlyPlaybackObserver<ICorePlaybackObservation> | null {
|
|
1641
|
+
if (cancelSignal.isCancelled()) {
|
|
1642
|
+
return null;
|
|
1643
|
+
}
|
|
1644
|
+
if (this._currentContentInfo === null) {
|
|
1645
|
+
log.error("Init", "Setting up modules without a contentId");
|
|
1646
|
+
return null;
|
|
1647
|
+
}
|
|
1648
|
+
if (this._currentContentInfo.manifest === null) {
|
|
1649
|
+
log.error("Init", "Setting up modules without a loaded Manifest");
|
|
1650
|
+
return null;
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
const { manifest, mediaSourceInfo } = this._currentContentInfo;
|
|
1654
|
+
const { speed } = this._settings;
|
|
1655
|
+
const { initialTime, autoPlay, mediaElement, textDisplayer, playbackObserver } =
|
|
1656
|
+
parameters;
|
|
1657
|
+
this._currentContentInfo.initialTime = initialTime;
|
|
1658
|
+
this._currentContentInfo.autoPlay = autoPlay;
|
|
1659
|
+
|
|
1660
|
+
const { autoPlayResult, initialPlayPerformed } = performInitialSeekAndPlay(
|
|
1661
|
+
{
|
|
1662
|
+
mediaElement,
|
|
1663
|
+
playbackObserver,
|
|
1664
|
+
startTime: initialTime,
|
|
1665
|
+
mustAutoPlay: autoPlay,
|
|
1666
|
+
onWarning: (err) => this.trigger("warning", err),
|
|
1667
|
+
isDirectfile: false,
|
|
1668
|
+
},
|
|
1669
|
+
cancelSignal,
|
|
1670
|
+
);
|
|
1671
|
+
this._currentContentInfo.initialPlayPerformed = initialPlayPerformed;
|
|
1672
|
+
const corePlaybackObserver = createCorePlaybackObserver(
|
|
1673
|
+
playbackObserver,
|
|
1674
|
+
{
|
|
1675
|
+
autoPlay,
|
|
1676
|
+
initialPlayPerformed,
|
|
1677
|
+
manifest,
|
|
1678
|
+
mediaSource:
|
|
1679
|
+
mediaSourceInfo?.type === "main" ? mediaSourceInfo.mediaSource : null,
|
|
1680
|
+
speed,
|
|
1681
|
+
textDisplayer,
|
|
1682
|
+
},
|
|
1683
|
+
cancelSignal,
|
|
1684
|
+
);
|
|
1685
|
+
|
|
1686
|
+
if (cancelSignal.isCancelled()) {
|
|
1687
|
+
return null;
|
|
1042
1688
|
}
|
|
1043
|
-
}
|
|
1044
1689
|
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
* Various methods from that class need then to be called at various events
|
|
1050
|
-
* (see `RebufferingController` definition).
|
|
1051
|
-
*
|
|
1052
|
-
* This function also handles the `RebufferingController`'s events:
|
|
1053
|
-
* - emit "stalled" events when stalling situations cannot be prevented,
|
|
1054
|
-
* - emit "unstalled" events when we could get out of one,
|
|
1055
|
-
* - emit "warning" on various rebuffering-related minor issues
|
|
1056
|
-
* like discontinuity skipping.
|
|
1057
|
-
* @param {Object} playbackObserver
|
|
1058
|
-
* @param {Object} manifest
|
|
1059
|
-
* @param {Object} speed
|
|
1060
|
-
* @param {Object} cancelSignal
|
|
1061
|
-
* @returns {Object}
|
|
1062
|
-
*/
|
|
1063
|
-
private _createRebufferingController(
|
|
1064
|
-
playbackObserver: IMediaElementPlaybackObserver,
|
|
1065
|
-
manifest: IManifest,
|
|
1066
|
-
speed: IReadOnlySharedReference<number>,
|
|
1067
|
-
cancelSignal: CancellationSignal,
|
|
1068
|
-
): RebufferingController {
|
|
1690
|
+
/**
|
|
1691
|
+
* Class trying to avoid various stalling situations, emitting "stalled"
|
|
1692
|
+
* events when it cannot, as well as "unstalled" events when it get out of one.
|
|
1693
|
+
*/
|
|
1069
1694
|
const rebufferingController = new RebufferingController(
|
|
1070
1695
|
playbackObserver,
|
|
1071
1696
|
manifest,
|
|
1072
1697
|
speed,
|
|
1073
1698
|
);
|
|
1074
|
-
// Bubble-up events
|
|
1075
1699
|
rebufferingController.addEventListener("stalled", (evt) =>
|
|
1076
1700
|
this.trigger("stalled", evt),
|
|
1077
1701
|
);
|
|
@@ -1081,105 +1705,417 @@ export default class MediaSourceContentInitializer extends ContentInitializer {
|
|
|
1081
1705
|
rebufferingController.addEventListener("warning", (err) =>
|
|
1082
1706
|
this.trigger("warning", err),
|
|
1083
1707
|
);
|
|
1084
|
-
cancelSignal.register(() =>
|
|
1708
|
+
cancelSignal.register((err) => {
|
|
1709
|
+
rebufferingController.destroy(err.reason);
|
|
1710
|
+
});
|
|
1085
1711
|
rebufferingController.start();
|
|
1086
|
-
|
|
1712
|
+
this._currentContentInfo.rebufferingController = rebufferingController;
|
|
1713
|
+
|
|
1714
|
+
const currentContentInfo = this._currentContentInfo;
|
|
1715
|
+
initialPlayPerformed.onUpdate(
|
|
1716
|
+
(isPerformed, stopListening) => {
|
|
1717
|
+
if (isPerformed) {
|
|
1718
|
+
stopListening();
|
|
1719
|
+
const streamEventsEmitter = new StreamEventsEmitter(manifest, playbackObserver);
|
|
1720
|
+
currentContentInfo.streamEventsEmitter = streamEventsEmitter;
|
|
1721
|
+
streamEventsEmitter.addEventListener(
|
|
1722
|
+
"event",
|
|
1723
|
+
(payload) => {
|
|
1724
|
+
this.trigger("streamEvent", payload);
|
|
1725
|
+
},
|
|
1726
|
+
cancelSignal,
|
|
1727
|
+
);
|
|
1728
|
+
streamEventsEmitter.addEventListener(
|
|
1729
|
+
"eventSkip",
|
|
1730
|
+
(payload) => {
|
|
1731
|
+
this.trigger("streamEventSkip", payload);
|
|
1732
|
+
},
|
|
1733
|
+
cancelSignal,
|
|
1734
|
+
);
|
|
1735
|
+
streamEventsEmitter.start();
|
|
1736
|
+
cancelSignal.register((err) => {
|
|
1737
|
+
streamEventsEmitter.stop(err.reason);
|
|
1738
|
+
});
|
|
1739
|
+
}
|
|
1740
|
+
},
|
|
1741
|
+
{ clearSignal: cancelSignal, emitCurrentValue: true },
|
|
1742
|
+
);
|
|
1743
|
+
|
|
1744
|
+
const _getSegmentSinkMetrics = async (): Promise<ISegmentSinkMetrics | undefined> => {
|
|
1745
|
+
this._awaitingRequests.nextRequestId++;
|
|
1746
|
+
const requestId = this._awaitingRequests.nextRequestId;
|
|
1747
|
+
this._settings.coreInterface.sendMessage({
|
|
1748
|
+
type: MainThreadMessageType.PullSegmentSinkStoreInfos,
|
|
1749
|
+
value: { requestId },
|
|
1750
|
+
});
|
|
1751
|
+
return new Promise((resolve, reject) => {
|
|
1752
|
+
const rejectFn = (err: CancellationError) => {
|
|
1753
|
+
cancelSignal.deregister(rejectFn);
|
|
1754
|
+
this._awaitingRequests.pendingSinkMetrics.delete(requestId);
|
|
1755
|
+
return reject(err);
|
|
1756
|
+
};
|
|
1757
|
+
this._awaitingRequests.pendingSinkMetrics.set(requestId, {
|
|
1758
|
+
resolve: (value: ISegmentSinkMetrics | undefined) => {
|
|
1759
|
+
cancelSignal.deregister(rejectFn);
|
|
1760
|
+
this._awaitingRequests.pendingSinkMetrics.delete(requestId);
|
|
1761
|
+
resolve(value);
|
|
1762
|
+
},
|
|
1763
|
+
});
|
|
1764
|
+
cancelSignal.register(rejectFn);
|
|
1765
|
+
});
|
|
1766
|
+
};
|
|
1767
|
+
const _getThumbnailsData = async (
|
|
1768
|
+
periodId: string,
|
|
1769
|
+
thumbnailTrackId: string,
|
|
1770
|
+
time: number,
|
|
1771
|
+
): Promise<IThumbnailResponse> => {
|
|
1772
|
+
if (this._currentContentInfo === null) {
|
|
1773
|
+
return Promise.reject(new Error("Cannot fetch thumbnails: No content loaded."));
|
|
1774
|
+
}
|
|
1775
|
+
this._awaitingRequests.nextRequestId++;
|
|
1776
|
+
const requestId = this._awaitingRequests.nextRequestId;
|
|
1777
|
+
this._settings.coreInterface.sendMessage({
|
|
1778
|
+
type: MainThreadMessageType.ThumbnailDataRequest,
|
|
1779
|
+
contentId: this._currentContentInfo.contentId,
|
|
1780
|
+
value: { requestId, periodId, thumbnailTrackId, time },
|
|
1781
|
+
});
|
|
1782
|
+
|
|
1783
|
+
return new Promise((resolve, reject) => {
|
|
1784
|
+
const rejectFn = (err: CancellationError) => {
|
|
1785
|
+
cleanUp();
|
|
1786
|
+
reject(err);
|
|
1787
|
+
};
|
|
1788
|
+
const cleanUp = () => {
|
|
1789
|
+
cancelSignal.deregister(rejectFn);
|
|
1790
|
+
this._awaitingRequests.pendingThumbnailFetching.delete(requestId);
|
|
1791
|
+
};
|
|
1792
|
+
|
|
1793
|
+
this._awaitingRequests.pendingThumbnailFetching.set(requestId, {
|
|
1794
|
+
resolve: (value: IThumbnailResponse) => {
|
|
1795
|
+
cleanUp();
|
|
1796
|
+
resolve(value);
|
|
1797
|
+
},
|
|
1798
|
+
reject: (value: unknown) => {
|
|
1799
|
+
cleanUp();
|
|
1800
|
+
reject(value);
|
|
1801
|
+
},
|
|
1802
|
+
});
|
|
1803
|
+
cancelSignal.register(rejectFn);
|
|
1804
|
+
});
|
|
1805
|
+
};
|
|
1806
|
+
/**
|
|
1807
|
+
* Emit a "loaded" events once the initial play has been performed and the
|
|
1808
|
+
* media can begin playback.
|
|
1809
|
+
* Also emits warning events if issues arise when doing so.
|
|
1810
|
+
*/
|
|
1811
|
+
autoPlayResult
|
|
1812
|
+
.then(() => {
|
|
1813
|
+
getLoadedReference(playbackObserver, false, cancelSignal).onUpdate(
|
|
1814
|
+
(isLoaded, stopListening) => {
|
|
1815
|
+
if (isLoaded) {
|
|
1816
|
+
stopListening();
|
|
1817
|
+
this.trigger("loaded", {
|
|
1818
|
+
getSegmentSinkMetrics: _getSegmentSinkMetrics,
|
|
1819
|
+
getThumbnailData: _getThumbnailsData,
|
|
1820
|
+
});
|
|
1821
|
+
}
|
|
1822
|
+
},
|
|
1823
|
+
{ emitCurrentValue: true, clearSignal: cancelSignal },
|
|
1824
|
+
);
|
|
1825
|
+
})
|
|
1826
|
+
.catch((err) => {
|
|
1827
|
+
if (cancelSignal.isCancelled()) {
|
|
1828
|
+
return;
|
|
1829
|
+
}
|
|
1830
|
+
this._onFatalError(err);
|
|
1831
|
+
});
|
|
1832
|
+
|
|
1833
|
+
return corePlaybackObserver;
|
|
1087
1834
|
}
|
|
1088
1835
|
|
|
1089
1836
|
/**
|
|
1090
|
-
*
|
|
1837
|
+
* Initialize content playback if and only if those conditions are filled:
|
|
1838
|
+
* - The Manifest is fetched and stored in `this._currentContentInfo`.
|
|
1839
|
+
* - `drmInitializationStatus` indicates that DRM matters are initialized.
|
|
1840
|
+
* - `mediaSourceStatus` indicates that the MediaSource is attached to the
|
|
1841
|
+
* `mediaElement`.
|
|
1842
|
+
*
|
|
1843
|
+
* In other cases, this method will do nothing.
|
|
1844
|
+
*
|
|
1845
|
+
* To call when any of those conditions might become `true`, to start-up
|
|
1846
|
+
* playback.
|
|
1091
1847
|
*
|
|
1092
|
-
* @param {
|
|
1093
|
-
* @returns {
|
|
1848
|
+
* @param {Object} parameters
|
|
1849
|
+
* @returns {boolean} - Returns `true` if all conditions where met for
|
|
1850
|
+
* playback start.
|
|
1094
1851
|
*/
|
|
1095
|
-
private
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1852
|
+
private _startPlaybackIfReady(parameters: {
|
|
1853
|
+
mediaElement: IMediaElement;
|
|
1854
|
+
textDisplayer: ITextDisplayer | null;
|
|
1855
|
+
playbackObserver: IMediaElementPlaybackObserver;
|
|
1856
|
+
drmInitializationStatus: IReadOnlySharedReference<IDrmInitializationStatus>;
|
|
1857
|
+
mediaSourceStatus: IReadOnlySharedReference<MediaSourceInitializationStatus>;
|
|
1858
|
+
}): boolean {
|
|
1859
|
+
if (this._currentContentInfo === null || this._currentContentInfo.manifest === null) {
|
|
1860
|
+
return false;
|
|
1861
|
+
}
|
|
1862
|
+
const drmInitStatus = parameters.drmInitializationStatus.getValue();
|
|
1863
|
+
if (drmInitStatus.initializationState.type !== "initialized") {
|
|
1864
|
+
return false;
|
|
1865
|
+
}
|
|
1866
|
+
const msInitStatus = parameters.mediaSourceStatus.getValue();
|
|
1867
|
+
if (msInitStatus !== MediaSourceInitializationStatus.Attached) {
|
|
1868
|
+
return false;
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
const { contentId, manifest } = this._currentContentInfo;
|
|
1872
|
+
log.debug("Init", "Calculating initial time");
|
|
1873
|
+
const initialTime = getInitialTime(
|
|
1874
|
+
manifest,
|
|
1875
|
+
this._settings.lowLatencyMode,
|
|
1876
|
+
this._settings.startAt,
|
|
1877
|
+
);
|
|
1878
|
+
log.debug("Init", "Initial time calculated", { initialTime });
|
|
1879
|
+
const { enableFastSwitching, onCodecSwitch } = this._settings.bufferOptions;
|
|
1880
|
+
const corePlaybackObserver = this._setUpModulesOnNewMediaSource(
|
|
1881
|
+
{
|
|
1882
|
+
initialTime,
|
|
1883
|
+
autoPlay: this._settings.autoPlay,
|
|
1884
|
+
mediaElement: parameters.mediaElement,
|
|
1885
|
+
textDisplayer: parameters.textDisplayer,
|
|
1886
|
+
playbackObserver: parameters.playbackObserver,
|
|
1887
|
+
},
|
|
1888
|
+
this._currentMediaSourceCanceller.signal,
|
|
1889
|
+
);
|
|
1890
|
+
|
|
1891
|
+
if (this._currentMediaSourceCanceller.isUsed() || corePlaybackObserver === null) {
|
|
1892
|
+
return true;
|
|
1893
|
+
}
|
|
1894
|
+
const initialObservation = corePlaybackObserver.getReference().getValue();
|
|
1895
|
+
const sentInitialObservation = objectAssign(initialObservation, {
|
|
1896
|
+
position: initialObservation.position.serialize(),
|
|
1139
1897
|
});
|
|
1140
|
-
|
|
1898
|
+
this._settings.coreInterface.sendMessage({
|
|
1899
|
+
type: MainThreadMessageType.StartPreparedContent,
|
|
1900
|
+
contentId,
|
|
1901
|
+
value: {
|
|
1902
|
+
initialTime,
|
|
1903
|
+
initialObservation: sentInitialObservation,
|
|
1904
|
+
drmSystemId: drmInitStatus.drmSystemId,
|
|
1905
|
+
enableFastSwitching,
|
|
1906
|
+
onCodecSwitch,
|
|
1907
|
+
},
|
|
1908
|
+
});
|
|
1909
|
+
|
|
1910
|
+
corePlaybackObserver.listen(
|
|
1911
|
+
(obs) => {
|
|
1912
|
+
this._settings.coreInterface.sendMessage({
|
|
1913
|
+
type: MainThreadMessageType.PlaybackObservation,
|
|
1914
|
+
contentId,
|
|
1915
|
+
value: objectAssign(obs, { position: obs.position.serialize() }),
|
|
1916
|
+
});
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
includeLastObservation: false,
|
|
1920
|
+
clearSignal: this._currentMediaSourceCanceller.signal,
|
|
1921
|
+
},
|
|
1922
|
+
);
|
|
1923
|
+
this.trigger("manifestReady", manifest);
|
|
1924
|
+
return true;
|
|
1141
1925
|
}
|
|
1142
1926
|
|
|
1143
1927
|
/**
|
|
1144
|
-
*
|
|
1145
|
-
*
|
|
1146
|
-
*
|
|
1147
|
-
*
|
|
1148
|
-
* @param {Object}
|
|
1928
|
+
* Handles core messages asking to create a MediaSource.
|
|
1929
|
+
* @param {Object} msg - The core's message received.
|
|
1930
|
+
* @param {HTMLMediaElement} mediaElement - HTMLMediaElement on which the
|
|
1931
|
+
* content plays.
|
|
1932
|
+
* @param {Object} coreInterface - The interface to the core.
|
|
1149
1933
|
*/
|
|
1150
|
-
private
|
|
1151
|
-
|
|
1934
|
+
private _onCreateMediaSourceMessage(
|
|
1935
|
+
msg: ICreateMediaSourceCoreMessage,
|
|
1152
1936
|
mediaElement: IMediaElement,
|
|
1937
|
+
mediaSourceStatus: SharedReference<MediaSourceInitializationStatus>,
|
|
1938
|
+
coreInterface: CoreInterface,
|
|
1153
1939
|
): void {
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1940
|
+
if (this._currentContentInfo?.contentId !== msg.contentId) {
|
|
1941
|
+
log.info("Init", "Ignoring MediaSource attachment due to wrong `contentId`");
|
|
1942
|
+
} else {
|
|
1943
|
+
const { mediaSourceId } = msg;
|
|
1157
1944
|
try {
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1945
|
+
mediaSourceStatus.onUpdate(
|
|
1946
|
+
(currStatus, stopListening) => {
|
|
1947
|
+
if (this._currentContentInfo === null) {
|
|
1948
|
+
stopListening();
|
|
1949
|
+
return;
|
|
1950
|
+
}
|
|
1951
|
+
if (currStatus === MediaSourceInitializationStatus.AttachNow) {
|
|
1952
|
+
stopListening();
|
|
1953
|
+
const mediaSource = new MainMediaSourceInterface(
|
|
1954
|
+
mediaSourceId,
|
|
1955
|
+
"FORCED_MEDIA_SOURCE" in mediaElement
|
|
1956
|
+
? mediaElement.FORCED_MEDIA_SOURCE
|
|
1957
|
+
: undefined,
|
|
1958
|
+
);
|
|
1959
|
+
if (this._currentContentInfo.mediaSourceInfo?.type === "main") {
|
|
1960
|
+
this._currentContentInfo.mediaSourceInfo.mediaSource.dispose(
|
|
1961
|
+
"Attaching new MediaSource",
|
|
1962
|
+
);
|
|
1963
|
+
}
|
|
1964
|
+
this._currentContentInfo.mediaSourceInfo = {
|
|
1965
|
+
type: "main",
|
|
1966
|
+
mediaSource,
|
|
1967
|
+
};
|
|
1968
|
+
mediaSource.addEventListener("mediaSourceOpen", () => {
|
|
1969
|
+
coreInterface.sendMessage({
|
|
1970
|
+
type: MainThreadMessageType.MediaSourceReadyStateChange,
|
|
1971
|
+
mediaSourceId,
|
|
1972
|
+
value: "open",
|
|
1973
|
+
});
|
|
1974
|
+
});
|
|
1975
|
+
mediaSource.addEventListener("mediaSourceEnded", () => {
|
|
1976
|
+
coreInterface.sendMessage({
|
|
1977
|
+
type: MainThreadMessageType.MediaSourceReadyStateChange,
|
|
1978
|
+
mediaSourceId,
|
|
1979
|
+
value: "ended",
|
|
1980
|
+
});
|
|
1981
|
+
});
|
|
1982
|
+
mediaSource.addEventListener("mediaSourceClose", () => {
|
|
1983
|
+
coreInterface.sendMessage({
|
|
1984
|
+
type: MainThreadMessageType.MediaSourceReadyStateChange,
|
|
1985
|
+
mediaSourceId,
|
|
1986
|
+
value: "closed",
|
|
1987
|
+
});
|
|
1988
|
+
});
|
|
1989
|
+
let url: string | null = null;
|
|
1990
|
+
if (mediaSource.handle.type === "handle") {
|
|
1991
|
+
mediaElement.srcObject = mediaSource.handle.value;
|
|
1992
|
+
} else {
|
|
1993
|
+
url = URL.createObjectURL(mediaSource.handle.value);
|
|
1994
|
+
mediaElement.src = url;
|
|
1995
|
+
}
|
|
1996
|
+
this._currentMediaSourceCanceller.signal.register((err) => {
|
|
1997
|
+
mediaSource.dispose(err.reason);
|
|
1998
|
+
resetMediaElement(mediaElement, url);
|
|
1999
|
+
});
|
|
2000
|
+
mediaSourceStatus.setValue(MediaSourceInitializationStatus.Attached);
|
|
2001
|
+
disableRemotePlaybackOnManagedMediaSource(
|
|
2002
|
+
mediaElement,
|
|
2003
|
+
this._currentMediaSourceCanceller.signal,
|
|
2004
|
+
);
|
|
2005
|
+
}
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
emitCurrentValue: true,
|
|
2009
|
+
clearSignal: this._currentMediaSourceCanceller.signal,
|
|
2010
|
+
},
|
|
2011
|
+
);
|
|
2012
|
+
} catch (_err) {
|
|
2013
|
+
const error = new OtherError(
|
|
2014
|
+
"NONE",
|
|
2015
|
+
"Unknown error when creating the MediaSource",
|
|
2016
|
+
);
|
|
2017
|
+
this._onFatalError(error);
|
|
1161
2018
|
}
|
|
1162
2019
|
}
|
|
1163
2020
|
}
|
|
1164
2021
|
}
|
|
1165
2022
|
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
2023
|
+
export interface IMediaSourceContentInitializerContentInfos {
|
|
2024
|
+
/**
|
|
2025
|
+
* "contentId", which is the identifier for the currently loaded content.
|
|
2026
|
+
* Allows to ensure that the Core is referencing the current content, not
|
|
2027
|
+
* a previously stopped one.
|
|
2028
|
+
*/
|
|
2029
|
+
contentId: string;
|
|
2030
|
+
/**
|
|
2031
|
+
* Current parsed Manifest.
|
|
2032
|
+
* `null` if not fetched / parsed yet.
|
|
2033
|
+
*/
|
|
2034
|
+
manifest: IManifestMetadata | null;
|
|
2035
|
+
|
|
2036
|
+
/**
|
|
2037
|
+
* Current MediaSource linked to the content.
|
|
2038
|
+
*
|
|
2039
|
+
* `null` if no MediaSource is currently created for the content.
|
|
2040
|
+
*/
|
|
2041
|
+
mediaSourceInfo:
|
|
2042
|
+
| {
|
|
2043
|
+
type: "main";
|
|
2044
|
+
mediaSource: MainMediaSourceInterface;
|
|
2045
|
+
}
|
|
2046
|
+
| {
|
|
2047
|
+
type: "core";
|
|
2048
|
+
mediaSourceId: string;
|
|
2049
|
+
}
|
|
2050
|
+
| null;
|
|
2051
|
+
/**
|
|
2052
|
+
* Current `RebufferingController` linked to the content, allowing to
|
|
2053
|
+
* detect and handle rebuffering situations.
|
|
2054
|
+
*
|
|
2055
|
+
* `null` if none is currently created for the content.
|
|
2056
|
+
*/
|
|
2057
|
+
rebufferingController: RebufferingController | null;
|
|
2058
|
+
/**
|
|
2059
|
+
* Current `StreamEventsEmitter` linked to the content, allowing to
|
|
2060
|
+
* send events found in the Manifest.
|
|
2061
|
+
*
|
|
2062
|
+
* `null` if none is currently created for the content.
|
|
2063
|
+
*/
|
|
2064
|
+
streamEventsEmitter: StreamEventsEmitter | null;
|
|
2065
|
+
/**
|
|
2066
|
+
* The initial position to seek to in seconds once the content is loadeed.
|
|
2067
|
+
* `undefined` if unknown yet.
|
|
2068
|
+
*/
|
|
2069
|
+
initialTime: number | undefined;
|
|
2070
|
+
/**
|
|
2071
|
+
* Whether to automatically play once the content is loaded.
|
|
2072
|
+
* `undefined` if unknown yet.
|
|
2073
|
+
*/
|
|
2074
|
+
autoPlay: boolean | undefined;
|
|
2075
|
+
/**
|
|
2076
|
+
* Set to `true` once the initial play (or skipping the initial play when
|
|
2077
|
+
* autoplay is not enabled) has been done.
|
|
2078
|
+
* Set to `false` when it hasn't been done yet.
|
|
2079
|
+
*
|
|
2080
|
+
* Set to `null` when those considerations are not taken yet.
|
|
2081
|
+
*/
|
|
2082
|
+
initialPlayPerformed: IReadOnlySharedReference<boolean> | null;
|
|
2083
|
+
/**
|
|
2084
|
+
* Set to the initialized `ContentDecryptor` instance linked to that content.
|
|
2085
|
+
*
|
|
2086
|
+
* Set to `null` when those considerations are not taken.
|
|
2087
|
+
*/
|
|
2088
|
+
contentDecryptor: IContentDecryptor | null;
|
|
2089
|
+
/**
|
|
2090
|
+
* If `true`, MSE API should be used in the core part of the RxPlayer (in the
|
|
2091
|
+
* WebWorker).
|
|
2092
|
+
* If `false`, they should be relied on on main thread.
|
|
2093
|
+
*/
|
|
2094
|
+
useMseInWorker: boolean;
|
|
1179
2095
|
}
|
|
1180
2096
|
|
|
1181
2097
|
/** Arguments to give to the `InitializeOnMediaSource` function. */
|
|
1182
2098
|
export interface IInitializeArguments {
|
|
2099
|
+
/**
|
|
2100
|
+
* The `MediaSourceContentInitializer` will interact with the RxPlayer's core
|
|
2101
|
+
* logic (the one loading media data) by exchanging messages through an
|
|
2102
|
+
* interface called the `CoreInterface`.
|
|
2103
|
+
*
|
|
2104
|
+
* This `CoreInterface` allows to abstract its actual current implementation.
|
|
2105
|
+
* E.g., the core logic could be running in a WebWorker or in main thread, in
|
|
2106
|
+
* which cases message exchanging mechanisms would be different.
|
|
2107
|
+
*/
|
|
2108
|
+
coreInterface: CoreInterface;
|
|
2109
|
+
/**
|
|
2110
|
+
* If `true`, MSE API should be used in the core part of the RxPlayer (in the
|
|
2111
|
+
* WebWorker).
|
|
2112
|
+
* If `false`, they should be relied on on main thread.
|
|
2113
|
+
*
|
|
2114
|
+
* This might depend on both browser capabilities and preferences. It is
|
|
2115
|
+
* assumed that the caller perform all those checks, the `ContentInitializer`
|
|
2116
|
+
* won't check again the validity of this value.
|
|
2117
|
+
*/
|
|
2118
|
+
useMseInWorker: boolean;
|
|
1183
2119
|
/** Options concerning the ABR logic. */
|
|
1184
2120
|
adaptiveOptions: IAdaptiveRepresentationSelectorArguments;
|
|
1185
2121
|
/** `true` if we should play when loaded. */
|
|
@@ -1216,6 +2152,35 @@ export interface IInitializeArguments {
|
|
|
1216
2152
|
keySystems: IKeySystemOption[];
|
|
1217
2153
|
/** `true` to play low-latency contents optimally. */
|
|
1218
2154
|
lowLatencyMode: boolean;
|
|
2155
|
+
/**
|
|
2156
|
+
* The type of "transport" wanted, e.g. "dash" or "smooth".
|
|
2157
|
+
*/
|
|
2158
|
+
transport: string;
|
|
2159
|
+
/** Options relative to the streaming protocol. */
|
|
2160
|
+
transportOptions: Omit<
|
|
2161
|
+
ITransportOptions,
|
|
2162
|
+
"representationFilter" | "manifestLoader" | "segmentLoader"
|
|
2163
|
+
> & {
|
|
2164
|
+
manifestLoader:
|
|
2165
|
+
| undefined
|
|
2166
|
+
| {
|
|
2167
|
+
fn?: IManifestLoader | undefined;
|
|
2168
|
+
workerId?: string | undefined;
|
|
2169
|
+
};
|
|
2170
|
+
segmentLoader:
|
|
2171
|
+
| undefined
|
|
2172
|
+
| {
|
|
2173
|
+
fn?: ISegmentLoader | undefined;
|
|
2174
|
+
workerId?: string | undefined;
|
|
2175
|
+
};
|
|
2176
|
+
representationFilter:
|
|
2177
|
+
| undefined
|
|
2178
|
+
| {
|
|
2179
|
+
fn?: IRepresentationFilter | undefined;
|
|
2180
|
+
eval?: string | undefined;
|
|
2181
|
+
workerId?: string | undefined;
|
|
2182
|
+
};
|
|
2183
|
+
};
|
|
1219
2184
|
/** Settings linked to Manifest requests. */
|
|
1220
2185
|
manifestRequestSettings: {
|
|
1221
2186
|
/** Maximum number of time a request on error will be retried. */
|
|
@@ -1241,8 +2206,6 @@ export interface IInitializeArguments {
|
|
|
1241
2206
|
*/
|
|
1242
2207
|
initialManifest: IInitialManifest | undefined;
|
|
1243
2208
|
};
|
|
1244
|
-
/** Logic linked Manifest and segment loading and parsing. */
|
|
1245
|
-
transport: ITransportPipelines;
|
|
1246
2209
|
/** Configuration for the segment requesting logic. */
|
|
1247
2210
|
segmentRequestOptions: {
|
|
1248
2211
|
lowLatencyMode: boolean;
|
|
@@ -1271,196 +2234,151 @@ export interface IInitializeArguments {
|
|
|
1271
2234
|
url: string | undefined;
|
|
1272
2235
|
}
|
|
1273
2236
|
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
2237
|
+
function bindNumberReferencesToCore(
|
|
2238
|
+
coreInterface: CoreInterface,
|
|
2239
|
+
cancellationSignal: CancellationSignal,
|
|
2240
|
+
...refs: Array<
|
|
2241
|
+
[
|
|
2242
|
+
IReadOnlySharedReference<number>,
|
|
2243
|
+
(
|
|
2244
|
+
| "wantedBufferAhead"
|
|
2245
|
+
| "maxVideoBufferSize"
|
|
2246
|
+
| "maxBufferBehind"
|
|
2247
|
+
| "maxBufferAhead"
|
|
2248
|
+
| "throttleVideoBitrate"
|
|
2249
|
+
),
|
|
2250
|
+
]
|
|
2251
|
+
>
|
|
2252
|
+
): void {
|
|
2253
|
+
for (const ref of refs) {
|
|
2254
|
+
ref[0].onUpdate(
|
|
2255
|
+
(newVal) => {
|
|
2256
|
+
// NOTE: The TypeScript checks have already been made by this function's
|
|
2257
|
+
// overload, but the body here is not aware of that.
|
|
2258
|
+
coreInterface.sendMessage({
|
|
2259
|
+
type: MainThreadMessageType.ReferenceUpdate,
|
|
2260
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any
|
|
2261
|
+
value: { name: ref[1] as any, newVal: newVal as any },
|
|
2262
|
+
});
|
|
2263
|
+
},
|
|
2264
|
+
{ clearSignal: cancellationSignal, emitCurrentValue: true },
|
|
2265
|
+
);
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
function formatCoreError(sentError: ISentError): IPlayerError {
|
|
2270
|
+
switch (sentError.name) {
|
|
2271
|
+
case "NetworkError":
|
|
2272
|
+
return new NetworkError(
|
|
2273
|
+
sentError.code,
|
|
2274
|
+
new RequestError(
|
|
2275
|
+
sentError.baseError.url,
|
|
2276
|
+
sentError.baseError.status,
|
|
2277
|
+
sentError.baseError.type,
|
|
2278
|
+
),
|
|
2279
|
+
);
|
|
2280
|
+
case "MediaError":
|
|
2281
|
+
// eslint-disable-next-line
|
|
2282
|
+
return new MediaError(sentError.code as any, sentError.reason, {
|
|
2283
|
+
tracks: sentError.tracks,
|
|
2284
|
+
});
|
|
2285
|
+
case "EncryptedMediaError":
|
|
2286
|
+
// We assume that everything have already been checked Worker-side here
|
|
2287
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
2288
|
+
return new EncryptedMediaError(sentError.code, sentError.reason, {
|
|
2289
|
+
keyStatuses: sentError.keyStatuses,
|
|
2290
|
+
keySystemConfiguration: sentError.keySystemConfiguration,
|
|
2291
|
+
keySystem: sentError.keySystem,
|
|
2292
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2293
|
+
} as any);
|
|
2294
|
+
case "OtherError":
|
|
2295
|
+
return new OtherError(sentError.code, sentError.reason);
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2299
|
+
/** Enume allowing to state what is the current status of MediaSource initialization. */
|
|
2300
|
+
const enum MediaSourceInitializationStatus {
|
|
1286
2301
|
/**
|
|
1287
|
-
*
|
|
1288
|
-
*
|
|
2302
|
+
* The `MediaSource` is not attached to the `HTMLMediaElement` and shouldn't
|
|
2303
|
+
* be yet.
|
|
1289
2304
|
*/
|
|
1290
|
-
|
|
1291
|
-
/**
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
2305
|
+
Nothing,
|
|
2306
|
+
/**
|
|
2307
|
+
* The `MediaSource` is not yet attached to the `HTMLMediaElement` but it
|
|
2308
|
+
* now can and should be.
|
|
2309
|
+
*
|
|
2310
|
+
* The purpose of this enum variant is to be set when wanting to indicate
|
|
2311
|
+
* that `MediaSource` attachment has to be done, in code that do not have
|
|
2312
|
+
* the capability to do so.
|
|
2313
|
+
*
|
|
2314
|
+
* The code that can do so would then read that value and then set this enum
|
|
2315
|
+
* to `Attached` once the `MediaSource` is attached.
|
|
2316
|
+
*/
|
|
2317
|
+
AttachNow,
|
|
2318
|
+
/** The `MediaSource` is attached to the `HTMLMediaElement`. */
|
|
2319
|
+
Attached,
|
|
1301
2320
|
}
|
|
1302
2321
|
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
*
|
|
1313
|
-
* - Those who have a key id listed in `delistedKeyIds` will have their
|
|
1314
|
-
* decipherability updated to `undefined`.
|
|
1315
|
-
*
|
|
1316
|
-
* @param {Object} manifest
|
|
1317
|
-
* @param {Array.<Uint8Array>} whitelistedKeyIds
|
|
1318
|
-
* @param {Array.<Uint8Array>} blacklistedKeyIds
|
|
1319
|
-
* @param {Array.<Uint8Array>} delistedKeyIds
|
|
1320
|
-
*/
|
|
1321
|
-
function updateKeyIdsDecipherabilityOnManifest(
|
|
1322
|
-
manifest: IManifest,
|
|
1323
|
-
whitelistedKeyIds: Uint8Array[],
|
|
1324
|
-
blacklistedKeyIds: Uint8Array[],
|
|
1325
|
-
delistedKeyIds: Uint8Array[],
|
|
1326
|
-
): void {
|
|
1327
|
-
manifest.updateRepresentationsDeciperability((ctx) => {
|
|
1328
|
-
const { representation } = ctx;
|
|
1329
|
-
if (representation.contentProtections === undefined) {
|
|
1330
|
-
return representation.decipherable;
|
|
1331
|
-
}
|
|
1332
|
-
const contentKIDs = representation.contentProtections.keyIds;
|
|
1333
|
-
if (contentKIDs !== undefined) {
|
|
1334
|
-
for (const elt of contentKIDs) {
|
|
1335
|
-
for (const blacklistedKeyId of blacklistedKeyIds) {
|
|
1336
|
-
if (areArraysOfNumbersEqual(blacklistedKeyId, elt)) {
|
|
1337
|
-
return false;
|
|
1338
|
-
}
|
|
1339
|
-
}
|
|
1340
|
-
for (const whitelistedKeyId of whitelistedKeyIds) {
|
|
1341
|
-
if (areArraysOfNumbersEqual(whitelistedKeyId, elt)) {
|
|
1342
|
-
return true;
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
for (const delistedKeyId of delistedKeyIds) {
|
|
1346
|
-
if (areArraysOfNumbersEqual(delistedKeyId, elt)) {
|
|
1347
|
-
return undefined;
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
}
|
|
1352
|
-
return representation.decipherable;
|
|
1353
|
-
});
|
|
2322
|
+
interface IDrmInitializationStatus {
|
|
2323
|
+
/** Current initialization state the decryption logic is in. */
|
|
2324
|
+
initializationState: IDecryptionInitializationState;
|
|
2325
|
+
/**
|
|
2326
|
+
* If set, corresponds to the hex string describing the current key system
|
|
2327
|
+
* used.
|
|
2328
|
+
* `undefined` if unknown or if it does not apply.
|
|
2329
|
+
*/
|
|
2330
|
+
drmSystemId: string | undefined;
|
|
1354
2331
|
}
|
|
1355
2332
|
|
|
1356
|
-
/**
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
if (containedInitData) {
|
|
1386
|
-
return false;
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
return rep.decipherable;
|
|
1391
|
-
});
|
|
2333
|
+
/** Initialization steps to add decryption capabilities to an `HTMLMediaElement`. */
|
|
2334
|
+
type IDecryptionInitializationState =
|
|
2335
|
+
/**
|
|
2336
|
+
* Decryption capabilities have not been initialized yet.
|
|
2337
|
+
* You should wait before performing any action on the concerned
|
|
2338
|
+
* `HTMLMediaElement` (such as linking a content / `MediaSource` to it).
|
|
2339
|
+
*/
|
|
2340
|
+
| { type: "uninitialized"; value: null }
|
|
2341
|
+
/**
|
|
2342
|
+
* The `MediaSource` or media url can be linked AND segments can be pushed to
|
|
2343
|
+
* the `HTMLMediaElement` on which decryption capabilities were wanted.
|
|
2344
|
+
*/
|
|
2345
|
+
| {
|
|
2346
|
+
type: "initialized";
|
|
2347
|
+
value: null;
|
|
2348
|
+
};
|
|
2349
|
+
|
|
2350
|
+
function formatSourceBufferError(error: unknown): SourceBufferError {
|
|
2351
|
+
if (error instanceof SourceBufferError) {
|
|
2352
|
+
return error;
|
|
2353
|
+
} else if (error instanceof Error) {
|
|
2354
|
+
return new SourceBufferError(
|
|
2355
|
+
error.name,
|
|
2356
|
+
error.message,
|
|
2357
|
+
error.name === "QuotaExceededError",
|
|
2358
|
+
);
|
|
2359
|
+
} else {
|
|
2360
|
+
return new SourceBufferError("Error", "Unknown SourceBufferError Error", false);
|
|
2361
|
+
}
|
|
1392
2362
|
}
|
|
1393
2363
|
|
|
1394
2364
|
/**
|
|
1395
|
-
*
|
|
1396
|
-
*
|
|
1397
|
-
*
|
|
1398
|
-
*
|
|
1399
|
-
*
|
|
1400
|
-
*
|
|
1401
|
-
*
|
|
1402
|
-
* @param {
|
|
1403
|
-
*
|
|
2365
|
+
* The Core might send back logs. In that situation, the message might be
|
|
2366
|
+
* formatted slightly differently to be able to cross threads (so a
|
|
2367
|
+
* serializable format has to be sent).
|
|
2368
|
+
*
|
|
2369
|
+
* This function translates that Core format to what's expected by the
|
|
2370
|
+
* logger.
|
|
2371
|
+
*
|
|
2372
|
+
* @param {*} arg
|
|
2373
|
+
* @returns {*}
|
|
1404
2374
|
*/
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
}
|
|
2375
|
+
function formatSentLogObject(arg: ISentLogValue): IAcceptedLogValue {
|
|
2376
|
+
if (typeof arg !== "object") {
|
|
2377
|
+
return arg;
|
|
2378
|
+
}
|
|
1409
2379
|
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
* @param {Object|null} freezeResolution - The `IFreezeResolution` suggested.
|
|
1413
|
-
* @param {Object} param - Parameters that might be needed to implement the
|
|
1414
|
-
* resolution.
|
|
1415
|
-
* @param {Object} param.manifest - The current content's Manifest object.
|
|
1416
|
-
* @param {Object} param.playbackObserver - Object regularly emitting playback
|
|
1417
|
-
* conditions.
|
|
1418
|
-
* @param {Function} param.triggerReload - Function to call if we need to ask
|
|
1419
|
-
* for a "MediaSource reload".
|
|
1420
|
-
* @param {Boolean} param.enableRepresentationAvoidance - If `true`, this
|
|
1421
|
-
* function is authorized to mark `Representation` as "to avoid" if the
|
|
1422
|
-
* `IFreezeResolution` object suggest it.
|
|
1423
|
-
*/
|
|
1424
|
-
function handleFreezeResolution(
|
|
1425
|
-
freezeResolution: IFreezeResolution,
|
|
1426
|
-
{
|
|
1427
|
-
playbackObserver,
|
|
1428
|
-
enableRepresentationAvoidance,
|
|
1429
|
-
manifest,
|
|
1430
|
-
triggerReload,
|
|
1431
|
-
}: {
|
|
1432
|
-
playbackObserver: IMediaElementPlaybackObserver;
|
|
1433
|
-
enableRepresentationAvoidance: boolean;
|
|
1434
|
-
manifest: IManifest;
|
|
1435
|
-
triggerReload: () => void;
|
|
1436
|
-
},
|
|
1437
|
-
): void {
|
|
1438
|
-
switch (freezeResolution.type) {
|
|
1439
|
-
case "reload": {
|
|
1440
|
-
log.info("Init", "Planning reload due to freeze");
|
|
1441
|
-
triggerReload();
|
|
1442
|
-
break;
|
|
1443
|
-
}
|
|
1444
|
-
case "flush": {
|
|
1445
|
-
log.info("Init", "Flushing buffer due to freeze");
|
|
1446
|
-
const observation = playbackObserver.getReference().getValue();
|
|
1447
|
-
const currentTime = observation.position.isAwaitingFuturePosition()
|
|
1448
|
-
? observation.position.getWanted()
|
|
1449
|
-
: playbackObserver.getCurrentTime();
|
|
1450
|
-
const relativeResumingPosition = freezeResolution.value.relativeSeek;
|
|
1451
|
-
const wantedSeekingTime = currentTime + relativeResumingPosition;
|
|
1452
|
-
playbackObserver.setCurrentTime(wantedSeekingTime);
|
|
1453
|
-
break;
|
|
1454
|
-
}
|
|
1455
|
-
case "avoid-representations": {
|
|
1456
|
-
const contents = freezeResolution.value;
|
|
1457
|
-
if (enableRepresentationAvoidance) {
|
|
1458
|
-
manifest.addRepresentationsToAvoid(contents);
|
|
1459
|
-
}
|
|
1460
|
-
triggerReload();
|
|
1461
|
-
break;
|
|
1462
|
-
}
|
|
1463
|
-
default:
|
|
1464
|
-
assertUnreachable(freezeResolution);
|
|
2380
|
+
if (arg?.isSerializedError === true) {
|
|
2381
|
+
return formatCoreError(arg as ISentError);
|
|
1465
2382
|
}
|
|
2383
|
+
return arg as Exclude<ISentLogValue, ISentError>;
|
|
1466
2384
|
}
|