rx-player 4.0.0-dev.2023110700 → 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 +18 -226
- 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 +14 -35
- package/dist/_esm5.processed/core/api/option_utils.js +47 -230
- package/dist/_esm5.processed/core/api/public_api.d.ts +92 -266
- package/dist/_esm5.processed/core/api/public_api.js +451 -807
- 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/html/text_track_cues_store.js +54 -6
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/utils.d.ts +2 -1
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/utils.js +19 -2
- 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 +33 -10
- 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/convert_supplemental_codecs.d.ts +17 -0
- package/dist/_esm5.processed/parsers/manifest/dash/common/convert_supplemental_codecs.js +26 -0
- package/dist/_esm5.processed/parsers/manifest/dash/common/flatten_overlapping_periods.js +5 -0
- 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/common/parse_representations.js +29 -17
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +13 -6
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Representation.js +7 -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 +6 -4
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +7 -6
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +5 -2
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/types.d.ts +2 -1
- 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 +4 -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/compat/patch_webkit_source_buffer.js +2 -2
- 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 +4 -0
- package/dist/commonjs/core/api/option_utils.js +8 -3
- package/dist/commonjs/core/api/public_api.d.ts +11 -1
- package/dist/commonjs/core/api/public_api.js +46 -11
- 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/segment_buffers/implementations/text/html/text_track_cues_store.js +54 -6
- package/dist/commonjs/core/segment_buffers/implementations/text/html/utils.d.ts +2 -1
- package/dist/commonjs/core/segment_buffers/implementations/text/html/utils.js +19 -2
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.js +2 -2
- package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.js +3 -3
- package/dist/commonjs/core/stream/period/period_stream.js +2 -2
- 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.js +18 -5
- 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/convert_supplemental_codecs.d.ts +17 -0
- package/dist/commonjs/parsers/manifest/dash/common/convert_supplemental_codecs.js +30 -0
- package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.js +5 -0
- 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 +36 -20
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +3 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Representation.js +3 -0
- package/dist/commonjs/parsers/manifest/dash/node_parser_types.d.ts +2 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +4 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +4 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/types.d.ts +2 -1
- 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/types.d.ts +1 -0
- 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/queue_microtask.d.ts +2 -0
- package/dist/commonjs/utils/queue_microtask.js +7 -0
- 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/compat/patch_webkit_source_buffer.js +2 -2
- 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 +4 -0
- package/dist/es2017/core/api/option_utils.js +8 -3
- package/dist/es2017/core/api/public_api.d.ts +11 -1
- package/dist/es2017/core/api/public_api.js +44 -9
- 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/segment_buffers/implementations/text/html/text_track_cues_store.js +54 -6
- package/dist/es2017/core/segment_buffers/implementations/text/html/utils.d.ts +2 -1
- package/dist/es2017/core/segment_buffers/implementations/text/html/utils.js +18 -2
- package/dist/es2017/core/stream/adaptation/adaptation_stream.js +2 -2
- package/dist/es2017/core/stream/orchestrator/stream_orchestrator.js +3 -3
- package/dist/es2017/core/stream/period/period_stream.js +2 -2
- 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.js +18 -5
- 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/convert_supplemental_codecs.d.ts +17 -0
- package/dist/es2017/parsers/manifest/dash/common/convert_supplemental_codecs.js +26 -0
- package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.js +5 -0
- 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 +36 -20
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +3 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Representation.js +3 -0
- package/dist/es2017/parsers/manifest/dash/node_parser_types.d.ts +2 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +4 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +4 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/types.d.ts +2 -1
- 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/types.d.ts +1 -0
- 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/queue_microtask.d.ts +2 -0
- package/dist/es2017/utils/queue_microtask.js +5 -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/mpd-parser.wasm +0 -0
- package/dist/rx-player.js +900 -492
- package/dist/rx-player.min.js +1 -1
- package/package.json +3 -7
- package/scripts/update-version +2 -0
- package/sonar-project.properties +1 -1
- package/src/compat/is_codec_supported.ts +23 -1
- package/src/compat/patch_webkit_source_buffer.ts +2 -2
- 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 +11 -3
- package/src/core/api/public_api.ts +48 -8
- 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/segment_buffers/implementations/text/html/__tests__/utils.test.ts +15 -0
- package/src/core/segment_buffers/implementations/text/html/text_track_cues_store.ts +57 -6
- package/src/core/segment_buffers/implementations/text/html/utils.ts +19 -2
- package/src/core/stream/adaptation/adaptation_stream.ts +2 -2
- package/src/core/stream/orchestrator/stream_orchestrator.ts +3 -3
- package/src/core/stream/period/period_stream.ts +2 -2
- 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.ts +19 -6
- 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__/convert_supplemental_codecs.test.ts +37 -0
- package/src/parsers/manifest/dash/common/__tests__/flatten_overlapping_period.test.ts +20 -0
- package/src/parsers/manifest/dash/common/__tests__/manifest_bounds_calculator.test.ts +182 -36
- package/src/parsers/manifest/dash/common/convert_supplemental_codecs.ts +32 -0
- package/src/parsers/manifest/dash/common/flatten_overlapping_periods.ts +5 -0
- 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 +39 -20
- package/src/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.ts +4 -0
- package/src/parsers/manifest/dash/js-parser/node_parsers/Representation.ts +4 -0
- package/src/parsers/manifest/dash/node_parser_types.ts +2 -0
- package/src/parsers/manifest/dash/wasm-parser/rs/events.rs +2 -0
- package/src/parsers/manifest/dash/wasm-parser/rs/processor/attributes.rs +2 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.ts +4 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/Representation.ts +4 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/types.ts +2 -0
- 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/types.ts +2 -0
- 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/queue_microtask.ts +7 -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/next-tick.d.ts +0 -23
- package/src/typings/object-assign.d.ts +0 -48
|
@@ -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";
|
|
@@ -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";
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import RxPlayer from "../core/api";
|
|
17
|
-
import
|
|
17
|
+
import MediaElementTracksStore from "../core/api/track_management/media_element_tracks_store";
|
|
18
18
|
import type ContentDecryptor from "../core/decrypt";
|
|
19
19
|
import DirectFileContentInitializer from "../core/init/directfile_content_initializer";
|
|
20
20
|
import MediaSourceContentInitializer from "../core/init/media_source_content_initializer";
|
|
@@ -44,28 +44,7 @@ export type IHTMLTextTracksBuffer = new (mediaElement: HTMLMediaElement, textTra
|
|
|
44
44
|
* @param {boolean} hideNativeSubtitle
|
|
45
45
|
* @returns {Object} - `SegmentBuffer` implementation.
|
|
46
46
|
*/
|
|
47
|
-
export type INativeTextTracksBuffer = new (mediaElement: HTMLMediaElement
|
|
48
|
-
export type IMediaElementTrackChoiceManager = typeof MediaElementTrackChoiceManager;
|
|
49
|
-
interface IBifThumbnail {
|
|
50
|
-
index: number;
|
|
51
|
-
duration: number;
|
|
52
|
-
ts: number;
|
|
53
|
-
data: Uint8Array;
|
|
54
|
-
}
|
|
55
|
-
interface IBifObject {
|
|
56
|
-
fileFormat: string;
|
|
57
|
-
version: string;
|
|
58
|
-
imageCount: number;
|
|
59
|
-
timescale: number;
|
|
60
|
-
format: string;
|
|
61
|
-
width: number;
|
|
62
|
-
height: number;
|
|
63
|
-
aspectRatio: string;
|
|
64
|
-
isVod: boolean;
|
|
65
|
-
thumbs: IBifThumbnail[];
|
|
66
|
-
}
|
|
67
|
-
export type IImageBuffer = new () => SegmentBuffer;
|
|
68
|
-
export type IImageParser = ((buffer: Uint8Array) => IBifObject);
|
|
47
|
+
export type INativeTextTracksBuffer = new (mediaElement: HTMLMediaElement) => SegmentBuffer;
|
|
69
48
|
export type IDashJsParser = (document: Document, args: IMPDParserArguments) => IDashParserResponse<string>;
|
|
70
49
|
/**
|
|
71
50
|
* Function implementing the optional RxPlayer debug UI element.
|
|
@@ -90,7 +69,7 @@ export interface IFeaturesObject {
|
|
|
90
69
|
*/
|
|
91
70
|
directfile: {
|
|
92
71
|
initDirectFile: typeof DirectFileContentInitializer;
|
|
93
|
-
|
|
72
|
+
mediaElementTracksStore: typeof MediaElementTracksStore;
|
|
94
73
|
} | null;
|
|
95
74
|
/** Handle content decryption. */
|
|
96
75
|
decrypt: typeof ContentDecryptor | null;
|
|
@@ -104,8 +83,6 @@ export interface IFeaturesObject {
|
|
|
104
83
|
* Those parsers are specifically destined to be displayed in DOM elements.
|
|
105
84
|
*/
|
|
106
85
|
htmlTextTracksParsers: Partial<Record<string, IHTMLTextTracksParserFn>>;
|
|
107
|
-
imageBuffer: IImageBuffer | null;
|
|
108
|
-
imageParser: IImageParser | null;
|
|
109
86
|
/** Feature allowing to load contents through MediaSource API. */
|
|
110
87
|
mediaSourceInit: typeof MediaSourceContentInitializer | null;
|
|
111
88
|
/**
|
|
@@ -151,4 +128,3 @@ export type IFeatureFunction = (features: IFeaturesObject) => void;
|
|
|
151
128
|
* How features are actually exported by the RxPlayer.
|
|
152
129
|
*/
|
|
153
130
|
export type IFeature = IFeatureObject | IFeatureFunction;
|
|
154
|
-
export {};
|
|
@@ -14,11 +14,10 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { IParsedAdaptation } from "../parsers/manifest";
|
|
17
|
-
import { IAudioTrack, IRepresentationFilter, ITextTrack, IVideoTrack } from "../public_types";
|
|
17
|
+
import { IAudioTrack, ITrackType, IRepresentationFilter, ITextTrack, IVideoTrack } from "../public_types";
|
|
18
18
|
import Representation from "./representation";
|
|
19
|
-
import { IAdaptationType } from "./types";
|
|
20
19
|
/** List in an array every possible value for the Adaptation's `type` property. */
|
|
21
|
-
export declare const SUPPORTED_ADAPTATIONS_TYPE:
|
|
20
|
+
export declare const SUPPORTED_ADAPTATIONS_TYPE: ITrackType[];
|
|
22
21
|
/**
|
|
23
22
|
* Normalized Adaptation structure.
|
|
24
23
|
* An `Adaptation` describes a single `Track`. For example a specific audio
|
|
@@ -36,7 +35,7 @@ export default class Adaptation {
|
|
|
36
35
|
*/
|
|
37
36
|
readonly representations: Representation[];
|
|
38
37
|
/** Type of this Adaptation. */
|
|
39
|
-
readonly type:
|
|
38
|
+
readonly type: ITrackType;
|
|
40
39
|
/** Whether this track contains an audio description for the visually impaired. */
|
|
41
40
|
isAudioDescription?: boolean;
|
|
42
41
|
/** Whether this Adaptation contains closed captions for the hard-of-hearing. */
|
|
@@ -80,11 +79,6 @@ export default class Adaptation {
|
|
|
80
79
|
representationFilter?: IRepresentationFilter | undefined;
|
|
81
80
|
isManuallyAdded?: boolean | undefined;
|
|
82
81
|
});
|
|
83
|
-
/**
|
|
84
|
-
* Returns unique bitrate for every Representation in this Adaptation.
|
|
85
|
-
* @returns {Array.<Number>}
|
|
86
|
-
*/
|
|
87
|
-
getAvailableBitrates(): number[];
|
|
88
82
|
/**
|
|
89
83
|
* Returns all Representation in this Adaptation that can be played (that is:
|
|
90
84
|
* not undecipherable and with a supported codec).
|
|
@@ -99,9 +93,11 @@ export default class Adaptation {
|
|
|
99
93
|
getRepresentation(wantedId: number | string): Representation | undefined;
|
|
100
94
|
/**
|
|
101
95
|
* Format an `Adaptation`, generally of type `"audio"`, as an `IAudioTrack`.
|
|
96
|
+
* @param {boolean} filterPlayable - If `true` only "playable" Representation
|
|
97
|
+
* will be returned.
|
|
102
98
|
* @returns {Object}
|
|
103
99
|
*/
|
|
104
|
-
toAudioTrack(): IAudioTrack;
|
|
100
|
+
toAudioTrack(filterPlayable: boolean): IAudioTrack;
|
|
105
101
|
/**
|
|
106
102
|
* Format an `Adaptation`, generally of type `"audio"`, as an `IAudioTrack`.
|
|
107
103
|
* @returns {Object}
|
|
@@ -109,7 +105,9 @@ export default class Adaptation {
|
|
|
109
105
|
toTextTrack(): ITextTrack;
|
|
110
106
|
/**
|
|
111
107
|
* Format an `Adaptation`, generally of type `"video"`, as an `IAudioTrack`.
|
|
108
|
+
* @param {boolean} filterPlayable - If `true` only "playable" Representation
|
|
109
|
+
* will be returned.
|
|
112
110
|
* @returns {Object}
|
|
113
111
|
*/
|
|
114
|
-
toVideoTrack(): IVideoTrack;
|
|
112
|
+
toVideoTrack(filterPlayable: boolean): IVideoTrack;
|
|
115
113
|
}
|