视频设置
方法总览
| 方法名称 | 行为 | 含义描述 |
|---|---|---|
| EnableOptimizeScreenSharingForVideoClip | 调用 | 是否开启辅流分享时流畅度优先;bEnable: 是否开启辅流分享时流畅度优先 |
| IsOptimizeScreenSharingForVideoClipEnable | 调用 | 是否开启辅流分享时流畅度优先;bEnable: 是否开启辅流分享时流畅度优先 |
| EnableHardwareRendering | 调用 | 是否开启硬件渲染;bEnable: 是否开启硬件渲染 |
| IsHardwareRenderingEnable | 调用 | 是否开启硬件渲染;bEnable: 是否开启硬件渲染 |
| EnabelMirrorMode | 调用 | 是否开启镜像模式;bEnable: 是否开启镜像模式 |
| EnabelVirtualBackground | 调用 | 是否开启背景虚化;bEnable: 是否开启背景虚化 |
| SetVirtualBackgroundFile | 调用 | 添加并且选择背景虚化图片;strPath: 图片路径 |
| SetGalleryMaxLimit | 调用 | 设置画廊布局窗格最大显示数量限制;eType: 画廊模式同屏显示的最大人数 |
| GetGalleryMaxLimit | 调用 | 获取画廊布局窗格最大显示数量限制;eType: 画廊模式同屏显示的最大人数 |
| EnableDarkEnhance | 调用 | 开启/关闭暗场景增强;bEnable: 是否开启 |
| IsDarkEnhanceEnable | 调用 | 获取是否开启暗场景增强 |
| EnableHDVideo | 调用 | 开启/关闭高清画质功能;bEnable: 是否开启 |
| IsHDVideoEnable | 调用 | 获取是否开启高清画质功能 |
| EnableVideoBeautification | 调用 | 开启/关闭美颜;bEnable: 是否开启 |
| IsVideoBeautificationEnable | 调用 | 获取是否开启美颜 |
| SetVideoBeautificationLevel | 调用 | 设置美颜等级;nLevel: 美颜等级(0~100) |
| GetVideoBeautificationLevel | 调用 | 获取美颜等级 |
| EnableSpeakerViewSmartSwitch | 调用 | 开启/关闭发言者画面智能切换;bEnable: 是否开启 |
| IsSpeakerViewSmartSwitchEnable | 调用 | 是否开启发言者画面智能切换 |
EnableOptimizeScreenSharingForVideoClip
接口描述
是否开启辅流分享时流畅度优先
接口定义
YLSDKERR EnableOptimizeScreenSharingForVideoClip(bool bEnable);
参数描述
| 参数 | 类型 | 含义 |
|---|---|---|
| bEnable | bool | 是否开启辅流分享时流畅度优先 |
返回值描述
| 类型 | 含义 |
|---|---|
| YLSDKERR | 错误码,详情见错误码 YLSDKERR 的定义 |
IsOptimizeScreenSharingForVideoClipEnable
接口描述
是否开启辅流分享时流畅度优先;bEnable: 是否开启辅流分享时流畅度优先
接口定义
bool IsOptimizeScreenSharingForVideoClipEnable();
参数描述
无参数。
返回值描述
| 类型 | 含义 |
|---|---|
| bool | 无 |
EnableHardwareRendering
接口描述
是否开启硬件渲染
接口定义
YLSDKERR EnableHardwareRendering(bool bEnable);
参数描述
| 参数 | 类型 | 含义 |
|---|---|---|
| bEnable | bool | 是否开启硬件渲染 |
返回值描述
| 类型 | 含义 |
|---|---|
| YLSDKERR | 错误码,详情见错误码 YLSDKERR 的定义 |
IsHardwareRenderingEnable
接口描述
是否开启硬件渲染;bEnable: 是否开启硬件渲染
接口定义
bool IsHardwareRenderingEnable();
参数描述
无参数。
返回值描述
| 类型 | 含义 |
|---|---|
| bool | 无 |
EnabelMirrorMode
接口描述
是否开启镜像模式
接口定义
YLSDKERR EnabelMirrorMode(bool bEnable);
参数描述
| 参数 | 类型 | 含义 |
|---|---|---|
| bEnable | bool | 是否开启镜像模式 |
返回值描述
| 类型 | 含义 |
|---|---|
| YLSDKERR | 错误码,详情见错误码 YLSDKERR 的定义 |
EnabelVirtualBackground
接口描述
是否开启背景虚化
接口定义
YLSDKERR EnabelVirtualBackground(bool bEnable);
参数描述
| 参数 | 类型 | 含义 |
|---|---|---|
| bEnable | bool | 是否开启背景虚化 |
返回值描述
| 类型 | 含义 |
|---|---|
| YLSDKERR | 错误码,详情见错误码 YLSDKERR 的定义 |
SetVirtualBackgroundFile
接口描述
添加并且选择背景虚化图片
接口定义
YLSDKERR SetVirtualBackgroundFile(string strPath);
参数描述
| 参数 | 类型 | 含义 |
|---|---|---|
| strPath | string | 图片路径 |
返回值描述
| 类型 | 含义 |
|---|---|
| YLSDKERR | 错误码,详情见错误码 YLSDKERR 的定义 |
SetGalleryMaxLimit
接口描述
设置画廊布局窗格最大显示数量限制
接口定义
YLSDKERR SetGalleryMaxLimit(YLSDK_GALLARY_MAX_COUNT eType);
参数描述
| 参数 | 类型 | 含义 |
|---|---|---|
| eType | YLSDK_GALLARY_MAX_COUNT | 画廊模式同屏显示的最大人数 |
YLSDK_GALLARY_MAX_COUNT 画廊布局可显示最大数量
enum YLSDK_GALLARY_MAX_COUNT {
YLSDK_GALLARY_MAX_COUNT_16 = 0,/** < 最大显示数量限制为 4*4 */
YLSDK_GALLARY_MAX_COUNT_49 = 1,/** < 最大显示数量限制为 7*7 */
}
返回值描述
| 类型 | 含义 |
|---|---|
| YLSDKERR | 错误码,详情见错误码 YLSDKERR 的定义 |
GetGalleryMaxLimit
接口描述
获取画廊布局窗格最大显示数量限制;eType: 画廊模式同屏显示的最大人数
接口定义
YLSDK_GALLARY_MAX_COUNT GetGalleryMaxLimit();
参数描述
无参数。
返回值描述
| 类型 | 含义 |
|---|---|
| YLSDK_GALLARY_MAX_COUNT | 画廊布局可显示最大数量 |
YLSDK_GALLARY_MAX_COUNT 画廊布局可显示最大数量
enum YLSDK_GALLARY_MAX_COUNT {
YLSDK_GALLARY_MAX_COUNT_16 = 0,/** < 最大显示数量限制为 4*4 */
YLSDK_GALLARY_MAX_COUNT_49 = 1,/** < 最大显示数量限制为 7*7 */
}
EnableDarkEnhance
接口描述
开启/关闭暗场景增强
接口定义
YLSDKERR EnableDarkEnhance(bool bEnable);
参数描述
| 参数 | 类型 | 含义 |
|---|---|---|
| bEnable | bool | 是否开启 |
返回值描述
| 类型 | 含义 |
|---|---|
| YLSDKERR | 错误码,详情见错误码 YLSDKERR 的定义 |
IsDarkEnhanceEnable
接口描述
获取是否开启暗场景增强
接口定义
bool IsDarkEnhanceEnable();
参数描述
无参数。
返回值描述
| 类型 | 含义 |
|---|---|
| bool | 无 |
EnableHDVideo
接口描述
开启/关闭高清画质功能
接口定义
YLSDKERR EnableHDVideo(bool bEnable);
参数描述
| 参数 | 类型 | 含义 |
|---|---|---|
| bEnable | bool | 是否开启 |
返回值描述
| 类型 | 含义 |
|---|---|
| YLSDKERR | 错误码,详情见错误码 YLSDKERR 的定义 |
IsHDVideoEnable
接口描述
获取是否开启高清画质功能
接口定义
bool IsHDVideoEnable();
参数描述
无参数。
返回值描述
| 类型 | 含义 |
|---|---|
| bool | 无 |
EnableVideoBeautification
接口描述
开启/关闭美颜
接口定义
YLSDKERR EnableVideoBeautification(bool bEnable);
参数描述
| 参数 | 类型 | 含义 |
|---|---|---|
| bEnable | bool | 是否开启 |
返回值描述
| 类型 | 含义 |
|---|---|
| YLSDKERR | 错误码,详情见错误码 YLSDKERR 的定义 |
IsVideoBeautificationEnable
接口描述
获取是否开启美颜
接口定义
bool IsVideoBeautificationEnable();
参数描述
无参数。
返回值描述
| 类型 | 含义 |
|---|---|
| bool | 无 |
SetVideoBeautificationLevel
接口描述
设置美颜等级
接口定义
YLSDKERR SetVideoBeautificationLevel(int nLevel);
参数描述
| 参数 | 类型 | 含义 |
|---|---|---|
| nLevel | int | 美颜等级(0~100) |
返回值描述
| 类型 | 含义 |
|---|---|
| YLSDKERR | 错误码,详情见错误码 YLSDKERR 的定义 |
GetVideoBeautificationLevel
接口描述
获取美颜等级
接口定义
int GetVideoBeautificationLevel();
参数描述
无参数。
返回值描述
| 类型 | 含义 |
|---|---|
| int | 无 |
EnableSpeakerViewSmartSwitch
接口描述
开启/关闭发言者画面智能切换
接口定义
YLSDKERR EnableSpeakerViewSmartSwitch(bool bEnable);
参数描述
| 参数 | 类型 | 含义 |
|---|---|---|
| bEnable | bool | 是否开启 |
返回值描述
| 类型 | 含义 |
|---|---|
| YLSDKERR | 错误码,详情见错误码 YLSDKERR 的定义 |
IsSpeakerViewSmartSwitchEnable
接口描述
是否开启发言者画面智能切换
接口定义
bool IsSpeakerViewSmartSwitchEnable();
参数描述
无参数。
返回值描述
| 类型 | 含义 |
|---|---|
| bool | 无 |