NERtcVideoWatermarkImageConfig class

视频图片水印配置

Constructors

NERtcVideoWatermarkImageConfig.new({required double wmAlpha, required int wmWidth, required int wmHeight, required int offsetX, required int offsetY, List<String?>? imagePaths, required int fps, required bool loop})

Properties

fps int
播放帧率,默认为 0 表示不自动切换图片,图片单帧静态展示。 帧率最高不超过 30fps,如果设置帧率高于视频流帧率,则按照视频流帧率展示
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
imagePaths List<String?>?
图片绝对路径,支持多个图片路径
getter/setter pair
loop bool
是否设置循环,默认为 true,设置为 false 时图像组播放完毕后水印消失
getter/setter pair
offsetX int
水平左上角与视频图像左上角的水平距离,单位为像素,默认值为 0
getter/setter pair
offsetY int
水平左上角与视频图像左上角的垂直距离,单位为像素,默认值为 0
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wmAlpha double
整体水印透明度,取值范围 为 0.0 ~ 1.0,默认值为 1.0,表示不透明
getter/setter pair
wmHeight int
水印框的高度,单位为像素,默认值为 0,表示按原始图高
getter/setter pair
wmWidth int
水印框的宽度,单位为像素,默认值为 0,表示按原始图宽
getter/setter pair

Methods

encode() Object
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

decode(Object result) NERtcVideoWatermarkImageConfig