Skip to main content
Version: Next

ScreenRecording.pipe() method

pipe(): Promise<void>

Pipes the recorded stream to a destination stream.

Signature

class ScreenRecording {
pipe<T extends WritableStream<Uint8Array>>(destination: T): Promise<void>;
}

Parameters

Parameter

Type

Description

destination

T

Returns:

Promise<void>

pipe(): T

Signature

class ScreenRecording {
pipe<T extends WritableDestination>(destination: T): T;
}

Parameters

Parameter

Type

Description

destination

T

Returns:

T