你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

AvatarVideoFormat class

定义虚拟形象输出视频格式。 AvatarVideoFormat 于1.33.0版本中添加

此功能仍属实验性,未来可能会有所变化。

构造函数

AvatarVideoFormat(string, number, number, number)

创建和初始化此类的实例。

属性

bitrate

定义视频比特率。

codec

定义视频编解码器。

height

定义视频高度。

width

定义视频宽度。

方法

setCropRange(Coordinate, Coordinate)

设置视频裁剪范围。

构造函数详细信息

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