NERtc Unity SDK V.5.4.128
载入中...
搜索中...
未找到
nertc.RtcTimestampWatermarkConfig结构体 参考

Public 属性

string fontName
 
int fontColor
 
int fontSize
 
int wmColor
 
int wmAlpha
 
int wmWidth
 
int wmHeight
 
int offsetX
 
int offsetY
 

详细描述

时间戳水印设置。

  • 只能添加 1 个时间戳水印。
  • 时间戳水印的时间和当前时间相同,且实时变化。

类成员变量说明

◆ fontName

string nertc.RtcTimestampWatermarkConfig.fontName

字体名称。

◆ fontColor

int nertc.RtcTimestampWatermarkConfig.fontColor

水印左上角与视频画布左上角的水平距离。单位为像素(pixel)。

◆ fontSize

int nertc.RtcTimestampWatermarkConfig.fontSize

字体颜色。ARGB 格式。

◆ wmColor

int nertc.RtcTimestampWatermarkConfig.wmColor

水印框内背景颜色。ARGB 格式,支持透明度设置。

◆ wmAlpha

int nertc.RtcTimestampWatermarkConfig.wmAlpha

水印框内背景颜色透明度。

◆ wmWidth

int nertc.RtcTimestampWatermarkConfig.wmWidth

水印框的宽度。单位为像素(pixel),默认值为 0,表示没有水印框。

◆ wmHeight

int nertc.RtcTimestampWatermarkConfig.wmHeight

水印框的高度。单位为像素(pixel),默认值为 0,表示没有水印框。

◆ offsetX

int nertc.RtcTimestampWatermarkConfig.offsetX

水印左上角与视频画布左上角的水平距离。单位为像素(pixel)。

◆ offsetY

int nertc.RtcTimestampWatermarkConfig.offsetY

水印左上角与视频画布左上角的垂直距离。单位为像素(pixel)。


该结构体的文档由以下文件生成: