WatermarkBuffer

Used to configure the format, size, and pixel buffer of a watermark image.

class WatermarkBuffer implements AgoraSerializable {
  const WatermarkBuffer(
      {this.width, this.height, this.length, this.format, this.buffer});

  @JsonKey(name: 'width')
  final int? width;

  @JsonKey(name: 'height')
  final int? height;

  @JsonKey(name: 'length')
  final int? length;

  @JsonKey(name: 'format')
  final VideoPixelFormat? format;

  @JsonKey(name: 'buffer', ignore: true)
  final Uint8List? buffer;

  factory WatermarkBuffer.fromJson(Map<String, dynamic> json) =>
      _$WatermarkBufferFromJson(json);

  @override
  Map<String, dynamic> toJson() => _$WatermarkBufferToJson(this);
}
Since
Available since v4.6.2.

Properties

width
The width of the watermark image in pixels.
height
The height of the watermark image in pixels.
length
The length of the watermark image buffer in bytes.
format
The pixel format of the watermark image. See VideoPixelFormat.
buffer
The pixel buffer data of the watermark image.