RecordOptions 接口
🌐 RecordOptions interface
语法
🌐 Signature
export interface RecordOptions
属性
🌐 Properties
|
属性 🌐 Property |
修饰符 🌐 Modifiers |
类型 🌐 Type |
描述 🌐 Description |
默认 🌐 Default |
|---|---|---|---|---|
|
audio |
|
boolean |
是否录音。 🌐 Whether to record audio. |
|
|
fps |
|
number |
每秒帧数(frameRate 的别名)。 🌐 Frame rate in frames per second (alias for frameRate). | |
|
frameRate |
|
number |
每秒最大帧率。 🌐 Maximum frame rate in frames per second. | |
|
maxHeight |
|
number |
最大帧高(像素) 🌐 Maximum frame height in pixels. | |
|
maxWidth |
|
number |
最大帧宽(像素) 🌐 Maximum frame width in pixels. | |
|
overwrite |
|
boolean |
指定是否覆盖输出文件,如果文件已存在则立即退出。 🌐 Specifies whether to overwrite output file, or exit immediately if it already exists. |
|
|
path |
|
string |
保存录音的文件路径。 🌐 File path to save the recording to. |