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,2908 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright 2015 CANAL+ Group
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");publicapi
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
var __extends = (this && this.__extends) || (function () {
|
|
18
|
-
var extendStatics = function (d, b) {
|
|
19
|
-
extendStatics = Object.setPrototypeOf ||
|
|
20
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
21
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
22
|
-
return extendStatics(d, b);
|
|
23
|
-
};
|
|
24
|
-
return function (d, b) {
|
|
25
|
-
if (typeof b !== "function" && b !== null)
|
|
26
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
27
|
-
extendStatics(d, b);
|
|
28
|
-
function __() { this.constructor = d; }
|
|
29
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30
|
-
};
|
|
31
|
-
})();
|
|
32
|
-
var __assign = (this && this.__assign) || function () {
|
|
33
|
-
__assign = Object.assign || function(t) {
|
|
34
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
35
|
-
s = arguments[i];
|
|
36
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
37
|
-
t[p] = s[p];
|
|
38
|
-
}
|
|
39
|
-
return t;
|
|
40
|
-
};
|
|
41
|
-
return __assign.apply(this, arguments);
|
|
42
|
-
};
|
|
43
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
44
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
45
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
46
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
47
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
48
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
49
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
53
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
54
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
55
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
56
|
-
function step(op) {
|
|
57
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
58
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
59
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
60
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
61
|
-
switch (op[0]) {
|
|
62
|
-
case 0: case 1: t = op; break;
|
|
63
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
64
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
65
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
66
|
-
default:
|
|
67
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
68
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
69
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
70
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
71
|
-
if (t[2]) _.ops.pop();
|
|
72
|
-
_.trys.pop(); continue;
|
|
73
|
-
}
|
|
74
|
-
op = body.call(thisArg, _);
|
|
75
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
76
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
var __values = (this && this.__values) || function(o) {
|
|
80
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
81
|
-
if (m) return m.call(o);
|
|
82
|
-
if (o && typeof o.length === "number") return {
|
|
83
|
-
next: function () {
|
|
84
|
-
if (o && i >= o.length) o = void 0;
|
|
85
|
-
return { value: o && o[i++], done: !o };
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
89
|
-
};
|
|
90
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
91
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
92
|
-
if (!m) return o;
|
|
93
|
-
var i = m.call(o), r, ar = [], e;
|
|
94
|
-
try {
|
|
95
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
96
|
-
}
|
|
97
|
-
catch (error) { e = { error: error }; }
|
|
98
|
-
finally {
|
|
99
|
-
try {
|
|
100
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
101
|
-
}
|
|
102
|
-
finally { if (e) throw e.error; }
|
|
103
|
-
}
|
|
104
|
-
return ar;
|
|
105
|
-
};
|
|
106
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
107
|
-
var can_rely_on_video_visibility_and_size_1 = require("../../compat/can_rely_on_video_visibility_and_size");
|
|
108
|
-
var event_listeners_1 = require("../../compat/event_listeners");
|
|
109
|
-
var get_start_date_1 = require("../../compat/get_start_date");
|
|
110
|
-
var has_mse_in_worker_1 = require("../../compat/has_mse_in_worker");
|
|
111
|
-
var has_worker_api_1 = require("../../compat/has_worker_api");
|
|
112
|
-
var config_1 = require("../../config");
|
|
113
|
-
var errors_1 = require("../../errors");
|
|
114
|
-
var worker_initialization_error_1 = require("../../errors/worker_initialization_error");
|
|
115
|
-
var features_1 = require("../../features");
|
|
116
|
-
var log_1 = require("../../log");
|
|
117
|
-
var manifest_1 = require("../../manifest");
|
|
118
|
-
var media_element_playback_observer_1 = require("../../playback_observer/media_element_playback_observer");
|
|
119
|
-
var array_find_1 = require("../../utils/array_find");
|
|
120
|
-
var array_includes_1 = require("../../utils/array_includes");
|
|
121
|
-
var assert_1 = require("../../utils/assert");
|
|
122
|
-
var event_emitter_1 = require("../../utils/event_emitter");
|
|
123
|
-
var global_scope_1 = require("../../utils/global_scope");
|
|
124
|
-
var id_generator_1 = require("../../utils/id_generator");
|
|
125
|
-
var is_null_or_undefined_1 = require("../../utils/is_null_or_undefined");
|
|
126
|
-
var monotonic_timestamp_1 = require("../../utils/monotonic_timestamp");
|
|
127
|
-
var object_assign_1 = require("../../utils/object_assign");
|
|
128
|
-
var ranges_1 = require("../../utils/ranges");
|
|
129
|
-
var reference_1 = require("../../utils/reference");
|
|
130
|
-
var task_canceller_1 = require("../../utils/task_canceller");
|
|
131
|
-
var decrypt_1 = require("../decrypt");
|
|
132
|
-
var render_thumbnail_1 = require("../render_thumbnail");
|
|
133
|
-
var tracks_store_1 = require("../tracks_store");
|
|
134
|
-
var option_utils_1 = require("./option_utils");
|
|
135
|
-
var utils_1 = require("./utils");
|
|
136
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
137
|
-
// Enable debug mode as soon as `RX_PLAYER_DEBUG_MODE__` is set to `true`:
|
|
138
|
-
var globals = global_scope_1.default;
|
|
139
|
-
var isDebugModeEnabled = typeof globals.__RX_PLAYER_DEBUG_MODE__ === "boolean" &&
|
|
140
|
-
globals.__RX_PLAYER_DEBUG_MODE__;
|
|
141
|
-
try {
|
|
142
|
-
Object.defineProperty(globals, "__RX_PLAYER_DEBUG_MODE__", {
|
|
143
|
-
get: function () {
|
|
144
|
-
return isDebugModeEnabled;
|
|
145
|
-
},
|
|
146
|
-
set: function (val) {
|
|
147
|
-
isDebugModeEnabled = val;
|
|
148
|
-
if (val) {
|
|
149
|
-
Player.LogLevel = "DEBUG";
|
|
150
|
-
Player.LogFormat = "full";
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
catch (_err) {
|
|
156
|
-
// Ignore, maybe we're in some jsdom thing, maybe the current target does not
|
|
157
|
-
// authorize setting globals that way etc.
|
|
158
|
-
}
|
|
159
|
-
if (isDebugModeEnabled) {
|
|
160
|
-
log_1.default.setLevel("DEBUG", "full");
|
|
161
|
-
}
|
|
162
|
-
else if (0 /* __ENVIRONMENT__.CURRENT_ENV */ === 1 /* __ENVIRONMENT__.DEV */) {
|
|
163
|
-
log_1.default.setLevel("NONE" /* __LOGGER_LEVEL__.CURRENT_LEVEL */, "standard");
|
|
164
|
-
}
|
|
165
|
-
var generateContentId = (0, id_generator_1.default)();
|
|
166
|
-
/**
|
|
167
|
-
* Options of a `loadVideo` call which are for now not supported when running
|
|
168
|
-
* in a "multithread" mode.
|
|
169
|
-
*
|
|
170
|
-
* TODO support those?
|
|
171
|
-
*/
|
|
172
|
-
var MULTI_THREAD_UNSUPPORTED_LOAD_VIDEO_OPTIONS = [
|
|
173
|
-
"manifestLoader",
|
|
174
|
-
"segmentLoader",
|
|
175
|
-
];
|
|
176
|
-
/**
|
|
177
|
-
* @class Player
|
|
178
|
-
* @extends EventEmitter
|
|
179
|
-
*/
|
|
180
|
-
var Player = /** @class */ (function (_super) {
|
|
181
|
-
__extends(Player, _super);
|
|
182
|
-
/**
|
|
183
|
-
* @constructor
|
|
184
|
-
* @param {Object} options
|
|
185
|
-
*/
|
|
186
|
-
function Player(options) {
|
|
187
|
-
if (options === void 0) { options = {}; }
|
|
188
|
-
var _this = _super.call(this) || this;
|
|
189
|
-
var _a = (0, option_utils_1.parseConstructorOptions)(options), baseBandwidth = _a.baseBandwidth, videoResolutionLimit = _a.videoResolutionLimit, maxBufferAhead = _a.maxBufferAhead, maxBufferBehind = _a.maxBufferBehind, throttleVideoBitrateWhenHidden = _a.throttleVideoBitrateWhenHidden, videoElement = _a.videoElement, wantedBufferAhead = _a.wantedBufferAhead, maxVideoBufferSize = _a.maxVideoBufferSize;
|
|
190
|
-
// Workaround to support Firefox autoplay on FF 42.
|
|
191
|
-
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624
|
|
192
|
-
videoElement.preload = "auto";
|
|
193
|
-
_this.version = /* PLAYER_VERSION */ "4.4.1";
|
|
194
|
-
_this.log = log_1.default;
|
|
195
|
-
_this.state = "STOPPED";
|
|
196
|
-
_this.videoElement = videoElement;
|
|
197
|
-
Player._priv_registerVideoElement(_this.videoElement);
|
|
198
|
-
var destroyCanceller = new task_canceller_1.default();
|
|
199
|
-
_this._destroyCanceller = destroyCanceller;
|
|
200
|
-
_this._priv_pictureInPictureRef = (0, event_listeners_1.getPictureOnPictureStateRef)(videoElement, destroyCanceller.signal);
|
|
201
|
-
_this._priv_speed = new reference_1.default(videoElement.playbackRate, _this._destroyCanceller.signal);
|
|
202
|
-
_this._priv_preferTrickModeTracks = false;
|
|
203
|
-
_this._priv_contentLock = new reference_1.default(false, _this._destroyCanceller.signal);
|
|
204
|
-
_this._priv_bufferOptions = {
|
|
205
|
-
wantedBufferAhead: new reference_1.default(wantedBufferAhead, _this._destroyCanceller.signal),
|
|
206
|
-
maxBufferAhead: new reference_1.default(maxBufferAhead, _this._destroyCanceller.signal),
|
|
207
|
-
maxBufferBehind: new reference_1.default(maxBufferBehind, _this._destroyCanceller.signal),
|
|
208
|
-
maxVideoBufferSize: new reference_1.default(maxVideoBufferSize, _this._destroyCanceller.signal),
|
|
209
|
-
};
|
|
210
|
-
_this._priv_bitrateInfos = {
|
|
211
|
-
lastBitrates: { audio: baseBandwidth, video: baseBandwidth },
|
|
212
|
-
};
|
|
213
|
-
_this._priv_throttleVideoBitrateWhenHidden = throttleVideoBitrateWhenHidden;
|
|
214
|
-
_this._priv_videoResolutionLimit = videoResolutionLimit;
|
|
215
|
-
_this._priv_currentError = null;
|
|
216
|
-
_this._priv_contentInfos = null;
|
|
217
|
-
_this._priv_contentEventsMemory = {};
|
|
218
|
-
_this._priv_reloadingMetadata = {};
|
|
219
|
-
_this._priv_lastAutoPlay = false;
|
|
220
|
-
_this._priv_worker = null;
|
|
221
|
-
var onVolumeChange = function () {
|
|
222
|
-
_this.trigger("volumeChange", {
|
|
223
|
-
volume: videoElement.volume,
|
|
224
|
-
muted: videoElement.muted,
|
|
225
|
-
});
|
|
226
|
-
};
|
|
227
|
-
videoElement.addEventListener("volumechange", onVolumeChange);
|
|
228
|
-
destroyCanceller.signal.register(function () {
|
|
229
|
-
videoElement.removeEventListener("volumechange", onVolumeChange);
|
|
230
|
-
});
|
|
231
|
-
return _this;
|
|
232
|
-
}
|
|
233
|
-
Object.defineProperty(Player, "ErrorTypes", {
|
|
234
|
-
/** All possible Error types emitted by the RxPlayer. */
|
|
235
|
-
get: function () {
|
|
236
|
-
return errors_1.ErrorTypes;
|
|
237
|
-
},
|
|
238
|
-
enumerable: false,
|
|
239
|
-
configurable: true
|
|
240
|
-
});
|
|
241
|
-
Object.defineProperty(Player, "ErrorCodes", {
|
|
242
|
-
/** All possible Error codes emitted by the RxPlayer. */
|
|
243
|
-
get: function () {
|
|
244
|
-
return errors_1.ErrorCodes;
|
|
245
|
-
},
|
|
246
|
-
enumerable: false,
|
|
247
|
-
configurable: true
|
|
248
|
-
});
|
|
249
|
-
Object.defineProperty(Player, "LogLevel", {
|
|
250
|
-
/**
|
|
251
|
-
* Current log level.
|
|
252
|
-
* Update current log level.
|
|
253
|
-
* Should be either (by verbosity ascending):
|
|
254
|
-
* - "NONE"
|
|
255
|
-
* - "ERROR"
|
|
256
|
-
* - "WARNING"
|
|
257
|
-
* - "INFO"
|
|
258
|
-
* - "DEBUG"
|
|
259
|
-
* Any other value will be translated to "NONE".
|
|
260
|
-
*/
|
|
261
|
-
get: function () {
|
|
262
|
-
return log_1.default.getLevel();
|
|
263
|
-
},
|
|
264
|
-
set: function (logLevel) {
|
|
265
|
-
log_1.default.setLevel(logLevel, log_1.default.getFormat());
|
|
266
|
-
},
|
|
267
|
-
enumerable: false,
|
|
268
|
-
configurable: true
|
|
269
|
-
});
|
|
270
|
-
Object.defineProperty(Player, "LogFormat", {
|
|
271
|
-
/**
|
|
272
|
-
* Current log format.
|
|
273
|
-
* Should be either (by verbosity ascending):
|
|
274
|
-
* - "standard": Regular log messages.
|
|
275
|
-
* - "full": More verbose format, including a timestamp and a namespace.
|
|
276
|
-
* Any other value will be translated to "standard".
|
|
277
|
-
*/
|
|
278
|
-
get: function () {
|
|
279
|
-
return log_1.default.getFormat();
|
|
280
|
-
},
|
|
281
|
-
set: function (format) {
|
|
282
|
-
log_1.default.setLevel(log_1.default.getLevel(), format);
|
|
283
|
-
},
|
|
284
|
-
enumerable: false,
|
|
285
|
-
configurable: true
|
|
286
|
-
});
|
|
287
|
-
/**
|
|
288
|
-
* Add feature(s) to the RxPlayer.
|
|
289
|
-
* @param {Array.<Object>} featureList - Features wanted.
|
|
290
|
-
*/
|
|
291
|
-
Player.addFeatures = function (featureList) {
|
|
292
|
-
(0, features_1.addFeatures)(featureList);
|
|
293
|
-
};
|
|
294
|
-
/**
|
|
295
|
-
* Register the video element to the set of elements currently in use.
|
|
296
|
-
* @param videoElement the video element to register.
|
|
297
|
-
* @throws Error - Throws if the element is already used by another player instance.
|
|
298
|
-
*/
|
|
299
|
-
Player._priv_registerVideoElement = function (videoElement) {
|
|
300
|
-
if (Player._priv_currentlyUsedVideoElements.has(videoElement)) {
|
|
301
|
-
var errorMessage = "The video element is already attached to another RxPlayer instance." +
|
|
302
|
-
"\nMake sure to dispose the previous instance with player.dispose() before creating" +
|
|
303
|
-
" a new player instance attaching that video element.";
|
|
304
|
-
// eslint-disable-next-line no-console
|
|
305
|
-
console.warn(errorMessage);
|
|
306
|
-
/*
|
|
307
|
-
* TODO: for next major version 5.0: this need to throw an error instead of just logging
|
|
308
|
-
* this was not done for minor version as it could be considerated a breaking change.
|
|
309
|
-
*
|
|
310
|
-
* throw new Error(errorMessage);
|
|
311
|
-
*/
|
|
312
|
-
}
|
|
313
|
-
Player._priv_currentlyUsedVideoElements.add(videoElement);
|
|
314
|
-
};
|
|
315
|
-
/**
|
|
316
|
-
* Deregister the video element of the set of elements currently in use.
|
|
317
|
-
* @param videoElement the video element to deregister.
|
|
318
|
-
*/
|
|
319
|
-
Player._priv_deregisterVideoElement = function (videoElement) {
|
|
320
|
-
if (Player._priv_currentlyUsedVideoElements.has(videoElement)) {
|
|
321
|
-
Player._priv_currentlyUsedVideoElements.delete(videoElement);
|
|
322
|
-
}
|
|
323
|
-
};
|
|
324
|
-
/**
|
|
325
|
-
* TODO returns promise?
|
|
326
|
-
* @param {Object} workerSettings
|
|
327
|
-
*/
|
|
328
|
-
Player.prototype.attachWorker = function (workerSettings) {
|
|
329
|
-
var _this = this;
|
|
330
|
-
return new Promise(function (res, rej) {
|
|
331
|
-
var _a;
|
|
332
|
-
if (!(0, has_worker_api_1.default)()) {
|
|
333
|
-
log_1.default.warn("API", "Cannot rely on a WebWorker: Worker API unavailable");
|
|
334
|
-
return rej(new worker_initialization_error_1.default("INCOMPATIBLE_ERROR", "Worker unavailable"));
|
|
335
|
-
}
|
|
336
|
-
// check if the user already attach worker before
|
|
337
|
-
// terminate the previous worker to release the resources
|
|
338
|
-
if (_this._priv_worker !== null) {
|
|
339
|
-
if (_this.state !== "STOPPED") {
|
|
340
|
-
log_1.default.warn("API", "Cannot attach a new worker while a content is playing, please stop the player first.");
|
|
341
|
-
return rej(new worker_initialization_error_1.default("SETUP_ERROR", "Cannot attach a new worker while a content is playing"));
|
|
342
|
-
}
|
|
343
|
-
else {
|
|
344
|
-
_this._priv_worker.terminate();
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
if (typeof workerSettings.workerUrl === "string") {
|
|
348
|
-
_this._priv_worker = new Worker(workerSettings.workerUrl);
|
|
349
|
-
}
|
|
350
|
-
else {
|
|
351
|
-
var blobUrl = URL.createObjectURL(workerSettings.workerUrl);
|
|
352
|
-
_this._priv_worker = new Worker(blobUrl);
|
|
353
|
-
URL.revokeObjectURL(blobUrl);
|
|
354
|
-
}
|
|
355
|
-
_this._priv_worker.onerror = function (evt) {
|
|
356
|
-
if (_this._priv_worker !== null) {
|
|
357
|
-
_this._priv_worker.terminate();
|
|
358
|
-
_this._priv_worker = null;
|
|
359
|
-
}
|
|
360
|
-
log_1.default.error("API", "Unexpected worker error", evt.error instanceof Error ? evt.error : undefined);
|
|
361
|
-
rej(new worker_initialization_error_1.default("UNKNOWN_ERROR", 'Unexpected Worker "error" event'));
|
|
362
|
-
};
|
|
363
|
-
var handleInitMessages = function (msg) {
|
|
364
|
-
var msgData = msg.data;
|
|
365
|
-
if (msgData.type === "init-error" /* WorkerMessageType.InitError */) {
|
|
366
|
-
log_1.default.warn("API", "Processing InitError worker message: detaching worker");
|
|
367
|
-
if (_this._priv_worker !== null) {
|
|
368
|
-
_this._priv_worker.removeEventListener("message", handleInitMessages);
|
|
369
|
-
_this._priv_worker.terminate();
|
|
370
|
-
_this._priv_worker = null;
|
|
371
|
-
}
|
|
372
|
-
rej(new worker_initialization_error_1.default("SETUP_ERROR", "Worker parser initialization failed: " + msgData.value.errorMessage));
|
|
373
|
-
}
|
|
374
|
-
else if (msgData.type === "init-success" /* WorkerMessageType.InitSuccess */) {
|
|
375
|
-
log_1.default.info("API", "InitSuccess received from worker.");
|
|
376
|
-
if (_this._priv_worker !== null) {
|
|
377
|
-
_this._priv_worker.removeEventListener("message", handleInitMessages);
|
|
378
|
-
}
|
|
379
|
-
res();
|
|
380
|
-
}
|
|
381
|
-
};
|
|
382
|
-
_this._priv_worker.addEventListener("message", handleInitMessages);
|
|
383
|
-
log_1.default.debug("M-->C", "Sending message", { name: "init" /* MainThreadMessageType.Init */ });
|
|
384
|
-
_this._priv_worker.postMessage({
|
|
385
|
-
type: "init" /* MainThreadMessageType.Init */,
|
|
386
|
-
value: {
|
|
387
|
-
dashWasmUrl: workerSettings.dashWasmUrl,
|
|
388
|
-
logLevel: log_1.default.getLevel(),
|
|
389
|
-
logFormat: log_1.default.getFormat(),
|
|
390
|
-
sendBackLogs: isDebugModeEnabled,
|
|
391
|
-
date: Date.now(),
|
|
392
|
-
timestamp: (0, monotonic_timestamp_1.default)(),
|
|
393
|
-
hasVideo: ((_a = _this.videoElement) === null || _a === void 0 ? void 0 : _a.nodeName.toLowerCase()) === "video",
|
|
394
|
-
},
|
|
395
|
-
});
|
|
396
|
-
log_1.default.addEventListener("onLogLevelChange", function (logInfo) {
|
|
397
|
-
if (_this._priv_worker === null) {
|
|
398
|
-
return;
|
|
399
|
-
}
|
|
400
|
-
log_1.default.debug("M-->C", "Sending message", {
|
|
401
|
-
name: "log-level-update" /* MainThreadMessageType.LogLevelUpdate */,
|
|
402
|
-
});
|
|
403
|
-
_this._priv_worker.postMessage({
|
|
404
|
-
type: "log-level-update" /* MainThreadMessageType.LogLevelUpdate */,
|
|
405
|
-
value: {
|
|
406
|
-
logLevel: logInfo.level,
|
|
407
|
-
logFormat: logInfo.format,
|
|
408
|
-
sendBackLogs: isDebugModeEnabled,
|
|
409
|
-
},
|
|
410
|
-
});
|
|
411
|
-
}, _this._destroyCanceller.signal);
|
|
412
|
-
var sendConfigUpdates = function (updates) {
|
|
413
|
-
if (_this._priv_worker === null) {
|
|
414
|
-
return;
|
|
415
|
-
}
|
|
416
|
-
log_1.default.debug("M-->C", "Sending message:", {
|
|
417
|
-
name: "config-update" /* MainThreadMessageType.ConfigUpdate */,
|
|
418
|
-
});
|
|
419
|
-
_this._priv_worker.postMessage({
|
|
420
|
-
type: "config-update" /* MainThreadMessageType.ConfigUpdate */,
|
|
421
|
-
value: updates,
|
|
422
|
-
});
|
|
423
|
-
};
|
|
424
|
-
if (config_1.default.updated) {
|
|
425
|
-
sendConfigUpdates(config_1.default.getCurrent());
|
|
426
|
-
}
|
|
427
|
-
config_1.default.addEventListener("update", sendConfigUpdates, _this._destroyCanceller.signal);
|
|
428
|
-
});
|
|
429
|
-
};
|
|
430
|
-
/**
|
|
431
|
-
* Returns information on which "mode" the RxPlayer is running for the current
|
|
432
|
-
* content (e.g. main logic running in a WebWorker or not, are we in
|
|
433
|
-
* directfile mode...).
|
|
434
|
-
*
|
|
435
|
-
* Returns `null` if no content is loaded.
|
|
436
|
-
* @returns {Object|null}
|
|
437
|
-
*/
|
|
438
|
-
Player.prototype.getCurrentModeInformation = function () {
|
|
439
|
-
if (this._priv_contentInfos === null) {
|
|
440
|
-
return null;
|
|
441
|
-
}
|
|
442
|
-
return {
|
|
443
|
-
isDirectFile: this._priv_contentInfos.isDirectFile,
|
|
444
|
-
useWorker: this._priv_contentInfos.useWorker,
|
|
445
|
-
};
|
|
446
|
-
};
|
|
447
|
-
/**
|
|
448
|
-
* Register a new callback for a player event event.
|
|
449
|
-
*
|
|
450
|
-
* @param {string} evt - The event to register a callback to
|
|
451
|
-
* @param {Function} fn - The callback to call as that event is triggered.
|
|
452
|
-
* The callback will take as argument the eventual payload of the event
|
|
453
|
-
* (single argument).
|
|
454
|
-
*/
|
|
455
|
-
Player.prototype.addEventListener = function (evt, fn) {
|
|
456
|
-
// The EventEmitter's `addEventListener` method takes an optional third
|
|
457
|
-
// argument that we do not want to expose in the public API.
|
|
458
|
-
// We thus overwrite that function to remove any possible usage of that
|
|
459
|
-
// third argument.
|
|
460
|
-
return _super.prototype.addEventListener.call(this, evt, fn);
|
|
461
|
-
};
|
|
462
|
-
/**
|
|
463
|
-
* Stop the playback for the current content.
|
|
464
|
-
*/
|
|
465
|
-
Player.prototype.stop = function () {
|
|
466
|
-
if (this._priv_contentInfos !== null) {
|
|
467
|
-
this._priv_contentInfos.currentContentCanceller.cancel();
|
|
468
|
-
}
|
|
469
|
-
this._priv_cleanUpCurrentContentState();
|
|
470
|
-
if (this.state !== "STOPPED" /* PLAYER_STATES.STOPPED */) {
|
|
471
|
-
this._priv_setPlayerState("STOPPED" /* PLAYER_STATES.STOPPED */);
|
|
472
|
-
}
|
|
473
|
-
};
|
|
474
|
-
/**
|
|
475
|
-
* Free the resources used by the player.
|
|
476
|
-
* /!\ The player cannot be "used" anymore after this method has been called.
|
|
477
|
-
*/
|
|
478
|
-
Player.prototype.dispose = function () {
|
|
479
|
-
// free resources linked to the loaded content
|
|
480
|
-
this.stop();
|
|
481
|
-
if (this.videoElement !== null) {
|
|
482
|
-
Player._priv_deregisterVideoElement(this.videoElement);
|
|
483
|
-
// free resources used for decryption management
|
|
484
|
-
(0, decrypt_1.disposeDecryptionResources)(this.videoElement).catch(function (err) {
|
|
485
|
-
var message = err instanceof Error ? err.message : "Unknown error";
|
|
486
|
-
log_1.default.error("API", "Could not dispose decryption resources: " + message);
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
|
-
// free resources linked to the Player instance
|
|
490
|
-
this._destroyCanceller.cancel();
|
|
491
|
-
this._priv_reloadingMetadata = {};
|
|
492
|
-
// un-attach video element
|
|
493
|
-
this.videoElement = null;
|
|
494
|
-
if (this._priv_worker !== null) {
|
|
495
|
-
this._priv_worker.terminate();
|
|
496
|
-
this._priv_worker = null;
|
|
497
|
-
}
|
|
498
|
-
};
|
|
499
|
-
/**
|
|
500
|
-
* Load a new video.
|
|
501
|
-
* @param {Object} opts
|
|
502
|
-
*/
|
|
503
|
-
Player.prototype.loadVideo = function (opts) {
|
|
504
|
-
var options = (0, option_utils_1.parseLoadVideoOptions)(opts);
|
|
505
|
-
log_1.default.info("API", "Calling loadvideo", {
|
|
506
|
-
url: options.url,
|
|
507
|
-
transport: options.transport,
|
|
508
|
-
});
|
|
509
|
-
this._priv_reloadingMetadata = { options: options };
|
|
510
|
-
this._priv_initializeContentPlayback(options);
|
|
511
|
-
this._priv_lastAutoPlay = options.autoPlay;
|
|
512
|
-
};
|
|
513
|
-
/**
|
|
514
|
-
* Reload the last loaded content.
|
|
515
|
-
* @param {Object} reloadOpts
|
|
516
|
-
*/
|
|
517
|
-
Player.prototype.reload = function (reloadOpts) {
|
|
518
|
-
var _a, _b, _c;
|
|
519
|
-
var _d = this._priv_reloadingMetadata, options = _d.options, manifest = _d.manifest, reloadPosition = _d.reloadPosition, reloadInPause = _d.reloadInPause;
|
|
520
|
-
if (options === undefined) {
|
|
521
|
-
throw new Error("API: Can't reload without having previously loaded a content.");
|
|
522
|
-
}
|
|
523
|
-
(0, option_utils_1.checkReloadOptions)(reloadOpts);
|
|
524
|
-
var startAt;
|
|
525
|
-
if (((_a = reloadOpts === null || reloadOpts === void 0 ? void 0 : reloadOpts.reloadAt) === null || _a === void 0 ? void 0 : _a.position) !== undefined) {
|
|
526
|
-
startAt = { position: reloadOpts.reloadAt.position };
|
|
527
|
-
}
|
|
528
|
-
else if (((_b = reloadOpts === null || reloadOpts === void 0 ? void 0 : reloadOpts.reloadAt) === null || _b === void 0 ? void 0 : _b.relative) !== undefined) {
|
|
529
|
-
if (reloadPosition === undefined) {
|
|
530
|
-
throw new Error("Can't reload to a relative position when previous content was not loaded.");
|
|
531
|
-
}
|
|
532
|
-
else {
|
|
533
|
-
startAt = { position: reloadOpts.reloadAt.relative + reloadPosition };
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
else if (reloadPosition !== undefined) {
|
|
537
|
-
startAt = { position: reloadPosition };
|
|
538
|
-
}
|
|
539
|
-
var autoPlay;
|
|
540
|
-
if ((reloadOpts === null || reloadOpts === void 0 ? void 0 : reloadOpts.autoPlay) !== undefined) {
|
|
541
|
-
autoPlay = reloadOpts.autoPlay;
|
|
542
|
-
}
|
|
543
|
-
else if (reloadInPause !== undefined) {
|
|
544
|
-
autoPlay = !reloadInPause;
|
|
545
|
-
}
|
|
546
|
-
var keySystems;
|
|
547
|
-
if ((reloadOpts === null || reloadOpts === void 0 ? void 0 : reloadOpts.keySystems) !== undefined) {
|
|
548
|
-
keySystems = reloadOpts.keySystems;
|
|
549
|
-
}
|
|
550
|
-
else if (((_c = this._priv_reloadingMetadata.options) === null || _c === void 0 ? void 0 : _c.keySystems) !== undefined) {
|
|
551
|
-
keySystems = this._priv_reloadingMetadata.options.keySystems;
|
|
552
|
-
}
|
|
553
|
-
var newOptions = __assign(__assign({}, options), { initialManifest: manifest });
|
|
554
|
-
if (startAt !== undefined) {
|
|
555
|
-
newOptions.startAt = startAt;
|
|
556
|
-
}
|
|
557
|
-
if (autoPlay !== undefined) {
|
|
558
|
-
newOptions.autoPlay = autoPlay;
|
|
559
|
-
}
|
|
560
|
-
if (keySystems !== undefined) {
|
|
561
|
-
newOptions.keySystems = keySystems;
|
|
562
|
-
}
|
|
563
|
-
this._priv_initializeContentPlayback(newOptions);
|
|
564
|
-
};
|
|
565
|
-
Player.prototype.createDebugElement = function (element) {
|
|
566
|
-
if (features_1.default.createDebugElement === null) {
|
|
567
|
-
throw new Error("Feature `DEBUG_ELEMENT` not added to the RxPlayer");
|
|
568
|
-
}
|
|
569
|
-
var canceller = new task_canceller_1.default();
|
|
570
|
-
features_1.default.createDebugElement(element, this, canceller.signal);
|
|
571
|
-
return {
|
|
572
|
-
dispose: function () {
|
|
573
|
-
canceller.cancel();
|
|
574
|
-
},
|
|
575
|
-
};
|
|
576
|
-
};
|
|
577
|
-
/**
|
|
578
|
-
* Returns an array decribing the various thumbnail tracks that can be
|
|
579
|
-
* encountered at the wanted time or Period.
|
|
580
|
-
* @param {Object} arg
|
|
581
|
-
* @param {number|undefined} [arg.time] - The position to check for thumbnail
|
|
582
|
-
* tracks, in seconds.
|
|
583
|
-
* @param {string|undefined} [arg.periodId] - The Period to check for
|
|
584
|
-
* thumbnail tracks.
|
|
585
|
-
* If not set and if `arg.time` is also not set, the current Period will be
|
|
586
|
-
* considered.
|
|
587
|
-
* @returns {Array.<Object>}
|
|
588
|
-
*/
|
|
589
|
-
Player.prototype.getAvailableThumbnailTracks = function (_a) {
|
|
590
|
-
var _b = _a === void 0 ? {} : _a, time = _b.time, periodId = _b.periodId;
|
|
591
|
-
if (this._priv_contentInfos === null || this._priv_contentInfos.manifest === null) {
|
|
592
|
-
return [];
|
|
593
|
-
}
|
|
594
|
-
var manifest = this._priv_contentInfos.manifest;
|
|
595
|
-
var period;
|
|
596
|
-
if (time !== undefined) {
|
|
597
|
-
period = (0, manifest_1.getPeriodForTime)(this._priv_contentInfos.manifest, time);
|
|
598
|
-
if (period === undefined || period.thumbnailTracks.length === 0) {
|
|
599
|
-
return [];
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
else if (periodId !== undefined) {
|
|
603
|
-
period = (0, array_find_1.default)(manifest.periods, function (p) { return p.id === periodId; });
|
|
604
|
-
if (period === undefined) {
|
|
605
|
-
log_1.default.error("API", "getAvailableThumbnailTracks: periodId not found", { periodId: periodId });
|
|
606
|
-
return [];
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
else {
|
|
610
|
-
var currentPeriod = this._priv_contentInfos.currentPeriod;
|
|
611
|
-
if (currentPeriod === null) {
|
|
612
|
-
return [];
|
|
613
|
-
}
|
|
614
|
-
period = currentPeriod;
|
|
615
|
-
}
|
|
616
|
-
return period.thumbnailTracks.map(function (t) {
|
|
617
|
-
return {
|
|
618
|
-
id: t.id,
|
|
619
|
-
width: Math.floor(t.width / t.horizontalTiles),
|
|
620
|
-
height: Math.floor(t.height / t.verticalTiles),
|
|
621
|
-
mimeType: t.mimeType,
|
|
622
|
-
};
|
|
623
|
-
});
|
|
624
|
-
};
|
|
625
|
-
/**
|
|
626
|
-
* Render inside the given `container` the thumbnail corresponding to the
|
|
627
|
-
* given time.
|
|
628
|
-
*
|
|
629
|
-
* If no thumbnail is available at that time or if the RxPlayer does not succeed
|
|
630
|
-
* to load or render it, reject the corresponding Promise and remove the
|
|
631
|
-
* potential previous thumbnail from the container.
|
|
632
|
-
*
|
|
633
|
-
* If a new `renderThumbnail` call is made with the same `container` before it
|
|
634
|
-
* had time to finish, the Promise is also rejected but the previous thumbnail
|
|
635
|
-
* potentially found in the container is untouched.
|
|
636
|
-
*
|
|
637
|
-
* @param {Object|undefined} options
|
|
638
|
-
* @returns {Promise}
|
|
639
|
-
*/
|
|
640
|
-
Player.prototype.renderThumbnail = function (options) {
|
|
641
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
642
|
-
return __generator(this, function (_a) {
|
|
643
|
-
if ((0, is_null_or_undefined_1.default)(options.time)) {
|
|
644
|
-
throw new Error("You have to provide a `time` property to `renderThumbnail`, indicating the wanted thumbnail time in seconds.");
|
|
645
|
-
}
|
|
646
|
-
if ((0, is_null_or_undefined_1.default)(options.container)) {
|
|
647
|
-
throw new Error("You have to provide a `container` property to `renderThumbnail`, specifying the HTML Element in which the thumbnail should be inserted.");
|
|
648
|
-
}
|
|
649
|
-
return [2 /*return*/, (0, render_thumbnail_1.default)(this._priv_contentInfos, options)];
|
|
650
|
-
});
|
|
651
|
-
});
|
|
652
|
-
};
|
|
653
|
-
/**
|
|
654
|
-
* From given options, initialize content playback.
|
|
655
|
-
* @param {Object} options
|
|
656
|
-
*/
|
|
657
|
-
Player.prototype._priv_initializeContentPlayback = function (options) {
|
|
658
|
-
var _this = this;
|
|
659
|
-
var _a, _b, _c, _d, _f, _g;
|
|
660
|
-
var autoPlay = options.autoPlay, cmcd = options.cmcd, defaultAudioTrackSwitchingMode = options.defaultAudioTrackSwitchingMode, enableFastSwitching = options.enableFastSwitching, initialManifest = options.initialManifest, keySystems = options.keySystems, lowLatencyMode = options.lowLatencyMode, minimumManifestUpdateInterval = options.minimumManifestUpdateInterval, requestConfig = options.requestConfig, onCodecSwitch = options.onCodecSwitch, startAt = options.startAt, transport = options.transport, checkMediaSegmentIntegrity = options.checkMediaSegmentIntegrity, checkManifestIntegrity = options.checkManifestIntegrity, manifestLoader = options.manifestLoader, referenceDateTime = options.referenceDateTime, segmentLoader = options.segmentLoader, serverSyncInfos = options.serverSyncInfos, mode = options.mode, experimentalOptions = options.experimentalOptions, __priv_manifestUpdateUrl = options.__priv_manifestUpdateUrl, __priv_patchLastSegmentInSidx = options.__priv_patchLastSegmentInSidx, url = options.url, onAudioTracksNotPlayable = options.onAudioTracksNotPlayable, onVideoTracksNotPlayable = options.onVideoTracksNotPlayable;
|
|
661
|
-
// Perform multiple checks on the given options
|
|
662
|
-
if (this.videoElement === null) {
|
|
663
|
-
throw new Error("the attached video element is disposed");
|
|
664
|
-
}
|
|
665
|
-
var isDirectFile = transport === "directfile";
|
|
666
|
-
/** Emit to stop the current content. */
|
|
667
|
-
var currentContentCanceller = new task_canceller_1.default();
|
|
668
|
-
var videoElement = this.videoElement;
|
|
669
|
-
var initializer;
|
|
670
|
-
var useWorker = false;
|
|
671
|
-
var mediaElementTracksStore = null;
|
|
672
|
-
if (!isDirectFile) {
|
|
673
|
-
/** Interface used to load and refresh the Manifest. */
|
|
674
|
-
var manifestRequestSettings = {
|
|
675
|
-
lowLatencyMode: lowLatencyMode,
|
|
676
|
-
maxRetry: (_a = requestConfig.manifest) === null || _a === void 0 ? void 0 : _a.maxRetry,
|
|
677
|
-
requestTimeout: (_b = requestConfig.manifest) === null || _b === void 0 ? void 0 : _b.timeout,
|
|
678
|
-
connectionTimeout: (_c = requestConfig.manifest) === null || _c === void 0 ? void 0 : _c.connectionTimeout,
|
|
679
|
-
minimumManifestUpdateInterval: minimumManifestUpdateInterval,
|
|
680
|
-
initialManifest: initialManifest,
|
|
681
|
-
};
|
|
682
|
-
var relyOnVideoVisibilityAndSize = (0, can_rely_on_video_visibility_and_size_1.default)();
|
|
683
|
-
var throttlers = {
|
|
684
|
-
throttleBitrate: {},
|
|
685
|
-
limitResolution: {},
|
|
686
|
-
};
|
|
687
|
-
if (this._priv_throttleVideoBitrateWhenHidden) {
|
|
688
|
-
if (!relyOnVideoVisibilityAndSize) {
|
|
689
|
-
log_1.default.warn("API", "Can't apply throttleVideoBitrateWhenHidden because " +
|
|
690
|
-
"browser can't be trusted for visibility.");
|
|
691
|
-
}
|
|
692
|
-
else {
|
|
693
|
-
throttlers.throttleBitrate = {
|
|
694
|
-
video: (0, reference_1.createMappedReference)((0, event_listeners_1.getVideoVisibilityRef)(this._priv_pictureInPictureRef, currentContentCanceller.signal), function (isActive) { return (isActive ? Infinity : 0); }, currentContentCanceller.signal),
|
|
695
|
-
};
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
if (this._priv_videoResolutionLimit === "videoElement") {
|
|
699
|
-
if (!relyOnVideoVisibilityAndSize) {
|
|
700
|
-
log_1.default.warn("API", "Can't apply videoResolutionLimit because browser can't be " +
|
|
701
|
-
"trusted for video size.");
|
|
702
|
-
}
|
|
703
|
-
else {
|
|
704
|
-
throttlers.limitResolution = {
|
|
705
|
-
video: (0, event_listeners_1.getElementResolutionRef)(videoElement, this._priv_pictureInPictureRef, currentContentCanceller.signal),
|
|
706
|
-
};
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
else if (this._priv_videoResolutionLimit === "screen") {
|
|
710
|
-
throttlers.limitResolution = {
|
|
711
|
-
video: (0, event_listeners_1.getScreenResolutionRef)(currentContentCanceller.signal),
|
|
712
|
-
};
|
|
713
|
-
}
|
|
714
|
-
/** Options used by the adaptive logic. */
|
|
715
|
-
var adaptiveOptions = {
|
|
716
|
-
initialBitrates: this._priv_bitrateInfos.lastBitrates,
|
|
717
|
-
lowLatencyMode: lowLatencyMode,
|
|
718
|
-
throttlers: throttlers,
|
|
719
|
-
};
|
|
720
|
-
/** Options used by the TextTrack SegmentSink. */
|
|
721
|
-
var textTrackOptions = options.textTrackMode === "native"
|
|
722
|
-
? { textTrackMode: "native" }
|
|
723
|
-
: {
|
|
724
|
-
textTrackMode: "html",
|
|
725
|
-
textTrackElement: options.textTrackElement,
|
|
726
|
-
};
|
|
727
|
-
var bufferOptions = (0, object_assign_1.default)({ enableFastSwitching: enableFastSwitching, onCodecSwitch: onCodecSwitch }, this._priv_bufferOptions);
|
|
728
|
-
var segmentRequestOptions = {
|
|
729
|
-
lowLatencyMode: lowLatencyMode,
|
|
730
|
-
maxRetry: (_d = requestConfig.segment) === null || _d === void 0 ? void 0 : _d.maxRetry,
|
|
731
|
-
requestTimeout: (_f = requestConfig.segment) === null || _f === void 0 ? void 0 : _f.timeout,
|
|
732
|
-
connectionTimeout: (_g = requestConfig.segment) === null || _g === void 0 ? void 0 : _g.connectionTimeout,
|
|
733
|
-
};
|
|
734
|
-
var canRunInMultiThread = features_1.default.multithread !== null &&
|
|
735
|
-
this._priv_worker !== null &&
|
|
736
|
-
this.videoElement.FORCED_MEDIA_SOURCE === undefined &&
|
|
737
|
-
transport === "dash" &&
|
|
738
|
-
MULTI_THREAD_UNSUPPORTED_LOAD_VIDEO_OPTIONS.every(function (option) {
|
|
739
|
-
return (0, is_null_or_undefined_1.default)(options[option]);
|
|
740
|
-
}) &&
|
|
741
|
-
typeof options.representationFilter !== "function";
|
|
742
|
-
if (mode === "main" || (mode === "auto" && !canRunInMultiThread)) {
|
|
743
|
-
if (features_1.default.mainThreadMediaSourceInit === null) {
|
|
744
|
-
throw new Error("Cannot load video, neither in a WebWorker nor with the " +
|
|
745
|
-
"`MEDIA_SOURCE_MAIN` feature");
|
|
746
|
-
}
|
|
747
|
-
var transportFn = features_1.default.transports[transport];
|
|
748
|
-
if (typeof transportFn !== "function") {
|
|
749
|
-
// Stop previous content and reset its state
|
|
750
|
-
this.stop();
|
|
751
|
-
this._priv_currentError = null;
|
|
752
|
-
throw new Error("transport \"".concat(transport, "\" not supported"));
|
|
753
|
-
}
|
|
754
|
-
var representationFilter = typeof options.representationFilter === "string"
|
|
755
|
-
? (0, manifest_1.createRepresentationFilterFromFnString)(options.representationFilter)
|
|
756
|
-
: options.representationFilter;
|
|
757
|
-
log_1.default.info("API", "Initializing MediaSource mode in the main thread");
|
|
758
|
-
var transportPipelines = transportFn({
|
|
759
|
-
lowLatencyMode: lowLatencyMode,
|
|
760
|
-
checkMediaSegmentIntegrity: checkMediaSegmentIntegrity,
|
|
761
|
-
checkManifestIntegrity: checkManifestIntegrity,
|
|
762
|
-
manifestLoader: manifestLoader,
|
|
763
|
-
referenceDateTime: referenceDateTime,
|
|
764
|
-
representationFilter: representationFilter,
|
|
765
|
-
segmentLoader: segmentLoader,
|
|
766
|
-
serverSyncInfos: serverSyncInfos,
|
|
767
|
-
__priv_manifestUpdateUrl: __priv_manifestUpdateUrl,
|
|
768
|
-
__priv_patchLastSegmentInSidx: __priv_patchLastSegmentInSidx,
|
|
769
|
-
});
|
|
770
|
-
initializer = new features_1.default.mainThreadMediaSourceInit({
|
|
771
|
-
adaptiveOptions: adaptiveOptions,
|
|
772
|
-
autoPlay: autoPlay,
|
|
773
|
-
bufferOptions: bufferOptions,
|
|
774
|
-
cmcd: cmcd,
|
|
775
|
-
enableRepresentationAvoidance: experimentalOptions.enableRepresentationAvoidance,
|
|
776
|
-
keySystems: keySystems,
|
|
777
|
-
lowLatencyMode: lowLatencyMode,
|
|
778
|
-
transport: transportPipelines,
|
|
779
|
-
manifestRequestSettings: manifestRequestSettings,
|
|
780
|
-
segmentRequestOptions: segmentRequestOptions,
|
|
781
|
-
speed: this._priv_speed,
|
|
782
|
-
startAt: startAt,
|
|
783
|
-
textTrackOptions: textTrackOptions,
|
|
784
|
-
url: url,
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
else {
|
|
788
|
-
if (features_1.default.multithread === null) {
|
|
789
|
-
throw new Error("Cannot load video in multithread mode: `MULTI_THREAD` " +
|
|
790
|
-
"feature not imported.");
|
|
791
|
-
}
|
|
792
|
-
else if (this._priv_worker === null) {
|
|
793
|
-
throw new Error("Cannot load video in multithread mode: `attachWorker` " +
|
|
794
|
-
"method not called.");
|
|
795
|
-
}
|
|
796
|
-
(0, assert_1.default)(typeof options.representationFilter !== "function");
|
|
797
|
-
useWorker = true;
|
|
798
|
-
log_1.default.info("API", "Initializing MediaSource mode in a WebWorker");
|
|
799
|
-
var transportOptions = {
|
|
800
|
-
lowLatencyMode: lowLatencyMode,
|
|
801
|
-
checkMediaSegmentIntegrity: checkMediaSegmentIntegrity,
|
|
802
|
-
checkManifestIntegrity: checkManifestIntegrity,
|
|
803
|
-
referenceDateTime: referenceDateTime,
|
|
804
|
-
serverSyncInfos: serverSyncInfos,
|
|
805
|
-
manifestLoader: undefined,
|
|
806
|
-
segmentLoader: undefined,
|
|
807
|
-
representationFilter: options.representationFilter,
|
|
808
|
-
__priv_manifestUpdateUrl: __priv_manifestUpdateUrl,
|
|
809
|
-
__priv_patchLastSegmentInSidx: __priv_patchLastSegmentInSidx,
|
|
810
|
-
};
|
|
811
|
-
initializer = new features_1.default.multithread.init({
|
|
812
|
-
adaptiveOptions: adaptiveOptions,
|
|
813
|
-
autoPlay: autoPlay,
|
|
814
|
-
bufferOptions: bufferOptions,
|
|
815
|
-
cmcd: cmcd,
|
|
816
|
-
enableRepresentationAvoidance: experimentalOptions.enableRepresentationAvoidance,
|
|
817
|
-
keySystems: keySystems,
|
|
818
|
-
lowLatencyMode: lowLatencyMode,
|
|
819
|
-
transportOptions: transportOptions,
|
|
820
|
-
manifestRequestSettings: manifestRequestSettings,
|
|
821
|
-
segmentRequestOptions: segmentRequestOptions,
|
|
822
|
-
speed: this._priv_speed,
|
|
823
|
-
startAt: startAt,
|
|
824
|
-
textTrackOptions: textTrackOptions,
|
|
825
|
-
worker: this._priv_worker,
|
|
826
|
-
url: url,
|
|
827
|
-
useMseInWorker: has_mse_in_worker_1.default,
|
|
828
|
-
});
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
else {
|
|
832
|
-
if (features_1.default.directfile === null) {
|
|
833
|
-
this.stop();
|
|
834
|
-
this._priv_currentError = null;
|
|
835
|
-
throw new Error("DirectFile feature not activated in your build.");
|
|
836
|
-
}
|
|
837
|
-
else if ((0, is_null_or_undefined_1.default)(url)) {
|
|
838
|
-
throw new Error("No URL for a DirectFile content");
|
|
839
|
-
}
|
|
840
|
-
log_1.default.info("API", "Initializing DirectFile mode in the main thread");
|
|
841
|
-
mediaElementTracksStore = this._priv_initializeMediaElementTracksStore(currentContentCanceller.signal);
|
|
842
|
-
if (currentContentCanceller.isUsed()) {
|
|
843
|
-
return;
|
|
844
|
-
}
|
|
845
|
-
initializer = new features_1.default.directfile.initDirectFile({
|
|
846
|
-
autoPlay: autoPlay,
|
|
847
|
-
keySystems: keySystems,
|
|
848
|
-
speed: this._priv_speed,
|
|
849
|
-
startAt: startAt,
|
|
850
|
-
url: url,
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
/** Global "playback observer" which will emit playback conditions */
|
|
854
|
-
var playbackObserver = new media_element_playback_observer_1.default({
|
|
855
|
-
withMediaSource: !isDirectFile,
|
|
856
|
-
lowLatencyMode: lowLatencyMode,
|
|
857
|
-
});
|
|
858
|
-
/*
|
|
859
|
-
* We want to block seeking operations until we know the media element is
|
|
860
|
-
* ready for it.
|
|
861
|
-
*/
|
|
862
|
-
playbackObserver.blockSeeking();
|
|
863
|
-
currentContentCanceller.signal.register(function () {
|
|
864
|
-
playbackObserver.stop();
|
|
865
|
-
});
|
|
866
|
-
/** Future `this._priv_contentInfos` related to this content. */
|
|
867
|
-
var contentInfos = {
|
|
868
|
-
contentId: generateContentId(),
|
|
869
|
-
originalUrl: url,
|
|
870
|
-
playbackObserver: playbackObserver,
|
|
871
|
-
currentContentCanceller: currentContentCanceller,
|
|
872
|
-
defaultAudioTrackSwitchingMode: defaultAudioTrackSwitchingMode,
|
|
873
|
-
initializer: initializer,
|
|
874
|
-
isDirectFile: isDirectFile,
|
|
875
|
-
manifest: null,
|
|
876
|
-
currentPeriod: null,
|
|
877
|
-
activeAdaptations: null,
|
|
878
|
-
activeRepresentations: null,
|
|
879
|
-
tracksStore: null,
|
|
880
|
-
mediaElementTracksStore: mediaElementTracksStore,
|
|
881
|
-
useWorker: useWorker,
|
|
882
|
-
segmentSinkMetricsCallback: null,
|
|
883
|
-
fetchThumbnailDataCallback: null,
|
|
884
|
-
thumbnailRequestsInfo: {
|
|
885
|
-
pendingRequests: new WeakMap(),
|
|
886
|
-
lastResponse: null,
|
|
887
|
-
},
|
|
888
|
-
onAudioTracksNotPlayable: onAudioTracksNotPlayable,
|
|
889
|
-
onVideoTracksNotPlayable: onVideoTracksNotPlayable,
|
|
890
|
-
};
|
|
891
|
-
// Bind events
|
|
892
|
-
initializer.addEventListener("error", function (error) {
|
|
893
|
-
_this._priv_onFatalError(error, contentInfos);
|
|
894
|
-
});
|
|
895
|
-
initializer.addEventListener("warning", function (error) {
|
|
896
|
-
var formattedError = (0, errors_1.formatError)(error, {
|
|
897
|
-
defaultCode: "NONE",
|
|
898
|
-
defaultReason: "An unknown error happened.",
|
|
899
|
-
});
|
|
900
|
-
log_1.default.warn("API", "Sending warning:", formattedError);
|
|
901
|
-
_this.trigger("warning", formattedError);
|
|
902
|
-
});
|
|
903
|
-
initializer.addEventListener("reloadingMediaSource", function (payload) {
|
|
904
|
-
if (contentInfos.tracksStore !== null) {
|
|
905
|
-
contentInfos.tracksStore.resetPeriodObjects();
|
|
906
|
-
}
|
|
907
|
-
if (_this._priv_contentInfos !== null) {
|
|
908
|
-
_this._priv_contentInfos.segmentSinkMetricsCallback = null;
|
|
909
|
-
}
|
|
910
|
-
_this._priv_lastAutoPlay = payload.autoPlay;
|
|
911
|
-
});
|
|
912
|
-
initializer.addEventListener("inbandEvents", function (inbandEvents) {
|
|
913
|
-
return _this.trigger("inbandEvents", inbandEvents);
|
|
914
|
-
});
|
|
915
|
-
initializer.addEventListener("streamEvent", function (streamEvent) {
|
|
916
|
-
return _this.trigger("streamEvent", streamEvent);
|
|
917
|
-
});
|
|
918
|
-
initializer.addEventListener("streamEventSkip", function (streamEventSkip) {
|
|
919
|
-
return _this.trigger("streamEventSkip", streamEventSkip);
|
|
920
|
-
});
|
|
921
|
-
initializer.addEventListener("activePeriodChanged", function (periodInfo) {
|
|
922
|
-
return _this._priv_onActivePeriodChanged(contentInfos, periodInfo);
|
|
923
|
-
});
|
|
924
|
-
initializer.addEventListener("periodStreamReady", function (periodReadyInfo) {
|
|
925
|
-
return _this._priv_onPeriodStreamReady(contentInfos, periodReadyInfo);
|
|
926
|
-
});
|
|
927
|
-
initializer.addEventListener("periodStreamCleared", function (periodClearedInfo) {
|
|
928
|
-
return _this._priv_onPeriodStreamCleared(contentInfos, periodClearedInfo);
|
|
929
|
-
});
|
|
930
|
-
initializer.addEventListener("representationChange", function (representationInfo) {
|
|
931
|
-
return _this._priv_onRepresentationChange(contentInfos, representationInfo);
|
|
932
|
-
});
|
|
933
|
-
initializer.addEventListener("adaptationChange", function (adaptationInfo) {
|
|
934
|
-
return _this._priv_onAdaptationChange(contentInfos, adaptationInfo);
|
|
935
|
-
});
|
|
936
|
-
initializer.addEventListener("bitrateEstimateChange", function (bitrateEstimateInfo) {
|
|
937
|
-
return _this._priv_onBitrateEstimateChange(bitrateEstimateInfo);
|
|
938
|
-
});
|
|
939
|
-
initializer.addEventListener("manifestReady", function (manifest) {
|
|
940
|
-
return _this._priv_onManifestReady(contentInfos, manifest);
|
|
941
|
-
});
|
|
942
|
-
initializer.addEventListener("manifestUpdate", function (updates) {
|
|
943
|
-
return _this._priv_onManifestUpdate(contentInfos, updates);
|
|
944
|
-
});
|
|
945
|
-
initializer.addEventListener("codecSupportUpdate", function () {
|
|
946
|
-
return _this._priv_onCodecSupportUpdate(contentInfos);
|
|
947
|
-
});
|
|
948
|
-
initializer.addEventListener("decipherabilityUpdate", function (updates) {
|
|
949
|
-
return _this._priv_onDecipherabilityUpdate(contentInfos, updates);
|
|
950
|
-
});
|
|
951
|
-
initializer.addEventListener("loaded", function (evt) {
|
|
952
|
-
if (_this._priv_contentInfos !== null) {
|
|
953
|
-
_this._priv_contentInfos.segmentSinkMetricsCallback = evt.getSegmentSinkMetrics;
|
|
954
|
-
_this._priv_contentInfos.fetchThumbnailDataCallback = evt.getThumbnailData;
|
|
955
|
-
}
|
|
956
|
-
});
|
|
957
|
-
// Now, that most events are linked, prepare the next content.
|
|
958
|
-
initializer.prepare();
|
|
959
|
-
// Now that the content is prepared, stop previous content and reset state
|
|
960
|
-
// This is done after content preparation as `stop` could technically have
|
|
961
|
-
// a long and synchronous blocking time.
|
|
962
|
-
// Note that this call is done **synchronously** after all events linking.
|
|
963
|
-
// This is **VERY** important so:
|
|
964
|
-
// - the `STOPPED` state is switched to synchronously after loading a new
|
|
965
|
-
// content.
|
|
966
|
-
// - we can avoid involontarily catching events linked to the previous
|
|
967
|
-
// content.
|
|
968
|
-
this.stop();
|
|
969
|
-
playbackObserver.attachMediaElement(videoElement);
|
|
970
|
-
// Update the RxPlayer's state at the right events
|
|
971
|
-
var playerStateRef = (0, utils_1.constructPlayerStateReference)(initializer, videoElement, playbackObserver, isDirectFile, currentContentCanceller.signal);
|
|
972
|
-
currentContentCanceller.signal.register(function () {
|
|
973
|
-
initializer.dispose();
|
|
974
|
-
});
|
|
975
|
-
/**
|
|
976
|
-
* Function updating `this._priv_reloadingMetadata` in function of the
|
|
977
|
-
* current state and playback conditions.
|
|
978
|
-
* To call when either might change.
|
|
979
|
-
* @param {string} state - The player state we're about to switch to.
|
|
980
|
-
*/
|
|
981
|
-
var updateReloadingMetadata = function (state) {
|
|
982
|
-
switch (state) {
|
|
983
|
-
case "STOPPED":
|
|
984
|
-
case "RELOADING":
|
|
985
|
-
case "LOADING":
|
|
986
|
-
break; // keep previous metadata
|
|
987
|
-
case "ENDED":
|
|
988
|
-
_this._priv_reloadingMetadata.reloadInPause = true;
|
|
989
|
-
_this._priv_reloadingMetadata.reloadPosition = playbackObserver
|
|
990
|
-
.getReference()
|
|
991
|
-
.getValue()
|
|
992
|
-
.position.getPolled();
|
|
993
|
-
break;
|
|
994
|
-
default: {
|
|
995
|
-
var o = playbackObserver.getReference().getValue();
|
|
996
|
-
_this._priv_reloadingMetadata.reloadInPause = o.paused;
|
|
997
|
-
_this._priv_reloadingMetadata.reloadPosition = o.position.getWanted();
|
|
998
|
-
break;
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
|
-
};
|
|
1002
|
-
/**
|
|
1003
|
-
* `TaskCanceller` allowing to stop emitting `"play"` and `"pause"`
|
|
1004
|
-
* events.
|
|
1005
|
-
* `null` when such events are not emitted currently.
|
|
1006
|
-
*/
|
|
1007
|
-
var playPauseEventsCanceller = null;
|
|
1008
|
-
/**
|
|
1009
|
-
* Callback emitting `"play"` and `"pause`" events once the content is
|
|
1010
|
-
* loaded, starting from the state indicated in argument.
|
|
1011
|
-
* @param {boolean} willAutoPlay - If `false`, we're currently paused.
|
|
1012
|
-
*/
|
|
1013
|
-
var triggerPlayPauseEventsWhenReady = function (willAutoPlay) {
|
|
1014
|
-
if (playPauseEventsCanceller !== null) {
|
|
1015
|
-
playPauseEventsCanceller.cancel(); // cancel previous logic
|
|
1016
|
-
playPauseEventsCanceller = null;
|
|
1017
|
-
}
|
|
1018
|
-
playerStateRef.onUpdate(function (val, stopListeningToStateUpdates) {
|
|
1019
|
-
if (!(0, utils_1.isLoadedState)(val)) {
|
|
1020
|
-
return; // content not loaded yet: no event
|
|
1021
|
-
}
|
|
1022
|
-
stopListeningToStateUpdates();
|
|
1023
|
-
if (playPauseEventsCanceller !== null) {
|
|
1024
|
-
playPauseEventsCanceller.cancel();
|
|
1025
|
-
}
|
|
1026
|
-
playPauseEventsCanceller = new task_canceller_1.default();
|
|
1027
|
-
playPauseEventsCanceller.linkToSignal(currentContentCanceller.signal);
|
|
1028
|
-
if (willAutoPlay !== !videoElement.paused) {
|
|
1029
|
-
// paused status is not at the expected value on load: emit event
|
|
1030
|
-
if (videoElement.paused) {
|
|
1031
|
-
_this.trigger("pause", null);
|
|
1032
|
-
}
|
|
1033
|
-
else {
|
|
1034
|
-
_this.trigger("play", null);
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
(0, utils_1.emitPlayPauseEvents)(videoElement, function () { return _this.trigger("play", null); }, function () { return _this.trigger("pause", null); }, currentContentCanceller.signal);
|
|
1038
|
-
}, {
|
|
1039
|
-
emitCurrentValue: false,
|
|
1040
|
-
clearSignal: currentContentCanceller.signal,
|
|
1041
|
-
});
|
|
1042
|
-
};
|
|
1043
|
-
triggerPlayPauseEventsWhenReady(autoPlay);
|
|
1044
|
-
initializer.addEventListener("reloadingMediaSource", function (payload) {
|
|
1045
|
-
triggerPlayPauseEventsWhenReady(payload.autoPlay);
|
|
1046
|
-
});
|
|
1047
|
-
this._priv_currentError = null;
|
|
1048
|
-
this._priv_contentInfos = contentInfos;
|
|
1049
|
-
/**
|
|
1050
|
-
* `TaskCanceller` allowing to stop emitting `"seeking"` and `"seeked"`
|
|
1051
|
-
* events.
|
|
1052
|
-
* `null` when such events are not emitted currently.
|
|
1053
|
-
*/
|
|
1054
|
-
var seekEventsCanceller = null;
|
|
1055
|
-
// React to player state change
|
|
1056
|
-
playerStateRef.onUpdate(function (newState) {
|
|
1057
|
-
updateReloadingMetadata(newState);
|
|
1058
|
-
_this._priv_setPlayerState(newState);
|
|
1059
|
-
if (currentContentCanceller.isUsed()) {
|
|
1060
|
-
return;
|
|
1061
|
-
}
|
|
1062
|
-
if (seekEventsCanceller !== null) {
|
|
1063
|
-
if (!(0, utils_1.isLoadedState)(_this.state)) {
|
|
1064
|
-
seekEventsCanceller.cancel();
|
|
1065
|
-
seekEventsCanceller = null;
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
else if ((0, utils_1.isLoadedState)(_this.state)) {
|
|
1069
|
-
seekEventsCanceller = new task_canceller_1.default();
|
|
1070
|
-
seekEventsCanceller.linkToSignal(currentContentCanceller.signal);
|
|
1071
|
-
(0, utils_1.emitSeekEvents)(playbackObserver, function () { return _this.trigger("seeking", null); }, function () { return _this.trigger("seeked", null); }, seekEventsCanceller.signal);
|
|
1072
|
-
}
|
|
1073
|
-
}, { emitCurrentValue: true, clearSignal: currentContentCanceller.signal });
|
|
1074
|
-
// React to playback conditions change
|
|
1075
|
-
playbackObserver.listen(function (observation) {
|
|
1076
|
-
updateReloadingMetadata(_this.state);
|
|
1077
|
-
_this._priv_triggerPositionUpdate(contentInfos, observation);
|
|
1078
|
-
}, { clearSignal: currentContentCanceller.signal });
|
|
1079
|
-
currentContentCanceller.signal.register(function () {
|
|
1080
|
-
initializer.removeEventListener();
|
|
1081
|
-
});
|
|
1082
|
-
// initialize the content only when the lock is inactive
|
|
1083
|
-
this._priv_contentLock.onUpdate(function (isLocked, stopListeningToLock) {
|
|
1084
|
-
if (!isLocked) {
|
|
1085
|
-
stopListeningToLock();
|
|
1086
|
-
// start playback!
|
|
1087
|
-
initializer.start(videoElement, playbackObserver);
|
|
1088
|
-
}
|
|
1089
|
-
}, { emitCurrentValue: true, clearSignal: currentContentCanceller.signal });
|
|
1090
|
-
};
|
|
1091
|
-
/**
|
|
1092
|
-
* Returns fatal error if one for the current content.
|
|
1093
|
-
* null otherwise.
|
|
1094
|
-
* @returns {Object|null} - The current Error (`null` when no error).
|
|
1095
|
-
*/
|
|
1096
|
-
Player.prototype.getError = function () {
|
|
1097
|
-
return this._priv_currentError;
|
|
1098
|
-
};
|
|
1099
|
-
/**
|
|
1100
|
-
* Returns the media DOM element used by the player.
|
|
1101
|
-
* You should not its HTML5 API directly and use the player's method instead,
|
|
1102
|
-
* to ensure a well-behaved player.
|
|
1103
|
-
* @returns {HTMLMediaElement|null} - The HTMLMediaElement used (`null` when
|
|
1104
|
-
* disposed)
|
|
1105
|
-
*/
|
|
1106
|
-
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
1107
|
-
Player.prototype.getVideoElement = function () {
|
|
1108
|
-
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
1109
|
-
return this.videoElement;
|
|
1110
|
-
};
|
|
1111
|
-
/**
|
|
1112
|
-
* Returns the player's current state.
|
|
1113
|
-
* @returns {string} - The current Player's state
|
|
1114
|
-
*/
|
|
1115
|
-
Player.prototype.getPlayerState = function () {
|
|
1116
|
-
return this.state;
|
|
1117
|
-
};
|
|
1118
|
-
/**
|
|
1119
|
-
* Returns true if a content is loaded.
|
|
1120
|
-
* @returns {Boolean} - `true` if a content is loaded, `false` otherwise.
|
|
1121
|
-
*/
|
|
1122
|
-
Player.prototype.isContentLoaded = function () {
|
|
1123
|
-
return !(0, array_includes_1.default)(["LOADING", "RELOADING", "STOPPED"], this.state);
|
|
1124
|
-
};
|
|
1125
|
-
/**
|
|
1126
|
-
* Returns true if the player is buffering.
|
|
1127
|
-
* @returns {Boolean} - `true` if the player is buffering, `false` otherwise.
|
|
1128
|
-
*/
|
|
1129
|
-
Player.prototype.isBuffering = function () {
|
|
1130
|
-
return (0, array_includes_1.default)(["BUFFERING", "SEEKING", "LOADING", "RELOADING"], this.state);
|
|
1131
|
-
};
|
|
1132
|
-
/**
|
|
1133
|
-
* Returns the play/pause status of the player :
|
|
1134
|
-
* - when `LOADING` or `RELOADING`, returns the scheduled play/pause condition
|
|
1135
|
-
* for when loading is over,
|
|
1136
|
-
* - in other states, returns the `<video>` element .paused value,
|
|
1137
|
-
* - if the player is disposed, returns `true`.
|
|
1138
|
-
* @returns {Boolean} - `true` if the player is paused or will be after loading,
|
|
1139
|
-
* `false` otherwise.
|
|
1140
|
-
*/
|
|
1141
|
-
Player.prototype.isPaused = function () {
|
|
1142
|
-
if (this.videoElement !== null) {
|
|
1143
|
-
if ((0, array_includes_1.default)(["LOADING", "RELOADING"], this.state)) {
|
|
1144
|
-
return !this._priv_lastAutoPlay;
|
|
1145
|
-
}
|
|
1146
|
-
else {
|
|
1147
|
-
return this.videoElement.paused;
|
|
1148
|
-
}
|
|
1149
|
-
}
|
|
1150
|
-
return true;
|
|
1151
|
-
};
|
|
1152
|
-
/**
|
|
1153
|
-
* Returns true if both:
|
|
1154
|
-
* - a content is loaded
|
|
1155
|
-
* - the content loaded is a live content
|
|
1156
|
-
* @returns {Boolean} - `true` if we're playing a live content, `false` otherwise.
|
|
1157
|
-
*/
|
|
1158
|
-
Player.prototype.isLive = function () {
|
|
1159
|
-
if (this._priv_contentInfos === null) {
|
|
1160
|
-
return false;
|
|
1161
|
-
}
|
|
1162
|
-
var _a = this._priv_contentInfos, isDirectFile = _a.isDirectFile, manifest = _a.manifest;
|
|
1163
|
-
if (isDirectFile || manifest === null) {
|
|
1164
|
-
return false;
|
|
1165
|
-
}
|
|
1166
|
-
return manifest.isLive;
|
|
1167
|
-
};
|
|
1168
|
-
/**
|
|
1169
|
-
* Returns `true` if trickmode playback is active (usually through the usage
|
|
1170
|
-
* of the `setPlaybackRate` method), which means that the RxPlayer selects
|
|
1171
|
-
* "trickmode" video tracks in priority.
|
|
1172
|
-
* @returns {Boolean}
|
|
1173
|
-
*/
|
|
1174
|
-
Player.prototype.areTrickModeTracksEnabled = function () {
|
|
1175
|
-
return this._priv_preferTrickModeTracks;
|
|
1176
|
-
};
|
|
1177
|
-
/**
|
|
1178
|
-
* Returns the URL(s) of the currently considered Manifest, or of the content for
|
|
1179
|
-
* directfile content.
|
|
1180
|
-
* @returns {Array.<string>|undefined} - Current URL. `undefined` if not known
|
|
1181
|
-
* or no URL yet.
|
|
1182
|
-
*/
|
|
1183
|
-
Player.prototype.getContentUrls = function () {
|
|
1184
|
-
if (this._priv_contentInfos === null) {
|
|
1185
|
-
return undefined;
|
|
1186
|
-
}
|
|
1187
|
-
var _a = this._priv_contentInfos, isDirectFile = _a.isDirectFile, manifest = _a.manifest, originalUrl = _a.originalUrl;
|
|
1188
|
-
if (isDirectFile) {
|
|
1189
|
-
return originalUrl === undefined ? undefined : [originalUrl];
|
|
1190
|
-
}
|
|
1191
|
-
if (manifest !== null) {
|
|
1192
|
-
return manifest.uris;
|
|
1193
|
-
}
|
|
1194
|
-
return undefined;
|
|
1195
|
-
};
|
|
1196
|
-
/**
|
|
1197
|
-
* Update URL of the content currently being played (e.g. DASH's MPD).
|
|
1198
|
-
* @param {Array.<string>|undefined} urls - URLs to reach that content /
|
|
1199
|
-
* Manifest from the most prioritized URL to the least prioritized URL.
|
|
1200
|
-
* @param {Object|undefined} [params]
|
|
1201
|
-
* @param {boolean} params.refresh - If `true` the resource in question
|
|
1202
|
-
* (e.g. DASH's MPD) will be refreshed immediately.
|
|
1203
|
-
*/
|
|
1204
|
-
Player.prototype.updateContentUrls = function (urls, params) {
|
|
1205
|
-
if (this._priv_contentInfos === null) {
|
|
1206
|
-
throw new Error("No content loaded");
|
|
1207
|
-
}
|
|
1208
|
-
var refreshNow = (params === null || params === void 0 ? void 0 : params.refresh) === true;
|
|
1209
|
-
this._priv_contentInfos.initializer.updateContentUrls(urls, refreshNow);
|
|
1210
|
-
};
|
|
1211
|
-
/**
|
|
1212
|
-
* Returns the video duration, in seconds.
|
|
1213
|
-
* NaN if no video is playing.
|
|
1214
|
-
* @returns {Number}
|
|
1215
|
-
*/
|
|
1216
|
-
Player.prototype.getMediaDuration = function () {
|
|
1217
|
-
if (this.videoElement === null) {
|
|
1218
|
-
throw new Error("Disposed player");
|
|
1219
|
-
}
|
|
1220
|
-
return this.videoElement.duration;
|
|
1221
|
-
};
|
|
1222
|
-
/**
|
|
1223
|
-
* Returns in seconds the difference between:
|
|
1224
|
-
* - the end of the current contiguous loaded range.
|
|
1225
|
-
* - the current time
|
|
1226
|
-
* @returns {Number}
|
|
1227
|
-
*/
|
|
1228
|
-
Player.prototype.getCurrentBufferGap = function () {
|
|
1229
|
-
if (this.videoElement === null) {
|
|
1230
|
-
throw new Error("Disposed player");
|
|
1231
|
-
}
|
|
1232
|
-
var videoElement = this.videoElement;
|
|
1233
|
-
var bufferGap = (0, ranges_1.getLeftSizeOfBufferedTimeRange)(videoElement.buffered, videoElement.currentTime);
|
|
1234
|
-
if (bufferGap === Infinity) {
|
|
1235
|
-
return 0;
|
|
1236
|
-
}
|
|
1237
|
-
return bufferGap;
|
|
1238
|
-
};
|
|
1239
|
-
/**
|
|
1240
|
-
* Get the current position, in s, in wall-clock time.
|
|
1241
|
-
* That is:
|
|
1242
|
-
* - for live content, get a timestamp, in s, of the current played content.
|
|
1243
|
-
* - for static content, returns the position from beginning in s.
|
|
1244
|
-
*
|
|
1245
|
-
* If you do not know if you want to use this method or getPosition:
|
|
1246
|
-
* - If what you want is to display the current time to the user, use this
|
|
1247
|
-
* one.
|
|
1248
|
-
* - If what you want is to interact with the player's API or perform other
|
|
1249
|
-
* actions (like statistics) with the real player data, use getPosition.
|
|
1250
|
-
*
|
|
1251
|
-
* @returns {Number}
|
|
1252
|
-
*/
|
|
1253
|
-
Player.prototype.getWallClockTime = function () {
|
|
1254
|
-
if (this.videoElement === null) {
|
|
1255
|
-
throw new Error("Disposed player");
|
|
1256
|
-
}
|
|
1257
|
-
if (this._priv_contentInfos === null) {
|
|
1258
|
-
return this.videoElement.currentTime;
|
|
1259
|
-
}
|
|
1260
|
-
var wallClockOffset = this.getWallClockOffset();
|
|
1261
|
-
var currentTime = this.videoElement.currentTime;
|
|
1262
|
-
return currentTime + wallClockOffset;
|
|
1263
|
-
};
|
|
1264
|
-
/**
|
|
1265
|
-
* Get value allowing to convert the media position, as returned by
|
|
1266
|
-
* `getPosition` to a "wall-clock time", as returned by `getWallClockTime`, by
|
|
1267
|
-
* additioning the first two:
|
|
1268
|
-
* ```js
|
|
1269
|
-
* player.getPosition() + player.getWallClockOffset() === player.getWallClockTime();
|
|
1270
|
-
* ```
|
|
1271
|
-
*
|
|
1272
|
-
* As most of the RxPlayer API relies on the media position as returned by
|
|
1273
|
-
* `getPosition`, you may want to use this method to simplify conversion if
|
|
1274
|
-
* what you have right now is a wall-clock time. For example:
|
|
1275
|
-
*
|
|
1276
|
-
* ```js
|
|
1277
|
-
* const wallClockTime = player.getWallClockTime();
|
|
1278
|
-
*
|
|
1279
|
-
* // This one is expressed as a media position
|
|
1280
|
-
* const maximumPosition = player.getMaximumPosition();
|
|
1281
|
-
*
|
|
1282
|
-
* // convert wall-clock time to a media position
|
|
1283
|
-
* const currentPosition = wallClockTime - player.getWallClockOffset();
|
|
1284
|
-
*
|
|
1285
|
-
* console.log(
|
|
1286
|
-
* "delay from maximum position, in seconds",
|
|
1287
|
-
* maximumPosition - currentPosition
|
|
1288
|
-
* );
|
|
1289
|
-
* ```
|
|
1290
|
-
*
|
|
1291
|
-
* Note that there's nothing guaranteeing that this offset won't evolve over
|
|
1292
|
-
* time for a given content. You should call this method every time you need
|
|
1293
|
-
* to perform the conversion.
|
|
1294
|
-
* @returns {number}
|
|
1295
|
-
*/
|
|
1296
|
-
Player.prototype.getWallClockOffset = function () {
|
|
1297
|
-
var _a;
|
|
1298
|
-
if (this.videoElement === null) {
|
|
1299
|
-
return 0;
|
|
1300
|
-
}
|
|
1301
|
-
if (this._priv_contentInfos === null) {
|
|
1302
|
-
return 0;
|
|
1303
|
-
}
|
|
1304
|
-
var _b = this._priv_contentInfos, isDirectFile = _b.isDirectFile, manifest = _b.manifest;
|
|
1305
|
-
if (isDirectFile) {
|
|
1306
|
-
var startDate = (0, get_start_date_1.default)(this.videoElement);
|
|
1307
|
-
return startDate !== null && startDate !== void 0 ? startDate : 0;
|
|
1308
|
-
}
|
|
1309
|
-
if (manifest !== null) {
|
|
1310
|
-
return (_a = manifest.availabilityStartTime) !== null && _a !== void 0 ? _a : 0;
|
|
1311
|
-
}
|
|
1312
|
-
return 0;
|
|
1313
|
-
};
|
|
1314
|
-
/**
|
|
1315
|
-
* Get the current position, in seconds, of the video element.
|
|
1316
|
-
*
|
|
1317
|
-
* If you do not know if you want to use this method or getWallClockTime:
|
|
1318
|
-
* - If what you want is to display the current time to the user, use
|
|
1319
|
-
* getWallClockTime.
|
|
1320
|
-
* - If what you want is to interact with the player's API or perform other
|
|
1321
|
-
* actions (like statistics) with the real player data, use this one.
|
|
1322
|
-
*
|
|
1323
|
-
* @returns {Number}
|
|
1324
|
-
*/
|
|
1325
|
-
Player.prototype.getPosition = function () {
|
|
1326
|
-
if (this.videoElement === null) {
|
|
1327
|
-
throw new Error("Disposed player");
|
|
1328
|
-
}
|
|
1329
|
-
return this.videoElement.currentTime;
|
|
1330
|
-
};
|
|
1331
|
-
/**
|
|
1332
|
-
* Returns the last stored content position, in seconds.
|
|
1333
|
-
*
|
|
1334
|
-
* @returns {number|undefined}
|
|
1335
|
-
*/
|
|
1336
|
-
Player.prototype.getLastStoredContentPosition = function () {
|
|
1337
|
-
return this._priv_reloadingMetadata.reloadPosition;
|
|
1338
|
-
};
|
|
1339
|
-
/**
|
|
1340
|
-
* Returns the current playback rate at which the video plays.
|
|
1341
|
-
* @returns {Number}
|
|
1342
|
-
*/
|
|
1343
|
-
Player.prototype.getPlaybackRate = function () {
|
|
1344
|
-
return this._priv_speed.getValue();
|
|
1345
|
-
};
|
|
1346
|
-
/**
|
|
1347
|
-
* Update the playback rate of the video.
|
|
1348
|
-
*
|
|
1349
|
-
* This method's effect is persisted from content to content, and can be
|
|
1350
|
-
* called even when no content is playing (it will still have an effect for
|
|
1351
|
-
* the next contents).
|
|
1352
|
-
*
|
|
1353
|
-
* If you want to reverse effects provoked by `setPlaybackRate` before playing
|
|
1354
|
-
* another content, you will have to call `setPlaybackRate` first with the
|
|
1355
|
-
* default settings you want to set.
|
|
1356
|
-
*
|
|
1357
|
-
* As an example, to reset the speed to "normal" (x1) speed and to disable
|
|
1358
|
-
* trickMode video tracks (which may have been enabled by a previous
|
|
1359
|
-
* `setPlaybackRate` call), you can call:
|
|
1360
|
-
* ```js
|
|
1361
|
-
* player.setPlaybackRate(1, { preferTrickModeTracks: false });
|
|
1362
|
-
* ```
|
|
1363
|
-
*
|
|
1364
|
-
* --
|
|
1365
|
-
*
|
|
1366
|
-
* This method can be used to switch to or exit from "trickMode" video tracks,
|
|
1367
|
-
* which are tracks specifically defined to mimic the visual aspect of a VCR's
|
|
1368
|
-
* fast forward/rewind feature, by only displaying a few video frames during
|
|
1369
|
-
* playback.
|
|
1370
|
-
*
|
|
1371
|
-
* This behavior is configurable through the second argument, by adding a
|
|
1372
|
-
* property named `preferTrickModeTracks` to that object.
|
|
1373
|
-
*
|
|
1374
|
-
* You can set that value to `true` to switch to trickMode video tracks when
|
|
1375
|
-
* available, and set it to `false` when you want to disable that logic.
|
|
1376
|
-
* Note that like any configuration given to `setPlaybackRate`, this setting
|
|
1377
|
-
* is persisted through all future contents played by the player.
|
|
1378
|
-
*
|
|
1379
|
-
* If you want to stop enabling trickMode tracks, you will have to call
|
|
1380
|
-
* `setPlaybackRate` again with `preferTrickModeTracks` set to `false`.
|
|
1381
|
-
*
|
|
1382
|
-
* You can know at any moment whether this behavior is enabled by calling
|
|
1383
|
-
* the `areTrickModeTracksEnabled` method. This will only means that the
|
|
1384
|
-
* RxPlayer will select in priority trickmode video tracks, not that the
|
|
1385
|
-
* currently chosen video tracks is a trickmode track (for example, some
|
|
1386
|
-
* contents may have no trickmode tracks available).
|
|
1387
|
-
*
|
|
1388
|
-
* If you want to know about the latter instead, you can call `getVideoTrack`
|
|
1389
|
-
* and/or listen to `videoTrackChange` events. The track returned may have an
|
|
1390
|
-
* `isTrickModeTrack` property set to `true`, indicating that it is a
|
|
1391
|
-
* trickmode track.
|
|
1392
|
-
*
|
|
1393
|
-
* Note that switching to or getting out of a trickmode video track may
|
|
1394
|
-
* lead to the player being a brief instant in a `"RELOADING"` state (notified
|
|
1395
|
-
* through `playerStateChange` events and the `getLoadedContentState` method).
|
|
1396
|
-
* When in that state, a black screen may be displayed and multiple RxPlayer
|
|
1397
|
-
* APIs will not be usable.
|
|
1398
|
-
*
|
|
1399
|
-
* @param {Number} rate
|
|
1400
|
-
* @param {Object} opts
|
|
1401
|
-
*/
|
|
1402
|
-
Player.prototype.setPlaybackRate = function (rate, opts) {
|
|
1403
|
-
var _a;
|
|
1404
|
-
if (rate !== this._priv_speed.getValue()) {
|
|
1405
|
-
this._priv_speed.setValue(rate);
|
|
1406
|
-
}
|
|
1407
|
-
var preferTrickModeTracks = opts === null || opts === void 0 ? void 0 : opts.preferTrickModeTracks;
|
|
1408
|
-
if (typeof preferTrickModeTracks !== "boolean") {
|
|
1409
|
-
return;
|
|
1410
|
-
}
|
|
1411
|
-
this._priv_preferTrickModeTracks = preferTrickModeTracks;
|
|
1412
|
-
var tracksStore = (_a = this._priv_contentInfos) === null || _a === void 0 ? void 0 : _a.tracksStore;
|
|
1413
|
-
if (!(0, is_null_or_undefined_1.default)(tracksStore)) {
|
|
1414
|
-
if (preferTrickModeTracks && !tracksStore.isTrickModeEnabled()) {
|
|
1415
|
-
tracksStore.enableVideoTrickModeTracks();
|
|
1416
|
-
}
|
|
1417
|
-
else if (!preferTrickModeTracks && tracksStore.isTrickModeEnabled()) {
|
|
1418
|
-
tracksStore.disableVideoTrickModeTracks();
|
|
1419
|
-
}
|
|
1420
|
-
}
|
|
1421
|
-
};
|
|
1422
|
-
/**
|
|
1423
|
-
* Returns video Representation currently considered for the current Period.
|
|
1424
|
-
*
|
|
1425
|
-
* Returns `null` if no video track is playing for the current Period.
|
|
1426
|
-
*
|
|
1427
|
-
* Returns `undefined` either when are not currently playing any Period or
|
|
1428
|
-
* when we don't know which Representation is playing.
|
|
1429
|
-
* @returns {Object|null|undefined}
|
|
1430
|
-
*/
|
|
1431
|
-
Player.prototype.getVideoRepresentation = function () {
|
|
1432
|
-
var representations = this.__priv_getCurrentRepresentations();
|
|
1433
|
-
if (representations === null) {
|
|
1434
|
-
return undefined;
|
|
1435
|
-
}
|
|
1436
|
-
return (0, is_null_or_undefined_1.default)(representations.video)
|
|
1437
|
-
? representations.video
|
|
1438
|
-
: (0, manifest_1.toVideoRepresentation)(representations.video);
|
|
1439
|
-
};
|
|
1440
|
-
/**
|
|
1441
|
-
* Returns audio Representation currently considered for the current Period.
|
|
1442
|
-
*
|
|
1443
|
-
* Returns `null` if no audio track is playing for the current Period.
|
|
1444
|
-
*
|
|
1445
|
-
* Returns `undefined` either when are not currently playing any Period or
|
|
1446
|
-
* when we don't know which Representation is playing.
|
|
1447
|
-
* @returns {Object|null|undefined}
|
|
1448
|
-
*/
|
|
1449
|
-
Player.prototype.getAudioRepresentation = function () {
|
|
1450
|
-
var representations = this.__priv_getCurrentRepresentations();
|
|
1451
|
-
if (representations === null) {
|
|
1452
|
-
return undefined;
|
|
1453
|
-
}
|
|
1454
|
-
return (0, is_null_or_undefined_1.default)(representations.audio)
|
|
1455
|
-
? representations.video
|
|
1456
|
-
: (0, manifest_1.toAudioRepresentation)(representations.audio);
|
|
1457
|
-
};
|
|
1458
|
-
/**
|
|
1459
|
-
* Play/Resume the current video.
|
|
1460
|
-
* @returns {Promise}
|
|
1461
|
-
*/
|
|
1462
|
-
Player.prototype.play = function () {
|
|
1463
|
-
var _this = this;
|
|
1464
|
-
if (this.videoElement === null) {
|
|
1465
|
-
throw new Error("Disposed player");
|
|
1466
|
-
}
|
|
1467
|
-
var playPromise = this.videoElement.play();
|
|
1468
|
-
if ((0, is_null_or_undefined_1.default)(playPromise) || typeof playPromise.catch !== "function") {
|
|
1469
|
-
return Promise.resolve();
|
|
1470
|
-
}
|
|
1471
|
-
return playPromise.catch(function (error) {
|
|
1472
|
-
if (error.name === "NotAllowedError") {
|
|
1473
|
-
var warning = new errors_1.MediaError("MEDIA_ERR_PLAY_NOT_ALLOWED", error.toString());
|
|
1474
|
-
_this.trigger("warning", warning);
|
|
1475
|
-
}
|
|
1476
|
-
throw error;
|
|
1477
|
-
});
|
|
1478
|
-
};
|
|
1479
|
-
/**
|
|
1480
|
-
* Pause the current video.
|
|
1481
|
-
*/
|
|
1482
|
-
Player.prototype.pause = function () {
|
|
1483
|
-
if (this.videoElement === null) {
|
|
1484
|
-
throw new Error("Disposed player");
|
|
1485
|
-
}
|
|
1486
|
-
this.videoElement.pause();
|
|
1487
|
-
};
|
|
1488
|
-
/**
|
|
1489
|
-
* Seek to a given absolute position.
|
|
1490
|
-
* @param {Number|Object} time
|
|
1491
|
-
* @returns {Number} - The time the player has seek to
|
|
1492
|
-
*/
|
|
1493
|
-
Player.prototype.seekTo = function (time) {
|
|
1494
|
-
var _a;
|
|
1495
|
-
if (this.videoElement === null) {
|
|
1496
|
-
throw new Error("Disposed player");
|
|
1497
|
-
}
|
|
1498
|
-
if (this._priv_contentInfos === null) {
|
|
1499
|
-
throw new Error("player: no content loaded");
|
|
1500
|
-
}
|
|
1501
|
-
var _b = this._priv_contentInfos, isDirectFile = _b.isDirectFile, manifest = _b.manifest;
|
|
1502
|
-
var positionWanted;
|
|
1503
|
-
if (typeof time === "number") {
|
|
1504
|
-
positionWanted = time;
|
|
1505
|
-
}
|
|
1506
|
-
else if (typeof time === "object") {
|
|
1507
|
-
var timeObj = time;
|
|
1508
|
-
var currentTs = this.videoElement.currentTime;
|
|
1509
|
-
if (!(0, is_null_or_undefined_1.default)(timeObj.relative)) {
|
|
1510
|
-
positionWanted = currentTs + timeObj.relative;
|
|
1511
|
-
}
|
|
1512
|
-
else if (!(0, is_null_or_undefined_1.default)(timeObj.position)) {
|
|
1513
|
-
positionWanted = timeObj.position;
|
|
1514
|
-
}
|
|
1515
|
-
else if (!(0, is_null_or_undefined_1.default)(timeObj.wallClockTime)) {
|
|
1516
|
-
if (manifest !== null) {
|
|
1517
|
-
positionWanted = timeObj.wallClockTime - ((_a = manifest.availabilityStartTime) !== null && _a !== void 0 ? _a : 0);
|
|
1518
|
-
}
|
|
1519
|
-
else if (!isDirectFile) {
|
|
1520
|
-
throw new Error("Cannot seek: wallClockTime asked but Manifest not yet loaded.");
|
|
1521
|
-
}
|
|
1522
|
-
else if (this.videoElement !== null) {
|
|
1523
|
-
var startDate = (0, get_start_date_1.default)(this.videoElement);
|
|
1524
|
-
if (startDate !== undefined) {
|
|
1525
|
-
positionWanted = timeObj.wallClockTime - startDate;
|
|
1526
|
-
}
|
|
1527
|
-
}
|
|
1528
|
-
if (positionWanted === undefined) {
|
|
1529
|
-
positionWanted = timeObj.wallClockTime;
|
|
1530
|
-
}
|
|
1531
|
-
}
|
|
1532
|
-
else {
|
|
1533
|
-
throw new Error("invalid time object. You must set one of the " +
|
|
1534
|
-
'following properties: "relative", "position" or ' +
|
|
1535
|
-
'"wallClockTime"');
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
if (positionWanted === undefined) {
|
|
1539
|
-
throw new Error("invalid time given");
|
|
1540
|
-
}
|
|
1541
|
-
log_1.default.info("API", "API seekTo", { positionWanted: positionWanted });
|
|
1542
|
-
this._priv_contentInfos.playbackObserver.setCurrentTime(positionWanted, false);
|
|
1543
|
-
return positionWanted;
|
|
1544
|
-
};
|
|
1545
|
-
/**
|
|
1546
|
-
* Returns the current player's audio volume on the media element.
|
|
1547
|
-
* From 0 (no audio) to 1 (maximum volume).
|
|
1548
|
-
* @returns {Number}
|
|
1549
|
-
*/
|
|
1550
|
-
Player.prototype.getVolume = function () {
|
|
1551
|
-
if (this.videoElement === null) {
|
|
1552
|
-
throw new Error("Disposed player");
|
|
1553
|
-
}
|
|
1554
|
-
return this.videoElement.volume;
|
|
1555
|
-
};
|
|
1556
|
-
/**
|
|
1557
|
-
* Set the player's audio volume. From 0 (no volume) to 1 (maximum volume).
|
|
1558
|
-
* @param {Number} volume
|
|
1559
|
-
*/
|
|
1560
|
-
Player.prototype.setVolume = function (volume) {
|
|
1561
|
-
if (this.videoElement === null) {
|
|
1562
|
-
throw new Error("Disposed player");
|
|
1563
|
-
}
|
|
1564
|
-
var videoElement = this.videoElement;
|
|
1565
|
-
if (volume !== videoElement.volume) {
|
|
1566
|
-
videoElement.volume = volume;
|
|
1567
|
-
}
|
|
1568
|
-
};
|
|
1569
|
-
/**
|
|
1570
|
-
* Returns `true` if audio is currently muted.
|
|
1571
|
-
* @returns {Boolean}
|
|
1572
|
-
*/
|
|
1573
|
-
Player.prototype.isMute = function () {
|
|
1574
|
-
var _a;
|
|
1575
|
-
return ((_a = this.videoElement) === null || _a === void 0 ? void 0 : _a.muted) === true;
|
|
1576
|
-
};
|
|
1577
|
-
/**
|
|
1578
|
-
* Mute audio.
|
|
1579
|
-
*/
|
|
1580
|
-
Player.prototype.mute = function () {
|
|
1581
|
-
if (this.videoElement === null) {
|
|
1582
|
-
throw new Error("Disposed player");
|
|
1583
|
-
}
|
|
1584
|
-
if (!this.videoElement.muted) {
|
|
1585
|
-
this.videoElement.muted = true;
|
|
1586
|
-
}
|
|
1587
|
-
};
|
|
1588
|
-
/**
|
|
1589
|
-
* Unmute audio.
|
|
1590
|
-
*/
|
|
1591
|
-
Player.prototype.unMute = function () {
|
|
1592
|
-
if (this.videoElement === null) {
|
|
1593
|
-
throw new Error("Disposed player");
|
|
1594
|
-
}
|
|
1595
|
-
if (this.videoElement.muted) {
|
|
1596
|
-
this.videoElement.muted = false;
|
|
1597
|
-
}
|
|
1598
|
-
};
|
|
1599
|
-
/**
|
|
1600
|
-
* Set the max buffer size for the buffer behind the current position.
|
|
1601
|
-
* Every buffer data before will be removed.
|
|
1602
|
-
* @param {Number} depthInSeconds
|
|
1603
|
-
*/
|
|
1604
|
-
Player.prototype.setMaxBufferBehind = function (depthInSeconds) {
|
|
1605
|
-
this._priv_bufferOptions.maxBufferBehind.setValue(depthInSeconds);
|
|
1606
|
-
};
|
|
1607
|
-
/**
|
|
1608
|
-
* Set the max buffer size for the buffer behind the current position.
|
|
1609
|
-
* Every buffer data before will be removed.
|
|
1610
|
-
* @param {Number} depthInSeconds
|
|
1611
|
-
*/
|
|
1612
|
-
Player.prototype.setMaxBufferAhead = function (depthInSeconds) {
|
|
1613
|
-
this._priv_bufferOptions.maxBufferAhead.setValue(depthInSeconds);
|
|
1614
|
-
};
|
|
1615
|
-
/**
|
|
1616
|
-
* Set the max buffer size for the buffer ahead of the current position.
|
|
1617
|
-
* The player will stop downloading chunks when this size is reached.
|
|
1618
|
-
* @param {Number} sizeInSeconds
|
|
1619
|
-
*/
|
|
1620
|
-
Player.prototype.setWantedBufferAhead = function (sizeInSeconds) {
|
|
1621
|
-
this._priv_bufferOptions.wantedBufferAhead.setValue(sizeInSeconds);
|
|
1622
|
-
};
|
|
1623
|
-
/**
|
|
1624
|
-
* Set the max buffer size the buffer should take in memory
|
|
1625
|
-
* The player . will stop downloading chunks when this size is reached.
|
|
1626
|
-
* @param {Number} sizeInKBytes
|
|
1627
|
-
*/
|
|
1628
|
-
Player.prototype.setMaxVideoBufferSize = function (sizeInKBytes) {
|
|
1629
|
-
this._priv_bufferOptions.maxVideoBufferSize.setValue(sizeInKBytes);
|
|
1630
|
-
};
|
|
1631
|
-
/**
|
|
1632
|
-
* Returns the max buffer size for the buffer behind the current position.
|
|
1633
|
-
* @returns {Number}
|
|
1634
|
-
*/
|
|
1635
|
-
Player.prototype.getMaxBufferBehind = function () {
|
|
1636
|
-
return this._priv_bufferOptions.maxBufferBehind.getValue();
|
|
1637
|
-
};
|
|
1638
|
-
/**
|
|
1639
|
-
* Returns the max buffer size for the buffer behind the current position.
|
|
1640
|
-
* @returns {Number}
|
|
1641
|
-
*/
|
|
1642
|
-
Player.prototype.getMaxBufferAhead = function () {
|
|
1643
|
-
return this._priv_bufferOptions.maxBufferAhead.getValue();
|
|
1644
|
-
};
|
|
1645
|
-
/**
|
|
1646
|
-
* Returns the max buffer size for the buffer ahead of the current position.
|
|
1647
|
-
* @returns {Number}
|
|
1648
|
-
*/
|
|
1649
|
-
Player.prototype.getWantedBufferAhead = function () {
|
|
1650
|
-
return this._priv_bufferOptions.wantedBufferAhead.getValue();
|
|
1651
|
-
};
|
|
1652
|
-
/**
|
|
1653
|
-
* Returns the max buffer memory size for the buffer in kilobytes
|
|
1654
|
-
* @returns {Number}
|
|
1655
|
-
*/
|
|
1656
|
-
Player.prototype.getMaxVideoBufferSize = function () {
|
|
1657
|
-
return this._priv_bufferOptions.maxVideoBufferSize.getValue();
|
|
1658
|
-
};
|
|
1659
|
-
Player.prototype.getCurrentPeriod = function () {
|
|
1660
|
-
var _a;
|
|
1661
|
-
var currentPeriod = (_a = this._priv_contentInfos) === null || _a === void 0 ? void 0 : _a.currentPeriod;
|
|
1662
|
-
if ((0, is_null_or_undefined_1.default)(currentPeriod)) {
|
|
1663
|
-
return null;
|
|
1664
|
-
}
|
|
1665
|
-
return {
|
|
1666
|
-
id: currentPeriod.id,
|
|
1667
|
-
start: currentPeriod.start,
|
|
1668
|
-
end: currentPeriod.end,
|
|
1669
|
-
};
|
|
1670
|
-
};
|
|
1671
|
-
/**
|
|
1672
|
-
* Returns both the name of the key system (e.g. `"com.widevine.alpha"`) and
|
|
1673
|
-
* the `MediaKeySystemConfiguration` currently associated to the
|
|
1674
|
-
* HTMLMediaElement linked to the RxPlayer.
|
|
1675
|
-
*
|
|
1676
|
-
* Returns `null` if no such capabilities is associated or if unknown.
|
|
1677
|
-
* @returns {Object|null}
|
|
1678
|
-
*/
|
|
1679
|
-
Player.prototype.getKeySystemConfiguration = function () {
|
|
1680
|
-
if (this.videoElement === null) {
|
|
1681
|
-
throw new Error("Disposed player");
|
|
1682
|
-
}
|
|
1683
|
-
var values = (0, decrypt_1.getKeySystemConfiguration)(this.videoElement);
|
|
1684
|
-
if (values === null) {
|
|
1685
|
-
return null;
|
|
1686
|
-
}
|
|
1687
|
-
return { keySystem: values[0], configuration: values[1] };
|
|
1688
|
-
};
|
|
1689
|
-
/**
|
|
1690
|
-
* Returns the list of available Periods for which the current audio, video or
|
|
1691
|
-
* text track can now be changed.
|
|
1692
|
-
* @returns {Array.<Object>}
|
|
1693
|
-
*/
|
|
1694
|
-
Player.prototype.getAvailablePeriods = function () {
|
|
1695
|
-
if (this._priv_contentInfos === null) {
|
|
1696
|
-
return [];
|
|
1697
|
-
}
|
|
1698
|
-
var _a = this._priv_contentInfos, isDirectFile = _a.isDirectFile, tracksStore = _a.tracksStore;
|
|
1699
|
-
if (isDirectFile) {
|
|
1700
|
-
return [];
|
|
1701
|
-
}
|
|
1702
|
-
if (tracksStore === null) {
|
|
1703
|
-
return [];
|
|
1704
|
-
}
|
|
1705
|
-
return tracksStore.getAvailablePeriods().slice();
|
|
1706
|
-
};
|
|
1707
|
-
/**
|
|
1708
|
-
* Returns every available audio tracks for a given Period - or the current
|
|
1709
|
-
* one if no `periodId` is given.
|
|
1710
|
-
* @param {string|Object|undefined} [arg]
|
|
1711
|
-
* @returns {Array.<Object>}
|
|
1712
|
-
*/
|
|
1713
|
-
Player.prototype.getAvailableAudioTracks = function (arg) {
|
|
1714
|
-
var _a, _b;
|
|
1715
|
-
if (this._priv_contentInfos === null) {
|
|
1716
|
-
return [];
|
|
1717
|
-
}
|
|
1718
|
-
var _c = this._priv_contentInfos, isDirectFile = _c.isDirectFile, mediaElementTracksStore = _c.mediaElementTracksStore;
|
|
1719
|
-
if (isDirectFile) {
|
|
1720
|
-
return (_a = mediaElementTracksStore === null || mediaElementTracksStore === void 0 ? void 0 : mediaElementTracksStore.getAvailableAudioTracks()) !== null && _a !== void 0 ? _a : [];
|
|
1721
|
-
}
|
|
1722
|
-
var periodId;
|
|
1723
|
-
var filterPlayableRepresentations = true;
|
|
1724
|
-
if (typeof arg === "string") {
|
|
1725
|
-
periodId = arg;
|
|
1726
|
-
}
|
|
1727
|
-
else {
|
|
1728
|
-
periodId = arg === null || arg === void 0 ? void 0 : arg.periodId;
|
|
1729
|
-
filterPlayableRepresentations = (_b = arg === null || arg === void 0 ? void 0 : arg.filterPlayableRepresentations) !== null && _b !== void 0 ? _b : true;
|
|
1730
|
-
}
|
|
1731
|
-
return this._priv_callTracksStoreGetterSetter(periodId, [], function (tcm, periodRef) { var _a; return (_a = tcm.getAvailableAudioTracks(periodRef, filterPlayableRepresentations)) !== null && _a !== void 0 ? _a : []; });
|
|
1732
|
-
};
|
|
1733
|
-
/**
|
|
1734
|
-
* Returns every available text tracks for a given Period - or the current
|
|
1735
|
-
* one if no `periodId` is given.
|
|
1736
|
-
* @param {string|undefined} [periodId]
|
|
1737
|
-
* @returns {Array.<Object>}
|
|
1738
|
-
*/
|
|
1739
|
-
Player.prototype.getAvailableTextTracks = function (periodId) {
|
|
1740
|
-
var _a;
|
|
1741
|
-
if (this._priv_contentInfos === null) {
|
|
1742
|
-
return [];
|
|
1743
|
-
}
|
|
1744
|
-
var _b = this._priv_contentInfos, isDirectFile = _b.isDirectFile, mediaElementTracksStore = _b.mediaElementTracksStore;
|
|
1745
|
-
if (isDirectFile) {
|
|
1746
|
-
return (_a = mediaElementTracksStore === null || mediaElementTracksStore === void 0 ? void 0 : mediaElementTracksStore.getAvailableTextTracks()) !== null && _a !== void 0 ? _a : [];
|
|
1747
|
-
}
|
|
1748
|
-
return this._priv_callTracksStoreGetterSetter(periodId, [], function (tcm, periodRef) { var _a; return (_a = tcm.getAvailableTextTracks(periodRef)) !== null && _a !== void 0 ? _a : []; });
|
|
1749
|
-
};
|
|
1750
|
-
/**
|
|
1751
|
-
* Returns every available video tracks for the current Period.
|
|
1752
|
-
* @param {string|Object|undefined} [arg]
|
|
1753
|
-
* @returns {Array.<Object>}
|
|
1754
|
-
*/
|
|
1755
|
-
Player.prototype.getAvailableVideoTracks = function (arg) {
|
|
1756
|
-
var _a, _b;
|
|
1757
|
-
if (this._priv_contentInfos === null) {
|
|
1758
|
-
return [];
|
|
1759
|
-
}
|
|
1760
|
-
var _c = this._priv_contentInfos, isDirectFile = _c.isDirectFile, mediaElementTracksStore = _c.mediaElementTracksStore;
|
|
1761
|
-
if (isDirectFile) {
|
|
1762
|
-
return (_a = mediaElementTracksStore === null || mediaElementTracksStore === void 0 ? void 0 : mediaElementTracksStore.getAvailableVideoTracks()) !== null && _a !== void 0 ? _a : [];
|
|
1763
|
-
}
|
|
1764
|
-
var periodId;
|
|
1765
|
-
var filterPlayableRepresentations = true;
|
|
1766
|
-
if (typeof arg === "string") {
|
|
1767
|
-
periodId = arg;
|
|
1768
|
-
}
|
|
1769
|
-
else {
|
|
1770
|
-
periodId = arg === null || arg === void 0 ? void 0 : arg.periodId;
|
|
1771
|
-
filterPlayableRepresentations = (_b = arg === null || arg === void 0 ? void 0 : arg.filterPlayableRepresentations) !== null && _b !== void 0 ? _b : true;
|
|
1772
|
-
}
|
|
1773
|
-
return this._priv_callTracksStoreGetterSetter(periodId, [], function (tcm, periodRef) { var _a; return (_a = tcm.getAvailableVideoTracks(periodRef, filterPlayableRepresentations)) !== null && _a !== void 0 ? _a : []; });
|
|
1774
|
-
};
|
|
1775
|
-
/**
|
|
1776
|
-
* Returns currently chosen audio language for the current Period.
|
|
1777
|
-
* @param {string|Object|undefined} [arg]
|
|
1778
|
-
* @returns {Object|null|undefined}
|
|
1779
|
-
*/
|
|
1780
|
-
Player.prototype.getAudioTrack = function (arg) {
|
|
1781
|
-
var _a;
|
|
1782
|
-
if (this._priv_contentInfos === null) {
|
|
1783
|
-
return undefined;
|
|
1784
|
-
}
|
|
1785
|
-
var _b = this._priv_contentInfos, isDirectFile = _b.isDirectFile, mediaElementTracksStore = _b.mediaElementTracksStore;
|
|
1786
|
-
if (isDirectFile) {
|
|
1787
|
-
if (mediaElementTracksStore === null) {
|
|
1788
|
-
return undefined;
|
|
1789
|
-
}
|
|
1790
|
-
return mediaElementTracksStore.getChosenAudioTrack();
|
|
1791
|
-
}
|
|
1792
|
-
var periodId;
|
|
1793
|
-
var filterPlayableRepresentations = true;
|
|
1794
|
-
if (typeof arg === "string") {
|
|
1795
|
-
periodId = arg;
|
|
1796
|
-
}
|
|
1797
|
-
else {
|
|
1798
|
-
periodId = arg === null || arg === void 0 ? void 0 : arg.periodId;
|
|
1799
|
-
filterPlayableRepresentations = (_a = arg === null || arg === void 0 ? void 0 : arg.filterPlayableRepresentations) !== null && _a !== void 0 ? _a : true;
|
|
1800
|
-
}
|
|
1801
|
-
return this._priv_callTracksStoreGetterSetter(periodId, undefined, function (tcm, periodRef) {
|
|
1802
|
-
return tcm.getChosenAudioTrack(periodRef, filterPlayableRepresentations);
|
|
1803
|
-
});
|
|
1804
|
-
};
|
|
1805
|
-
/**
|
|
1806
|
-
* Returns currently chosen subtitle for the current Period.
|
|
1807
|
-
* @param {string|undefined} [periodId]
|
|
1808
|
-
* @returns {Object|null|undefined}
|
|
1809
|
-
*/
|
|
1810
|
-
Player.prototype.getTextTrack = function (periodId) {
|
|
1811
|
-
if (this._priv_contentInfos === null) {
|
|
1812
|
-
return undefined;
|
|
1813
|
-
}
|
|
1814
|
-
var _a = this._priv_contentInfos, isDirectFile = _a.isDirectFile, mediaElementTracksStore = _a.mediaElementTracksStore;
|
|
1815
|
-
if (isDirectFile) {
|
|
1816
|
-
if (mediaElementTracksStore === null) {
|
|
1817
|
-
return undefined;
|
|
1818
|
-
}
|
|
1819
|
-
return mediaElementTracksStore.getChosenTextTrack();
|
|
1820
|
-
}
|
|
1821
|
-
return this._priv_callTracksStoreGetterSetter(periodId, undefined, function (tcm, periodRef) {
|
|
1822
|
-
return tcm.getChosenTextTrack(periodRef);
|
|
1823
|
-
});
|
|
1824
|
-
};
|
|
1825
|
-
/**
|
|
1826
|
-
* Returns currently chosen video track for the current Period.
|
|
1827
|
-
* @param {string|Object|undefined} [arg]
|
|
1828
|
-
* @returns {Object|null|undefined}
|
|
1829
|
-
*/
|
|
1830
|
-
Player.prototype.getVideoTrack = function (arg) {
|
|
1831
|
-
var _a;
|
|
1832
|
-
if (this._priv_contentInfos === null) {
|
|
1833
|
-
return undefined;
|
|
1834
|
-
}
|
|
1835
|
-
var _b = this._priv_contentInfos, isDirectFile = _b.isDirectFile, mediaElementTracksStore = _b.mediaElementTracksStore;
|
|
1836
|
-
if (isDirectFile) {
|
|
1837
|
-
if (mediaElementTracksStore === null) {
|
|
1838
|
-
return undefined;
|
|
1839
|
-
}
|
|
1840
|
-
return mediaElementTracksStore.getChosenVideoTrack();
|
|
1841
|
-
}
|
|
1842
|
-
var periodId;
|
|
1843
|
-
var filterPlayableRepresentations = true;
|
|
1844
|
-
if (typeof arg === "string") {
|
|
1845
|
-
periodId = arg;
|
|
1846
|
-
}
|
|
1847
|
-
else {
|
|
1848
|
-
periodId = arg === null || arg === void 0 ? void 0 : arg.periodId;
|
|
1849
|
-
filterPlayableRepresentations = (_a = arg === null || arg === void 0 ? void 0 : arg.filterPlayableRepresentations) !== null && _a !== void 0 ? _a : true;
|
|
1850
|
-
}
|
|
1851
|
-
return this._priv_callTracksStoreGetterSetter(periodId, undefined, function (tcm, periodRef) {
|
|
1852
|
-
return tcm.getChosenVideoTrack(periodRef, filterPlayableRepresentations);
|
|
1853
|
-
});
|
|
1854
|
-
};
|
|
1855
|
-
/**
|
|
1856
|
-
* Update the audio language for the current Period.
|
|
1857
|
-
* @param {string | object} arg
|
|
1858
|
-
* @throws Error - the current content has no TracksStore.
|
|
1859
|
-
* @throws Error - the given id is linked to no audio track.
|
|
1860
|
-
*/
|
|
1861
|
-
Player.prototype.setAudioTrack = function (arg) {
|
|
1862
|
-
var _a;
|
|
1863
|
-
if (this._priv_contentInfos === null) {
|
|
1864
|
-
throw new Error("No content loaded");
|
|
1865
|
-
}
|
|
1866
|
-
var _b = this._priv_contentInfos, isDirectFile = _b.isDirectFile, mediaElementTracksStore = _b.mediaElementTracksStore;
|
|
1867
|
-
if (isDirectFile) {
|
|
1868
|
-
try {
|
|
1869
|
-
var audioId = typeof arg === "string" ? arg : arg.trackId;
|
|
1870
|
-
mediaElementTracksStore === null || mediaElementTracksStore === void 0 ? void 0 : mediaElementTracksStore.setAudioTrackById(audioId);
|
|
1871
|
-
return;
|
|
1872
|
-
}
|
|
1873
|
-
catch (_e) {
|
|
1874
|
-
throw new Error("player: unknown audio track");
|
|
1875
|
-
}
|
|
1876
|
-
}
|
|
1877
|
-
var periodId;
|
|
1878
|
-
var trackId;
|
|
1879
|
-
var switchingMode;
|
|
1880
|
-
var lockedRepresentations = null;
|
|
1881
|
-
var relativeResumingPosition;
|
|
1882
|
-
if (typeof arg === "string") {
|
|
1883
|
-
trackId = arg;
|
|
1884
|
-
}
|
|
1885
|
-
else {
|
|
1886
|
-
trackId = arg.trackId;
|
|
1887
|
-
periodId = arg.periodId;
|
|
1888
|
-
switchingMode = arg.switchingMode;
|
|
1889
|
-
lockedRepresentations = (_a = arg.lockedRepresentations) !== null && _a !== void 0 ? _a : null;
|
|
1890
|
-
relativeResumingPosition = arg.relativeResumingPosition;
|
|
1891
|
-
}
|
|
1892
|
-
return this._priv_callTracksStoreGetterSetter(periodId, undefined, function (tcm, periodRef) {
|
|
1893
|
-
return tcm.setAudioTrack({
|
|
1894
|
-
periodRef: periodRef,
|
|
1895
|
-
trackId: trackId,
|
|
1896
|
-
switchingMode: switchingMode,
|
|
1897
|
-
lockedRepresentations: lockedRepresentations,
|
|
1898
|
-
relativeResumingPosition: relativeResumingPosition,
|
|
1899
|
-
});
|
|
1900
|
-
});
|
|
1901
|
-
};
|
|
1902
|
-
/**
|
|
1903
|
-
* Update the text language for the current Period.
|
|
1904
|
-
* @param {string | Object} arg
|
|
1905
|
-
* @throws Error - the current content has no TracksStore.
|
|
1906
|
-
* @throws Error - the given id is linked to no text track.
|
|
1907
|
-
*/
|
|
1908
|
-
Player.prototype.setTextTrack = function (arg) {
|
|
1909
|
-
if (this._priv_contentInfos === null) {
|
|
1910
|
-
throw new Error("No content loaded");
|
|
1911
|
-
}
|
|
1912
|
-
var _a = this._priv_contentInfos, isDirectFile = _a.isDirectFile, mediaElementTracksStore = _a.mediaElementTracksStore;
|
|
1913
|
-
if (isDirectFile) {
|
|
1914
|
-
try {
|
|
1915
|
-
var textId = typeof arg === "string" ? arg : arg.trackId;
|
|
1916
|
-
mediaElementTracksStore === null || mediaElementTracksStore === void 0 ? void 0 : mediaElementTracksStore.setTextTrackById(textId);
|
|
1917
|
-
return;
|
|
1918
|
-
}
|
|
1919
|
-
catch (_e) {
|
|
1920
|
-
throw new Error("player: unknown text track");
|
|
1921
|
-
}
|
|
1922
|
-
}
|
|
1923
|
-
var periodId;
|
|
1924
|
-
var trackId;
|
|
1925
|
-
if (typeof arg === "string") {
|
|
1926
|
-
trackId = arg;
|
|
1927
|
-
}
|
|
1928
|
-
else {
|
|
1929
|
-
trackId = arg.trackId;
|
|
1930
|
-
periodId = arg.periodId;
|
|
1931
|
-
}
|
|
1932
|
-
return this._priv_callTracksStoreGetterSetter(periodId, undefined, function (tcm, periodRef) {
|
|
1933
|
-
return tcm.setTextTrack(periodRef, trackId);
|
|
1934
|
-
});
|
|
1935
|
-
};
|
|
1936
|
-
/**
|
|
1937
|
-
* Disable subtitles for the current content.
|
|
1938
|
-
* @param {string|undefined} [periodId]
|
|
1939
|
-
*/
|
|
1940
|
-
Player.prototype.disableTextTrack = function (periodId) {
|
|
1941
|
-
if (this._priv_contentInfos === null) {
|
|
1942
|
-
return;
|
|
1943
|
-
}
|
|
1944
|
-
var _a = this._priv_contentInfos, isDirectFile = _a.isDirectFile, mediaElementTracksStore = _a.mediaElementTracksStore;
|
|
1945
|
-
if (isDirectFile) {
|
|
1946
|
-
mediaElementTracksStore === null || mediaElementTracksStore === void 0 ? void 0 : mediaElementTracksStore.disableTextTrack();
|
|
1947
|
-
return;
|
|
1948
|
-
}
|
|
1949
|
-
return this._priv_callTracksStoreGetterSetter(periodId, undefined, function (tcm, periodRef) {
|
|
1950
|
-
return tcm.disableTrack(periodRef, "text");
|
|
1951
|
-
});
|
|
1952
|
-
};
|
|
1953
|
-
/**
|
|
1954
|
-
* Update the video track for the current Period.
|
|
1955
|
-
* @param {string | Object} arg
|
|
1956
|
-
* @throws Error - the current content has no TracksStore.
|
|
1957
|
-
* @throws Error - the given id is linked to no video track.
|
|
1958
|
-
*/
|
|
1959
|
-
Player.prototype.setVideoTrack = function (arg) {
|
|
1960
|
-
var _a;
|
|
1961
|
-
if (this._priv_contentInfos === null) {
|
|
1962
|
-
throw new Error("No content loaded");
|
|
1963
|
-
}
|
|
1964
|
-
var _b = this._priv_contentInfos, isDirectFile = _b.isDirectFile, mediaElementTracksStore = _b.mediaElementTracksStore;
|
|
1965
|
-
if (isDirectFile) {
|
|
1966
|
-
try {
|
|
1967
|
-
var videoId = typeof arg === "string" ? arg : arg.trackId;
|
|
1968
|
-
mediaElementTracksStore === null || mediaElementTracksStore === void 0 ? void 0 : mediaElementTracksStore.setVideoTrackById(videoId);
|
|
1969
|
-
return;
|
|
1970
|
-
}
|
|
1971
|
-
catch (_e) {
|
|
1972
|
-
throw new Error("player: unknown video track");
|
|
1973
|
-
}
|
|
1974
|
-
}
|
|
1975
|
-
var periodId;
|
|
1976
|
-
var trackId;
|
|
1977
|
-
var switchingMode;
|
|
1978
|
-
var lockedRepresentations = null;
|
|
1979
|
-
var relativeResumingPosition;
|
|
1980
|
-
if (typeof arg === "string") {
|
|
1981
|
-
trackId = arg;
|
|
1982
|
-
}
|
|
1983
|
-
else {
|
|
1984
|
-
trackId = arg.trackId;
|
|
1985
|
-
periodId = arg.periodId;
|
|
1986
|
-
switchingMode = arg.switchingMode;
|
|
1987
|
-
lockedRepresentations = (_a = arg.lockedRepresentations) !== null && _a !== void 0 ? _a : null;
|
|
1988
|
-
relativeResumingPosition = arg.relativeResumingPosition;
|
|
1989
|
-
}
|
|
1990
|
-
return this._priv_callTracksStoreGetterSetter(periodId, undefined, function (tcm, periodRef) {
|
|
1991
|
-
return tcm.setVideoTrack({
|
|
1992
|
-
periodRef: periodRef,
|
|
1993
|
-
trackId: trackId,
|
|
1994
|
-
switchingMode: switchingMode,
|
|
1995
|
-
lockedRepresentations: lockedRepresentations,
|
|
1996
|
-
relativeResumingPosition: relativeResumingPosition,
|
|
1997
|
-
});
|
|
1998
|
-
});
|
|
1999
|
-
};
|
|
2000
|
-
/**
|
|
2001
|
-
* Disable video track for the current content.
|
|
2002
|
-
* @param {string|undefined} [periodId]
|
|
2003
|
-
*/
|
|
2004
|
-
Player.prototype.disableVideoTrack = function (periodId) {
|
|
2005
|
-
if (this._priv_contentInfos === null) {
|
|
2006
|
-
return;
|
|
2007
|
-
}
|
|
2008
|
-
var _a = this._priv_contentInfos, isDirectFile = _a.isDirectFile, mediaElementTracksStore = _a.mediaElementTracksStore;
|
|
2009
|
-
if (isDirectFile && mediaElementTracksStore !== null) {
|
|
2010
|
-
return mediaElementTracksStore.disableVideoTrack();
|
|
2011
|
-
}
|
|
2012
|
-
return this._priv_callTracksStoreGetterSetter(periodId, undefined, function (tcm, periodRef) {
|
|
2013
|
-
return tcm.disableTrack(periodRef, "video");
|
|
2014
|
-
});
|
|
2015
|
-
};
|
|
2016
|
-
Player.prototype.lockVideoRepresentations = function (arg) {
|
|
2017
|
-
if (this._priv_contentInfos === null) {
|
|
2018
|
-
throw new Error("No content loaded");
|
|
2019
|
-
}
|
|
2020
|
-
var isDirectFile = this._priv_contentInfos.isDirectFile;
|
|
2021
|
-
if (isDirectFile) {
|
|
2022
|
-
throw new Error("Cannot lock video Representations in directfile mode.");
|
|
2023
|
-
}
|
|
2024
|
-
var repsId;
|
|
2025
|
-
var periodId;
|
|
2026
|
-
var switchingMode;
|
|
2027
|
-
if (Array.isArray(arg)) {
|
|
2028
|
-
repsId = arg;
|
|
2029
|
-
periodId = undefined;
|
|
2030
|
-
}
|
|
2031
|
-
else {
|
|
2032
|
-
repsId = arg.representations;
|
|
2033
|
-
periodId = arg.periodId;
|
|
2034
|
-
switchingMode = arg.switchingMode;
|
|
2035
|
-
}
|
|
2036
|
-
return this._priv_callTracksStoreGetterSetter(periodId, undefined, function (tcm, periodRef) {
|
|
2037
|
-
return tcm.lockVideoRepresentations(periodRef, {
|
|
2038
|
-
representations: repsId,
|
|
2039
|
-
switchingMode: switchingMode,
|
|
2040
|
-
});
|
|
2041
|
-
});
|
|
2042
|
-
};
|
|
2043
|
-
/**
|
|
2044
|
-
* Disable audio track for the current content.
|
|
2045
|
-
* @param {string|undefined} [periodId]
|
|
2046
|
-
*/
|
|
2047
|
-
Player.prototype.disableAudioTrack = function (periodId) {
|
|
2048
|
-
if (this._priv_contentInfos === null) {
|
|
2049
|
-
return;
|
|
2050
|
-
}
|
|
2051
|
-
var _a = this._priv_contentInfos, isDirectFile = _a.isDirectFile, mediaElementTracksStore = _a.mediaElementTracksStore;
|
|
2052
|
-
if (isDirectFile && mediaElementTracksStore !== null) {
|
|
2053
|
-
return mediaElementTracksStore.disableAudioTrack();
|
|
2054
|
-
}
|
|
2055
|
-
return this._priv_callTracksStoreGetterSetter(periodId, undefined, function (tcm, periodRef) {
|
|
2056
|
-
return tcm.disableTrack(periodRef, "audio");
|
|
2057
|
-
});
|
|
2058
|
-
};
|
|
2059
|
-
Player.prototype.lockAudioRepresentations = function (arg) {
|
|
2060
|
-
if (this._priv_contentInfos === null) {
|
|
2061
|
-
throw new Error("No content loaded");
|
|
2062
|
-
}
|
|
2063
|
-
var isDirectFile = this._priv_contentInfos.isDirectFile;
|
|
2064
|
-
if (isDirectFile) {
|
|
2065
|
-
throw new Error("Cannot lock audio Representations in directfile mode.");
|
|
2066
|
-
}
|
|
2067
|
-
var repsId;
|
|
2068
|
-
var periodId;
|
|
2069
|
-
var switchingMode;
|
|
2070
|
-
if (Array.isArray(arg)) {
|
|
2071
|
-
repsId = arg;
|
|
2072
|
-
periodId = undefined;
|
|
2073
|
-
}
|
|
2074
|
-
else {
|
|
2075
|
-
repsId = arg.representations;
|
|
2076
|
-
periodId = arg.periodId;
|
|
2077
|
-
switchingMode = arg.switchingMode;
|
|
2078
|
-
}
|
|
2079
|
-
return this._priv_callTracksStoreGetterSetter(periodId, undefined, function (tcm, periodRef) {
|
|
2080
|
-
return tcm.lockAudioRepresentations(periodRef, {
|
|
2081
|
-
representations: repsId,
|
|
2082
|
-
switchingMode: switchingMode,
|
|
2083
|
-
});
|
|
2084
|
-
});
|
|
2085
|
-
};
|
|
2086
|
-
Player.prototype.getLockedVideoRepresentations = function (periodId) {
|
|
2087
|
-
if (this._priv_contentInfos === null) {
|
|
2088
|
-
return null;
|
|
2089
|
-
}
|
|
2090
|
-
var isDirectFile = this._priv_contentInfos.isDirectFile;
|
|
2091
|
-
if (isDirectFile) {
|
|
2092
|
-
return null;
|
|
2093
|
-
}
|
|
2094
|
-
return this._priv_callTracksStoreGetterSetter(periodId, null, function (tcm, periodRef) {
|
|
2095
|
-
return tcm.getLockedVideoRepresentations(periodRef);
|
|
2096
|
-
});
|
|
2097
|
-
};
|
|
2098
|
-
Player.prototype.getLockedAudioRepresentations = function (periodId) {
|
|
2099
|
-
if (this._priv_contentInfos === null) {
|
|
2100
|
-
return null;
|
|
2101
|
-
}
|
|
2102
|
-
var isDirectFile = this._priv_contentInfos.isDirectFile;
|
|
2103
|
-
if (isDirectFile) {
|
|
2104
|
-
return null;
|
|
2105
|
-
}
|
|
2106
|
-
return this._priv_callTracksStoreGetterSetter(periodId, null, function (tcm, periodRef) {
|
|
2107
|
-
return tcm.getLockedAudioRepresentations(periodRef);
|
|
2108
|
-
});
|
|
2109
|
-
};
|
|
2110
|
-
Player.prototype.unlockVideoRepresentations = function (periodId) {
|
|
2111
|
-
if (this._priv_contentInfos === null) {
|
|
2112
|
-
return;
|
|
2113
|
-
}
|
|
2114
|
-
var isDirectFile = this._priv_contentInfos.isDirectFile;
|
|
2115
|
-
if (isDirectFile) {
|
|
2116
|
-
return;
|
|
2117
|
-
}
|
|
2118
|
-
return this._priv_callTracksStoreGetterSetter(periodId, undefined, function (tcm, periodRef) {
|
|
2119
|
-
return tcm.unlockVideoRepresentations(periodRef);
|
|
2120
|
-
});
|
|
2121
|
-
};
|
|
2122
|
-
Player.prototype.unlockAudioRepresentations = function (periodId) {
|
|
2123
|
-
if (this._priv_contentInfos === null) {
|
|
2124
|
-
return;
|
|
2125
|
-
}
|
|
2126
|
-
var isDirectFile = this._priv_contentInfos.isDirectFile;
|
|
2127
|
-
if (isDirectFile) {
|
|
2128
|
-
return;
|
|
2129
|
-
}
|
|
2130
|
-
return this._priv_callTracksStoreGetterSetter(periodId, undefined, function (tcm, periodRef) {
|
|
2131
|
-
return tcm.unlockAudioRepresentations(periodRef);
|
|
2132
|
-
});
|
|
2133
|
-
};
|
|
2134
|
-
/**
|
|
2135
|
-
* Get minimum seek-able position.
|
|
2136
|
-
* @returns {number}
|
|
2137
|
-
*/
|
|
2138
|
-
Player.prototype.getMinimumPosition = function () {
|
|
2139
|
-
if (this._priv_contentInfos === null) {
|
|
2140
|
-
return null;
|
|
2141
|
-
}
|
|
2142
|
-
if (this._priv_contentInfos.isDirectFile) {
|
|
2143
|
-
return 0;
|
|
2144
|
-
}
|
|
2145
|
-
var manifest = this._priv_contentInfos.manifest;
|
|
2146
|
-
if (manifest !== null) {
|
|
2147
|
-
return (0, manifest_1.getMinimumSafePosition)(manifest);
|
|
2148
|
-
}
|
|
2149
|
-
return null;
|
|
2150
|
-
};
|
|
2151
|
-
/**
|
|
2152
|
-
* Returns the current position for live contents.
|
|
2153
|
-
*
|
|
2154
|
-
* Returns `null` if no content is loaded or if the current loaded content is
|
|
2155
|
-
* not considered as a live content.
|
|
2156
|
-
* Returns `undefined` if that live position is currently unknown.
|
|
2157
|
-
* @returns {number}
|
|
2158
|
-
*/
|
|
2159
|
-
Player.prototype.getLivePosition = function () {
|
|
2160
|
-
if (this._priv_contentInfos === null) {
|
|
2161
|
-
return null;
|
|
2162
|
-
}
|
|
2163
|
-
var _a = this._priv_contentInfos, isDirectFile = _a.isDirectFile, manifest = _a.manifest;
|
|
2164
|
-
if (isDirectFile) {
|
|
2165
|
-
return undefined;
|
|
2166
|
-
}
|
|
2167
|
-
if ((manifest === null || manifest === void 0 ? void 0 : manifest.isLive) !== true) {
|
|
2168
|
-
return null;
|
|
2169
|
-
}
|
|
2170
|
-
return (0, manifest_1.getLivePosition)(manifest);
|
|
2171
|
-
};
|
|
2172
|
-
/**
|
|
2173
|
-
* Get maximum seek-able position.
|
|
2174
|
-
* @returns {number}
|
|
2175
|
-
*/
|
|
2176
|
-
Player.prototype.getMaximumPosition = function () {
|
|
2177
|
-
if (this._priv_contentInfos === null) {
|
|
2178
|
-
return null;
|
|
2179
|
-
}
|
|
2180
|
-
var _a = this._priv_contentInfos, isDirectFile = _a.isDirectFile, manifest = _a.manifest;
|
|
2181
|
-
if (isDirectFile) {
|
|
2182
|
-
if (this.videoElement === null) {
|
|
2183
|
-
throw new Error("Disposed player");
|
|
2184
|
-
}
|
|
2185
|
-
return this.videoElement.duration;
|
|
2186
|
-
}
|
|
2187
|
-
if (manifest !== null) {
|
|
2188
|
-
if (!manifest.isDynamic && this.videoElement !== null) {
|
|
2189
|
-
return this.videoElement.duration;
|
|
2190
|
-
}
|
|
2191
|
-
return (0, manifest_1.getMaximumSafePosition)(manifest);
|
|
2192
|
-
}
|
|
2193
|
-
return null;
|
|
2194
|
-
};
|
|
2195
|
-
// ---- Undocumented Private methods. ----
|
|
2196
|
-
//
|
|
2197
|
-
// Those methods are just here either to allow some tools relying on the
|
|
2198
|
-
// RxPlayer instance to work or to improve the RxPlayer's demo.
|
|
2199
|
-
//
|
|
2200
|
-
// They should not be used by any external code.
|
|
2201
|
-
/**
|
|
2202
|
-
* Used for the display of segmentSink metrics for the debug element
|
|
2203
|
-
* @param fn
|
|
2204
|
-
* @param cancellationSignal
|
|
2205
|
-
* @returns
|
|
2206
|
-
*/
|
|
2207
|
-
Player.prototype.__priv_getSegmentSinkMetrics = function () {
|
|
2208
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2209
|
-
var _a, _b;
|
|
2210
|
-
return __generator(this, function (_c) {
|
|
2211
|
-
return [2 /*return*/, (_b = (_a = this._priv_contentInfos) === null || _a === void 0 ? void 0 : _a.segmentSinkMetricsCallback) === null || _b === void 0 ? void 0 : _b.call(_a)];
|
|
2212
|
-
});
|
|
2213
|
-
});
|
|
2214
|
-
};
|
|
2215
|
-
/**
|
|
2216
|
-
* /!\ For tools use only! Do not touch!
|
|
2217
|
-
*
|
|
2218
|
-
* Returns manifest/playlist object.
|
|
2219
|
-
* null if the player is STOPPED.
|
|
2220
|
-
* @returns {Manifest|null} - The current Manifest (`null` when not known).
|
|
2221
|
-
*/
|
|
2222
|
-
// TODO remove the need for that public method
|
|
2223
|
-
Player.prototype.__priv_getManifest = function () {
|
|
2224
|
-
if (this._priv_contentInfos === null) {
|
|
2225
|
-
return null;
|
|
2226
|
-
}
|
|
2227
|
-
return this._priv_contentInfos.manifest;
|
|
2228
|
-
};
|
|
2229
|
-
// TODO remove the need for that public method
|
|
2230
|
-
Player.prototype.__priv_getCurrentAdaptation = function () {
|
|
2231
|
-
if (this._priv_contentInfos === null) {
|
|
2232
|
-
return null;
|
|
2233
|
-
}
|
|
2234
|
-
var _a = this._priv_contentInfos, currentPeriod = _a.currentPeriod, activeAdaptations = _a.activeAdaptations;
|
|
2235
|
-
if (currentPeriod === null ||
|
|
2236
|
-
activeAdaptations === null ||
|
|
2237
|
-
(0, is_null_or_undefined_1.default)(activeAdaptations[currentPeriod.id])) {
|
|
2238
|
-
return null;
|
|
2239
|
-
}
|
|
2240
|
-
return activeAdaptations[currentPeriod.id];
|
|
2241
|
-
};
|
|
2242
|
-
// TODO remove the need for that public method
|
|
2243
|
-
Player.prototype.__priv_getCurrentRepresentations = function () {
|
|
2244
|
-
if (this._priv_contentInfos === null) {
|
|
2245
|
-
return null;
|
|
2246
|
-
}
|
|
2247
|
-
var _a = this._priv_contentInfos, currentPeriod = _a.currentPeriod, activeRepresentations = _a.activeRepresentations;
|
|
2248
|
-
if (currentPeriod === null ||
|
|
2249
|
-
activeRepresentations === null ||
|
|
2250
|
-
(0, is_null_or_undefined_1.default)(activeRepresentations[currentPeriod.id])) {
|
|
2251
|
-
return null;
|
|
2252
|
-
}
|
|
2253
|
-
return activeRepresentations[currentPeriod.id];
|
|
2254
|
-
};
|
|
2255
|
-
// ---- Private methods ----
|
|
2256
|
-
/**
|
|
2257
|
-
* Reset all state properties relative to a playing content.
|
|
2258
|
-
*/
|
|
2259
|
-
Player.prototype._priv_cleanUpCurrentContentState = function () {
|
|
2260
|
-
var _this = this;
|
|
2261
|
-
var _a, _b, _c, _d;
|
|
2262
|
-
log_1.default.debug("API", "Locking `contentLock` to clean-up the current content.");
|
|
2263
|
-
// lock playback of new contents while cleaning up is pending
|
|
2264
|
-
this._priv_contentLock.setValue(true);
|
|
2265
|
-
(_b = (_a = this._priv_contentInfos) === null || _a === void 0 ? void 0 : _a.tracksStore) === null || _b === void 0 ? void 0 : _b.dispose();
|
|
2266
|
-
(_d = (_c = this._priv_contentInfos) === null || _c === void 0 ? void 0 : _c.mediaElementTracksStore) === null || _d === void 0 ? void 0 : _d.dispose();
|
|
2267
|
-
this._priv_contentInfos = null;
|
|
2268
|
-
this._priv_contentEventsMemory = {};
|
|
2269
|
-
// DRM-related clean-up
|
|
2270
|
-
var freeUpContentLock = function () {
|
|
2271
|
-
if (_this.videoElement !== null) {
|
|
2272
|
-
// If not disposed
|
|
2273
|
-
log_1.default.debug("API", "Unlocking `contentLock`. Next content can begin.");
|
|
2274
|
-
_this._priv_contentLock.setValue(false);
|
|
2275
|
-
}
|
|
2276
|
-
};
|
|
2277
|
-
if (!(0, is_null_or_undefined_1.default)(this.videoElement)) {
|
|
2278
|
-
(0, decrypt_1.clearOnStop)(this.videoElement).then(function () {
|
|
2279
|
-
log_1.default.debug("API", "DRM session cleaned-up with success!");
|
|
2280
|
-
freeUpContentLock();
|
|
2281
|
-
}, function (err) {
|
|
2282
|
-
log_1.default.error("API", "An error arised when trying to clean-up the DRM session:" +
|
|
2283
|
-
(err instanceof Error ? err.toString() : "Unknown Error"));
|
|
2284
|
-
freeUpContentLock();
|
|
2285
|
-
});
|
|
2286
|
-
}
|
|
2287
|
-
else {
|
|
2288
|
-
freeUpContentLock();
|
|
2289
|
-
}
|
|
2290
|
-
};
|
|
2291
|
-
/**
|
|
2292
|
-
* Triggered when the Manifest has been loaded for the current content.
|
|
2293
|
-
* Initialize various private properties and emit initial event.
|
|
2294
|
-
* @param {Object} contentInfos
|
|
2295
|
-
* @param {Object} manifest
|
|
2296
|
-
*/
|
|
2297
|
-
Player.prototype._priv_onManifestReady = function (contentInfos, manifest) {
|
|
2298
|
-
var _this = this;
|
|
2299
|
-
var _a;
|
|
2300
|
-
if (contentInfos.contentId !== ((_a = this._priv_contentInfos) === null || _a === void 0 ? void 0 : _a.contentId)) {
|
|
2301
|
-
return; // Event for another content
|
|
2302
|
-
}
|
|
2303
|
-
contentInfos.manifest = manifest;
|
|
2304
|
-
if (manifest.manifestFormat === 0 /* ManifestMetadataFormat.Class */) {
|
|
2305
|
-
this._priv_reloadingMetadata.manifest = manifest;
|
|
2306
|
-
}
|
|
2307
|
-
var tracksStore = new tracks_store_1.default({
|
|
2308
|
-
preferTrickModeTracks: this._priv_preferTrickModeTracks,
|
|
2309
|
-
defaultAudioTrackSwitchingMode: contentInfos.defaultAudioTrackSwitchingMode,
|
|
2310
|
-
onTracksNotPlayableForType: {
|
|
2311
|
-
audio: contentInfos.onAudioTracksNotPlayable,
|
|
2312
|
-
video: contentInfos.onVideoTracksNotPlayable,
|
|
2313
|
-
text: "continue",
|
|
2314
|
-
},
|
|
2315
|
-
});
|
|
2316
|
-
contentInfos.tracksStore = tracksStore;
|
|
2317
|
-
tracksStore.addEventListener("newAvailablePeriods", function (p) {
|
|
2318
|
-
_this.trigger("newAvailablePeriods", p);
|
|
2319
|
-
});
|
|
2320
|
-
tracksStore.addEventListener("brokenRepresentationsLock", function (e) {
|
|
2321
|
-
_this.trigger("brokenRepresentationsLock", e);
|
|
2322
|
-
});
|
|
2323
|
-
tracksStore.addEventListener("trackUpdate", function (e) {
|
|
2324
|
-
var _a, _b;
|
|
2325
|
-
_this.trigger("trackUpdate", e);
|
|
2326
|
-
var currentPeriod = (_b = (_a = _this._priv_contentInfos) === null || _a === void 0 ? void 0 : _a.currentPeriod) !== null && _b !== void 0 ? _b : undefined;
|
|
2327
|
-
if (e.reason === "no-playable-representation" &&
|
|
2328
|
-
e.period.id === (currentPeriod === null || currentPeriod === void 0 ? void 0 : currentPeriod.id)) {
|
|
2329
|
-
_this._priv_onAvailableTracksMayHaveChanged(e.trackType);
|
|
2330
|
-
}
|
|
2331
|
-
});
|
|
2332
|
-
tracksStore.addEventListener("warning", function (err) {
|
|
2333
|
-
_this.trigger("warning", err);
|
|
2334
|
-
});
|
|
2335
|
-
tracksStore.addEventListener("error", function (err) {
|
|
2336
|
-
_this._priv_onFatalError(err, contentInfos);
|
|
2337
|
-
});
|
|
2338
|
-
tracksStore.addEventListener("noPlayableTrack", function (noPlayableTrackEvent) {
|
|
2339
|
-
_this.trigger("noPlayableTrack", noPlayableTrackEvent);
|
|
2340
|
-
});
|
|
2341
|
-
tracksStore.onManifestUpdate(manifest);
|
|
2342
|
-
};
|
|
2343
|
-
/**
|
|
2344
|
-
* Triggered when the Manifest has been updated for the current content.
|
|
2345
|
-
* Initialize various private properties and emit initial event.
|
|
2346
|
-
* @param {Object} contentInfos
|
|
2347
|
-
* @param {Object} updates
|
|
2348
|
-
*/
|
|
2349
|
-
Player.prototype._priv_onManifestUpdate = function (contentInfos, updates) {
|
|
2350
|
-
var e_1, _a;
|
|
2351
|
-
var _b, _c, _d;
|
|
2352
|
-
if (this._priv_contentInfos === null || this._priv_contentInfos.manifest === null) {
|
|
2353
|
-
return;
|
|
2354
|
-
}
|
|
2355
|
-
// Update the tracks chosen if it changed
|
|
2356
|
-
if (!(0, is_null_or_undefined_1.default)(contentInfos === null || contentInfos === void 0 ? void 0 : contentInfos.tracksStore)) {
|
|
2357
|
-
contentInfos.tracksStore.onManifestUpdate(this._priv_contentInfos.manifest);
|
|
2358
|
-
}
|
|
2359
|
-
var currentPeriod = (_c = (_b = this._priv_contentInfos) === null || _b === void 0 ? void 0 : _b.currentPeriod) !== null && _c !== void 0 ? _c : undefined;
|
|
2360
|
-
var currTracksStore = (_d = this._priv_contentInfos) === null || _d === void 0 ? void 0 : _d.tracksStore;
|
|
2361
|
-
if (currentPeriod === undefined || (0, is_null_or_undefined_1.default)(currTracksStore)) {
|
|
2362
|
-
return;
|
|
2363
|
-
}
|
|
2364
|
-
try {
|
|
2365
|
-
for (var _f = __values(updates.updatedPeriods), _g = _f.next(); !_g.done; _g = _f.next()) {
|
|
2366
|
-
var update = _g.value;
|
|
2367
|
-
if (update.period.id === currentPeriod.id) {
|
|
2368
|
-
if (update.result.addedAdaptations.length > 0 ||
|
|
2369
|
-
update.result.removedAdaptations.length > 0) {
|
|
2370
|
-
// We might have new (or less) tracks, send events just to be sure
|
|
2371
|
-
var periodRef = currTracksStore.getPeriodObjectFromPeriod(currentPeriod);
|
|
2372
|
-
if (periodRef === undefined) {
|
|
2373
|
-
return;
|
|
2374
|
-
}
|
|
2375
|
-
this._priv_onAvailableTracksMayHaveChanged("audio");
|
|
2376
|
-
this._priv_onAvailableTracksMayHaveChanged("text");
|
|
2377
|
-
this._priv_onAvailableTracksMayHaveChanged("video");
|
|
2378
|
-
}
|
|
2379
|
-
}
|
|
2380
|
-
}
|
|
2381
|
-
}
|
|
2382
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2383
|
-
finally {
|
|
2384
|
-
try {
|
|
2385
|
-
if (_g && !_g.done && (_a = _f.return)) _a.call(_f);
|
|
2386
|
-
}
|
|
2387
|
-
finally { if (e_1) throw e_1.error; }
|
|
2388
|
-
}
|
|
2389
|
-
};
|
|
2390
|
-
/**
|
|
2391
|
-
* Triggered each times the support for a codec has changed in the manifest.
|
|
2392
|
-
* When triggered, the track store may need to consider selecting a new track.
|
|
2393
|
-
*
|
|
2394
|
-
* @param {Object} contentInfos
|
|
2395
|
-
*/
|
|
2396
|
-
Player.prototype._priv_onCodecSupportUpdate = function (contentInfos) {
|
|
2397
|
-
var tStore = contentInfos === null || contentInfos === void 0 ? void 0 : contentInfos.tracksStore;
|
|
2398
|
-
if ((0, is_null_or_undefined_1.default)(tStore)) {
|
|
2399
|
-
return;
|
|
2400
|
-
}
|
|
2401
|
-
tStore.onManifestCodecSupportUpdate();
|
|
2402
|
-
};
|
|
2403
|
-
Player.prototype._priv_onDecipherabilityUpdate = function (contentInfos, elts) {
|
|
2404
|
-
var e_2, _a;
|
|
2405
|
-
if (contentInfos === null || contentInfos.manifest === null) {
|
|
2406
|
-
return;
|
|
2407
|
-
}
|
|
2408
|
-
if (!(0, is_null_or_undefined_1.default)(contentInfos === null || contentInfos === void 0 ? void 0 : contentInfos.tracksStore)) {
|
|
2409
|
-
contentInfos.tracksStore.onDecipherabilityUpdates();
|
|
2410
|
-
}
|
|
2411
|
-
/**
|
|
2412
|
-
* Array of tuples only including once the Period/Track combination, and
|
|
2413
|
-
* only when it concerns the currently-selected track.
|
|
2414
|
-
*/
|
|
2415
|
-
var periodsAndTrackTypes = elts.reduce(function (acc, elt) {
|
|
2416
|
-
var _a, _b, _c;
|
|
2417
|
-
var isFound = (0, array_find_1.default)(acc, function (x) { return x[0].id === elt.period.id && x[1] === elt.adaptation.type; }) !== undefined;
|
|
2418
|
-
if (!isFound) {
|
|
2419
|
-
// Only consider the currently-selected tracks.
|
|
2420
|
-
// NOTE: Maybe there's room for optimizations? Unclear.
|
|
2421
|
-
var tStore = contentInfos.tracksStore;
|
|
2422
|
-
if (tStore === null) {
|
|
2423
|
-
return acc;
|
|
2424
|
-
}
|
|
2425
|
-
var isCurrent = false;
|
|
2426
|
-
var periodRef = tStore.getPeriodObjectFromPeriod(elt.period);
|
|
2427
|
-
if (periodRef === undefined) {
|
|
2428
|
-
return acc;
|
|
2429
|
-
}
|
|
2430
|
-
switch (elt.adaptation.type) {
|
|
2431
|
-
case "audio":
|
|
2432
|
-
isCurrent =
|
|
2433
|
-
((_a = tStore.getChosenAudioTrack(periodRef, false)) === null || _a === void 0 ? void 0 : _a.id) === elt.adaptation.id;
|
|
2434
|
-
break;
|
|
2435
|
-
case "video":
|
|
2436
|
-
isCurrent =
|
|
2437
|
-
((_b = tStore.getChosenVideoTrack(periodRef, false)) === null || _b === void 0 ? void 0 : _b.id) === elt.adaptation.id;
|
|
2438
|
-
break;
|
|
2439
|
-
case "text":
|
|
2440
|
-
isCurrent = ((_c = tStore.getChosenTextTrack(periodRef)) === null || _c === void 0 ? void 0 : _c.id) === elt.adaptation.id;
|
|
2441
|
-
break;
|
|
2442
|
-
}
|
|
2443
|
-
if (isCurrent) {
|
|
2444
|
-
acc.push([elt.period, elt.adaptation.type]);
|
|
2445
|
-
}
|
|
2446
|
-
}
|
|
2447
|
-
return acc;
|
|
2448
|
-
}, []);
|
|
2449
|
-
try {
|
|
2450
|
-
for (var periodsAndTrackTypes_1 = __values(periodsAndTrackTypes), periodsAndTrackTypes_1_1 = periodsAndTrackTypes_1.next(); !periodsAndTrackTypes_1_1.done; periodsAndTrackTypes_1_1 = periodsAndTrackTypes_1.next()) {
|
|
2451
|
-
var _b = __read(periodsAndTrackTypes_1_1.value, 2), period = _b[0], trackType = _b[1];
|
|
2452
|
-
this._priv_triggerEventIfNotStopped("representationListUpdate", {
|
|
2453
|
-
period: { start: period.start, end: period.end, id: period.id },
|
|
2454
|
-
trackType: trackType,
|
|
2455
|
-
reason: "decipherability-update",
|
|
2456
|
-
}, contentInfos.currentContentCanceller.signal);
|
|
2457
|
-
}
|
|
2458
|
-
}
|
|
2459
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
2460
|
-
finally {
|
|
2461
|
-
try {
|
|
2462
|
-
if (periodsAndTrackTypes_1_1 && !periodsAndTrackTypes_1_1.done && (_a = periodsAndTrackTypes_1.return)) _a.call(periodsAndTrackTypes_1);
|
|
2463
|
-
}
|
|
2464
|
-
finally { if (e_2) throw e_2.error; }
|
|
2465
|
-
}
|
|
2466
|
-
};
|
|
2467
|
-
/**
|
|
2468
|
-
* Triggered each times the current Period Changed.
|
|
2469
|
-
* Store and emit initial state for the Period.
|
|
2470
|
-
*
|
|
2471
|
-
* @param {Object} contentInfos
|
|
2472
|
-
* @param {Object} periodInfo
|
|
2473
|
-
*/
|
|
2474
|
-
Player.prototype._priv_onActivePeriodChanged = function (contentInfos, _a) {
|
|
2475
|
-
var _b, _c, _d, _f, _g, _h;
|
|
2476
|
-
var period = _a.period;
|
|
2477
|
-
if (contentInfos.contentId !== ((_b = this._priv_contentInfos) === null || _b === void 0 ? void 0 : _b.contentId)) {
|
|
2478
|
-
return; // Event for another content
|
|
2479
|
-
}
|
|
2480
|
-
contentInfos.currentPeriod = period;
|
|
2481
|
-
var cancelSignal = contentInfos.currentContentCanceller.signal;
|
|
2482
|
-
if (this._priv_contentEventsMemory.periodChange !== period) {
|
|
2483
|
-
this._priv_contentEventsMemory.periodChange = period;
|
|
2484
|
-
this._priv_triggerEventIfNotStopped("periodChange", { start: period.start, end: period.end, id: period.id }, cancelSignal);
|
|
2485
|
-
}
|
|
2486
|
-
this._priv_triggerEventIfNotStopped("availableAudioTracksChange", this.getAvailableAudioTracks(), cancelSignal);
|
|
2487
|
-
this._priv_triggerEventIfNotStopped("availableTextTracksChange", this.getAvailableTextTracks(), cancelSignal);
|
|
2488
|
-
this._priv_triggerEventIfNotStopped("availableVideoTracksChange", this.getAvailableVideoTracks(), cancelSignal);
|
|
2489
|
-
var tracksStore = (_c = this._priv_contentInfos) === null || _c === void 0 ? void 0 : _c.tracksStore;
|
|
2490
|
-
// Emit initial events for the Period
|
|
2491
|
-
if (!(0, is_null_or_undefined_1.default)(tracksStore)) {
|
|
2492
|
-
var periodRef = tracksStore.getPeriodObjectFromPeriod(period);
|
|
2493
|
-
if (periodRef !== undefined) {
|
|
2494
|
-
var audioTrack = tracksStore.getChosenAudioTrack(periodRef, true);
|
|
2495
|
-
this._priv_triggerEventIfNotStopped("audioTrackChange", audioTrack, cancelSignal);
|
|
2496
|
-
var textTrack = tracksStore.getChosenTextTrack(periodRef);
|
|
2497
|
-
this._priv_triggerEventIfNotStopped("textTrackChange", textTrack, cancelSignal);
|
|
2498
|
-
var videoTrack = tracksStore.getChosenVideoTrack(periodRef, true);
|
|
2499
|
-
this._priv_triggerEventIfNotStopped("videoTrackChange", videoTrack, cancelSignal);
|
|
2500
|
-
}
|
|
2501
|
-
}
|
|
2502
|
-
else {
|
|
2503
|
-
this._priv_triggerEventIfNotStopped("audioTrackChange", null, cancelSignal);
|
|
2504
|
-
this._priv_triggerEventIfNotStopped("textTrackChange", null, cancelSignal);
|
|
2505
|
-
this._priv_triggerEventIfNotStopped("videoTrackChange", null, cancelSignal);
|
|
2506
|
-
}
|
|
2507
|
-
var audioRepresentation = (_f = (_d = this.__priv_getCurrentRepresentations()) === null || _d === void 0 ? void 0 : _d.audio) !== null && _f !== void 0 ? _f : null;
|
|
2508
|
-
this._priv_triggerEventIfNotStopped("audioRepresentationChange", (0, is_null_or_undefined_1.default)(audioRepresentation)
|
|
2509
|
-
? audioRepresentation
|
|
2510
|
-
: (0, manifest_1.toVideoRepresentation)(audioRepresentation), cancelSignal);
|
|
2511
|
-
var videoRepresentation = (_h = (_g = this.__priv_getCurrentRepresentations()) === null || _g === void 0 ? void 0 : _g.video) !== null && _h !== void 0 ? _h : null;
|
|
2512
|
-
this._priv_triggerEventIfNotStopped("videoRepresentationChange", (0, is_null_or_undefined_1.default)(videoRepresentation)
|
|
2513
|
-
? videoRepresentation
|
|
2514
|
-
: (0, manifest_1.toVideoRepresentation)(videoRepresentation), cancelSignal);
|
|
2515
|
-
};
|
|
2516
|
-
/**
|
|
2517
|
-
* Triggered each times a new "PeriodStream" is ready.
|
|
2518
|
-
* Choose the right Adaptation for the Period and emit it.
|
|
2519
|
-
* @param {Object} contentInfos
|
|
2520
|
-
* @param {Object} value
|
|
2521
|
-
*/
|
|
2522
|
-
Player.prototype._priv_onPeriodStreamReady = function (contentInfos, value) {
|
|
2523
|
-
var _a;
|
|
2524
|
-
if (contentInfos.contentId !== ((_a = this._priv_contentInfos) === null || _a === void 0 ? void 0 : _a.contentId)) {
|
|
2525
|
-
return; // Event for another content
|
|
2526
|
-
}
|
|
2527
|
-
var type = value.type, period = value.period, adaptationRef = value.adaptationRef;
|
|
2528
|
-
var tracksStore = contentInfos.tracksStore;
|
|
2529
|
-
switch (type) {
|
|
2530
|
-
case "video":
|
|
2531
|
-
case "audio":
|
|
2532
|
-
case "text":
|
|
2533
|
-
if ((0, is_null_or_undefined_1.default)(tracksStore)) {
|
|
2534
|
-
log_1.default.error("API", "TracksStore not instanciated for a new ".concat(type, " period"));
|
|
2535
|
-
adaptationRef.setValue(null);
|
|
2536
|
-
}
|
|
2537
|
-
else {
|
|
2538
|
-
tracksStore.addTrackReference(type, period, adaptationRef);
|
|
2539
|
-
}
|
|
2540
|
-
break;
|
|
2541
|
-
default:
|
|
2542
|
-
(0, assert_1.assertUnreachable)(type);
|
|
2543
|
-
}
|
|
2544
|
-
};
|
|
2545
|
-
/**
|
|
2546
|
-
* Triggered each times we "remove" a PeriodStream.
|
|
2547
|
-
* @param {Object} contentInfos
|
|
2548
|
-
* @param {Object} value
|
|
2549
|
-
*/
|
|
2550
|
-
Player.prototype._priv_onPeriodStreamCleared = function (contentInfos, value) {
|
|
2551
|
-
var _a;
|
|
2552
|
-
if (contentInfos.contentId !== ((_a = this._priv_contentInfos) === null || _a === void 0 ? void 0 : _a.contentId)) {
|
|
2553
|
-
return; // Event for another content
|
|
2554
|
-
}
|
|
2555
|
-
var type = value.type, periodId = value.periodId;
|
|
2556
|
-
var tracksStore = contentInfos.tracksStore;
|
|
2557
|
-
// Clean-up track choices from TracksStore
|
|
2558
|
-
switch (type) {
|
|
2559
|
-
case "audio":
|
|
2560
|
-
case "text":
|
|
2561
|
-
case "video":
|
|
2562
|
-
if (!(0, is_null_or_undefined_1.default)(tracksStore)) {
|
|
2563
|
-
tracksStore.removeTrackReference(type, periodId);
|
|
2564
|
-
}
|
|
2565
|
-
break;
|
|
2566
|
-
}
|
|
2567
|
-
// Clean-up stored Representation and Adaptation information
|
|
2568
|
-
var activeAdaptations = contentInfos.activeAdaptations, activeRepresentations = contentInfos.activeRepresentations;
|
|
2569
|
-
if (!(0, is_null_or_undefined_1.default)(activeAdaptations) &&
|
|
2570
|
-
!(0, is_null_or_undefined_1.default)(activeAdaptations[periodId])) {
|
|
2571
|
-
var activePeriodAdaptations = activeAdaptations[periodId];
|
|
2572
|
-
delete activePeriodAdaptations[type];
|
|
2573
|
-
if (Object.keys(activePeriodAdaptations).length === 0) {
|
|
2574
|
-
delete activeAdaptations[periodId];
|
|
2575
|
-
}
|
|
2576
|
-
}
|
|
2577
|
-
if (!(0, is_null_or_undefined_1.default)(activeRepresentations) &&
|
|
2578
|
-
!(0, is_null_or_undefined_1.default)(activeRepresentations[periodId])) {
|
|
2579
|
-
var activePeriodRepresentations = activeRepresentations[periodId];
|
|
2580
|
-
delete activePeriodRepresentations[type];
|
|
2581
|
-
if (Object.keys(activePeriodRepresentations).length === 0) {
|
|
2582
|
-
delete activeRepresentations[periodId];
|
|
2583
|
-
}
|
|
2584
|
-
}
|
|
2585
|
-
};
|
|
2586
|
-
/**
|
|
2587
|
-
* Triggered each times a new Adaptation is considered for the current
|
|
2588
|
-
* content.
|
|
2589
|
-
* Store given Adaptation and emit it if from the current Period.
|
|
2590
|
-
* @param {Object} contentInfos
|
|
2591
|
-
* @param {Object} value
|
|
2592
|
-
*/
|
|
2593
|
-
Player.prototype._priv_onAdaptationChange = function (contentInfos, _a) {
|
|
2594
|
-
var _b;
|
|
2595
|
-
var _c;
|
|
2596
|
-
var type = _a.type, adaptation = _a.adaptation, period = _a.period;
|
|
2597
|
-
if (contentInfos.contentId !== ((_c = this._priv_contentInfos) === null || _c === void 0 ? void 0 : _c.contentId)) {
|
|
2598
|
-
return; // Event for another content
|
|
2599
|
-
}
|
|
2600
|
-
// lazily create contentInfos.activeAdaptations
|
|
2601
|
-
if (contentInfos.activeAdaptations === null) {
|
|
2602
|
-
contentInfos.activeAdaptations = {};
|
|
2603
|
-
}
|
|
2604
|
-
var activeAdaptations = contentInfos.activeAdaptations, currentPeriod = contentInfos.currentPeriod;
|
|
2605
|
-
var activePeriodAdaptations = activeAdaptations[period.id];
|
|
2606
|
-
if ((0, is_null_or_undefined_1.default)(activePeriodAdaptations)) {
|
|
2607
|
-
activeAdaptations[period.id] = (_b = {}, _b[type] = adaptation, _b);
|
|
2608
|
-
}
|
|
2609
|
-
else {
|
|
2610
|
-
activePeriodAdaptations[type] = adaptation;
|
|
2611
|
-
}
|
|
2612
|
-
var tracksStore = contentInfos.tracksStore;
|
|
2613
|
-
var cancelSignal = contentInfos.currentContentCanceller.signal;
|
|
2614
|
-
if (tracksStore !== null &&
|
|
2615
|
-
currentPeriod !== null &&
|
|
2616
|
-
!(0, is_null_or_undefined_1.default)(period) &&
|
|
2617
|
-
period.id === currentPeriod.id) {
|
|
2618
|
-
var periodRef = tracksStore.getPeriodObjectFromPeriod(period);
|
|
2619
|
-
if (periodRef === undefined) {
|
|
2620
|
-
return;
|
|
2621
|
-
}
|
|
2622
|
-
switch (type) {
|
|
2623
|
-
case "audio": {
|
|
2624
|
-
var audioTrack = tracksStore.getChosenAudioTrack(periodRef, true);
|
|
2625
|
-
this._priv_triggerEventIfNotStopped("audioTrackChange", audioTrack, cancelSignal);
|
|
2626
|
-
break;
|
|
2627
|
-
}
|
|
2628
|
-
case "text": {
|
|
2629
|
-
var textTrack = tracksStore.getChosenTextTrack(periodRef);
|
|
2630
|
-
this._priv_triggerEventIfNotStopped("textTrackChange", textTrack, cancelSignal);
|
|
2631
|
-
break;
|
|
2632
|
-
}
|
|
2633
|
-
case "video": {
|
|
2634
|
-
var videoTrack = tracksStore.getChosenVideoTrack(periodRef, true);
|
|
2635
|
-
this._priv_triggerEventIfNotStopped("videoTrackChange", videoTrack, cancelSignal);
|
|
2636
|
-
break;
|
|
2637
|
-
}
|
|
2638
|
-
}
|
|
2639
|
-
}
|
|
2640
|
-
};
|
|
2641
|
-
/**
|
|
2642
|
-
* Triggered each times a new Representation is considered during playback.
|
|
2643
|
-
*
|
|
2644
|
-
* Store given Representation and emit it if from the current Period.
|
|
2645
|
-
*
|
|
2646
|
-
* @param {Object} contentInfos
|
|
2647
|
-
* @param {Object} obj
|
|
2648
|
-
*/
|
|
2649
|
-
Player.prototype._priv_onRepresentationChange = function (contentInfos, _a) {
|
|
2650
|
-
var _b;
|
|
2651
|
-
var _c;
|
|
2652
|
-
var type = _a.type, period = _a.period, representation = _a.representation;
|
|
2653
|
-
if (contentInfos.contentId !== ((_c = this._priv_contentInfos) === null || _c === void 0 ? void 0 : _c.contentId)) {
|
|
2654
|
-
return; // Event for another content
|
|
2655
|
-
}
|
|
2656
|
-
// lazily create contentInfos.activeRepresentations
|
|
2657
|
-
if (contentInfos.activeRepresentations === null) {
|
|
2658
|
-
contentInfos.activeRepresentations = {};
|
|
2659
|
-
}
|
|
2660
|
-
var activeRepresentations = contentInfos.activeRepresentations, currentPeriod = contentInfos.currentPeriod;
|
|
2661
|
-
var activePeriodRepresentations = activeRepresentations[period.id];
|
|
2662
|
-
if ((0, is_null_or_undefined_1.default)(activePeriodRepresentations)) {
|
|
2663
|
-
activeRepresentations[period.id] = (_b = {}, _b[type] = representation, _b);
|
|
2664
|
-
}
|
|
2665
|
-
else {
|
|
2666
|
-
activePeriodRepresentations[type] = representation;
|
|
2667
|
-
}
|
|
2668
|
-
if (!(0, is_null_or_undefined_1.default)(period) &&
|
|
2669
|
-
currentPeriod !== null &&
|
|
2670
|
-
currentPeriod.id === period.id) {
|
|
2671
|
-
var cancelSignal = this._priv_contentInfos.currentContentCanceller.signal;
|
|
2672
|
-
if (type === "video") {
|
|
2673
|
-
this._priv_triggerEventIfNotStopped("videoRepresentationChange", (0, is_null_or_undefined_1.default)(representation)
|
|
2674
|
-
? representation
|
|
2675
|
-
: (0, manifest_1.toVideoRepresentation)(representation), cancelSignal);
|
|
2676
|
-
}
|
|
2677
|
-
else if (type === "audio") {
|
|
2678
|
-
this._priv_triggerEventIfNotStopped("audioRepresentationChange", (0, is_null_or_undefined_1.default)(representation)
|
|
2679
|
-
? representation
|
|
2680
|
-
: (0, manifest_1.toAudioRepresentation)(representation), cancelSignal);
|
|
2681
|
-
}
|
|
2682
|
-
}
|
|
2683
|
-
};
|
|
2684
|
-
/**
|
|
2685
|
-
* Triggered each time a bitrate estimate is calculated.
|
|
2686
|
-
*
|
|
2687
|
-
* Emit it.
|
|
2688
|
-
*
|
|
2689
|
-
* @param {Object} value
|
|
2690
|
-
*/
|
|
2691
|
-
Player.prototype._priv_onBitrateEstimateChange = function (_a) {
|
|
2692
|
-
var type = _a.type, bitrate = _a.bitrate;
|
|
2693
|
-
if (bitrate !== undefined) {
|
|
2694
|
-
this._priv_bitrateInfos.lastBitrates[type] = bitrate;
|
|
2695
|
-
}
|
|
2696
|
-
this.trigger(
|
|
2697
|
-
// !!! undocumented API :O !!!
|
|
2698
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2699
|
-
"__priv_bitrateEstimateChange",
|
|
2700
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2701
|
-
{ type: type, bitrate: bitrate });
|
|
2702
|
-
};
|
|
2703
|
-
/**
|
|
2704
|
-
* Triggered each time the player state updates.
|
|
2705
|
-
*
|
|
2706
|
-
* Trigger the right Player Event.
|
|
2707
|
-
*
|
|
2708
|
-
* @param {string} newState
|
|
2709
|
-
*/
|
|
2710
|
-
Player.prototype._priv_setPlayerState = function (newState) {
|
|
2711
|
-
if (this.state !== newState) {
|
|
2712
|
-
this.state = newState;
|
|
2713
|
-
log_1.default.info("API", "playerStateChange event", { newState: newState });
|
|
2714
|
-
this.trigger("playerStateChange", newState);
|
|
2715
|
-
}
|
|
2716
|
-
};
|
|
2717
|
-
/**
|
|
2718
|
-
* Triggered each time a playback observation.
|
|
2719
|
-
*
|
|
2720
|
-
* Trigger the right Player Event
|
|
2721
|
-
*
|
|
2722
|
-
* @param {Object} contentInfos
|
|
2723
|
-
* @param {Object} observation
|
|
2724
|
-
*/
|
|
2725
|
-
Player.prototype._priv_triggerPositionUpdate = function (contentInfos, observation) {
|
|
2726
|
-
var _a, _b;
|
|
2727
|
-
if (contentInfos.contentId !== ((_a = this._priv_contentInfos) === null || _a === void 0 ? void 0 : _a.contentId)) {
|
|
2728
|
-
return; // Event for another content
|
|
2729
|
-
}
|
|
2730
|
-
var isDirectFile = contentInfos.isDirectFile, manifest = contentInfos.manifest;
|
|
2731
|
-
if ((!isDirectFile && manifest === null) || (0, is_null_or_undefined_1.default)(observation)) {
|
|
2732
|
-
return;
|
|
2733
|
-
}
|
|
2734
|
-
var maximumPosition = manifest !== null ? (0, manifest_1.getMaximumSafePosition)(manifest) : undefined;
|
|
2735
|
-
var positionData = {
|
|
2736
|
-
position: observation.position.getPolled(),
|
|
2737
|
-
duration: observation.duration,
|
|
2738
|
-
playbackRate: observation.playbackRate,
|
|
2739
|
-
maximumPosition: maximumPosition,
|
|
2740
|
-
// TODO bufferGap may be undefined
|
|
2741
|
-
bufferGap: observation.bufferGap === undefined || !isFinite(observation.bufferGap)
|
|
2742
|
-
? 0
|
|
2743
|
-
: observation.bufferGap,
|
|
2744
|
-
};
|
|
2745
|
-
if (manifest !== null && manifest.isLive && observation.position.getPolled() > 0) {
|
|
2746
|
-
var ast = (_b = manifest.availabilityStartTime) !== null && _b !== void 0 ? _b : 0;
|
|
2747
|
-
positionData.wallClockTime = observation.position.getPolled() + ast;
|
|
2748
|
-
var livePosition = (0, manifest_1.getLivePosition)(manifest);
|
|
2749
|
-
if (livePosition !== undefined) {
|
|
2750
|
-
positionData.liveGap = livePosition - observation.position.getPolled();
|
|
2751
|
-
}
|
|
2752
|
-
}
|
|
2753
|
-
else if (isDirectFile && this.videoElement !== null) {
|
|
2754
|
-
var startDate = (0, get_start_date_1.default)(this.videoElement);
|
|
2755
|
-
if (startDate !== undefined) {
|
|
2756
|
-
positionData.wallClockTime = startDate + observation.position.getPolled();
|
|
2757
|
-
}
|
|
2758
|
-
}
|
|
2759
|
-
this.trigger("positionUpdate", positionData);
|
|
2760
|
-
};
|
|
2761
|
-
/**
|
|
2762
|
-
* @param {string} evt
|
|
2763
|
-
* @param {*} arg
|
|
2764
|
-
* @param {Object} currentContentCancelSignal
|
|
2765
|
-
*/
|
|
2766
|
-
Player.prototype._priv_triggerEventIfNotStopped = function (evt, arg, currentContentCancelSignal) {
|
|
2767
|
-
if (!currentContentCancelSignal.isCancelled()) {
|
|
2768
|
-
this.trigger(evt, arg);
|
|
2769
|
-
}
|
|
2770
|
-
};
|
|
2771
|
-
/**
|
|
2772
|
-
* @param {Object} cancelSignal
|
|
2773
|
-
* @returns {Object}
|
|
2774
|
-
*/
|
|
2775
|
-
Player.prototype._priv_initializeMediaElementTracksStore = function (cancelSignal) {
|
|
2776
|
-
var _this = this;
|
|
2777
|
-
var _a, _b, _c;
|
|
2778
|
-
(0, assert_1.default)(features_1.default.directfile !== null, "Initializing `MediaElementTracksStore` without Directfile feature");
|
|
2779
|
-
(0, assert_1.default)(this.videoElement !== null, "Initializing `MediaElementTracksStore` on a disposed RxPlayer");
|
|
2780
|
-
var mediaElementTracksStore = new features_1.default.directfile.mediaElementTracksStore(this.videoElement);
|
|
2781
|
-
this._priv_triggerEventIfNotStopped("availableAudioTracksChange", mediaElementTracksStore.getAvailableAudioTracks(), cancelSignal);
|
|
2782
|
-
this._priv_triggerEventIfNotStopped("availableVideoTracksChange", mediaElementTracksStore.getAvailableVideoTracks(), cancelSignal);
|
|
2783
|
-
this._priv_triggerEventIfNotStopped("availableTextTracksChange", mediaElementTracksStore.getAvailableTextTracks(), cancelSignal);
|
|
2784
|
-
this._priv_triggerEventIfNotStopped("audioTrackChange", (_a = mediaElementTracksStore.getChosenAudioTrack()) !== null && _a !== void 0 ? _a : null, cancelSignal);
|
|
2785
|
-
this._priv_triggerEventIfNotStopped("textTrackChange", (_b = mediaElementTracksStore.getChosenTextTrack()) !== null && _b !== void 0 ? _b : null, cancelSignal);
|
|
2786
|
-
this._priv_triggerEventIfNotStopped("videoTrackChange", (_c = mediaElementTracksStore.getChosenVideoTrack()) !== null && _c !== void 0 ? _c : null, cancelSignal);
|
|
2787
|
-
mediaElementTracksStore.addEventListener("availableVideoTracksChange", function (val) {
|
|
2788
|
-
return _this.trigger("availableVideoTracksChange", val);
|
|
2789
|
-
});
|
|
2790
|
-
mediaElementTracksStore.addEventListener("availableAudioTracksChange", function (val) {
|
|
2791
|
-
return _this.trigger("availableAudioTracksChange", val);
|
|
2792
|
-
});
|
|
2793
|
-
mediaElementTracksStore.addEventListener("availableTextTracksChange", function (val) {
|
|
2794
|
-
return _this.trigger("availableTextTracksChange", val);
|
|
2795
|
-
});
|
|
2796
|
-
mediaElementTracksStore.addEventListener("audioTrackChange", function (val) {
|
|
2797
|
-
return _this.trigger("audioTrackChange", val);
|
|
2798
|
-
});
|
|
2799
|
-
mediaElementTracksStore.addEventListener("videoTrackChange", function (val) {
|
|
2800
|
-
return _this.trigger("videoTrackChange", val);
|
|
2801
|
-
});
|
|
2802
|
-
mediaElementTracksStore.addEventListener("textTrackChange", function (val) {
|
|
2803
|
-
return _this.trigger("textTrackChange", val);
|
|
2804
|
-
});
|
|
2805
|
-
return mediaElementTracksStore;
|
|
2806
|
-
};
|
|
2807
|
-
Player.prototype._priv_callTracksStoreGetterSetter = function (periodId, defaultValue, cb) {
|
|
2808
|
-
var _a, _b;
|
|
2809
|
-
if (this._priv_contentInfos === null ||
|
|
2810
|
-
this._priv_contentInfos.tracksStore === null) {
|
|
2811
|
-
log_1.default.warn("API", "Trying to call track API too soon");
|
|
2812
|
-
return defaultValue;
|
|
2813
|
-
}
|
|
2814
|
-
var tracksStore = this._priv_contentInfos.tracksStore;
|
|
2815
|
-
var currentPeriod = (_b = (_a = this._priv_contentInfos) === null || _a === void 0 ? void 0 : _a.currentPeriod) !== null && _b !== void 0 ? _b : undefined;
|
|
2816
|
-
var wantedPeriodId = periodId !== null && periodId !== void 0 ? periodId : currentPeriod === null || currentPeriod === void 0 ? void 0 : currentPeriod.id;
|
|
2817
|
-
if (wantedPeriodId === undefined) {
|
|
2818
|
-
return defaultValue;
|
|
2819
|
-
}
|
|
2820
|
-
var periodRef = wantedPeriodId === (currentPeriod === null || currentPeriod === void 0 ? void 0 : currentPeriod.id)
|
|
2821
|
-
? tracksStore.getPeriodObjectFromPeriod(currentPeriod)
|
|
2822
|
-
: tracksStore.getPeriodObjectFromId(wantedPeriodId);
|
|
2823
|
-
if (periodRef === undefined) {
|
|
2824
|
-
return defaultValue;
|
|
2825
|
-
}
|
|
2826
|
-
return cb(tracksStore, periodRef);
|
|
2827
|
-
};
|
|
2828
|
-
/**
|
|
2829
|
-
* Method to call when some event lead to a high for possibility that the
|
|
2830
|
-
* available tracks for the given type have changed.
|
|
2831
|
-
* Send the corresponding `available*Tracks` change event with the last
|
|
2832
|
-
* available tracks.
|
|
2833
|
-
*
|
|
2834
|
-
* @param {string} trackType
|
|
2835
|
-
* @param {Object|undefined} [oPeriodRef] - optional period object used by the
|
|
2836
|
-
* `tracksStore` API, allows to optimize the method by bypassing this step.
|
|
2837
|
-
*/
|
|
2838
|
-
Player.prototype._priv_onAvailableTracksMayHaveChanged = function (trackType, oPeriodRef) {
|
|
2839
|
-
var contentInfos = this._priv_contentInfos;
|
|
2840
|
-
if (contentInfos === null) {
|
|
2841
|
-
return;
|
|
2842
|
-
}
|
|
2843
|
-
var currentPeriod = contentInfos.currentPeriod, tracksStore = contentInfos.tracksStore, currentContentCanceller = contentInfos.currentContentCanceller;
|
|
2844
|
-
var cancelSignal = currentContentCanceller.signal;
|
|
2845
|
-
if ((0, is_null_or_undefined_1.default)(currentPeriod) || tracksStore === null) {
|
|
2846
|
-
return;
|
|
2847
|
-
}
|
|
2848
|
-
var periodRef = oPeriodRef !== null && oPeriodRef !== void 0 ? oPeriodRef : tracksStore.getPeriodObjectFromPeriod(currentPeriod);
|
|
2849
|
-
if (periodRef === undefined) {
|
|
2850
|
-
return;
|
|
2851
|
-
}
|
|
2852
|
-
switch (trackType) {
|
|
2853
|
-
case "video": {
|
|
2854
|
-
var videoTracks = tracksStore.getAvailableVideoTracks(periodRef, true);
|
|
2855
|
-
this._priv_triggerEventIfNotStopped("availableVideoTracksChange", videoTracks !== null && videoTracks !== void 0 ? videoTracks : [], cancelSignal);
|
|
2856
|
-
break;
|
|
2857
|
-
}
|
|
2858
|
-
case "audio": {
|
|
2859
|
-
var audioTracks = tracksStore.getAvailableAudioTracks(periodRef, true);
|
|
2860
|
-
this._priv_triggerEventIfNotStopped("availableAudioTracksChange", audioTracks !== null && audioTracks !== void 0 ? audioTracks : [], cancelSignal);
|
|
2861
|
-
break;
|
|
2862
|
-
}
|
|
2863
|
-
case "text": {
|
|
2864
|
-
var textTracks = tracksStore.getAvailableTextTracks(periodRef);
|
|
2865
|
-
this._priv_triggerEventIfNotStopped("availableTextTracksChange", textTracks !== null && textTracks !== void 0 ? textTracks : [], cancelSignal);
|
|
2866
|
-
break;
|
|
2867
|
-
}
|
|
2868
|
-
default:
|
|
2869
|
-
(0, assert_1.assertUnreachable)(trackType);
|
|
2870
|
-
}
|
|
2871
|
-
};
|
|
2872
|
-
/**
|
|
2873
|
-
* Method to call when a fatal error lead to the stopping of the current
|
|
2874
|
-
* content.
|
|
2875
|
-
*
|
|
2876
|
-
* @param {*} err - The error encountered.
|
|
2877
|
-
* @param {Object} contentInfos - The `IPublicApiContentInfos` object linked
|
|
2878
|
-
* to the content for which the error was received.
|
|
2879
|
-
*/
|
|
2880
|
-
Player.prototype._priv_onFatalError = function (err, contentInfos) {
|
|
2881
|
-
var formattedError = (0, errors_1.formatError)(err, {
|
|
2882
|
-
defaultCode: "NONE",
|
|
2883
|
-
defaultReason: "An unknown error stopped content playback.",
|
|
2884
|
-
});
|
|
2885
|
-
formattedError.fatal = true;
|
|
2886
|
-
contentInfos.currentContentCanceller.cancel();
|
|
2887
|
-
this._priv_cleanUpCurrentContentState();
|
|
2888
|
-
this._priv_currentError = formattedError;
|
|
2889
|
-
log_1.default.error("API", "The player stopped because of an error", formattedError);
|
|
2890
|
-
this._priv_setPlayerState("STOPPED" /* PLAYER_STATES.STOPPED */);
|
|
2891
|
-
// TODO This condition is here because the eventual callback called when the
|
|
2892
|
-
// player state is updated can launch a new content, thus the error will not
|
|
2893
|
-
// be here anymore, in which case triggering the "error" event is unwanted.
|
|
2894
|
-
// This is very ugly though, and we should probable have a better solution
|
|
2895
|
-
if (this._priv_currentError === formattedError) {
|
|
2896
|
-
this.trigger("error", formattedError);
|
|
2897
|
-
}
|
|
2898
|
-
};
|
|
2899
|
-
/**
|
|
2900
|
-
* Store all video elements currently in use by an RxPlayer instance.
|
|
2901
|
-
* This is used to check that a video element is not shared between multiple instances.
|
|
2902
|
-
* Use of a WeakSet ensure the object is garbage collected if it's not used anymore.
|
|
2903
|
-
*/
|
|
2904
|
-
Player._priv_currentlyUsedVideoElements = new WeakSet();
|
|
2905
|
-
return Player;
|
|
2906
|
-
}(event_emitter_1.default));
|
|
2907
|
-
Player.version = /* PLAYER_VERSION */ "4.4.1";
|
|
2908
|
-
exports.default = Player;
|