AvatarVideoFormat class
定义虚拟形象输出视频格式。
构造函数
| Avatar |
创建和初始化此类的实例。 |
方法
| set |
设置视频裁剪范围。 |
构造函数详细信息
AvatarVideoFormat(string, number, number, number)
创建和初始化此类的实例。
new AvatarVideoFormat(codec?: string, bitrate?: number, width?: number, height?: number)
参数
- codec
-
string
视频编解码器。
- bitrate
-
number
视频比特率。
- width
-
number
视频宽度。
- height
-
number
视频高度。
属性详细信息
bitrate
定义视频比特率。
bitrate: number
属性值
number
codec
定义视频编解码器。
codec: string
属性值
string
height
定义视频高度。
height: number
属性值
number
width
定义视频宽度。
width: number
属性值
number
方法详细信息
setCropRange(Coordinate, Coordinate)
设置视频裁剪范围。
function setCropRange(topLeft: Coordinate, bottomRight: Coordinate)
参数
- topLeft
- Coordinate
- bottomRight
- Coordinate