NERtc Android SDK  V4.6.20
Public 成员函数 | Public 属性 | 所有成员列表
com.netease.lava.nertc.sdk.watermark.NERtcVideoWatermarkTimestampConfig类 参考

Public 成员函数

JSONObject toJson ()
 
String toString ()
 

Public 属性

String fontPath
 
int fontColor = 0xFFFFFFFF
 
int fontSize = 15
 
int wmColor = 0x88888888
 
float wmAlpha = 1.0f
 
int wmWidth = 0
 
int wmHeight = 0
 
int offsetX = 0
 
int offsetY = 0
 

详细描述

视频时间戳水印配置。

类成员变量说明

◆ fontColor

int com.netease.lava.nertc.sdk.watermark.NERtcVideoWatermarkTimestampConfig.fontColor = 0xFFFFFFFF

字体颜色。ARGB 格式。默认为 0xFFFFFFFF,即白色。

◆ fontPath

String com.netease.lava.nertc.sdk.watermark.NERtcVideoWatermarkTimestampConfig.fontPath

字体文件绝对路径。

◆ fontSize

int com.netease.lava.nertc.sdk.watermark.NERtcVideoWatermarkTimestampConfig.fontSize = 15

字体大小。默认值为 15,单位为像素(px)。

◆ offsetX

int com.netease.lava.nertc.sdk.watermark.NERtcVideoWatermarkTimestampConfig.offsetX = 0

水平左上角与视频图像左上角的水平距离,单位为像素,默认值为 0。

◆ offsetY

int com.netease.lava.nertc.sdk.watermark.NERtcVideoWatermarkTimestampConfig.offsetY = 0

水平左上角与视频图像左上角的垂直距离,单位为像素,默认值为 0。

◆ wmAlpha

float com.netease.lava.nertc.sdk.watermark.NERtcVideoWatermarkTimestampConfig.wmAlpha = 1.0f

整体水印透明度,取值范围 0.0 ~ 1.0,默认值为 1.0,表示不透明。

◆ wmColor

int com.netease.lava.nertc.sdk.watermark.NERtcVideoWatermarkTimestampConfig.wmColor = 0x88888888

水印框内背景颜色。ARGB 格式,默认值为 0x88888888,即灰色。
支持透明度设置。

◆ wmHeight

int com.netease.lava.nertc.sdk.watermark.NERtcVideoWatermarkTimestampConfig.wmHeight = 0

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

◆ wmWidth

int com.netease.lava.nertc.sdk.watermark.NERtcVideoWatermarkTimestampConfig.wmWidth = 0

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


该类的文档由以下文件生成: