rx-player 4.3.0-dev.2025012900 → 4.3.0-dev.2025030400
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 +10 -2
- package/VERSION +1 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.d.ts.map +1 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_dash_wasm.js +1 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_worker.d.ts.map +1 -1
- package/dist/commonjs/__GENERATED_CODE/embedded_worker.js +1 -1
- package/dist/commonjs/compat/browser_compatibility_types.d.ts +32 -13
- package/dist/commonjs/compat/browser_compatibility_types.d.ts.map +1 -1
- package/dist/commonjs/compat/browser_compatibility_types.js +12 -32
- package/dist/commonjs/compat/eme/close_session.d.ts +2 -2
- package/dist/commonjs/compat/eme/close_session.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/custom_key_system_access.d.ts +4 -9
- package/dist/commonjs/compat/eme/custom_key_system_access.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.d.ts +5 -6
- package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/ie11_media_keys.js +6 -4
- package/dist/commonjs/compat/eme/custom_media_keys/index.d.ts +0 -2
- package/dist/commonjs/compat/eme/custom_media_keys/index.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +4 -5
- package/dist/commonjs/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +5 -6
- package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/old_webkit_media_keys.js +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.d.ts +5 -11
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/custom_media_keys/webkit_media_keys.js +2 -2
- package/dist/commonjs/compat/eme/eme-api-implementation.d.ts +5 -6
- package/dist/commonjs/compat/eme/eme-api-implementation.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/eme-api-implementation.js +1 -0
- package/dist/commonjs/compat/eme/generate_key_request.d.ts +2 -2
- package/dist/commonjs/compat/eme/generate_key_request.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/get_init_data.d.ts +2 -2
- package/dist/commonjs/compat/eme/get_init_data.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/index.d.ts +1 -3
- package/dist/commonjs/compat/eme/index.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/load_session.d.ts +2 -2
- package/dist/commonjs/compat/eme/load_session.d.ts.map +1 -1
- package/dist/commonjs/compat/eme/set_media_keys.d.ts +2 -3
- package/dist/commonjs/compat/eme/set_media_keys.d.ts.map +1 -1
- package/dist/commonjs/compat/event_listeners.d.ts +2 -3
- package/dist/commonjs/compat/event_listeners.d.ts.map +1 -1
- package/dist/commonjs/compat/remove_cue.d.ts +2 -1
- package/dist/commonjs/compat/remove_cue.d.ts.map +1 -1
- package/dist/commonjs/core/main/common/FreezeResolver.d.ts +176 -0
- package/dist/commonjs/core/main/common/FreezeResolver.d.ts.map +1 -0
- package/dist/commonjs/core/main/common/FreezeResolver.js +431 -0
- package/dist/commonjs/core/main/common/synchronize_sinks_on_observation.d.ts +11 -0
- package/dist/commonjs/core/main/common/synchronize_sinks_on_observation.d.ts.map +1 -0
- package/dist/commonjs/core/main/common/synchronize_sinks_on_observation.js +20 -0
- package/dist/commonjs/core/main/worker/content_preparer.d.ts +82 -5
- package/dist/commonjs/core/main/worker/content_preparer.d.ts.map +1 -1
- package/dist/commonjs/core/main/worker/content_preparer.js +83 -18
- package/dist/commonjs/core/main/worker/worker_main.d.ts.map +1 -1
- package/dist/commonjs/core/main/worker/worker_main.js +69 -14
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.d.ts.map +1 -1
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.js +26 -4
- package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.d.ts.map +1 -1
- package/dist/commonjs/default_config.d.ts +26 -0
- package/dist/commonjs/default_config.d.ts.map +1 -1
- package/dist/commonjs/default_config.js +26 -0
- package/dist/commonjs/main_thread/api/option_utils.d.ts +26 -0
- package/dist/commonjs/main_thread/api/option_utils.d.ts.map +1 -1
- package/dist/commonjs/main_thread/api/option_utils.js +5 -2
- package/dist/commonjs/main_thread/api/public_api.d.ts.map +1 -1
- package/dist/commonjs/main_thread/api/public_api.js +14 -12
- package/dist/commonjs/main_thread/api/utils.d.ts +1 -2
- package/dist/commonjs/main_thread/api/utils.d.ts.map +1 -1
- package/dist/commonjs/main_thread/api/utils.js +2 -3
- package/dist/commonjs/main_thread/decrypt/content_decryptor.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/create_or_load_session.d.ts +2 -2
- package/dist/commonjs/main_thread/decrypt/create_or_load_session.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/create_session.d.ts +3 -3
- package/dist/commonjs/main_thread/decrypt/create_session.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/find_key_system.d.ts +3 -4
- package/dist/commonjs/main_thread/decrypt/find_key_system.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/get_media_keys.d.ts +3 -4
- package/dist/commonjs/main_thread/decrypt/get_media_keys.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/session_events_listener.d.ts +2 -2
- package/dist/commonjs/main_thread/decrypt/session_events_listener.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/set_server_certificate.d.ts +3 -3
- package/dist/commonjs/main_thread/decrypt/set_server_certificate.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/check_key_statuses.d.ts +2 -2
- package/dist/commonjs/main_thread/decrypt/utils/check_key_statuses.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/is_session_usable.d.ts +2 -2
- package/dist/commonjs/main_thread/decrypt/utils/is_session_usable.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/loaded_sessions_store.d.ts +10 -10
- package/dist/commonjs/main_thread/decrypt/utils/loaded_sessions_store.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/loaded_sessions_store.js +2 -2
- package/dist/commonjs/main_thread/decrypt/utils/media_keys_attacher.d.ts +4 -4
- package/dist/commonjs/main_thread/decrypt/utils/media_keys_attacher.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/persistent_sessions_store.d.ts +5 -7
- package/dist/commonjs/main_thread/decrypt/utils/persistent_sessions_store.d.ts.map +1 -1
- package/dist/commonjs/main_thread/decrypt/utils/persistent_sessions_store.js +3 -5
- package/dist/commonjs/main_thread/decrypt/utils/server_certificate_store.d.ts +5 -5
- package/dist/commonjs/main_thread/decrypt/utils/server_certificate_store.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/directfile_content_initializer.js +1 -1
- package/dist/commonjs/main_thread/init/media_source_content_initializer.d.ts +6 -0
- package/dist/commonjs/main_thread/init/media_source_content_initializer.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/media_source_content_initializer.js +77 -25
- package/dist/commonjs/main_thread/init/multi_thread_content_initializer.d.ts +6 -0
- package/dist/commonjs/main_thread/init/multi_thread_content_initializer.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/multi_thread_content_initializer.js +8 -8
- package/dist/commonjs/main_thread/init/types.d.ts +3 -2
- package/dist/commonjs/main_thread/init/types.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/utils/create_core_playback_observer.d.ts +2 -0
- package/dist/commonjs/main_thread/init/utils/create_core_playback_observer.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/utils/create_core_playback_observer.js +1 -0
- package/dist/commonjs/main_thread/init/utils/get_loaded_reference.d.ts +1 -3
- package/dist/commonjs/main_thread/init/utils/get_loaded_reference.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/utils/get_loaded_reference.js +4 -5
- package/dist/commonjs/main_thread/init/utils/rebuffering_controller.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/utils/rebuffering_controller.js +1 -13
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts +1 -4
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts.map +1 -1
- package/dist/commonjs/main_thread/init/utils/stream_events_emitter/stream_events_emitter.js +3 -5
- package/dist/commonjs/main_thread/tracks_store/tracks_store.d.ts +2 -2
- package/dist/commonjs/main_thread/tracks_store/tracks_store.d.ts.map +1 -1
- package/dist/commonjs/main_thread/tracks_store/tracks_store.js +16 -22
- package/dist/commonjs/manifest/classes/index.d.ts +2 -2
- package/dist/commonjs/manifest/classes/index.d.ts.map +1 -1
- package/dist/commonjs/manifest/classes/manifest.d.ts +17 -2
- package/dist/commonjs/manifest/classes/manifest.d.ts.map +1 -1
- package/dist/commonjs/manifest/classes/manifest.js +55 -12
- package/dist/commonjs/manifest/classes/representation.d.ts +9 -0
- package/dist/commonjs/manifest/classes/representation.d.ts.map +1 -1
- package/dist/commonjs/manifest/classes/representation.js +1 -0
- package/dist/commonjs/manifest/index.d.ts +2 -2
- package/dist/commonjs/manifest/index.d.ts.map +1 -1
- package/dist/commonjs/manifest/utils.js +1 -1
- package/dist/commonjs/multithread_types.d.ts +8 -0
- package/dist/commonjs/multithread_types.d.ts.map +1 -1
- package/dist/commonjs/parsers/containers/isobmff/extract_complete_chunks.d.ts +1 -1
- package/dist/commonjs/parsers/containers/isobmff/extract_complete_chunks.js +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.js +1 -1
- package/dist/commonjs/playback_observer/media_element_playback_observer.d.ts.map +1 -1
- package/dist/commonjs/playback_observer/media_element_playback_observer.js +6 -4
- package/dist/commonjs/playback_observer/types.d.ts +2 -0
- package/dist/commonjs/playback_observer/types.d.ts.map +1 -1
- package/dist/commonjs/playback_observer/worker_playback_observer.d.ts +2 -0
- package/dist/commonjs/playback_observer/worker_playback_observer.d.ts.map +1 -1
- package/dist/commonjs/public_types.d.ts +14 -0
- package/dist/commonjs/public_types.d.ts.map +1 -1
- package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.d.ts.map +1 -1
- package/dist/es2017/__GENERATED_CODE/embedded_dash_wasm.js +1 -1
- package/dist/es2017/__GENERATED_CODE/embedded_worker.d.ts.map +1 -1
- package/dist/es2017/__GENERATED_CODE/embedded_worker.js +1 -1
- package/dist/es2017/compat/browser_compatibility_types.d.ts +32 -13
- package/dist/es2017/compat/browser_compatibility_types.d.ts.map +1 -1
- package/dist/es2017/compat/browser_compatibility_types.js +12 -32
- package/dist/es2017/compat/eme/close_session.d.ts +2 -2
- package/dist/es2017/compat/eme/close_session.d.ts.map +1 -1
- package/dist/es2017/compat/eme/custom_key_system_access.d.ts +4 -9
- package/dist/es2017/compat/eme/custom_key_system_access.d.ts.map +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.d.ts +5 -6
- package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.d.ts.map +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/ie11_media_keys.js +4 -4
- package/dist/es2017/compat/eme/custom_media_keys/index.d.ts +0 -2
- package/dist/es2017/compat/eme/custom_media_keys/index.d.ts.map +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts +4 -5
- package/dist/es2017/compat/eme/custom_media_keys/moz_media_keys_constructor.d.ts.map +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts +5 -6
- package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.d.ts.map +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/old_webkit_media_keys.js +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.d.ts +5 -11
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.d.ts.map +1 -1
- package/dist/es2017/compat/eme/custom_media_keys/webkit_media_keys.js +2 -2
- package/dist/es2017/compat/eme/eme-api-implementation.d.ts +5 -6
- package/dist/es2017/compat/eme/eme-api-implementation.d.ts.map +1 -1
- package/dist/es2017/compat/eme/eme-api-implementation.js +1 -0
- package/dist/es2017/compat/eme/generate_key_request.d.ts +2 -2
- package/dist/es2017/compat/eme/generate_key_request.d.ts.map +1 -1
- package/dist/es2017/compat/eme/get_init_data.d.ts +2 -2
- package/dist/es2017/compat/eme/get_init_data.d.ts.map +1 -1
- package/dist/es2017/compat/eme/index.d.ts +1 -3
- package/dist/es2017/compat/eme/index.d.ts.map +1 -1
- package/dist/es2017/compat/eme/load_session.d.ts +2 -2
- package/dist/es2017/compat/eme/load_session.d.ts.map +1 -1
- package/dist/es2017/compat/eme/set_media_keys.d.ts +2 -3
- package/dist/es2017/compat/eme/set_media_keys.d.ts.map +1 -1
- package/dist/es2017/compat/event_listeners.d.ts +2 -3
- package/dist/es2017/compat/event_listeners.d.ts.map +1 -1
- package/dist/es2017/compat/remove_cue.d.ts +2 -1
- package/dist/es2017/compat/remove_cue.d.ts.map +1 -1
- package/dist/es2017/core/main/common/FreezeResolver.d.ts +176 -0
- package/dist/es2017/core/main/common/FreezeResolver.d.ts.map +1 -0
- package/dist/es2017/core/main/common/FreezeResolver.js +363 -0
- package/dist/es2017/core/main/common/synchronize_sinks_on_observation.d.ts +11 -0
- package/dist/es2017/core/main/common/synchronize_sinks_on_observation.d.ts.map +1 -0
- package/dist/es2017/core/main/common/synchronize_sinks_on_observation.js +17 -0
- package/dist/es2017/core/main/worker/content_preparer.d.ts +82 -5
- package/dist/es2017/core/main/worker/content_preparer.d.ts.map +1 -1
- package/dist/es2017/core/main/worker/content_preparer.js +82 -17
- package/dist/es2017/core/main/worker/worker_main.d.ts.map +1 -1
- package/dist/es2017/core/main/worker/worker_main.js +68 -14
- package/dist/es2017/core/stream/adaptation/adaptation_stream.d.ts.map +1 -1
- package/dist/es2017/core/stream/adaptation/adaptation_stream.js +24 -2
- package/dist/es2017/core/stream/orchestrator/stream_orchestrator.d.ts.map +1 -1
- package/dist/es2017/default_config.d.ts +26 -0
- package/dist/es2017/default_config.d.ts.map +1 -1
- package/dist/es2017/default_config.js +26 -0
- package/dist/es2017/main_thread/api/option_utils.d.ts +26 -0
- package/dist/es2017/main_thread/api/option_utils.d.ts.map +1 -1
- package/dist/es2017/main_thread/api/option_utils.js +4 -1
- package/dist/es2017/main_thread/api/public_api.d.ts.map +1 -1
- package/dist/es2017/main_thread/api/public_api.js +14 -12
- package/dist/es2017/main_thread/api/utils.d.ts +1 -2
- package/dist/es2017/main_thread/api/utils.d.ts.map +1 -1
- package/dist/es2017/main_thread/api/utils.js +2 -3
- package/dist/es2017/main_thread/decrypt/content_decryptor.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/create_or_load_session.d.ts +2 -2
- package/dist/es2017/main_thread/decrypt/create_or_load_session.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/create_session.d.ts +3 -3
- package/dist/es2017/main_thread/decrypt/create_session.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/find_key_system.d.ts +3 -4
- package/dist/es2017/main_thread/decrypt/find_key_system.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/get_media_keys.d.ts +3 -4
- package/dist/es2017/main_thread/decrypt/get_media_keys.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/session_events_listener.d.ts +2 -2
- package/dist/es2017/main_thread/decrypt/session_events_listener.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/set_server_certificate.d.ts +3 -3
- package/dist/es2017/main_thread/decrypt/set_server_certificate.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/check_key_statuses.d.ts +2 -2
- package/dist/es2017/main_thread/decrypt/utils/check_key_statuses.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/is_session_usable.d.ts +2 -2
- package/dist/es2017/main_thread/decrypt/utils/is_session_usable.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/loaded_sessions_store.d.ts +10 -10
- package/dist/es2017/main_thread/decrypt/utils/loaded_sessions_store.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/loaded_sessions_store.js +2 -2
- package/dist/es2017/main_thread/decrypt/utils/media_keys_attacher.d.ts +4 -4
- package/dist/es2017/main_thread/decrypt/utils/media_keys_attacher.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/persistent_sessions_store.d.ts +5 -7
- package/dist/es2017/main_thread/decrypt/utils/persistent_sessions_store.d.ts.map +1 -1
- package/dist/es2017/main_thread/decrypt/utils/persistent_sessions_store.js +3 -5
- package/dist/es2017/main_thread/decrypt/utils/server_certificate_store.d.ts +5 -5
- package/dist/es2017/main_thread/decrypt/utils/server_certificate_store.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/directfile_content_initializer.js +1 -1
- package/dist/es2017/main_thread/init/media_source_content_initializer.d.ts +6 -0
- package/dist/es2017/main_thread/init/media_source_content_initializer.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/media_source_content_initializer.js +77 -26
- package/dist/es2017/main_thread/init/multi_thread_content_initializer.d.ts +6 -0
- package/dist/es2017/main_thread/init/multi_thread_content_initializer.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/multi_thread_content_initializer.js +8 -8
- package/dist/es2017/main_thread/init/types.d.ts +3 -2
- package/dist/es2017/main_thread/init/types.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/utils/create_core_playback_observer.d.ts +2 -0
- package/dist/es2017/main_thread/init/utils/create_core_playback_observer.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/utils/create_core_playback_observer.js +1 -0
- package/dist/es2017/main_thread/init/utils/get_loaded_reference.d.ts +1 -3
- package/dist/es2017/main_thread/init/utils/get_loaded_reference.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/utils/get_loaded_reference.js +4 -5
- package/dist/es2017/main_thread/init/utils/rebuffering_controller.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/utils/rebuffering_controller.js +1 -13
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts +1 -4
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/stream_events_emitter.d.ts.map +1 -1
- package/dist/es2017/main_thread/init/utils/stream_events_emitter/stream_events_emitter.js +3 -5
- package/dist/es2017/main_thread/tracks_store/tracks_store.d.ts +2 -2
- package/dist/es2017/main_thread/tracks_store/tracks_store.d.ts.map +1 -1
- package/dist/es2017/main_thread/tracks_store/tracks_store.js +16 -22
- package/dist/es2017/manifest/classes/index.d.ts +2 -2
- package/dist/es2017/manifest/classes/index.d.ts.map +1 -1
- package/dist/es2017/manifest/classes/manifest.d.ts +17 -2
- package/dist/es2017/manifest/classes/manifest.d.ts.map +1 -1
- package/dist/es2017/manifest/classes/manifest.js +32 -0
- package/dist/es2017/manifest/classes/representation.d.ts +9 -0
- package/dist/es2017/manifest/classes/representation.d.ts.map +1 -1
- package/dist/es2017/manifest/classes/representation.js +1 -0
- package/dist/es2017/manifest/index.d.ts +2 -2
- package/dist/es2017/manifest/index.d.ts.map +1 -1
- package/dist/es2017/manifest/utils.js +1 -1
- package/dist/es2017/multithread_types.d.ts +8 -0
- package/dist/es2017/multithread_types.d.ts.map +1 -1
- package/dist/es2017/parsers/containers/isobmff/extract_complete_chunks.d.ts +1 -1
- package/dist/es2017/parsers/containers/isobmff/extract_complete_chunks.js +1 -1
- package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.js +1 -1
- package/dist/es2017/playback_observer/media_element_playback_observer.d.ts.map +1 -1
- package/dist/es2017/playback_observer/media_element_playback_observer.js +6 -4
- package/dist/es2017/playback_observer/types.d.ts +2 -0
- package/dist/es2017/playback_observer/types.d.ts.map +1 -1
- package/dist/es2017/playback_observer/worker_playback_observer.d.ts +2 -0
- package/dist/es2017/playback_observer/worker_playback_observer.d.ts.map +1 -1
- package/dist/es2017/public_types.d.ts +14 -0
- package/dist/es2017/public_types.d.ts.map +1 -1
- package/dist/mpd-parser.wasm +0 -0
- package/dist/rx-player.js +489 -191
- package/dist/rx-player.min.js +18 -18
- package/dist/worker.js +6 -6
- package/package.json +18 -18
- package/src/__GENERATED_CODE/embedded_dash_wasm.ts +1 -1
- package/src/__GENERATED_CODE/embedded_worker.ts +1 -1
- package/src/compat/browser_compatibility_types.ts +45 -42
- package/src/compat/eme/close_session.ts +2 -4
- package/src/compat/eme/custom_key_system_access.ts +4 -11
- package/src/compat/eme/custom_media_keys/ie11_media_keys.ts +29 -23
- package/src/compat/eme/custom_media_keys/index.ts +0 -2
- package/src/compat/eme/custom_media_keys/moz_media_keys_constructor.ts +5 -9
- package/src/compat/eme/custom_media_keys/old_webkit_media_keys.ts +15 -20
- package/src/compat/eme/custom_media_keys/webkit_media_keys.ts +28 -36
- package/src/compat/eme/eme-api-implementation.ts +16 -14
- package/src/compat/eme/generate_key_request.ts +2 -2
- package/src/compat/eme/get_init_data.ts +2 -2
- package/src/compat/eme/index.ts +1 -10
- package/src/compat/eme/load_session.ts +4 -10
- package/src/compat/eme/set_media_keys.ts +2 -3
- package/src/compat/event_listeners.ts +2 -2
- package/src/compat/remove_cue.ts +11 -4
- package/src/core/main/common/FreezeResolver.ts +584 -0
- package/src/core/main/common/synchronize_sinks_on_observation.ts +22 -0
- package/src/core/main/worker/content_preparer.ts +112 -24
- package/src/core/main/worker/worker_main.ts +90 -13
- package/src/core/stream/adaptation/adaptation_stream.ts +38 -4
- package/src/core/stream/orchestrator/stream_orchestrator.ts +2 -6
- package/src/default_config.ts +27 -0
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/DRMInfos.test.ts +3 -3
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/HDCPPolicy.test.ts +2 -2
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/decodingInfos.test.ts +4 -4
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/mediaContentType.test.ts +2 -2
- package/src/experimental/tools/mediaCapabilitiesProber/__tests__/probers/mediaDisplayInfos.test.ts +1 -1
- package/src/main_thread/api/__tests__/option_utils.test.ts +3 -0
- package/src/main_thread/api/option_utils.ts +30 -0
- package/src/main_thread/api/public_api.ts +16 -12
- package/src/main_thread/api/utils.ts +1 -3
- package/src/main_thread/decrypt/__tests__/__global__/media_key_system_access.test.ts +2 -2
- package/src/main_thread/decrypt/content_decryptor.ts +9 -8
- package/src/main_thread/decrypt/create_or_load_session.ts +3 -3
- package/src/main_thread/decrypt/create_session.ts +3 -3
- package/src/main_thread/decrypt/find_key_system.ts +5 -3
- package/src/main_thread/decrypt/get_media_keys.ts +9 -6
- package/src/main_thread/decrypt/session_events_listener.ts +3 -3
- package/src/main_thread/decrypt/set_server_certificate.ts +4 -4
- package/src/main_thread/decrypt/utils/check_key_statuses.ts +2 -2
- package/src/main_thread/decrypt/utils/is_session_usable.ts +2 -4
- package/src/main_thread/decrypt/utils/loaded_sessions_store.ts +15 -16
- package/src/main_thread/decrypt/utils/media_keys_attacher.ts +7 -7
- package/src/main_thread/decrypt/utils/persistent_sessions_store.ts +5 -7
- package/src/main_thread/decrypt/utils/server_certificate_store.ts +6 -12
- package/src/main_thread/init/directfile_content_initializer.ts +1 -1
- package/src/main_thread/init/media_source_content_initializer.ts +98 -36
- package/src/main_thread/init/multi_thread_content_initializer.ts +14 -15
- package/src/main_thread/init/types.ts +3 -2
- package/src/main_thread/init/utils/create_core_playback_observer.ts +3 -0
- package/src/main_thread/init/utils/get_loaded_reference.ts +3 -6
- package/src/main_thread/init/utils/rebuffering_controller.ts +2 -24
- package/src/main_thread/init/utils/stream_events_emitter/stream_events_emitter.ts +3 -7
- package/src/main_thread/tracks_store/tracks_store.ts +16 -26
- package/src/manifest/classes/__tests__/representation.test.ts +16 -0
- package/src/manifest/classes/index.ts +2 -2
- package/src/manifest/classes/manifest.ts +48 -4
- package/src/manifest/classes/representation.ts +10 -0
- package/src/manifest/index.ts +2 -2
- package/src/manifest/utils.ts +1 -1
- package/src/multithread_types.ts +8 -0
- package/src/parsers/containers/isobmff/extract_complete_chunks.ts +1 -1
- package/src/parsers/manifest/dash/common/parse_adaptation_sets.ts +1 -1
- package/src/playback_observer/media_element_playback_observer.ts +14 -24
- package/src/playback_observer/types.ts +2 -0
- package/src/playback_observer/worker_playback_observer.ts +2 -0
- package/src/public_types.ts +17 -0
- package/src/utils/__tests__/logger.test.ts +44 -60
- package/dist/commonjs/compat/eme/custom_media_keys/types.d.ts +0 -48
- package/dist/commonjs/compat/eme/custom_media_keys/types.d.ts.map +0 -1
- package/dist/commonjs/compat/eme/custom_media_keys/types.js +0 -17
- package/dist/commonjs/core/main/common/DecipherabilityFreezeDetector.d.ts +0 -80
- package/dist/commonjs/core/main/common/DecipherabilityFreezeDetector.d.ts.map +0 -1
- package/dist/commonjs/core/main/common/DecipherabilityFreezeDetector.js +0 -127
- package/dist/es2017/compat/eme/custom_media_keys/types.d.ts +0 -48
- package/dist/es2017/compat/eme/custom_media_keys/types.d.ts.map +0 -1
- package/dist/es2017/compat/eme/custom_media_keys/types.js +0 -16
- package/dist/es2017/core/main/common/DecipherabilityFreezeDetector.d.ts +0 -80
- package/dist/es2017/core/main/common/DecipherabilityFreezeDetector.d.ts.map +0 -1
- package/dist/es2017/core/main/common/DecipherabilityFreezeDetector.js +0 -91
- package/src/compat/eme/custom_media_keys/types.ts +0 -66
- package/src/core/main/common/DecipherabilityFreezeDetector.ts +0 -147
|
@@ -79,6 +79,7 @@ describe("Manifest - Representation", () => {
|
|
|
79
79
|
expect(representation.decipherable).toBe(undefined);
|
|
80
80
|
expect(spyCodecCache).toHaveBeenCalledTimes(1);
|
|
81
81
|
expect(spyCodecCache).toHaveBeenCalledWith("", "", false);
|
|
82
|
+
spyCodecCache.mockClear();
|
|
82
83
|
});
|
|
83
84
|
|
|
84
85
|
it("should be able to add a height attribute", () => {
|
|
@@ -103,6 +104,7 @@ describe("Manifest - Representation", () => {
|
|
|
103
104
|
expect(representation.isSupported).toBe(undefined);
|
|
104
105
|
expect(representation.decipherable).toBe(undefined);
|
|
105
106
|
expect(spyCodecCache).toHaveBeenCalledTimes(1);
|
|
107
|
+
spyCodecCache.mockClear();
|
|
106
108
|
});
|
|
107
109
|
|
|
108
110
|
it("should be able to add a width attribute", () => {
|
|
@@ -127,6 +129,7 @@ describe("Manifest - Representation", () => {
|
|
|
127
129
|
expect(representation.isSupported).toBe(undefined);
|
|
128
130
|
expect(representation.decipherable).toBe(undefined);
|
|
129
131
|
expect(spyCodecCache).toHaveBeenCalledTimes(1);
|
|
132
|
+
spyCodecCache.mockClear();
|
|
130
133
|
});
|
|
131
134
|
|
|
132
135
|
it("should be able to add a codecs attribute", () => {
|
|
@@ -151,6 +154,7 @@ describe("Manifest - Representation", () => {
|
|
|
151
154
|
expect(representation.isSupported).toBe(undefined);
|
|
152
155
|
expect(representation.decipherable).toBe(undefined);
|
|
153
156
|
expect(spyCodecCache).toHaveBeenCalledTimes(1);
|
|
157
|
+
spyCodecCache.mockClear();
|
|
154
158
|
});
|
|
155
159
|
|
|
156
160
|
it("should be able to add a supplementalCodecs attribute", () => {
|
|
@@ -176,6 +180,7 @@ describe("Manifest - Representation", () => {
|
|
|
176
180
|
expect(representation.isSupported).toBe(undefined);
|
|
177
181
|
expect(representation.decipherable).toBe(undefined);
|
|
178
182
|
expect(spyCodecCache).toHaveBeenCalledTimes(1);
|
|
183
|
+
spyCodecCache.mockClear();
|
|
179
184
|
});
|
|
180
185
|
|
|
181
186
|
it("should be able to add a mimeType attribute", () => {
|
|
@@ -200,6 +205,7 @@ describe("Manifest - Representation", () => {
|
|
|
200
205
|
expect(representation.isSupported).toBe(undefined);
|
|
201
206
|
expect(representation.decipherable).toBe(undefined);
|
|
202
207
|
expect(spyCodecCache).toHaveBeenCalledTimes(1);
|
|
208
|
+
spyCodecCache.mockClear();
|
|
203
209
|
});
|
|
204
210
|
|
|
205
211
|
it("should be able to add a contentProtections attribute", () => {
|
|
@@ -236,6 +242,7 @@ describe("Manifest - Representation", () => {
|
|
|
236
242
|
expect(representation.isSupported).toBe(undefined);
|
|
237
243
|
expect(representation.decipherable).toBe(undefined);
|
|
238
244
|
expect(spyCodecCache).toHaveBeenCalledTimes(1);
|
|
245
|
+
spyCodecCache.mockClear();
|
|
239
246
|
});
|
|
240
247
|
|
|
241
248
|
it("should be able to add a frameRate attribute", () => {
|
|
@@ -262,6 +269,7 @@ describe("Manifest - Representation", () => {
|
|
|
262
269
|
expect(representation.isSupported).toBe(undefined);
|
|
263
270
|
expect(representation.decipherable).toBe(undefined);
|
|
264
271
|
expect(spyCodecCache).toHaveBeenCalledTimes(1);
|
|
272
|
+
spyCodecCache.mockClear();
|
|
265
273
|
});
|
|
266
274
|
|
|
267
275
|
it("should be able to return an exploitable codecs + mimeType string", () => {
|
|
@@ -339,6 +347,7 @@ describe("Manifest - Representation", () => {
|
|
|
339
347
|
expect(representation.decipherable).toBe(undefined);
|
|
340
348
|
expect(spyCodecCache).toHaveBeenCalledTimes(1);
|
|
341
349
|
expect(spyCodecCache).toHaveBeenCalledWith("audio/mp4", "mp4a.40.2", false);
|
|
350
|
+
spyCodecCache.mockClear();
|
|
342
351
|
});
|
|
343
352
|
|
|
344
353
|
it("should not check support for a text media buffer", () => {
|
|
@@ -351,6 +360,7 @@ describe("Manifest - Representation", () => {
|
|
|
351
360
|
index: minimalIndex,
|
|
352
361
|
} as unknown as IParsedRepresentation;
|
|
353
362
|
const spyCodecCache = vi.spyOn(cache, "isSupported");
|
|
363
|
+
spyCodecCache.mockReset(); // TODO: find out why this is necessary
|
|
354
364
|
const representation = new Representation(args, "text", cache);
|
|
355
365
|
expect(representation.codecs).toEqual(["boop"]);
|
|
356
366
|
expect(representation.mimeType).toBe("bip");
|
|
@@ -358,6 +368,7 @@ describe("Manifest - Representation", () => {
|
|
|
358
368
|
expect(representation.isSupported).toBe(true);
|
|
359
369
|
expect(representation.decipherable).toBe(undefined);
|
|
360
370
|
expect(spyCodecCache).toHaveBeenCalledTimes(0);
|
|
371
|
+
spyCodecCache.mockClear();
|
|
361
372
|
});
|
|
362
373
|
|
|
363
374
|
it("should not set isSupported if codec cache returns undefined", () => {
|
|
@@ -377,6 +388,7 @@ describe("Manifest - Representation", () => {
|
|
|
377
388
|
expect(representation.isSupported).toBe(undefined);
|
|
378
389
|
expect(representation.decipherable).toBe(undefined);
|
|
379
390
|
expect(spyCodecCache).toHaveBeenCalledTimes(1);
|
|
391
|
+
spyCodecCache.mockClear();
|
|
380
392
|
});
|
|
381
393
|
|
|
382
394
|
it("should have both supplementalCodecs and codecs if codec cache returns undefined", () => {
|
|
@@ -397,6 +409,7 @@ describe("Manifest - Representation", () => {
|
|
|
397
409
|
expect(representation.isSupported).toBe(undefined);
|
|
398
410
|
expect(representation.decipherable).toBe(undefined);
|
|
399
411
|
expect(spyCodecCache).toHaveBeenCalledTimes(1);
|
|
412
|
+
spyCodecCache.mockClear();
|
|
400
413
|
});
|
|
401
414
|
|
|
402
415
|
it("should only have codecs if codec cache returns false for the supplementalCodecs and true for the codecs", () => {
|
|
@@ -422,6 +435,7 @@ describe("Manifest - Representation", () => {
|
|
|
422
435
|
expect(representation.isSupported).toBe(true);
|
|
423
436
|
expect(representation.decipherable).toBe(undefined);
|
|
424
437
|
expect(spyCodecCache).toHaveBeenCalled();
|
|
438
|
+
spyCodecCache.mockClear();
|
|
425
439
|
});
|
|
426
440
|
|
|
427
441
|
it("should have both supplementalCodecs and codecs if codec cache returns undefined for the former and true for the latter", () => {
|
|
@@ -447,6 +461,7 @@ describe("Manifest - Representation", () => {
|
|
|
447
461
|
expect(representation.isSupported).toBe(undefined);
|
|
448
462
|
expect(representation.decipherable).toBe(undefined);
|
|
449
463
|
expect(spyCodecCache).toHaveBeenCalled();
|
|
464
|
+
spyCodecCache.mockClear();
|
|
450
465
|
});
|
|
451
466
|
|
|
452
467
|
it("should only have supplementalCodecs if codec cache returns true for the former", () => {
|
|
@@ -471,5 +486,6 @@ describe("Manifest - Representation", () => {
|
|
|
471
486
|
expect(representation.isSupported).toBe(true);
|
|
472
487
|
expect(representation.decipherable).toBe(undefined);
|
|
473
488
|
expect(spyCodecCache).toHaveBeenCalledTimes(1);
|
|
489
|
+
spyCodecCache.mockClear();
|
|
474
490
|
});
|
|
475
491
|
});
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import Adaptation from "./adaptation";
|
|
18
18
|
import type { ICodecSupportInfo } from "./codec_support_cache";
|
|
19
|
-
import type {
|
|
19
|
+
import type { IUpdatedRepresentationInfo, IManifestParsingOptions } from "./manifest";
|
|
20
20
|
import Manifest from "./manifest";
|
|
21
21
|
import Period from "./period";
|
|
22
22
|
import Representation from "./representation";
|
|
@@ -36,7 +36,7 @@ export type { IPeriodsUpdateResult } from "./update_periods";
|
|
|
36
36
|
export type {
|
|
37
37
|
IBufferedChunkInfos,
|
|
38
38
|
ICodecSupportInfo,
|
|
39
|
-
|
|
39
|
+
IUpdatedRepresentationInfo,
|
|
40
40
|
IManifestParsingOptions,
|
|
41
41
|
IMetaPlaylistPrivateInfos,
|
|
42
42
|
IRepresentationIndex,
|
|
@@ -63,7 +63,7 @@ interface IManifestParsingOptions {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/** Representation affected by a `decipherabilityUpdate` event. */
|
|
66
|
-
export interface
|
|
66
|
+
export interface IUpdatedRepresentationInfo {
|
|
67
67
|
manifest: IManifestMetadata;
|
|
68
68
|
period: IPeriodMetadata;
|
|
69
69
|
adaptation: IAdaptationMetadata;
|
|
@@ -75,9 +75,14 @@ export interface IManifestEvents {
|
|
|
75
75
|
/** The Manifest has been updated */
|
|
76
76
|
manifestUpdate: IPeriodsUpdateResult;
|
|
77
77
|
/** Some Representation's decipherability status has been updated */
|
|
78
|
-
decipherabilityUpdate:
|
|
78
|
+
decipherabilityUpdate: IUpdatedRepresentationInfo[];
|
|
79
79
|
/** Some Representation's support status has been updated */
|
|
80
80
|
supportUpdate: null;
|
|
81
|
+
/**
|
|
82
|
+
* Some `Representation`'s avoidance status has been updated, meaning that we
|
|
83
|
+
* might have to avoid playing them due to playback issues.
|
|
84
|
+
*/
|
|
85
|
+
representationAvoidanceUpdate: IUpdatedRepresentationInfo[];
|
|
81
86
|
}
|
|
82
87
|
|
|
83
88
|
/**
|
|
@@ -541,6 +546,45 @@ export default class Manifest
|
|
|
541
546
|
}
|
|
542
547
|
}
|
|
543
548
|
|
|
549
|
+
/**
|
|
550
|
+
* Indicate that some `Representation` needs to be avoided due to playback
|
|
551
|
+
* issues.
|
|
552
|
+
* @param {Array.<Object>} items
|
|
553
|
+
*/
|
|
554
|
+
public addRepresentationsToAvoid(
|
|
555
|
+
items: Array<{
|
|
556
|
+
period: Period;
|
|
557
|
+
adaptation: Adaptation;
|
|
558
|
+
representation: Representation;
|
|
559
|
+
}>,
|
|
560
|
+
) {
|
|
561
|
+
const updates = [];
|
|
562
|
+
for (const item of items) {
|
|
563
|
+
const period = this.getPeriod(item.period.id);
|
|
564
|
+
if (period === undefined) {
|
|
565
|
+
continue;
|
|
566
|
+
}
|
|
567
|
+
const adaptation = period.getAdaptation(item.adaptation.id);
|
|
568
|
+
if (adaptation === undefined) {
|
|
569
|
+
continue;
|
|
570
|
+
}
|
|
571
|
+
const representation = adaptation.getRepresentation(item.representation.id);
|
|
572
|
+
if (representation === undefined) {
|
|
573
|
+
continue;
|
|
574
|
+
}
|
|
575
|
+
representation.shouldBeAvoided = true;
|
|
576
|
+
updates.push({
|
|
577
|
+
manifest: this,
|
|
578
|
+
period,
|
|
579
|
+
adaptation,
|
|
580
|
+
representation,
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
if (updates.length > 0) {
|
|
584
|
+
this.trigger("representationAvoidanceUpdate", updates);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
|
|
544
588
|
/**
|
|
545
589
|
* @deprecated only returns adaptations for the first period
|
|
546
590
|
* @returns {Array.<Object>}
|
|
@@ -715,8 +759,8 @@ function updateDeciperability(
|
|
|
715
759
|
adaptation: Adaptation;
|
|
716
760
|
representation: Representation;
|
|
717
761
|
}) => boolean | undefined,
|
|
718
|
-
):
|
|
719
|
-
const updates:
|
|
762
|
+
): IUpdatedRepresentationInfo[] {
|
|
763
|
+
const updates: IUpdatedRepresentationInfo[] = [];
|
|
720
764
|
for (const period of manifest.periods) {
|
|
721
765
|
for (const adaptation of period.getAdaptations()) {
|
|
722
766
|
let hasOnlyUndecipherableRepresentations = true;
|
|
@@ -112,6 +112,15 @@ class Representation implements IRepresentationMetadata {
|
|
|
112
112
|
* @see ITrackType
|
|
113
113
|
*/
|
|
114
114
|
public trackType: ITrackType;
|
|
115
|
+
/**
|
|
116
|
+
* When set to `true`, the `Representation` should not be played, unless
|
|
117
|
+
* there's no other choice.
|
|
118
|
+
*
|
|
119
|
+
* Note that this property should __NEVER__ be updated directly on an
|
|
120
|
+
* instanciated `Representation`, you are supposed to rely on
|
|
121
|
+
* `Manifest` methods for this.
|
|
122
|
+
*/
|
|
123
|
+
public shouldBeAvoided: boolean;
|
|
115
124
|
|
|
116
125
|
/**
|
|
117
126
|
* @param {Object} args
|
|
@@ -124,6 +133,7 @@ class Representation implements IRepresentationMetadata {
|
|
|
124
133
|
) {
|
|
125
134
|
this.id = args.id;
|
|
126
135
|
this.uniqueId = generateRepresentationUniqueId();
|
|
136
|
+
this.shouldBeAvoided = false;
|
|
127
137
|
this.bitrate = args.bitrate;
|
|
128
138
|
this.codecs = [];
|
|
129
139
|
this.trackType = trackType;
|
package/src/manifest/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type {
|
|
2
|
-
|
|
2
|
+
IUpdatedRepresentationInfo,
|
|
3
3
|
ICodecSupportInfo,
|
|
4
4
|
Period,
|
|
5
5
|
Adaptation,
|
|
@@ -26,7 +26,7 @@ export type IAdaptation = Adaptation;
|
|
|
26
26
|
export type IRepresentation = Representation;
|
|
27
27
|
|
|
28
28
|
export type {
|
|
29
|
-
|
|
29
|
+
IUpdatedRepresentationInfo,
|
|
30
30
|
ICodecSupportInfo,
|
|
31
31
|
IPeriodsUpdateResult,
|
|
32
32
|
IRepresentationIndex,
|
package/src/manifest/utils.ts
CHANGED
|
@@ -237,7 +237,7 @@ export function toAudioTrack(
|
|
|
237
237
|
audioDescription: adaptation.isAudioDescription === true,
|
|
238
238
|
id: adaptation.id,
|
|
239
239
|
representations: (filterPlayable
|
|
240
|
-
? adaptation.representations.filter((r) => isRepresentationPlayable(r))
|
|
240
|
+
? adaptation.representations.filter((r) => isRepresentationPlayable(r) === true)
|
|
241
241
|
: adaptation.representations
|
|
242
242
|
).map(toAudioRepresentation),
|
|
243
243
|
label: adaptation.label,
|
package/src/multithread_types.ts
CHANGED
|
@@ -108,6 +108,12 @@ export interface IContentInitializationData {
|
|
|
108
108
|
* When set to an object, enable "Common Media Client Data", or "CMCD".
|
|
109
109
|
*/
|
|
110
110
|
cmcd?: ICmcdOptions | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* If `true`, the RxPlayer can enable its "Representation avoidance"
|
|
113
|
+
* mechanism, where it avoid loading Representation that it suspect
|
|
114
|
+
* have issues being decoded on the current device.
|
|
115
|
+
*/
|
|
116
|
+
enableRepresentationAvoidance: boolean;
|
|
111
117
|
/**
|
|
112
118
|
* URL at which the content's Manifest is accessible.
|
|
113
119
|
* `undefined` if unknown.
|
|
@@ -427,6 +433,8 @@ export interface ISerializedPlaybackObservation {
|
|
|
427
433
|
* to be buffered at this time.
|
|
428
434
|
*/
|
|
429
435
|
canStream: boolean;
|
|
436
|
+
/** If `true` the content is loaded until its maximum position. */
|
|
437
|
+
fullyLoaded: boolean;
|
|
430
438
|
}
|
|
431
439
|
|
|
432
440
|
/**
|
|
@@ -21,7 +21,7 @@ import findCompleteBox from "./find_complete_box";
|
|
|
21
21
|
* Take a chunk of ISOBMFF data and extract complete `moof`+`mdat` subsegments
|
|
22
22
|
* which are ready to be decoded.
|
|
23
23
|
* Returns a tuple of two containing first an array of those subsegments
|
|
24
|
-
* followed by
|
|
24
|
+
* followed by the last un-decodable part.
|
|
25
25
|
* @param {Uint8Array} buffer
|
|
26
26
|
* @returns {Array}
|
|
27
27
|
*/
|
|
@@ -467,6 +467,13 @@ export default class PlaybackObserver {
|
|
|
467
467
|
Infinity;
|
|
468
468
|
}
|
|
469
469
|
|
|
470
|
+
const fullyLoaded = hasLoadedUntilTheEnd(
|
|
471
|
+
basePosition,
|
|
472
|
+
currentRange,
|
|
473
|
+
mediaTimings.ended,
|
|
474
|
+
mediaTimings.duration,
|
|
475
|
+
this._lowLatencyMode,
|
|
476
|
+
);
|
|
470
477
|
const rebufferingStatus = getRebufferingStatus({
|
|
471
478
|
previousObservation,
|
|
472
479
|
currentObservation: mediaTimings,
|
|
@@ -475,7 +482,7 @@ export default class PlaybackObserver {
|
|
|
475
482
|
lowLatencyMode: this._lowLatencyMode,
|
|
476
483
|
withMediaSource: this._withMediaSource,
|
|
477
484
|
bufferGap,
|
|
478
|
-
|
|
485
|
+
fullyLoaded,
|
|
479
486
|
});
|
|
480
487
|
|
|
481
488
|
const freezingStatus = getFreezingStatus(
|
|
@@ -502,6 +509,7 @@ export default class PlaybackObserver {
|
|
|
502
509
|
freezing: freezingStatus,
|
|
503
510
|
bufferGap,
|
|
504
511
|
currentRange,
|
|
512
|
+
fullyLoaded,
|
|
505
513
|
});
|
|
506
514
|
if (log.hasLevel("DEBUG")) {
|
|
507
515
|
log.debug(
|
|
@@ -646,7 +654,7 @@ function getRebufferingStatus({
|
|
|
646
654
|
withMediaSource,
|
|
647
655
|
lowLatencyMode,
|
|
648
656
|
bufferGap,
|
|
649
|
-
|
|
657
|
+
fullyLoaded,
|
|
650
658
|
}: {
|
|
651
659
|
/** Previous Playback Observation produced. */
|
|
652
660
|
previousObservation: IPlaybackObservation;
|
|
@@ -676,22 +684,11 @@ function getRebufferingStatus({
|
|
|
676
684
|
* `undefined` if we cannot determine this due to a browser issue.
|
|
677
685
|
*/
|
|
678
686
|
bufferGap: number | undefined;
|
|
679
|
-
/**
|
|
680
|
-
|
|
681
|
-
*
|
|
682
|
-
* `null` if we've no buffered data at the current position.
|
|
683
|
-
* `undefined` if we cannot determine this due to a browser issue.
|
|
684
|
-
*/
|
|
685
|
-
currentRange: { start: number; end: number } | null | undefined;
|
|
687
|
+
/** If `true` the content is loaded until its maximum position. */
|
|
688
|
+
fullyLoaded: boolean;
|
|
686
689
|
}): IRebufferingStatus | null {
|
|
687
690
|
const { REBUFFERING_GAP } = config.getCurrent();
|
|
688
|
-
const {
|
|
689
|
-
position: currentTime,
|
|
690
|
-
duration,
|
|
691
|
-
paused,
|
|
692
|
-
readyState,
|
|
693
|
-
ended,
|
|
694
|
-
} = currentObservation;
|
|
691
|
+
const { position: currentTime, paused, readyState, ended } = currentObservation;
|
|
695
692
|
|
|
696
693
|
const {
|
|
697
694
|
rebuffering: prevRebuffering,
|
|
@@ -699,14 +696,6 @@ function getRebufferingStatus({
|
|
|
699
696
|
position: prevTime,
|
|
700
697
|
} = previousObservation;
|
|
701
698
|
|
|
702
|
-
const fullyLoaded = hasLoadedUntilTheEnd(
|
|
703
|
-
basePosition,
|
|
704
|
-
currentRange,
|
|
705
|
-
ended,
|
|
706
|
-
duration,
|
|
707
|
-
lowLatencyMode,
|
|
708
|
-
);
|
|
709
|
-
|
|
710
699
|
const canSwitchToRebuffering =
|
|
711
700
|
readyState >= 1 &&
|
|
712
701
|
observationEvent !== "loadedmetadata" &&
|
|
@@ -943,5 +932,6 @@ function getInitialObservation(mediaElement: IMediaElement): IPlaybackObservatio
|
|
|
943
932
|
freezing: null,
|
|
944
933
|
bufferGap: 0,
|
|
945
934
|
currentRange: null,
|
|
935
|
+
fullyLoaded: false,
|
|
946
936
|
});
|
|
947
937
|
}
|
|
@@ -140,6 +140,8 @@ export interface IPlaybackObservation extends Omit<IMediaInfos, "position" | "se
|
|
|
140
140
|
* `undefined` if we cannot determine the buffer gap.
|
|
141
141
|
*/
|
|
142
142
|
bufferGap: number | undefined;
|
|
143
|
+
/** If `true` the content is loaded until its maximum position. */
|
|
144
|
+
fullyLoaded: boolean;
|
|
143
145
|
/**
|
|
144
146
|
* The buffered range we are currently playing.
|
|
145
147
|
* `null` if no range is currently available.
|
|
@@ -49,6 +49,8 @@ export interface IWorkerPlaybackObservation {
|
|
|
49
49
|
* to be buffered at this time.
|
|
50
50
|
*/
|
|
51
51
|
canStream: boolean;
|
|
52
|
+
/** If `true` the content is loaded until its maximum position. */
|
|
53
|
+
fullyLoaded: boolean;
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
/** Pause-related information linked to an emitted Playback observation. */
|
package/src/public_types.ts
CHANGED
|
@@ -182,6 +182,23 @@ export interface ILoadVideoOptions {
|
|
|
182
182
|
* When set to an object, enable "Common Media Client Data", or "CMCD".
|
|
183
183
|
*/
|
|
184
184
|
cmcd?: ICmcdOptions | undefined;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Options which may be removed or updated at any RxPlayer release.
|
|
188
|
+
*
|
|
189
|
+
* Most of those are options which we temporarily test before making
|
|
190
|
+
* them part of the RxPlayer API.
|
|
191
|
+
*/
|
|
192
|
+
experimentalOptions?:
|
|
193
|
+
| {
|
|
194
|
+
/**
|
|
195
|
+
* If `true`, the RxPlayer can enable its "Representation avoidance"
|
|
196
|
+
* mechanism, where it avoid loading Representation that it suspect
|
|
197
|
+
* have issues being decoded on the current device.
|
|
198
|
+
*/
|
|
199
|
+
enableRepresentationAvoidance: boolean | undefined;
|
|
200
|
+
}
|
|
201
|
+
| undefined;
|
|
185
202
|
}
|
|
186
203
|
|
|
187
204
|
/** Value of the `serverSyncInfos` transport option. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MockInstance } from "vitest";
|
|
2
|
+
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
|
|
2
3
|
import Logger from "../logger";
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -17,6 +18,48 @@ import Logger from "../logger";
|
|
|
17
18
|
*/
|
|
18
19
|
|
|
19
20
|
describe("utils - Logger", () => {
|
|
21
|
+
const logMsgs: unknown[][] = [];
|
|
22
|
+
const errorMsgs: unknown[][] = [];
|
|
23
|
+
const warningMsgs: unknown[][] = [];
|
|
24
|
+
const infoMsgs: unknown[][] = [];
|
|
25
|
+
const debugMsgs: unknown[][] = [];
|
|
26
|
+
let mockLog: MockInstance;
|
|
27
|
+
let mockError: MockInstance;
|
|
28
|
+
let mockWarn: MockInstance;
|
|
29
|
+
let mockInfo: MockInstance;
|
|
30
|
+
let mockDebug: MockInstance;
|
|
31
|
+
|
|
32
|
+
beforeEach(() => {
|
|
33
|
+
mockLog = vi.spyOn(console, "log").mockImplementation((...args: unknown[]) => {
|
|
34
|
+
logMsgs.push(args);
|
|
35
|
+
});
|
|
36
|
+
mockError = vi.spyOn(console, "error").mockImplementation((...args: unknown[]) => {
|
|
37
|
+
errorMsgs.push(args);
|
|
38
|
+
});
|
|
39
|
+
mockWarn = vi.spyOn(console, "warn").mockImplementation((...args: unknown[]) => {
|
|
40
|
+
warningMsgs.push(args);
|
|
41
|
+
});
|
|
42
|
+
mockInfo = vi.spyOn(console, "info").mockImplementation((...args: unknown[]) => {
|
|
43
|
+
infoMsgs.push(args);
|
|
44
|
+
});
|
|
45
|
+
mockDebug = vi.spyOn(console, "debug").mockImplementation((...args: unknown[]) => {
|
|
46
|
+
debugMsgs.push(args);
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
afterEach(() => {
|
|
51
|
+
mockLog.mockRestore();
|
|
52
|
+
mockError.mockRestore();
|
|
53
|
+
mockWarn.mockRestore();
|
|
54
|
+
mockInfo.mockRestore();
|
|
55
|
+
mockDebug.mockRestore();
|
|
56
|
+
logMsgs.length = 0;
|
|
57
|
+
errorMsgs.length = 0;
|
|
58
|
+
warningMsgs.length = 0;
|
|
59
|
+
infoMsgs.length = 0;
|
|
60
|
+
debugMsgs.length = 0;
|
|
61
|
+
});
|
|
62
|
+
|
|
20
63
|
it('should set a default logger level of "NONE"', () => {
|
|
21
64
|
const logger = new Logger();
|
|
22
65
|
expect(logger.getLevel()).toEqual("NONE");
|
|
@@ -72,12 +115,6 @@ describe("utils - Logger", () => {
|
|
|
72
115
|
});
|
|
73
116
|
|
|
74
117
|
it('should never call console.* functions if logger level is set to "NONE"', () => {
|
|
75
|
-
const mockLog = vi.spyOn(console, "log").mockImplementation(vi.fn());
|
|
76
|
-
const mockError = vi.spyOn(console, "error").mockImplementation(vi.fn());
|
|
77
|
-
const mockWarn = vi.spyOn(console, "warn").mockImplementation(vi.fn());
|
|
78
|
-
const mockInfo = vi.spyOn(console, "info").mockImplementation(vi.fn());
|
|
79
|
-
const mockDebug = vi.spyOn(console, "debug").mockImplementation(vi.fn());
|
|
80
|
-
|
|
81
118
|
const logger = new Logger();
|
|
82
119
|
logger.error("test");
|
|
83
120
|
logger.warn("test");
|
|
@@ -96,12 +133,6 @@ describe("utils - Logger", () => {
|
|
|
96
133
|
});
|
|
97
134
|
|
|
98
135
|
it('should only call console.error if logger level is set to "ERROR"', () => {
|
|
99
|
-
const mockLog = vi.spyOn(console, "log").mockImplementation(vi.fn());
|
|
100
|
-
const mockError = vi.spyOn(console, "error").mockImplementation(vi.fn());
|
|
101
|
-
const mockWarn = vi.spyOn(console, "warn").mockImplementation(vi.fn());
|
|
102
|
-
const mockInfo = vi.spyOn(console, "info").mockImplementation(vi.fn());
|
|
103
|
-
const mockDebug = vi.spyOn(console, "debug").mockImplementation(vi.fn());
|
|
104
|
-
|
|
105
136
|
const logger = new Logger();
|
|
106
137
|
logger.setLevel("ERROR", "standard");
|
|
107
138
|
logger.error("test");
|
|
@@ -121,12 +152,6 @@ describe("utils - Logger", () => {
|
|
|
121
152
|
});
|
|
122
153
|
|
|
123
154
|
it('should call console.{error,warn} if logger level is set to "WARNING"', () => {
|
|
124
|
-
const mockLog = vi.spyOn(console, "log").mockImplementation(vi.fn());
|
|
125
|
-
const mockError = vi.spyOn(console, "error").mockImplementation(vi.fn());
|
|
126
|
-
const mockWarn = vi.spyOn(console, "warn").mockImplementation(vi.fn());
|
|
127
|
-
const mockInfo = vi.spyOn(console, "info").mockImplementation(vi.fn());
|
|
128
|
-
const mockDebug = vi.spyOn(console, "debug").mockImplementation(vi.fn());
|
|
129
|
-
|
|
130
155
|
const logger = new Logger();
|
|
131
156
|
logger.setLevel("WARNING", "standard");
|
|
132
157
|
logger.error("test");
|
|
@@ -146,12 +171,6 @@ describe("utils - Logger", () => {
|
|
|
146
171
|
});
|
|
147
172
|
|
|
148
173
|
it('should call console.{error,warn,info} if logger level is set to "INFO"', () => {
|
|
149
|
-
const mockLog = vi.spyOn(console, "log").mockImplementation(vi.fn());
|
|
150
|
-
const mockError = vi.spyOn(console, "error").mockImplementation(vi.fn());
|
|
151
|
-
const mockWarn = vi.spyOn(console, "warn").mockImplementation(vi.fn());
|
|
152
|
-
const mockInfo = vi.spyOn(console, "info").mockImplementation(vi.fn());
|
|
153
|
-
const mockDebug = vi.spyOn(console, "debug").mockImplementation(vi.fn());
|
|
154
|
-
|
|
155
174
|
const logger = new Logger();
|
|
156
175
|
logger.setLevel("INFO", "standard");
|
|
157
176
|
logger.error("test");
|
|
@@ -171,12 +190,6 @@ describe("utils - Logger", () => {
|
|
|
171
190
|
});
|
|
172
191
|
|
|
173
192
|
it('should call console.{error,warn,info, log} if logger level is set to "DEBUG"', () => {
|
|
174
|
-
const mockLog = vi.spyOn(console, "log").mockImplementation(vi.fn());
|
|
175
|
-
const mockError = vi.spyOn(console, "error").mockImplementation(vi.fn());
|
|
176
|
-
const mockWarn = vi.spyOn(console, "warn").mockImplementation(vi.fn());
|
|
177
|
-
const mockInfo = vi.spyOn(console, "info").mockImplementation(vi.fn());
|
|
178
|
-
const mockDebug = vi.spyOn(console, "debug").mockImplementation(vi.fn());
|
|
179
|
-
|
|
180
193
|
const logger = new Logger();
|
|
181
194
|
logger.setLevel("DEBUG", "standard");
|
|
182
195
|
logger.error("test");
|
|
@@ -263,35 +276,6 @@ describe("utils - Logger", () => {
|
|
|
263
276
|
});
|
|
264
277
|
|
|
265
278
|
it('should format logs with more information when `LogFormat` is set to "full"', () => {
|
|
266
|
-
const logMsgs: unknown[][] = [];
|
|
267
|
-
const errorMsgs: unknown[][] = [];
|
|
268
|
-
const warningMsgs: unknown[][] = [];
|
|
269
|
-
const infoMsgs: unknown[][] = [];
|
|
270
|
-
const debugMsgs: unknown[][] = [];
|
|
271
|
-
const mockLog = vi.spyOn(console, "log").mockImplementation((...args: unknown[]) => {
|
|
272
|
-
logMsgs.push(args);
|
|
273
|
-
});
|
|
274
|
-
const mockError = vi
|
|
275
|
-
.spyOn(console, "error")
|
|
276
|
-
.mockImplementation((...args: unknown[]) => {
|
|
277
|
-
errorMsgs.push(args);
|
|
278
|
-
});
|
|
279
|
-
const mockWarn = vi
|
|
280
|
-
.spyOn(console, "warn")
|
|
281
|
-
.mockImplementation((...args: unknown[]) => {
|
|
282
|
-
warningMsgs.push(args);
|
|
283
|
-
});
|
|
284
|
-
const mockInfo = vi
|
|
285
|
-
.spyOn(console, "info")
|
|
286
|
-
.mockImplementation((...args: unknown[]) => {
|
|
287
|
-
infoMsgs.push(args);
|
|
288
|
-
});
|
|
289
|
-
const mockDebug = vi
|
|
290
|
-
.spyOn(console, "debug")
|
|
291
|
-
.mockImplementation((...args: unknown[]) => {
|
|
292
|
-
debugMsgs.push(args);
|
|
293
|
-
});
|
|
294
|
-
|
|
295
279
|
const logger = new Logger();
|
|
296
280
|
|
|
297
281
|
logger.setLevel("DEBUG", "full");
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2015 CANAL+ Group
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IEventEmitter } from "../../../utils/event_emitter";
|
|
17
|
-
import type { IMediaElement } from "../../browser_compatibility_types";
|
|
18
|
-
export interface ICustomMediaKeySession extends IEventEmitter<IMediaKeySessionEvents> {
|
|
19
|
-
readonly closed: Promise<void>;
|
|
20
|
-
expiration: number;
|
|
21
|
-
keyStatuses: ICustomMediaKeyStatusMap;
|
|
22
|
-
sessionId: string;
|
|
23
|
-
onmessage?: (message: MediaKeyMessageEvent) => void;
|
|
24
|
-
onkeystatusesChange?: (evt: Event) => void;
|
|
25
|
-
generateRequest(initDataType: string, initData: BufferSource | null): Promise<void>;
|
|
26
|
-
load(sessionId: string): Promise<boolean>;
|
|
27
|
-
update(response: BufferSource | null): Promise<void>;
|
|
28
|
-
close(): Promise<void>;
|
|
29
|
-
remove(): Promise<void>;
|
|
30
|
-
}
|
|
31
|
-
export interface ICustomMediaKeys {
|
|
32
|
-
_setVideo: (vid: IMediaElement) => Promise<unknown>;
|
|
33
|
-
createSession(sessionType?: MediaKeySessionType): ICustomMediaKeySession;
|
|
34
|
-
setServerCertificate(setServerCertificate: BufferSource): Promise<void>;
|
|
35
|
-
}
|
|
36
|
-
export interface ICustomMediaKeyStatusMap {
|
|
37
|
-
readonly size: number;
|
|
38
|
-
forEach(callback: (status: MediaKeyStatus) => void, thisArg?: unknown): void;
|
|
39
|
-
get(keyId: BufferSource | null): MediaKeyStatus | undefined;
|
|
40
|
-
has(keyId: BufferSource | null): boolean;
|
|
41
|
-
}
|
|
42
|
-
export interface IMediaKeySessionEvents {
|
|
43
|
-
[key: string]: MediaKeyMessageEvent | Event;
|
|
44
|
-
}
|
|
45
|
-
export interface ICustomMediaEncryptedEvent extends MediaEncryptedEvent {
|
|
46
|
-
forceSessionRecreation?: boolean | undefined;
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/compat/eme/custom_media_keys/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAEvE,MAAM,WAAW,sBAAuB,SAAQ,aAAa,CAAC,sBAAsB,CAAC;IAEnF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,wBAAwB,CAAC;IACtC,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACpD,mBAAmB,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC;IAI3C,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpF,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC1C,MAAM,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACpD,aAAa,CAAC,WAAW,CAAC,EAAE,mBAAmB,GAAG,sBAAsB,CAAC;IACzE,oBAAoB,CAAC,oBAAoB,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzE;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7E,GAAG,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,GAAG,cAAc,GAAG,SAAS,CAAC;IAC5D,GAAG,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,GAAG,OAAO,CAAC;CAC1C;AAED,MAAM,WAAW,sBAAsB;IACrC,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,GAAG,KAAK,CAAC;CAO7C;AAED,MAAM,WAAW,0BAA2B,SAAQ,mBAAmB;IACrE,sBAAsB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9C"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright 2015 CANAL+ Group
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|