ExtractorExecutionContext
No description provided
ExtractorExecutionContext extends PlayerEventsEmitter<ExtractorExecutionEvents>
Parameter | Type | Optional |
---|---|---|
player | Player | ❌ |
Properties
public context: any
public player: any
public requiredEvents: any
public store: any
The extractors store
public static defaultMaxListeners: any
public hasDebugger: any
public size: any
The size of registered extractors
Methods
public addListener(name, listener): ExtractorExecutionContext
Parameter | Type | Optional |
---|---|---|
name | K | ❌ |
listener | ExtractorExecutionEvents[K] | ❌ |
public emit(name, args): boolean
Parameter | Type | Optional |
---|---|---|
name | K | ❌ |
args | Parameters<ExtractorExecutionEvents[K]> | ❌ |
public eventNames(): Array<U>
public get(identifier): undefined | BaseExtractor<object>
Get single extractor
Parameter | Type | Optional | Description |
---|---|---|---|
identifier | string | ❌ | The extractor to get |
public getContext(): null | ExtractorSession
Get the current execution context
public getExecutionId(): null | string
Get the current execution id
public getMaxListeners(): number
public isDisabled(identifier): boolean
Check if extractor is disabled
Parameter | Type | Optional |
---|---|---|
identifier | string | ❌ |
public isEnabled(identifier): boolean
Check if extractor is enabled
Parameter | Type | Optional |
---|---|---|
identifier | string | ❌ |
public isRegistered(identifier): boolean
Validate if the given extractor is registered
Parameter | Type | Optional | Description |
---|---|---|---|
identifier | string | ❌ | The extractor identifier |
public listenerCount(type): number
Parameter | Type | Optional |
---|---|---|
type | keyof ExtractorExecutionEvents | ❌ |
public listeners(type): Array
Parameter | Type | Optional |
---|---|---|
type | U | ❌ |
public loadDefault(): Promise<void>
public loadMulti(bundle, options): Promise<{
error | : null | ; success | : boolean | ; }> Load a bundle of extractors.
Parameter | Type | Optional |
---|---|---|
bundle | T | ❌ |
options | R | ❌ |
public off(name, listener): ExtractorExecutionContext
Parameter | Type | Optional |
---|---|---|
name | K | ❌ |
listener | ExtractorExecutionEvents[K] | ❌ |
public on(name, listener): ExtractorExecutionContext
Parameter | Type | Optional |
---|---|---|
name | K | ❌ |
listener | ExtractorExecutionEvents[K] | ❌ |
public once(name, listener): ExtractorExecutionContext
Parameter | Type | Optional |
---|---|---|
name | K | ❌ |
listener | ExtractorExecutionEvents[K] | ❌ |
public prependListener(event, listener): this
Parameter | Type | Optional |
---|---|---|
event | U | ❌ |
listener | ExtractorExecutionEvents[U] | ❌ |
public prependOnceListener(event, listener): this
Parameter | Type | Optional |
---|---|---|
event | U | ❌ |
listener | ExtractorExecutionEvents[U] | ❌ |
public rawListeners(type): Array<ExtractorExecutionEvents[U]>
Parameter | Type | Optional |
---|---|---|
type | U | ❌ |
public register(_extractor, options): Promise<null | InstanceType<T>>
Register single extractor
Parameter | Type | Optional | Description |
---|---|---|---|
_extractor | T | ❌ | The extractor to register |
options | ConstructorParameters<T>['1'] | ❌ | Options supplied to the extractor |
public removeAllListeners(name?): ExtractorExecutionContext
Parameter | Type | Optional |
---|---|---|
name | K | ✅ |
public removeListener(name, listener): ExtractorExecutionContext
Parameter | Type | Optional |
---|---|---|
name | K | ❌ |
listener | ExtractorExecutionEvents[K] | ❌ |
public requestBridge(track, sourceExtractor): Promise<ExtractorExecutionResult<ExtractorStreamable>>
Request bridge for a track
Parameter | Type | Optional | Description |
---|---|---|---|
track | Track<unknown> | ❌ | The track to request bridge for |
sourceExtractor | null | BaseExtractor<object> | ❌ | The source extractor of the track |
public requestBridgeFrom(track, sourceExtractor, targetExtractor): Promise<null | ExtractorStreamable>
Request bridge from the specified extractor
Parameter | Type | Optional | Description |
---|---|---|---|
track | Track<unknown> | ❌ | The track to request bridge for |
sourceExtractor | null | BaseExtractor<object> | ❌ | The source extractor of the track |
targetExtractor | ExtractorResolvable | ❌ | The target extractor to bridge to |
public resolve(resolvable): undefined | BaseExtractor<object>
Resolve extractor
Parameter | Type | Optional |
---|---|---|
resolvable | ExtractorResolvable | ❌ |
public resolveId(resolvable): string
Resolve extractor identifier
Parameter | Type | Optional |
---|---|---|
resolvable | ExtractorResolvable | ❌ |
public run(fn, filterBlocked): Promise<undefined | ExtractorExecutionResult<false>ExtractorExecutionResult<T>>
Run all the extractors
Parameter | Type | Optional | Description |
---|---|---|---|
fn | ExtractorExecutionFN<T> | ❌ | The runner function |
filterBlocked | boolean | ❌ | Filter blocked extractors |
public setMaxListeners(n): this
Parameter | Type | Optional |
---|---|---|
n | number | ❌ |
public unregister(_extractor): Promise<void>
Unregister single extractor
Parameter | Type | Optional | Description |
---|---|---|---|
_extractor | K | ❌ | The extractor to unregister |
public unregisterAll(): Promise<void>
Unregister all extractors