ExtractorExecutionContext
Small legacy ownership adapter; all execution goes through player.plugins.
class ExtractorExecutionContextSmall legacy ownership adapter; all execution goes through player.plugins.
Constructors
constructor
constructor(player: LegacyPlayerContext)Create an adapter owned by one Player.
Parameters
| Name | Type | Description |
|---|---|---|
| player | LegacyPlayerContext | Owning Player. |
Properties
playerreadonly
readonly player: LegacyPlayerContextPlayer owning legacy registrations.
Accessors
storereadonly
readonly get store(): ReadonlyMap<string, BaseExtractor<any>>Read-only view of registered legacy instances.
Returns
ReadonlyMap<string, BaseExtractor<any>>
sizereadonly
readonly get size(): numberNumber of legacy registrations.
Returns
number
Methods
get
get(id: string): BaseExtractor<any> | undefinedLook up a legacy registration.
Parameters
| Name | Type | Description |
|---|---|---|
| id | string | Extractor identifier. |
Returns
BaseExtractor<any> | undefined
isRegistered
isRegistered(id: string): booleanTest legacy registration membership.
Parameters
| Name | Type | Description |
|---|---|---|
| id | string | Extractor identifier. |
Returns
boolean
isDisabled
isDisabled(id: string): booleanCheck the Player block list.
Parameters
| Name | Type | Description |
|---|---|---|
| id | string | Extractor identifier. |
Returns
boolean
isEnabled
isEnabled(id: string): booleanCheck whether a source is allowed.
Parameters
| Name | Type | Description |
|---|---|---|
| id | string | Extractor identifier. |
Returns
boolean
register
register<C extends ExtractorConstructor>(
Extractor: C,
...args: {} extends ConstructorParameters<C>[1] ? [options: ConstructorParameters<C>[1]?] : [options: ConstructorParameters<C>[1]],
): Promise<InstanceType<C>>Register a legacy class through a source plugin.
Parameters
| Name | Type | Description |
|---|---|---|
| Extractor | C | Legacy BaseExtractor subclass constructor. |
| ...args | {} extends ConstructorParameters<C>[1] ? [options: ConstructorParameters<C>[1]?] : [options: ConstructorParameters<C>[1]] |
Returns
Promise<InstanceType<C>>
The owned compatibility instance.
unregister
unregister(extractor: string | BaseExtractor<any>): Promise<boolean>Remove an extractor and its source subscriptions.
Parameters
| Name | Type | Description |
|---|---|---|
| extractor | string | BaseExtractor<any> | ID or owned instance. |
Returns
Promise<boolean>
unregisterAll
reconfigure
reconfigure(id: string, options: object): Promise<BaseExtractor<any>>Replace an instance through the same registration path.
Parameters
| Name | Type | Description |
|---|---|---|
| id | string | Legacy ID. |
| options | object | Replacement options. |
Returns
Promise<BaseExtractor<any>>
loadMulti
loadMulti(
bundle: readonly ExtractorConstructor[],
options: Record<string, object> = {},
): Promise<void>Register a bundle sequentially with deterministic precedence.
Parameters
| Name | Type | Description |
|---|---|---|
| bundle | readonly ExtractorConstructor[] | Legacy constructors. |
| options | Record<string, object>Default: {} | Options keyed by identifier. |
Returns
Promise<void>
requestBridge
requestBridge(
track: Track,
sourceExtractor: BaseExtractor<any> | null = track.extractor,
): Promise<{
result: SourceStream;
error: null;
extractor: BaseExtractor<any> | null;
}>Request explicit bridge fallback using the shared registry.
Parameters
| Name | Type | Description |
|---|---|---|
| track | Track | Track needing a bridge. |
| sourceExtractor | BaseExtractor<any> | nullDefault: track.extractor | Original provider. |
Returns
Promise<{
result: SourceStream;
error: null;
extractor: BaseExtractor<any> | null;
}>