Skip to content

Class: WebVttTransformer ​

Defined in: libs/webvtt/src/WebVttTransformer.ts:10

WebVTT transform stream transformer.

Constructors ​

Constructor ​

ts
new WebVttTransformer(): WebVttTransformer;

Defined in: libs/webvtt/src/WebVttTransformer.ts:17

Creates a new WebVTT transformer.

Returns ​

WebVttTransformer

Methods ​

flush() ​

ts
flush(controller): void;

Defined in: libs/webvtt/src/WebVttTransformer.ts:58

Flushes the transformer.

Parameters ​

controller ​

TransformStreamDefaultController<WebVttResult>

The controller to enqueue the results to.

Returns ​

void


transform() ​

ts
transform(chunk, controller): void;

Defined in: libs/webvtt/src/WebVttTransformer.ts:44

Transforms a chunk of WebVTT data.

Parameters ​

chunk ​

string

The chunk of WebVTT data to transform.

controller ​

TransformStreamDefaultController<WebVttResult>

The controller to enqueue the results to.

Returns ​

void

A Streaming Video Technology Alliance project.