rx-player 4.0.0-dev.2023111400 → 4.0.0-dev.2023120600
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 +11 -227
- package/FILES.md +1 -1
- package/VERSION +1 -1
- package/dist/_esm5.processed/compat/add_text_track.d.ts +1 -3
- package/dist/_esm5.processed/compat/add_text_track.js +4 -7
- package/dist/_esm5.processed/compat/browser_compatibility_types.d.ts +0 -7
- package/dist/_esm5.processed/compat/event_listeners.d.ts +2 -15
- package/dist/_esm5.processed/compat/event_listeners.js +2 -37
- package/dist/_esm5.processed/compat/index.d.ts +1 -3
- package/dist/_esm5.processed/compat/index.js +1 -3
- package/dist/_esm5.processed/config.d.ts +9 -21
- package/dist/_esm5.processed/core/adaptive/adaptive_representation_selector.d.ts +0 -58
- package/dist/_esm5.processed/core/adaptive/adaptive_representation_selector.js +14 -54
- package/dist/_esm5.processed/core/adaptive/utils/select_optimal_representation.d.ts +2 -8
- package/dist/_esm5.processed/core/adaptive/utils/select_optimal_representation.js +2 -11
- package/dist/_esm5.processed/core/api/debug/buffer_graph.js +2 -6
- package/dist/_esm5.processed/core/api/debug/modules/general_info.js +13 -32
- package/dist/_esm5.processed/core/api/debug/modules/segment_buffer_content.js +3 -3
- package/dist/_esm5.processed/core/api/debug/modules/segment_buffer_size.js +1 -1
- package/dist/_esm5.processed/core/api/option_utils.d.ts +12 -35
- package/dist/_esm5.processed/core/api/option_utils.js +41 -230
- package/dist/_esm5.processed/core/api/public_api.d.ts +91 -266
- package/dist/_esm5.processed/core/api/public_api.js +439 -805
- package/dist/_esm5.processed/core/{segment_buffers/implementations/image → api/track_management}/index.d.ts +3 -2
- package/dist/_esm5.processed/core/{segment_buffers/implementations/image → api/track_management}/index.js +3 -2
- package/dist/_esm5.processed/core/api/{tracks_management/media_element_track_choice_manager.d.ts → track_management/media_element_tracks_store.d.ts} +15 -75
- package/dist/_esm5.processed/core/api/{tracks_management/media_element_track_choice_manager.js → track_management/media_element_tracks_store.js} +74 -193
- package/dist/_esm5.processed/core/api/track_management/track_dispatcher.d.ts +84 -0
- package/dist/_esm5.processed/core/api/track_management/track_dispatcher.js +158 -0
- package/dist/_esm5.processed/core/api/track_management/tracks_store.d.ts +406 -0
- package/dist/_esm5.processed/core/api/track_management/tracks_store.js +932 -0
- package/dist/_esm5.processed/core/api/utils.d.ts +1 -0
- package/dist/_esm5.processed/core/api/utils.js +28 -11
- package/dist/_esm5.processed/core/decrypt/content_decryptor.js +3 -3
- package/dist/_esm5.processed/core/decrypt/find_key_system.js +83 -71
- package/dist/_esm5.processed/core/decrypt/get_media_keys.js +6 -5
- package/dist/_esm5.processed/core/decrypt/session_events_listener.js +10 -72
- package/dist/_esm5.processed/core/decrypt/utils/persistent_sessions_store.d.ts +4 -4
- package/dist/_esm5.processed/core/decrypt/utils/persistent_sessions_store.js +6 -4
- package/dist/_esm5.processed/core/fetchers/manifest/manifest_fetcher.d.ts +1 -3
- package/dist/_esm5.processed/core/fetchers/manifest/manifest_fetcher.js +7 -26
- package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher.d.ts +3 -9
- package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher.js +16 -9
- package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher_creator.d.ts +1 -3
- package/dist/_esm5.processed/core/fetchers/segment/segment_fetcher_creator.js +1 -1
- package/dist/_esm5.processed/core/fetchers/utils/schedule_request.d.ts +1 -6
- package/dist/_esm5.processed/core/fetchers/utils/schedule_request.js +4 -41
- package/dist/_esm5.processed/core/init/directfile_content_initializer.js +1 -1
- package/dist/_esm5.processed/core/init/media_source_content_initializer.d.ts +1 -8
- package/dist/_esm5.processed/core/init/media_source_content_initializer.js +5 -19
- package/dist/_esm5.processed/core/init/types.d.ts +5 -15
- package/dist/_esm5.processed/core/init/utils/rebuffering_controller.d.ts +2 -36
- package/dist/_esm5.processed/core/init/utils/rebuffering_controller.js +2 -82
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/native_text_segment_buffer.d.ts +1 -2
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/native/native_text_segment_buffer.js +2 -3
- package/dist/_esm5.processed/core/segment_buffers/implementations/types.d.ts +2 -2
- package/dist/_esm5.processed/core/segment_buffers/index.d.ts +2 -2
- package/dist/_esm5.processed/core/segment_buffers/index.js +2 -1
- package/dist/_esm5.processed/core/segment_buffers/inventory/index.d.ts +1 -0
- package/dist/_esm5.processed/core/segment_buffers/inventory/index.js +1 -0
- package/dist/_esm5.processed/core/segment_buffers/inventory/utils.d.ts +33 -0
- package/dist/_esm5.processed/core/segment_buffers/inventory/utils.js +49 -0
- package/dist/_esm5.processed/core/segment_buffers/segment_buffers_store.d.ts +0 -1
- package/dist/_esm5.processed/core/segment_buffers/segment_buffers_store.js +2 -16
- package/dist/_esm5.processed/core/stream/adaptation/adaptation_stream.d.ts +0 -15
- package/dist/_esm5.processed/core/stream/adaptation/adaptation_stream.js +183 -93
- package/dist/_esm5.processed/core/stream/adaptation/get_representations_switch_strategy.d.ts +39 -0
- package/dist/_esm5.processed/core/stream/adaptation/get_representations_switch_strategy.js +133 -0
- package/dist/_esm5.processed/core/stream/adaptation/types.d.ts +27 -13
- package/dist/_esm5.processed/core/stream/index.d.ts +2 -3
- package/dist/_esm5.processed/core/stream/orchestrator/stream_orchestrator.d.ts +2 -0
- package/dist/_esm5.processed/core/stream/orchestrator/stream_orchestrator.js +5 -7
- package/dist/_esm5.processed/core/stream/period/period_stream.js +13 -12
- package/dist/_esm5.processed/core/stream/period/types.d.ts +5 -14
- package/dist/_esm5.processed/core/stream/period/utils/get_adaptation_switch_strategy.d.ts +2 -4
- package/dist/_esm5.processed/core/stream/period/utils/get_adaptation_switch_strategy.js +10 -46
- package/dist/_esm5.processed/core/stream/representation/representation_stream.js +29 -23
- package/dist/_esm5.processed/core/stream/representation/types.d.ts +11 -1
- package/dist/_esm5.processed/default_config.d.ts +35 -98
- package/dist/_esm5.processed/default_config.js +36 -113
- package/dist/_esm5.processed/errors/custom_loader_error.d.ts +1 -3
- package/dist/_esm5.processed/errors/custom_loader_error.js +1 -3
- package/dist/_esm5.processed/errors/media_error.js +2 -2
- package/dist/_esm5.processed/errors/network_error.d.ts +0 -1
- package/dist/_esm5.processed/errors/network_error.js +0 -1
- package/dist/_esm5.processed/errors/request_error.d.ts +2 -3
- package/dist/_esm5.processed/errors/request_error.js +2 -5
- package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +3 -3
- package/dist/_esm5.processed/features/features_object.js +0 -2
- package/dist/_esm5.processed/features/list/directfile.js +2 -5
- package/dist/_esm5.processed/features/list/index.d.ts +0 -2
- package/dist/_esm5.processed/features/list/index.js +0 -2
- package/dist/_esm5.processed/features/types.d.ts +3 -27
- package/dist/_esm5.processed/manifest/adaptation.d.ts +9 -11
- package/dist/_esm5.processed/manifest/adaptation.js +41 -30
- package/dist/_esm5.processed/manifest/index.d.ts +3 -4
- package/dist/_esm5.processed/manifest/manifest.d.ts +5 -54
- package/dist/_esm5.processed/manifest/manifest.js +5 -110
- package/dist/_esm5.processed/manifest/period.d.ts +4 -5
- package/dist/_esm5.processed/manifest/representation.d.ts +10 -5
- package/dist/_esm5.processed/manifest/representation.js +15 -5
- package/dist/_esm5.processed/manifest/representation_index/index.d.ts +2 -2
- package/dist/_esm5.processed/manifest/representation_index/static.d.ts +2 -0
- package/dist/_esm5.processed/manifest/representation_index/static.js +6 -0
- package/dist/_esm5.processed/manifest/representation_index/types.d.ts +42 -21
- package/dist/_esm5.processed/manifest/types.d.ts +0 -2
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/base.d.ts +17 -31
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/base.js +26 -19
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/list.d.ts +2 -0
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/list.js +7 -1
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/template.d.ts +2 -6
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/template.js +11 -8
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +2 -0
- package/dist/_esm5.processed/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +6 -0
- package/dist/_esm5.processed/parsers/manifest/dash/common/infer_adaptation_type.d.ts +2 -2
- package/dist/_esm5.processed/parsers/manifest/dash/common/infer_adaptation_type.js +1 -6
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_adaptation_sets.js +3 -5
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_mpd.d.ts +0 -2
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_mpd.js +1 -1
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_periods.js +2 -2
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representation_index.d.ts +0 -2
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representation_index.js +2 -2
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +10 -6
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Representation.js +4 -2
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/utils.d.ts +10 -1
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/utils.js +18 -2
- package/dist/_esm5.processed/parsers/manifest/dash/node_parser_types.d.ts +4 -4
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +3 -6
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +1 -2
- package/dist/_esm5.processed/parsers/manifest/local/representation_index.d.ts +2 -0
- package/dist/_esm5.processed/parsers/manifest/local/representation_index.js +6 -0
- package/dist/_esm5.processed/parsers/manifest/metaplaylist/metaplaylist_parser.js +6 -6
- package/dist/_esm5.processed/parsers/manifest/metaplaylist/representation_index.d.ts +12 -3
- package/dist/_esm5.processed/parsers/manifest/metaplaylist/representation_index.js +11 -2
- package/dist/_esm5.processed/parsers/manifest/smooth/create_parser.d.ts +0 -1
- package/dist/_esm5.processed/parsers/manifest/smooth/create_parser.js +11 -17
- package/dist/_esm5.processed/parsers/manifest/smooth/representation_index.d.ts +21 -83
- package/dist/_esm5.processed/parsers/manifest/smooth/representation_index.js +53 -125
- package/dist/_esm5.processed/parsers/manifest/smooth/shared_smooth_segment_timeline.d.ts +119 -0
- package/dist/_esm5.processed/parsers/manifest/smooth/shared_smooth_segment_timeline.js +159 -0
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/add_segment_infos.d.ts +3 -6
- package/dist/_esm5.processed/parsers/manifest/smooth/utils/add_segment_infos.js +4 -4
- package/dist/_esm5.processed/parsers/manifest/types.d.ts +3 -3
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_extent.js +1 -8
- package/dist/_esm5.processed/parsers/texttracks/ttml/html/apply_origin.js +1 -9
- package/dist/_esm5.processed/public_types.d.ts +396 -308
- package/dist/_esm5.processed/tools/TextTrackRenderer/text_track_renderer.d.ts +5 -4
- package/dist/_esm5.processed/tools/TextTrackRenderer/text_track_renderer.js +5 -4
- package/dist/_esm5.processed/transports/dash/add_segment_integrity_checks_to_loader.js +4 -4
- package/dist/_esm5.processed/transports/dash/manifest_parser.js +2 -3
- package/dist/_esm5.processed/transports/dash/pipelines.js +1 -4
- package/dist/_esm5.processed/transports/dash/segment_loader.d.ts +2 -2
- package/dist/_esm5.processed/transports/dash/segment_loader.js +26 -20
- package/dist/_esm5.processed/transports/dash/segment_parser.js +19 -24
- package/dist/_esm5.processed/transports/dash/text_loader.js +5 -5
- package/dist/_esm5.processed/transports/dash/text_parser.js +28 -33
- package/dist/_esm5.processed/transports/local/pipelines.js +1 -10
- package/dist/_esm5.processed/transports/local/segment_loader.js +2 -2
- package/dist/_esm5.processed/transports/local/segment_parser.d.ts +1 -1
- package/dist/_esm5.processed/transports/local/segment_parser.js +10 -10
- package/dist/_esm5.processed/transports/local/text_parser.d.ts +2 -2
- package/dist/_esm5.processed/transports/local/text_parser.js +23 -23
- package/dist/_esm5.processed/transports/metaplaylist/pipelines.js +34 -52
- package/dist/_esm5.processed/{utils/list_to_map.d.ts → transports/smooth/is_mp4_embedded_track.d.ts} +5 -5
- package/dist/_esm5.processed/{features/list/image_buffer.d.ts → transports/smooth/is_mp4_embedded_track.js} +7 -6
- package/dist/_esm5.processed/transports/smooth/pipelines.js +33 -190
- package/dist/_esm5.processed/transports/smooth/segment_loader.d.ts +1 -1
- package/dist/_esm5.processed/transports/smooth/segment_loader.js +28 -22
- package/dist/_esm5.processed/transports/smooth/utils.d.ts +1 -26
- package/dist/_esm5.processed/transports/smooth/utils.js +1 -55
- package/dist/_esm5.processed/transports/types.d.ts +94 -89
- package/dist/_esm5.processed/transports/utils/call_custom_manifest_loader.js +3 -3
- package/dist/_esm5.processed/transports/utils/infer_segment_container.d.ts +3 -3
- package/dist/_esm5.processed/transports/utils/infer_segment_container.js +5 -7
- package/dist/_esm5.processed/transports/utils/parse_text_track.d.ts +8 -12
- package/dist/_esm5.processed/transports/utils/parse_text_track.js +19 -21
- package/dist/_esm5.processed/utils/array_includes.d.ts +2 -1
- package/dist/_esm5.processed/utils/array_includes.js +30 -28
- package/dist/_esm5.processed/utils/request/xhr.js +5 -5
- package/dist/commonjs/compat/is_codec_supported.js +22 -1
- package/dist/commonjs/config.d.ts +1 -0
- package/dist/commonjs/core/api/debug/buffer_graph.js +2 -6
- package/dist/commonjs/core/api/debug/modules/general_info.js +17 -10
- package/dist/commonjs/core/api/option_utils.d.ts +2 -0
- package/dist/commonjs/core/api/option_utils.js +2 -3
- package/dist/commonjs/core/api/public_api.d.ts +9 -0
- package/dist/commonjs/core/api/public_api.js +34 -9
- package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.d.ts +6 -0
- package/dist/commonjs/core/fetchers/manifest/manifest_fetcher.js +11 -3
- package/dist/commonjs/core/fetchers/segment/segment_fetcher.d.ts +8 -1
- package/dist/commonjs/core/fetchers/segment/segment_fetcher.js +8 -4
- package/dist/commonjs/core/fetchers/segment/segment_fetcher_creator.d.ts +1 -0
- package/dist/commonjs/core/fetchers/utils/schedule_request.js +1 -1
- package/dist/commonjs/core/init/directfile_content_initializer.js +24 -7
- package/dist/commonjs/core/init/media_source_content_initializer.d.ts +6 -0
- package/dist/commonjs/core/init/media_source_content_initializer.js +4 -6
- package/dist/commonjs/core/init/utils/content_time_boundaries_observer.d.ts +13 -12
- package/dist/commonjs/core/init/utils/content_time_boundaries_observer.js +16 -17
- package/dist/commonjs/core/init/utils/get_initial_time.d.ts +17 -3
- package/dist/commonjs/core/init/utils/get_initial_time.js +9 -7
- package/dist/commonjs/core/stream/representation/utils/get_buffer_status.js +3 -3
- package/dist/commonjs/core/stream/representation/utils/get_needed_segments.js +1 -1
- package/dist/commonjs/default_config.d.ts +5 -0
- package/dist/commonjs/default_config.js +5 -0
- package/dist/commonjs/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +3 -1
- package/dist/commonjs/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +2 -0
- package/dist/commonjs/manifest/representation_index/static.d.ts +1 -1
- package/dist/commonjs/manifest/representation_index/static.js +2 -2
- package/dist/commonjs/manifest/representation_index/types.d.ts +4 -4
- package/dist/commonjs/parsers/manifest/dash/common/indexes/base.d.ts +6 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/base.js +4 -3
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts +5 -2
- package/dist/commonjs/parsers/manifest/dash/common/indexes/get_segments_from_timeline.js +15 -4
- package/dist/commonjs/parsers/manifest/dash/common/indexes/index.d.ts +5 -5
- package/dist/commonjs/parsers/manifest/dash/common/indexes/list.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/list.js +2 -2
- package/dist/commonjs/parsers/manifest/dash/common/indexes/template.d.ts +12 -5
- package/dist/commonjs/parsers/manifest/dash/common/indexes/template.js +42 -29
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/index.d.ts +2 -1
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +99 -6
- package/dist/commonjs/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +250 -51
- package/dist/commonjs/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts +40 -17
- package/dist/commonjs/parsers/manifest/dash/common/manifest_bounds_calculator.js +38 -18
- package/dist/commonjs/parsers/manifest/dash/common/parse_adaptation_sets.js +13 -10
- package/dist/commonjs/parsers/manifest/dash/common/parse_mpd.js +27 -14
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/dash/common/parse_periods.js +17 -18
- package/dist/commonjs/parsers/manifest/dash/common/parse_representation_index.d.ts +19 -6
- package/dist/commonjs/parsers/manifest/dash/common/parse_representation_index.js +21 -8
- package/dist/commonjs/parsers/manifest/dash/common/parse_representations.js +7 -3
- package/dist/commonjs/parsers/manifest/local/representation_index.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/local/representation_index.js +3 -3
- package/dist/commonjs/parsers/manifest/metaplaylist/representation_index.d.ts +1 -1
- package/dist/commonjs/parsers/manifest/metaplaylist/representation_index.js +2 -2
- package/dist/commonjs/parsers/manifest/smooth/representation_index.d.ts +5 -5
- package/dist/commonjs/parsers/manifest/smooth/representation_index.js +25 -9
- package/dist/commonjs/parsers/manifest/utils/index_helpers.js +1 -1
- package/dist/commonjs/public_types.d.ts +78 -34
- package/dist/commonjs/transports/dash/init_segment_loader.js +10 -5
- package/dist/commonjs/transports/dash/manifest_parser.js +5 -2
- package/dist/commonjs/transports/dash/segment_loader.js +2 -1
- package/dist/commonjs/transports/dash/text_loader.js +2 -0
- package/dist/commonjs/transports/metaplaylist/manifest_loader.js +2 -1
- package/dist/commonjs/transports/metaplaylist/pipelines.js +4 -1
- package/dist/commonjs/transports/smooth/pipelines.js +4 -2
- package/dist/commonjs/transports/smooth/segment_loader.js +2 -1
- package/dist/commonjs/transports/types.d.ts +12 -0
- package/dist/commonjs/transports/utils/generate_manifest_loader.js +6 -3
- package/dist/commonjs/utils/request/fetch.d.ts +6 -0
- package/dist/commonjs/utils/request/fetch.js +29 -8
- package/dist/commonjs/utils/request/xhr.d.ts +11 -5
- package/dist/commonjs/utils/request/xhr.js +29 -8
- package/dist/es2017/compat/is_codec_supported.js +22 -1
- package/dist/es2017/config.d.ts +1 -0
- package/dist/es2017/core/api/debug/buffer_graph.js +2 -6
- package/dist/es2017/core/api/debug/modules/general_info.js +17 -10
- package/dist/es2017/core/api/option_utils.d.ts +2 -0
- package/dist/es2017/core/api/option_utils.js +2 -3
- package/dist/es2017/core/api/public_api.d.ts +9 -0
- package/dist/es2017/core/api/public_api.js +33 -8
- package/dist/es2017/core/fetchers/manifest/manifest_fetcher.d.ts +6 -0
- package/dist/es2017/core/fetchers/manifest/manifest_fetcher.js +11 -3
- package/dist/es2017/core/fetchers/segment/segment_fetcher.d.ts +8 -1
- package/dist/es2017/core/fetchers/segment/segment_fetcher.js +8 -4
- package/dist/es2017/core/fetchers/segment/segment_fetcher_creator.d.ts +1 -0
- package/dist/es2017/core/fetchers/utils/schedule_request.js +1 -1
- package/dist/es2017/core/init/directfile_content_initializer.js +24 -7
- package/dist/es2017/core/init/media_source_content_initializer.d.ts +6 -0
- package/dist/es2017/core/init/media_source_content_initializer.js +4 -6
- package/dist/es2017/core/init/utils/content_time_boundaries_observer.d.ts +13 -12
- package/dist/es2017/core/init/utils/content_time_boundaries_observer.js +16 -15
- package/dist/es2017/core/init/utils/get_initial_time.d.ts +17 -3
- package/dist/es2017/core/init/utils/get_initial_time.js +9 -7
- package/dist/es2017/core/stream/representation/utils/get_buffer_status.js +3 -3
- package/dist/es2017/core/stream/representation/utils/get_needed_segments.js +1 -1
- package/dist/es2017/default_config.d.ts +5 -0
- package/dist/es2017/default_config.js +5 -0
- package/dist/es2017/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js +3 -1
- package/dist/es2017/experimental/tools/createMetaplaylist/get_duration_from_manifest.js +2 -0
- package/dist/es2017/manifest/representation_index/static.d.ts +1 -1
- package/dist/es2017/manifest/representation_index/static.js +2 -2
- package/dist/es2017/manifest/representation_index/types.d.ts +4 -4
- package/dist/es2017/parsers/manifest/dash/common/indexes/base.d.ts +6 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/base.js +4 -3
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_segments_from_timeline.d.ts +5 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/get_segments_from_timeline.js +15 -4
- package/dist/es2017/parsers/manifest/dash/common/indexes/index.d.ts +5 -5
- package/dist/es2017/parsers/manifest/dash/common/indexes/list.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/list.js +2 -2
- package/dist/es2017/parsers/manifest/dash/common/indexes/template.d.ts +12 -5
- package/dist/es2017/parsers/manifest/dash/common/indexes/template.js +40 -27
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/index.d.ts +2 -1
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.d.ts +99 -6
- package/dist/es2017/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.js +246 -51
- package/dist/es2017/parsers/manifest/dash/common/manifest_bounds_calculator.d.ts +40 -17
- package/dist/es2017/parsers/manifest/dash/common/manifest_bounds_calculator.js +38 -18
- package/dist/es2017/parsers/manifest/dash/common/parse_adaptation_sets.js +11 -8
- package/dist/es2017/parsers/manifest/dash/common/parse_mpd.js +27 -13
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.d.ts +1 -1
- package/dist/es2017/parsers/manifest/dash/common/parse_periods.js +13 -16
- package/dist/es2017/parsers/manifest/dash/common/parse_representation_index.d.ts +19 -6
- package/dist/es2017/parsers/manifest/dash/common/parse_representation_index.js +10 -8
- package/dist/es2017/parsers/manifest/dash/common/parse_representations.js +7 -3
- package/dist/es2017/parsers/manifest/local/representation_index.d.ts +1 -1
- package/dist/es2017/parsers/manifest/local/representation_index.js +3 -3
- package/dist/es2017/parsers/manifest/metaplaylist/representation_index.d.ts +1 -1
- package/dist/es2017/parsers/manifest/metaplaylist/representation_index.js +2 -2
- package/dist/es2017/parsers/manifest/smooth/representation_index.d.ts +5 -5
- package/dist/es2017/parsers/manifest/smooth/representation_index.js +25 -9
- package/dist/es2017/parsers/manifest/utils/index_helpers.js +1 -1
- package/dist/es2017/public_types.d.ts +78 -34
- package/dist/es2017/transports/dash/init_segment_loader.js +5 -0
- package/dist/es2017/transports/dash/manifest_parser.js +3 -0
- package/dist/es2017/transports/dash/segment_loader.js +1 -0
- package/dist/es2017/transports/dash/text_loader.js +2 -0
- package/dist/es2017/transports/metaplaylist/manifest_loader.js +1 -0
- package/dist/es2017/transports/metaplaylist/pipelines.js +4 -1
- package/dist/es2017/transports/smooth/pipelines.js +2 -0
- package/dist/es2017/transports/smooth/segment_loader.js +1 -0
- package/dist/es2017/transports/types.d.ts +12 -0
- package/dist/es2017/transports/utils/generate_manifest_loader.js +3 -0
- package/dist/es2017/utils/request/fetch.d.ts +6 -0
- package/dist/es2017/utils/request/fetch.js +29 -8
- package/dist/es2017/utils/request/xhr.d.ts +11 -5
- package/dist/es2017/utils/request/xhr.js +30 -9
- package/dist/rx-player.js +723 -376
- package/dist/rx-player.min.js +1 -1
- package/package.json +3 -4
- package/scripts/update-version +2 -0
- package/sonar-project.properties +1 -1
- package/src/compat/is_codec_supported.ts +23 -1
- package/src/core/api/debug/buffer_graph.ts +2 -5
- package/src/core/api/debug/modules/general_info.ts +15 -10
- package/src/core/api/option_utils.ts +3 -3
- package/src/core/api/public_api.ts +35 -7
- package/src/core/fetchers/manifest/manifest_fetcher.ts +21 -3
- package/src/core/fetchers/segment/segment_fetcher.ts +19 -5
- package/src/core/fetchers/segment/segment_fetcher_creator.ts +1 -0
- package/src/core/fetchers/utils/schedule_request.ts +1 -1
- package/src/core/init/directfile_content_initializer.ts +23 -7
- package/src/core/init/media_source_content_initializer.ts +13 -7
- package/src/core/init/utils/content_time_boundaries_observer.ts +23 -22
- package/src/core/init/utils/get_initial_time.ts +25 -12
- package/src/core/stream/representation/utils/get_buffer_status.ts +3 -3
- package/src/core/stream/representation/utils/get_needed_segments.ts +2 -2
- package/src/default_config.ts +5 -0
- package/src/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.ts +3 -1
- package/src/experimental/tools/createMetaplaylist/get_duration_from_manifest.ts +2 -0
- package/src/manifest/representation_index/static.ts +2 -2
- package/src/manifest/representation_index/types.ts +4 -4
- package/src/parsers/manifest/dash/common/__tests__/manifest_bounds_calculator.test.ts +182 -36
- package/src/parsers/manifest/dash/common/indexes/base.ts +12 -4
- package/src/parsers/manifest/dash/common/indexes/get_segments_from_timeline.ts +19 -5
- package/src/parsers/manifest/dash/common/indexes/index.ts +16 -4
- package/src/parsers/manifest/dash/common/indexes/list.ts +2 -2
- package/src/parsers/manifest/dash/common/indexes/template.ts +52 -31
- package/src/parsers/manifest/dash/common/indexes/timeline/index.ts +4 -1
- package/src/parsers/manifest/dash/common/indexes/timeline/timeline_representation_index.ts +366 -60
- package/src/parsers/manifest/dash/common/manifest_bounds_calculator.ts +63 -25
- package/src/parsers/manifest/dash/common/parse_adaptation_sets.ts +10 -4
- package/src/parsers/manifest/dash/common/parse_mpd.ts +28 -15
- package/src/parsers/manifest/dash/common/parse_periods.ts +12 -17
- package/src/parsers/manifest/dash/common/parse_representation_index.ts +50 -26
- package/src/parsers/manifest/dash/common/parse_representations.ts +9 -3
- package/src/parsers/manifest/local/representation_index.ts +3 -3
- package/src/parsers/manifest/metaplaylist/representation_index.ts +2 -2
- package/src/parsers/manifest/smooth/representation_index.ts +23 -9
- package/src/parsers/manifest/utils/__tests__/get_first_time_from_adaptations.test.ts +1 -1
- package/src/parsers/manifest/utils/__tests__/get_last_time_from_adaptation.test.ts +1 -1
- package/src/parsers/manifest/utils/index_helpers.ts +1 -1
- package/src/public_types.ts +79 -34
- package/src/transports/dash/init_segment_loader.ts +5 -0
- package/src/transports/dash/manifest_parser.ts +6 -0
- package/src/transports/dash/segment_loader.ts +1 -0
- package/src/transports/dash/text_loader.ts +2 -0
- package/src/transports/metaplaylist/manifest_loader.ts +1 -0
- package/src/transports/metaplaylist/pipelines.ts +4 -1
- package/src/transports/smooth/pipelines.ts +2 -0
- package/src/transports/smooth/segment_loader.ts +1 -0
- package/src/transports/types.ts +12 -0
- package/src/transports/utils/generate_manifest_loader.ts +3 -0
- package/src/utils/request/fetch.ts +35 -8
- package/src/utils/request/xhr.ts +45 -14
- package/dist/_esm5.processed/compat/fullscreen.d.ts +0 -32
- package/dist/_esm5.processed/compat/fullscreen.js +0 -78
- package/dist/_esm5.processed/compat/is_offline.d.ts +0 -39
- package/dist/_esm5.processed/compat/is_offline.js +0 -43
- package/dist/_esm5.processed/core/api/tracks_management/track_choice_manager.d.ts +0 -258
- package/dist/_esm5.processed/core/api/tracks_management/track_choice_manager.js +0 -989
- package/dist/_esm5.processed/core/segment_buffers/implementations/image/image_segment_buffer.d.ts +0 -75
- package/dist/_esm5.processed/core/segment_buffers/implementations/image/image_segment_buffer.js +0 -133
- package/dist/_esm5.processed/features/list/bif_parser.d.ts +0 -23
- package/dist/_esm5.processed/features/list/bif_parser.js +0 -27
- package/dist/_esm5.processed/features/list/image_buffer.js +0 -25
- package/dist/_esm5.processed/transports/dash/image_pipelines.d.ts +0 -38
- package/dist/_esm5.processed/transports/dash/image_pipelines.js +0 -129
- package/dist/_esm5.processed/utils/list_to_map.js +0 -28
- package/dist/_esm5.processed/utils/simple_set.d.ts +0 -51
- package/dist/_esm5.processed/utils/simple_set.js +0 -57
- package/dist/_esm5.processed/utils/uniq.d.ts +0 -36
- package/dist/_esm5.processed/utils/uniq.js +0 -43
- package/dist/commonjs/parsers/manifest/utils/is_segment_still_available.d.ts +0 -29
- package/dist/commonjs/parsers/manifest/utils/is_segment_still_available.js +0 -54
- package/dist/es2017/parsers/manifest/utils/is_segment_still_available.d.ts +0 -29
- package/dist/es2017/parsers/manifest/utils/is_segment_still_available.js +0 -51
- package/src/parsers/manifest/utils/is_segment_still_available.ts +0 -58
- package/src/typings/object-assign.d.ts +0 -48
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Manifest, { Adaptation, ISegment, Period, Representation } from "../../../manifest";
|
|
2
2
|
import { IEMSG } from "../../../parsers/containers/isobmff";
|
|
3
|
-
import { IPlayerError } from "../../../public_types";
|
|
3
|
+
import { IAudioRepresentationsSwitchingMode, IPlayerError, IVideoRepresentationsSwitchingMode } from "../../../public_types";
|
|
4
4
|
import { IReadOnlySharedReference } from "../../../utils/reference";
|
|
5
5
|
import { IReadOnlyPlaybackObserver } from "../../api";
|
|
6
6
|
import { IContentProtection } from "../../decrypt";
|
|
@@ -265,3 +265,13 @@ export interface IRepresentationStreamOptions {
|
|
|
265
265
|
*/
|
|
266
266
|
fastSwitchThreshold: IReadOnlySharedReference<undefined | number>;
|
|
267
267
|
}
|
|
268
|
+
/** Object indicating a choice of allowed Representations made by the user. */
|
|
269
|
+
export interface IRepresentationsChoice {
|
|
270
|
+
/** `Representation`s wanted by the user. */
|
|
271
|
+
representations: Representation[];
|
|
272
|
+
/**
|
|
273
|
+
* How the Streams should react if another, not currently authorized,
|
|
274
|
+
* Representation was previously playing.
|
|
275
|
+
*/
|
|
276
|
+
switchingMode: IVideoRepresentationsSwitchingMode | IAudioRepresentationsSwitchingMode;
|
|
277
|
+
}
|
|
@@ -29,17 +29,6 @@ declare const DEFAULT_CONFIG: {
|
|
|
29
29
|
* @type {Object|null}
|
|
30
30
|
*/
|
|
31
31
|
DEFAULT_TEXT_TRACK_MODE: "native" | "html";
|
|
32
|
-
/**
|
|
33
|
-
* Strategy to adopt when manually setting the current bitrate.
|
|
34
|
-
* Can be either:
|
|
35
|
-
* - "seamless": transitions are very smooth but not immediate.
|
|
36
|
-
* - "direct": the quality switch happens immediately but to achieve that,
|
|
37
|
-
* the player will need to set a new MediaSource on the media element in
|
|
38
|
-
* some cases. This often leads to a black screen + unavailable APIs
|
|
39
|
-
* during a short moment.
|
|
40
|
-
* @type {string}
|
|
41
|
-
*/
|
|
42
|
-
DEFAULT_MANUAL_BITRATE_SWITCHING_MODE: "direct" | "seamless";
|
|
43
32
|
/**
|
|
44
33
|
* Default behavior for the `enableFastSwitching` loadVideo options.
|
|
45
34
|
*
|
|
@@ -53,16 +42,6 @@ declare const DEFAULT_CONFIG: {
|
|
|
53
42
|
* When disabled, segments of a lower-quality will not be replaced.
|
|
54
43
|
*/
|
|
55
44
|
DEFAULT_ENABLE_FAST_SWITCHING: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Strategy to adopt when manually switching of audio adaptation.
|
|
58
|
-
* Can be either:
|
|
59
|
-
* - "seamless": transitions are smooth but could be not immediate.
|
|
60
|
-
* - "direct": that strategy will perform a very small seek that result
|
|
61
|
-
* most of the time by a flush of the current buffered data, by doing
|
|
62
|
-
* that we allow quicker transition between audio track, but we could
|
|
63
|
-
* see appear a RELOADING or a SEEKING state.
|
|
64
|
-
*/
|
|
65
|
-
DEFAULT_AUDIO_TRACK_SWITCHING_MODE: "direct" | "seamless";
|
|
66
45
|
/**
|
|
67
46
|
* In some cases after switching the current track or bitrate, the RxPlayer
|
|
68
47
|
* could be led to go into the `"RELOADING"` state, which corresponds to
|
|
@@ -125,23 +104,6 @@ declare const DEFAULT_CONFIG: {
|
|
|
125
104
|
* @type {Boolean}
|
|
126
105
|
*/
|
|
127
106
|
DEFAULT_AUTO_PLAY: boolean;
|
|
128
|
-
/**
|
|
129
|
-
* If set to false, "native" subtitles (in a <track> element) will be hidden
|
|
130
|
-
* by default.
|
|
131
|
-
* @type {Boolean}
|
|
132
|
-
*/
|
|
133
|
-
DEFAULT_SHOW_NATIVE_SUBTITLE: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* If set to true, the player will by default stop immediately and unload the
|
|
136
|
-
* content on reaching the end of the media.
|
|
137
|
-
*
|
|
138
|
-
* If set to false, it will not unload nor stop by default, leaving the user
|
|
139
|
-
* free to seek in the already-loaded content.
|
|
140
|
-
*
|
|
141
|
-
* Set to `true` for legacy reasons.
|
|
142
|
-
* @type {Boolean}
|
|
143
|
-
*/
|
|
144
|
-
DEFAULT_STOP_AT_END: boolean;
|
|
145
107
|
/**
|
|
146
108
|
* Default buffer goal in seconds.
|
|
147
109
|
* Once enough content has been downloaded to fill the buffer up to
|
|
@@ -178,14 +140,14 @@ declare const DEFAULT_CONFIG: {
|
|
|
178
140
|
* Equal to Infinity if not defined here.
|
|
179
141
|
* @type {Object}
|
|
180
142
|
*/
|
|
181
|
-
MAXIMUM_MAX_BUFFER_AHEAD: Partial<Record<"audio" | "video" | "
|
|
143
|
+
MAXIMUM_MAX_BUFFER_AHEAD: Partial<Record<"audio" | "video" | "text", number>>;
|
|
182
144
|
/**
|
|
183
145
|
* Maximum possible buffer behind for each type of buffer, to avoid too much
|
|
184
146
|
* memory usage when playing for a long time.
|
|
185
147
|
* Equal to Infinity if not defined here.
|
|
186
148
|
* @type {Object}
|
|
187
149
|
*/
|
|
188
|
-
MAXIMUM_MAX_BUFFER_BEHIND: Partial<Record<"audio" | "video" | "
|
|
150
|
+
MAXIMUM_MAX_BUFFER_BEHIND: Partial<Record<"audio" | "video" | "text", number>>;
|
|
189
151
|
/**
|
|
190
152
|
* Default bitrate ceils initially set as the first content begins.
|
|
191
153
|
*
|
|
@@ -198,33 +160,7 @@ declare const DEFAULT_CONFIG: {
|
|
|
198
160
|
* play will always take the last set one.
|
|
199
161
|
* @type {Object}
|
|
200
162
|
*/
|
|
201
|
-
|
|
202
|
-
audio: number;
|
|
203
|
-
video: number;
|
|
204
|
-
other: number;
|
|
205
|
-
};
|
|
206
|
-
/**
|
|
207
|
-
* Default bitrate floor initially set to dictate the minimum bitrate the
|
|
208
|
-
* adaptive logic can automatically switch to.
|
|
209
|
-
*
|
|
210
|
-
* If no track is found with a quality superior or equal to the
|
|
211
|
-
* bitrate there, the lowest bitrate will be taken instead.
|
|
212
|
-
*
|
|
213
|
-
* Set to Infinity to discard any limit in the ABR strategy.
|
|
214
|
-
* @type {Object}
|
|
215
|
-
*/
|
|
216
|
-
DEFAULT_MIN_BITRATES: Record<"audio" | "video" | "other", number>;
|
|
217
|
-
/**
|
|
218
|
-
* Default bitrate ceil initially set to dictate the maximum bitrate the
|
|
219
|
-
* adaptive logic can automatically switch to.
|
|
220
|
-
*
|
|
221
|
-
* If no track is found with a quality inferior or equal to the
|
|
222
|
-
* bitrate there, the lowest bitrate will be taken instead.
|
|
223
|
-
*
|
|
224
|
-
* Set to Infinity to discard any limit in the ABR strategy.
|
|
225
|
-
* @type {Object}
|
|
226
|
-
*/
|
|
227
|
-
DEFAULT_MAX_BITRATES: Record<"audio" | "video" | "other", number>;
|
|
163
|
+
DEFAULT_BASE_BANDWIDTH: number;
|
|
228
164
|
/**
|
|
229
165
|
* Delay after which, if the page is hidden, the user is considered inactive
|
|
230
166
|
* on the current video.
|
|
@@ -234,13 +170,6 @@ declare const DEFAULT_CONFIG: {
|
|
|
234
170
|
* @type {Number}
|
|
235
171
|
*/
|
|
236
172
|
INACTIVITY_DELAY: number;
|
|
237
|
-
/**
|
|
238
|
-
* If true, if the player is in a "hidden" state for a delay specified by the
|
|
239
|
-
* INACTIVITY DELAY config property, we throttle automatically to the video
|
|
240
|
-
* representation with the lowest bitrate.
|
|
241
|
-
* @type {Boolean}
|
|
242
|
-
*/
|
|
243
|
-
DEFAULT_THROTTLE_WHEN_HIDDEN: boolean;
|
|
244
173
|
/**
|
|
245
174
|
* If true, if the video is considered in a "hidden" state for a delay specified by
|
|
246
175
|
* the INACTIVITY DELAY config property, we throttle automatically to the video
|
|
@@ -331,8 +260,6 @@ declare const DEFAULT_CONFIG: {
|
|
|
331
260
|
* - if the error is not due to the xhr, no retry will be peformed
|
|
332
261
|
* - if the error is an HTTP error code, but not a 500-smthg or a 404, no
|
|
333
262
|
* retry will be performed.
|
|
334
|
-
* - if it has a high chance of being due to the user being offline, a
|
|
335
|
-
* separate counter is used (see DEFAULT_MAX_REQUESTS_RETRY_ON_OFFLINE).
|
|
336
263
|
* @type Number
|
|
337
264
|
*/
|
|
338
265
|
DEFAULT_MAX_MANIFEST_REQUEST_RETRY: number;
|
|
@@ -355,23 +282,9 @@ declare const DEFAULT_CONFIG: {
|
|
|
355
282
|
* - if the error is not due to the xhr, no retry will be peformed
|
|
356
283
|
* - if the error is an HTTP error code, but not a 500-smthg or a 404, no
|
|
357
284
|
* retry will be performed.
|
|
358
|
-
* - if it has a high chance of being due to the user being offline, a
|
|
359
|
-
* separate counter is used (see DEFAULT_MAX_REQUESTS_RETRY_ON_OFFLINE).
|
|
360
285
|
* @type Number
|
|
361
286
|
*/
|
|
362
287
|
DEFAULT_MAX_REQUESTS_RETRY_ON_ERROR: number;
|
|
363
|
-
/**
|
|
364
|
-
* Under some circonstances, we're able to tell that the user is offline (see
|
|
365
|
-
* the compat files).
|
|
366
|
-
* When this happens, and xhr requests fails due to an error event (you might
|
|
367
|
-
* still be able to perform xhr offline, e.g. on localhost), you might want to
|
|
368
|
-
* retry indefinitely or with a higher number of retry than if the error is
|
|
369
|
-
* due to a CDN problem.
|
|
370
|
-
*
|
|
371
|
-
* A capped exponential backoff will still be used (like for an error code).
|
|
372
|
-
* @type {Number}
|
|
373
|
-
*/
|
|
374
|
-
DEFAULT_MAX_REQUESTS_RETRY_ON_OFFLINE: number;
|
|
375
288
|
/**
|
|
376
289
|
* Initial backoff delay when a segment / manifest download fails, in
|
|
377
290
|
* milliseconds.
|
|
@@ -878,12 +791,12 @@ declare const DEFAULT_CONFIG: {
|
|
|
878
791
|
* Robustnesses used in the {audio,video}Capabilities of the
|
|
879
792
|
* MediaKeySystemConfiguration (DRM).
|
|
880
793
|
*
|
|
881
|
-
* Only used for "com.microsoft.playready.recommendation"
|
|
794
|
+
* Only used for "com.microsoft.playready.recommendation" keysystems.
|
|
882
795
|
*
|
|
883
796
|
* Defined in order of importance (first will be tested first etc.)
|
|
884
797
|
* @type {Array.<string>}
|
|
885
798
|
*/
|
|
886
|
-
|
|
799
|
+
EME_DEFAULT_PLAYREADY_RECOMMENDATION_ROBUSTNESSES: string[];
|
|
887
800
|
/**
|
|
888
801
|
* Link canonical key systems names to their respective reverse domain name,
|
|
889
802
|
* used in the EME APIs.
|
|
@@ -1030,7 +943,7 @@ declare const DEFAULT_CONFIG: {
|
|
|
1030
943
|
FORCED_ENDED_THRESHOLD: number;
|
|
1031
944
|
/**
|
|
1032
945
|
* Maximum duration from the current position we will let in the buffer when
|
|
1033
|
-
* switching an Adaptation of a given type.
|
|
946
|
+
* switching an Adaptation/Representations of a given type.
|
|
1034
947
|
*
|
|
1035
948
|
* For example, if we have ``text: { before: 1, after: 4 }``, it means that
|
|
1036
949
|
* when switching subtitles, we will let 1 second before and 4 second after
|
|
@@ -1040,7 +953,7 @@ declare const DEFAULT_CONFIG: {
|
|
|
1040
953
|
* can happen when removing the content being decoded.
|
|
1041
954
|
* @type {Object}
|
|
1042
955
|
*/
|
|
1043
|
-
|
|
956
|
+
ADAP_REP_SWITCH_BUFFER_PADDINGS: {
|
|
1044
957
|
video: {
|
|
1045
958
|
before: number;
|
|
1046
959
|
after: number;
|
|
@@ -1053,10 +966,6 @@ declare const DEFAULT_CONFIG: {
|
|
|
1053
966
|
before: number;
|
|
1054
967
|
after: number;
|
|
1055
968
|
};
|
|
1056
|
-
image: {
|
|
1057
|
-
before: number;
|
|
1058
|
-
after: number;
|
|
1059
|
-
};
|
|
1060
969
|
};
|
|
1061
970
|
/**
|
|
1062
971
|
* Interval, in milliseconds, at which we should manually flush
|
|
@@ -1138,6 +1047,34 @@ declare const DEFAULT_CONFIG: {
|
|
|
1138
1047
|
* It is set to avoid playback issues
|
|
1139
1048
|
*/
|
|
1140
1049
|
UPTO_CURRENT_POSITION_CLEANUP: number;
|
|
1050
|
+
/**
|
|
1051
|
+
* Default "switching mode" used when locking video Representations.
|
|
1052
|
+
* That is, which behavior the RxPlayer should have by default when
|
|
1053
|
+
* explicitely and manually switching from a previous set of video
|
|
1054
|
+
* Representations to a new one.
|
|
1055
|
+
*/
|
|
1056
|
+
DEFAULT_VIDEO_REPRESENTATIONS_SWITCHING_MODE: "seamless";
|
|
1057
|
+
/**
|
|
1058
|
+
* Default "switching mode" used when locking audio Representations.
|
|
1059
|
+
* That is, which behavior the RxPlayer should have by default when
|
|
1060
|
+
* explicitely and manually switching from a previous set of audio
|
|
1061
|
+
* Representations to a new one.
|
|
1062
|
+
*/
|
|
1063
|
+
DEFAULT_AUDIO_REPRESENTATIONS_SWITCHING_MODE: "seamless";
|
|
1064
|
+
/**
|
|
1065
|
+
* Default "switching mode" used when switching between video tracks.
|
|
1066
|
+
* That is, which behavior the RxPlayer should have by default when
|
|
1067
|
+
* explicitely and manually switching from a previous video track to a new
|
|
1068
|
+
* one.
|
|
1069
|
+
*/
|
|
1070
|
+
DEFAULT_VIDEO_TRACK_SWITCHING_MODE: "reload";
|
|
1071
|
+
/**
|
|
1072
|
+
* Default "switching mode" used when switching between audio tracks.
|
|
1073
|
+
* That is, which behavior the RxPlayer should have by default when
|
|
1074
|
+
* explicitely and manually switching from a previous audio track to a new
|
|
1075
|
+
* one.
|
|
1076
|
+
*/
|
|
1077
|
+
DEFAULT_AUDIO_TRACK_SWITCHING_MODE: "seamless";
|
|
1141
1078
|
};
|
|
1142
1079
|
export type IDefaultConfig = typeof DEFAULT_CONFIG;
|
|
1143
1080
|
export default DEFAULT_CONFIG;
|
|
@@ -29,17 +29,6 @@ var DEFAULT_CONFIG = {
|
|
|
29
29
|
* @type {Object|null}
|
|
30
30
|
*/
|
|
31
31
|
DEFAULT_TEXT_TRACK_MODE: "native",
|
|
32
|
-
/**
|
|
33
|
-
* Strategy to adopt when manually setting the current bitrate.
|
|
34
|
-
* Can be either:
|
|
35
|
-
* - "seamless": transitions are very smooth but not immediate.
|
|
36
|
-
* - "direct": the quality switch happens immediately but to achieve that,
|
|
37
|
-
* the player will need to set a new MediaSource on the media element in
|
|
38
|
-
* some cases. This often leads to a black screen + unavailable APIs
|
|
39
|
-
* during a short moment.
|
|
40
|
-
* @type {string}
|
|
41
|
-
*/
|
|
42
|
-
DEFAULT_MANUAL_BITRATE_SWITCHING_MODE: "seamless",
|
|
43
32
|
/**
|
|
44
33
|
* Default behavior for the `enableFastSwitching` loadVideo options.
|
|
45
34
|
*
|
|
@@ -53,16 +42,6 @@ var DEFAULT_CONFIG = {
|
|
|
53
42
|
* When disabled, segments of a lower-quality will not be replaced.
|
|
54
43
|
*/
|
|
55
44
|
DEFAULT_ENABLE_FAST_SWITCHING: true,
|
|
56
|
-
/**
|
|
57
|
-
* Strategy to adopt when manually switching of audio adaptation.
|
|
58
|
-
* Can be either:
|
|
59
|
-
* - "seamless": transitions are smooth but could be not immediate.
|
|
60
|
-
* - "direct": that strategy will perform a very small seek that result
|
|
61
|
-
* most of the time by a flush of the current buffered data, by doing
|
|
62
|
-
* that we allow quicker transition between audio track, but we could
|
|
63
|
-
* see appear a RELOADING or a SEEKING state.
|
|
64
|
-
*/
|
|
65
|
-
DEFAULT_AUDIO_TRACK_SWITCHING_MODE: "seamless",
|
|
66
45
|
/**
|
|
67
46
|
* In some cases after switching the current track or bitrate, the RxPlayer
|
|
68
47
|
* could be led to go into the `"RELOADING"` state, which corresponds to
|
|
@@ -123,23 +102,6 @@ var DEFAULT_CONFIG = {
|
|
|
123
102
|
* @type {Boolean}
|
|
124
103
|
*/
|
|
125
104
|
DEFAULT_AUTO_PLAY: false,
|
|
126
|
-
/**
|
|
127
|
-
* If set to false, "native" subtitles (in a <track> element) will be hidden
|
|
128
|
-
* by default.
|
|
129
|
-
* @type {Boolean}
|
|
130
|
-
*/
|
|
131
|
-
DEFAULT_SHOW_NATIVE_SUBTITLE: true,
|
|
132
|
-
/**
|
|
133
|
-
* If set to true, the player will by default stop immediately and unload the
|
|
134
|
-
* content on reaching the end of the media.
|
|
135
|
-
*
|
|
136
|
-
* If set to false, it will not unload nor stop by default, leaving the user
|
|
137
|
-
* free to seek in the already-loaded content.
|
|
138
|
-
*
|
|
139
|
-
* Set to `true` for legacy reasons.
|
|
140
|
-
* @type {Boolean}
|
|
141
|
-
*/
|
|
142
|
-
DEFAULT_STOP_AT_END: true,
|
|
143
105
|
/**
|
|
144
106
|
* Default buffer goal in seconds.
|
|
145
107
|
* Once enough content has been downloaded to fill the buffer up to
|
|
@@ -204,51 +166,7 @@ var DEFAULT_CONFIG = {
|
|
|
204
166
|
* play will always take the last set one.
|
|
205
167
|
* @type {Object}
|
|
206
168
|
*/
|
|
207
|
-
|
|
208
|
-
audio: 0,
|
|
209
|
-
video: 0,
|
|
210
|
-
other: 0, // tracks which are not audio/video (text images).
|
|
211
|
-
// Though those are generally at a single bitrate, so no adaptive
|
|
212
|
-
// mechanism is triggered for them.
|
|
213
|
-
},
|
|
214
|
-
/* eslint-disable @typescript-eslint/consistent-type-assertions */
|
|
215
|
-
/**
|
|
216
|
-
* Default bitrate floor initially set to dictate the minimum bitrate the
|
|
217
|
-
* adaptive logic can automatically switch to.
|
|
218
|
-
*
|
|
219
|
-
* If no track is found with a quality superior or equal to the
|
|
220
|
-
* bitrate there, the lowest bitrate will be taken instead.
|
|
221
|
-
*
|
|
222
|
-
* Set to Infinity to discard any limit in the ABR strategy.
|
|
223
|
-
* @type {Object}
|
|
224
|
-
*/
|
|
225
|
-
DEFAULT_MIN_BITRATES: {
|
|
226
|
-
audio: 0,
|
|
227
|
-
video: 0,
|
|
228
|
-
other: 0, // tracks which are not audio/video
|
|
229
|
-
// Though those are generally at a single bitrate, so no
|
|
230
|
-
// adaptive mechanism is triggered for them.
|
|
231
|
-
},
|
|
232
|
-
/* eslint-enable @typescript-eslint/consistent-type-assertions */
|
|
233
|
-
/* eslint-disable @typescript-eslint/consistent-type-assertions */
|
|
234
|
-
/**
|
|
235
|
-
* Default bitrate ceil initially set to dictate the maximum bitrate the
|
|
236
|
-
* adaptive logic can automatically switch to.
|
|
237
|
-
*
|
|
238
|
-
* If no track is found with a quality inferior or equal to the
|
|
239
|
-
* bitrate there, the lowest bitrate will be taken instead.
|
|
240
|
-
*
|
|
241
|
-
* Set to Infinity to discard any limit in the ABR strategy.
|
|
242
|
-
* @type {Object}
|
|
243
|
-
*/
|
|
244
|
-
DEFAULT_MAX_BITRATES: {
|
|
245
|
-
audio: Infinity,
|
|
246
|
-
video: Infinity,
|
|
247
|
-
other: Infinity, // tracks which are not audio/video
|
|
248
|
-
// Though those are generally at a single bitrate, so no
|
|
249
|
-
// adaptive mechanism is triggered for them.
|
|
250
|
-
},
|
|
251
|
-
/* eslint-enable @typescript-eslint/consistent-type-assertions */
|
|
169
|
+
DEFAULT_BASE_BANDWIDTH: 0,
|
|
252
170
|
/**
|
|
253
171
|
* Delay after which, if the page is hidden, the user is considered inactive
|
|
254
172
|
* on the current video.
|
|
@@ -258,13 +176,6 @@ var DEFAULT_CONFIG = {
|
|
|
258
176
|
* @type {Number}
|
|
259
177
|
*/
|
|
260
178
|
INACTIVITY_DELAY: 60 * 1000,
|
|
261
|
-
/**
|
|
262
|
-
* If true, if the player is in a "hidden" state for a delay specified by the
|
|
263
|
-
* INACTIVITY DELAY config property, we throttle automatically to the video
|
|
264
|
-
* representation with the lowest bitrate.
|
|
265
|
-
* @type {Boolean}
|
|
266
|
-
*/
|
|
267
|
-
DEFAULT_THROTTLE_WHEN_HIDDEN: false,
|
|
268
179
|
/**
|
|
269
180
|
* If true, if the video is considered in a "hidden" state for a delay specified by
|
|
270
181
|
* the INACTIVITY DELAY config property, we throttle automatically to the video
|
|
@@ -355,8 +266,6 @@ var DEFAULT_CONFIG = {
|
|
|
355
266
|
* - if the error is not due to the xhr, no retry will be peformed
|
|
356
267
|
* - if the error is an HTTP error code, but not a 500-smthg or a 404, no
|
|
357
268
|
* retry will be performed.
|
|
358
|
-
* - if it has a high chance of being due to the user being offline, a
|
|
359
|
-
* separate counter is used (see DEFAULT_MAX_REQUESTS_RETRY_ON_OFFLINE).
|
|
360
269
|
* @type Number
|
|
361
270
|
*/
|
|
362
271
|
DEFAULT_MAX_MANIFEST_REQUEST_RETRY: 4,
|
|
@@ -379,23 +288,9 @@ var DEFAULT_CONFIG = {
|
|
|
379
288
|
* - if the error is not due to the xhr, no retry will be peformed
|
|
380
289
|
* - if the error is an HTTP error code, but not a 500-smthg or a 404, no
|
|
381
290
|
* retry will be performed.
|
|
382
|
-
* - if it has a high chance of being due to the user being offline, a
|
|
383
|
-
* separate counter is used (see DEFAULT_MAX_REQUESTS_RETRY_ON_OFFLINE).
|
|
384
291
|
* @type Number
|
|
385
292
|
*/
|
|
386
293
|
DEFAULT_MAX_REQUESTS_RETRY_ON_ERROR: 4,
|
|
387
|
-
/**
|
|
388
|
-
* Under some circonstances, we're able to tell that the user is offline (see
|
|
389
|
-
* the compat files).
|
|
390
|
-
* When this happens, and xhr requests fails due to an error event (you might
|
|
391
|
-
* still be able to perform xhr offline, e.g. on localhost), you might want to
|
|
392
|
-
* retry indefinitely or with a higher number of retry than if the error is
|
|
393
|
-
* due to a CDN problem.
|
|
394
|
-
*
|
|
395
|
-
* A capped exponential backoff will still be used (like for an error code).
|
|
396
|
-
* @type {Number}
|
|
397
|
-
*/
|
|
398
|
-
DEFAULT_MAX_REQUESTS_RETRY_ON_OFFLINE: Infinity,
|
|
399
294
|
/**
|
|
400
295
|
* Initial backoff delay when a segment / manifest download fails, in
|
|
401
296
|
* milliseconds.
|
|
@@ -781,7 +676,7 @@ var DEFAULT_CONFIG = {
|
|
|
781
676
|
BUFFER_PADDING: {
|
|
782
677
|
audio: 1,
|
|
783
678
|
video: 3,
|
|
784
|
-
other: 1, // tracks which are not audio/video (text
|
|
679
|
+
other: 1, // tracks which are not audio/video (like text).
|
|
785
680
|
},
|
|
786
681
|
/**
|
|
787
682
|
* Segments of different types are downloaded by steps:
|
|
@@ -915,12 +810,13 @@ var DEFAULT_CONFIG = {
|
|
|
915
810
|
* Robustnesses used in the {audio,video}Capabilities of the
|
|
916
811
|
* MediaKeySystemConfiguration (DRM).
|
|
917
812
|
*
|
|
918
|
-
* Only used for "com.microsoft.playready.recommendation"
|
|
813
|
+
* Only used for "com.microsoft.playready.recommendation" keysystems.
|
|
919
814
|
*
|
|
920
815
|
* Defined in order of importance (first will be tested first etc.)
|
|
921
816
|
* @type {Array.<string>}
|
|
922
817
|
*/
|
|
923
|
-
|
|
818
|
+
EME_DEFAULT_PLAYREADY_RECOMMENDATION_ROBUSTNESSES: ["3000",
|
|
819
|
+
"2000"],
|
|
924
820
|
/**
|
|
925
821
|
* Link canonical key systems names to their respective reverse domain name,
|
|
926
822
|
* used in the EME APIs.
|
|
@@ -1078,7 +974,7 @@ var DEFAULT_CONFIG = {
|
|
|
1078
974
|
FORCED_ENDED_THRESHOLD: 0.0008,
|
|
1079
975
|
/**
|
|
1080
976
|
* Maximum duration from the current position we will let in the buffer when
|
|
1081
|
-
* switching an Adaptation of a given type.
|
|
977
|
+
* switching an Adaptation/Representations of a given type.
|
|
1082
978
|
*
|
|
1083
979
|
* For example, if we have ``text: { before: 1, after: 4 }``, it means that
|
|
1084
980
|
* when switching subtitles, we will let 1 second before and 4 second after
|
|
@@ -1088,11 +984,10 @@ var DEFAULT_CONFIG = {
|
|
|
1088
984
|
* can happen when removing the content being decoded.
|
|
1089
985
|
* @type {Object}
|
|
1090
986
|
*/
|
|
1091
|
-
|
|
987
|
+
ADAP_REP_SWITCH_BUFFER_PADDINGS: {
|
|
1092
988
|
video: { before: 5, after: 5 },
|
|
1093
989
|
audio: { before: 2, after: 2.5 },
|
|
1094
|
-
text: { before: 0, after: 0 },
|
|
1095
|
-
image: { before: 0, after: 0 }, // not managed natively, so no problem here
|
|
990
|
+
text: { before: 0, after: 0 }, // not managed natively, so no problem here
|
|
1096
991
|
},
|
|
1097
992
|
/**
|
|
1098
993
|
* Interval, in milliseconds, at which we should manually flush
|
|
@@ -1174,5 +1069,33 @@ var DEFAULT_CONFIG = {
|
|
|
1174
1069
|
* It is set to avoid playback issues
|
|
1175
1070
|
*/
|
|
1176
1071
|
UPTO_CURRENT_POSITION_CLEANUP: 5,
|
|
1072
|
+
/**
|
|
1073
|
+
* Default "switching mode" used when locking video Representations.
|
|
1074
|
+
* That is, which behavior the RxPlayer should have by default when
|
|
1075
|
+
* explicitely and manually switching from a previous set of video
|
|
1076
|
+
* Representations to a new one.
|
|
1077
|
+
*/
|
|
1078
|
+
DEFAULT_VIDEO_REPRESENTATIONS_SWITCHING_MODE: "seamless",
|
|
1079
|
+
/**
|
|
1080
|
+
* Default "switching mode" used when locking audio Representations.
|
|
1081
|
+
* That is, which behavior the RxPlayer should have by default when
|
|
1082
|
+
* explicitely and manually switching from a previous set of audio
|
|
1083
|
+
* Representations to a new one.
|
|
1084
|
+
*/
|
|
1085
|
+
DEFAULT_AUDIO_REPRESENTATIONS_SWITCHING_MODE: "seamless",
|
|
1086
|
+
/**
|
|
1087
|
+
* Default "switching mode" used when switching between video tracks.
|
|
1088
|
+
* That is, which behavior the RxPlayer should have by default when
|
|
1089
|
+
* explicitely and manually switching from a previous video track to a new
|
|
1090
|
+
* one.
|
|
1091
|
+
*/
|
|
1092
|
+
DEFAULT_VIDEO_TRACK_SWITCHING_MODE: "reload",
|
|
1093
|
+
/**
|
|
1094
|
+
* Default "switching mode" used when switching between audio tracks.
|
|
1095
|
+
* That is, which behavior the RxPlayer should have by default when
|
|
1096
|
+
* explicitely and manually switching from a previous audio track to a new
|
|
1097
|
+
* one.
|
|
1098
|
+
*/
|
|
1099
|
+
DEFAULT_AUDIO_TRACK_SWITCHING_MODE: "seamless",
|
|
1177
1100
|
};
|
|
1178
1101
|
export default DEFAULT_CONFIG;
|
|
@@ -26,13 +26,11 @@ export default class CustomLoaderError extends Error {
|
|
|
26
26
|
readonly name: "CustomLoaderError";
|
|
27
27
|
readonly message: string;
|
|
28
28
|
readonly canRetry: boolean;
|
|
29
|
-
readonly isOfflineError: boolean;
|
|
30
29
|
readonly xhr: XMLHttpRequest | undefined;
|
|
31
30
|
/**
|
|
32
31
|
* @param {string} message
|
|
33
32
|
* @param {boolean} canRetry
|
|
34
|
-
* @param {boolean} isOfflineError
|
|
35
33
|
* @param {XMLHttpRequest} xhr
|
|
36
34
|
*/
|
|
37
|
-
constructor(message: string, canRetry: boolean,
|
|
35
|
+
constructor(message: string, canRetry: boolean, xhr: XMLHttpRequest | undefined);
|
|
38
36
|
}
|
|
@@ -42,17 +42,15 @@ var CustomLoaderError = /** @class */ (function (_super) {
|
|
|
42
42
|
/**
|
|
43
43
|
* @param {string} message
|
|
44
44
|
* @param {boolean} canRetry
|
|
45
|
-
* @param {boolean} isOfflineError
|
|
46
45
|
* @param {XMLHttpRequest} xhr
|
|
47
46
|
*/
|
|
48
|
-
function CustomLoaderError(message, canRetry,
|
|
47
|
+
function CustomLoaderError(message, canRetry, xhr) {
|
|
49
48
|
var _this = _super.call(this) || this;
|
|
50
49
|
// @see https://stackoverflow.com/questions/41102060/typescript-extending-error-class
|
|
51
50
|
Object.setPrototypeOf(_this, CustomLoaderError.prototype);
|
|
52
51
|
_this.name = "CustomLoaderError";
|
|
53
52
|
_this.message = message;
|
|
54
53
|
_this.canRetry = canRetry;
|
|
55
|
-
_this.isOfflineError = isOfflineError;
|
|
56
54
|
_this.xhr = xhr;
|
|
57
55
|
return _this;
|
|
58
56
|
}
|
|
@@ -52,11 +52,11 @@ var MediaError = /** @class */ (function (_super) {
|
|
|
52
52
|
switch (adaptation.type) {
|
|
53
53
|
case "audio":
|
|
54
54
|
_this.trackInfo = { type: "audio",
|
|
55
|
-
track: adaptation.toAudioTrack() };
|
|
55
|
+
track: adaptation.toAudioTrack(false) };
|
|
56
56
|
break;
|
|
57
57
|
case "video":
|
|
58
58
|
_this.trackInfo = { type: "video",
|
|
59
|
-
track: adaptation.toVideoTrack() };
|
|
59
|
+
track: adaptation.toVideoTrack(false) };
|
|
60
60
|
break;
|
|
61
61
|
case "text":
|
|
62
62
|
_this.trackInfo = { type: "text",
|
|
@@ -26,7 +26,6 @@ export default class NetworkError extends Error {
|
|
|
26
26
|
readonly type: "NETWORK_ERROR";
|
|
27
27
|
readonly message: string;
|
|
28
28
|
readonly code: INetworkErrorCode;
|
|
29
|
-
readonly xhr: XMLHttpRequest | null;
|
|
30
29
|
readonly url: string;
|
|
31
30
|
readonly status: number;
|
|
32
31
|
readonly errorType: INetworkErrorType;
|
|
@@ -48,7 +48,6 @@ var NetworkError = /** @class */ (function (_super) {
|
|
|
48
48
|
Object.setPrototypeOf(_this, NetworkError.prototype);
|
|
49
49
|
_this.name = "NetworkError";
|
|
50
50
|
_this.type = ErrorTypes.NETWORK_ERROR;
|
|
51
|
-
_this.xhr = baseError.xhr === undefined ? null : baseError.xhr;
|
|
52
51
|
_this.url = baseError.url;
|
|
53
52
|
_this.status = baseError.status;
|
|
54
53
|
_this.errorType = baseError.type;
|
|
@@ -27,13 +27,12 @@ export default class RequestError extends Error {
|
|
|
27
27
|
readonly name: "RequestError";
|
|
28
28
|
readonly type: INetworkErrorType;
|
|
29
29
|
readonly message: string;
|
|
30
|
-
readonly xhr?: XMLHttpRequest;
|
|
31
30
|
readonly url: string;
|
|
32
31
|
readonly status: number;
|
|
33
32
|
/**
|
|
34
|
-
* @param {XMLHttpRequest} xhr
|
|
35
33
|
* @param {string} url
|
|
34
|
+
* @param {number} status
|
|
36
35
|
* @param {string} type
|
|
37
36
|
*/
|
|
38
|
-
constructor(url: string, status: number, type: INetworkErrorType
|
|
37
|
+
constructor(url: string, status: number, type: INetworkErrorType);
|
|
39
38
|
}
|
|
@@ -40,19 +40,16 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
40
40
|
var RequestError = /** @class */ (function (_super) {
|
|
41
41
|
__extends(RequestError, _super);
|
|
42
42
|
/**
|
|
43
|
-
* @param {XMLHttpRequest} xhr
|
|
44
43
|
* @param {string} url
|
|
44
|
+
* @param {number} status
|
|
45
45
|
* @param {string} type
|
|
46
46
|
*/
|
|
47
|
-
function RequestError(url, status, type
|
|
47
|
+
function RequestError(url, status, type) {
|
|
48
48
|
var _this = _super.call(this) || this;
|
|
49
49
|
// @see https://stackoverflow.com/questions/41102060/typescript-extending-error-class
|
|
50
50
|
Object.setPrototypeOf(_this, RequestError.prototype);
|
|
51
51
|
_this.name = "RequestError";
|
|
52
52
|
_this.url = url;
|
|
53
|
-
if (xhr !== undefined) {
|
|
54
|
-
_this.xhr = xhr;
|
|
55
|
-
}
|
|
56
53
|
_this.status = status;
|
|
57
54
|
_this.type = type;
|
|
58
55
|
switch (type) {
|
package/dist/_esm5.processed/experimental/tools/VideoThumbnailLoader/video_thumbnail_loader.js
CHANGED
|
@@ -95,7 +95,8 @@ var VideoThumbnailLoader = /** @class */ (function () {
|
|
|
95
95
|
*/
|
|
96
96
|
VideoThumbnailLoader.prototype.setTime = function (time) {
|
|
97
97
|
var _this = this;
|
|
98
|
-
|
|
98
|
+
// TODO cleaner way to interop than an undocumented method?
|
|
99
|
+
var manifest = this._player.__priv_getManifest();
|
|
99
100
|
if (manifest === null) {
|
|
100
101
|
if (this._lastRepresentationInfo !== null) {
|
|
101
102
|
this._lastRepresentationInfo.cleaner.cancel();
|
|
@@ -165,8 +166,7 @@ var VideoThumbnailLoader = /** @class */ (function () {
|
|
|
165
166
|
// We don't care about the SegmentFetcher's lifecycle events
|
|
166
167
|
{}, { baseDelay: 0,
|
|
167
168
|
maxDelay: 0,
|
|
168
|
-
|
|
169
|
-
maxRetryRegular: 0,
|
|
169
|
+
maxRetry: 0,
|
|
170
170
|
requestTimeout: config.getCurrent().DEFAULT_REQUEST_TIMEOUT });
|
|
171
171
|
var initSegment_1 = content.representation.index.getInitSegment();
|
|
172
172
|
var initSegmentUniqueId_1 = initSegment_1 !== null ?
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
// eslint-disable-next-line max-len
|
|
17
|
-
import
|
|
17
|
+
import mediaElementTracksStore from "../../core/api/track_management/media_element_tracks_store";
|
|
18
18
|
import directfile from "../../core/init/directfile_content_initializer";
|
|
19
19
|
/**
|
|
20
20
|
* Add ability to play file natively played by the browser
|
|
@@ -22,10 +22,7 @@ import directfile from "../../core/init/directfile_content_initializer";
|
|
|
22
22
|
* @param {Object} features
|
|
23
23
|
*/
|
|
24
24
|
function addDirectfileFeature(features) {
|
|
25
|
-
features.directfile = {
|
|
26
|
-
initDirectFile: directfile,
|
|
27
|
-
mediaElementTrackChoiceManager: MediaElementTrackChoiceManager,
|
|
28
|
-
};
|
|
25
|
+
features.directfile = { initDirectFile: directfile, mediaElementTracksStore: mediaElementTracksStore };
|
|
29
26
|
}
|
|
30
27
|
export { addDirectfileFeature as DIRECTFILE };
|
|
31
28
|
export default addDirectfileFeature;
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export { BIF_PARSER } from "./bif_parser";
|
|
17
16
|
export { DASH } from "./dash";
|
|
18
17
|
export { DIRECTFILE } from "./directfile";
|
|
19
18
|
export { EME } from "./eme";
|
|
@@ -22,7 +21,6 @@ export { HTML_SRT_PARSER } from "./html_srt_parser";
|
|
|
22
21
|
export { HTML_TEXT_BUFFER } from "./html_text_buffer";
|
|
23
22
|
export { HTML_TTML_PARSER } from "./html_ttml_parser";
|
|
24
23
|
export { HTML_VTT_PARSER } from "./html_vtt_parser";
|
|
25
|
-
export { IMAGE_BUFFER } from "./image_buffer";
|
|
26
24
|
export { NATIVE_SAMI_PARSER } from "./native_sami_parser";
|
|
27
25
|
export { NATIVE_SRT_PARSER } from "./native_srt_parser";
|
|
28
26
|
export { NATIVE_TEXT_BUFFER } from "./native_text_buffer";
|