Skip to main content
Version: 0.8.3

Sampler <T>

Hierarchy

Index

Constructors

constructor

  • new Sampler<T>(filter?: (_: T, _n: number) => Promise<boolean>, __namedParameters?: { closer?: boolean; transform?: (frame: T) => T }): Sampler<T>

Accessors

desiredSize

  • get desiredSize(): number

identifier

  • get identifier(): string

track

Methods

addEventListener

  • addEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void

dispatchError

  • dispatchError(error: Error): void

dispatchEvent

  • dispatchEvent(event: Event): void

queue

  • queue(...items: T[]): Promise<void>

removeEventListener

  • removeEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void

setTrack