Skip to main content

RecordOptions 接口

🌐 RecordOptions interface

语法​

🌐 Signature

export interface RecordOptions

属性​

🌐 Properties

属性

🌐 Property

修饰符

🌐 Modifiers

类型

🌐 Type

描述

🌐 Description

默认

🌐 Default

audio

optional

boolean

是否录音。

🌐 Whether to record audio.

false

fps

optional

number

每秒帧数(frameRate 的别名)。

🌐 Frame rate in frames per second (alias for frameRate).

frameRate

optional

number

每秒最大帧率。

🌐 Maximum frame rate in frames per second.

maxHeight

optional

number

最大帧高(像素)

🌐 Maximum frame height in pixels.

maxWidth

optional

number

最大帧宽(像素)

🌐 Maximum frame width in pixels.

overwrite

optional

boolean

指定是否覆盖输出文件,如果文件已存在则立即退出。

🌐 Specifies whether to overwrite output file, or exit immediately if it already exists.

true

path

optional

string

保存录音的文件路径。

🌐 File path to save the recording to.