StreamSamplerVersion: 0.8.3On this pageSampler <T>HierarchyMFXTransformStream<T, T>SamplerIndex ConstructorsconstructorAccessorsdesiredSizeidentifiertrackMethodsaddEventListenerdispatchErrordispatchEventqueueremoveEventListenersetTrackConstructors constructornew Sampler<T>(filter?: (_: T, _n: number) => Promise<boolean>, __namedParameters?: { closer?: boolean; transform?: (frame: T) => T }): Sampler<T>Type parametersT = AudioData | ExtendedVideoFrameAccessors desiredSizeget desiredSize(): numberidentifierget identifier(): stringtrackget track(): GenericTrack<any>Methods addEventListeneraddEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): voiddispatchErrordispatchError(error: Error): voiddispatchEventdispatchEvent(event: Event): voidqueuequeue(...items: T[]): Promise<void>removeEventListenerremoveEventListener(type: string, callback: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): voidsetTracksetTrack(track: GenericTrack<any>): Sampler<T>