ScreencastOptions 接口
🌐 ScreencastOptions interface
语法
🌐 Signature
export interface ScreencastOptions
属性
🌐 Properties
属性 🌐 Property | 修饰符 🌐 Modifiers | 类型 🌐 Type | 描述 🌐 Description | 默认 🌐 Default |
|---|---|---|---|---|
| colors |
| number | 指定要量化的 调色板 颜色的最大数量,GIF 限制为 🌐 Specifies the maximum number of palette colors to quantize, with GIF limited to |
|
| crop |
| 指定要裁剪的视口区域。 🌐 Specifies the region of the viewport to crop. | ||
| delay |
| number | 指定循环迭代之间的延迟时间,单位为毫秒。 🌐 Specifies the delay between iterations of a loop, in ms. |
|
| ffmpegPath |
| string | 到 ffmpeg 的路径。 🌐 Path to the ffmpeg. 如果 🌐 Required if |
|
| format |
| 指定输出文件格式。 🌐 Specifies the output file format. |
| |
| fps |
| number | 指定每秒帧数的帧速率。 🌐 Specifies the frame rate in frames per second. |
|
| loop |
| number | 指定播放循环的次数,从 🌐 Specifies the number of times to loop playback, from |
|
| overwrite |
| boolean | 指定是否覆盖输出文件,如果文件已存在则立即退出。 🌐 Specifies whether to overwrite output file, or exit immediately if it already exists. |
|
| path |
| `${string}.${VideoFormat}` | 保存截屏视频的文件路径。 🌐 File path to save the screencast to. | |
| quality |
| number | 指定录制的质量恒定速率因子,范围在 🌐 Specifies the recording quality Constant Rate Factor between |
|
| scale |
| number | 缩放输出视频。 🌐 Scales the output video. 例如, 🌐 For example, |
|
| speed |
| number | 指定录制的速度。 🌐 Specifies the speed to record at. 例如, 🌐 For example, |
|