ScreenRecording.pipe() 方法
🌐 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 |
返回:
Promise<void>
pipe(): T
语法
🌐 Signature
class ScreenRecording {
pipe<T extends WritableDestination>(destination: T): T;
}
参数
🌐 Parameters
|
范围 🌐 Parameter |
类型 🌐 Type |
描述 🌐 Description |
|---|---|---|
|
destination |
T |
返回:
T