Public 属性 | |
BACKGROUND_SOURCE_TYPE | background_source_type |
uint | color |
string | source |
BACKGROUND_BLUR_DEGREE | blur_degree |
自定义的背景图。
BACKGROUND_SOURCE_TYPE agora_gaming_rtc.VirtualBackgroundSource.background_source_type |
自定义的背景图类型。
uint agora_gaming_rtc.VirtualBackgroundSource.color |
自定义的背景图颜色。格式为 RGB 定义下的十六进制整数,不要带 # 号,如 0xFFB6C1 表示浅粉色。 默认值为 0xFFFFFF,表示白色。取值范围为 [0x000000,0xffffff]。如果取值非法,SDK 会用白色背景图替换原背景图。
string agora_gaming_rtc.VirtualBackgroundSource.source |
自定义的背景图的本地绝对路径。支持 PNG 和 JPG 格式。如果路径无效,SDK 会用白色背景图替换原背景图。
BACKGROUND_BLUR_DEGREE agora_gaming_rtc.VirtualBackgroundSource.blur_degree |
自定义背景图的虚化程度。详见 BACKGROUND_BLUR_DEGREE 。