Skip to main content

屏幕录制类

🌐 ScreenRecording class

语法​

🌐 Signature

export declare abstract class ScreenRecording extends ReadableStream<Uint8Array>

Extends: ReadableStream<Uint8Array>

附注​

🌐 Remarks

这个类的构造函数被标记为内部的。第三方代码不应该直接调用这个构造函数,也不应该创建继承 ScreenRecording 类的子类。

🌐 The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ScreenRecording class.

方法​

🌐 Methods

方法

🌐 Method

修饰符

🌐 Modifiers

描述

🌐 Description

[asyncDisposeSymbol]()

pipe(destination)

将录制的流传输到目标流。

🌐 Pipes the recorded stream to a destination stream.

pipe(destination)

stop()

停止屏幕录制。

🌐 Stops the screen recording.