Package io.agora.rtc2.video
Class WatermarkConfig
java.lang.Object
io.agora.rtc2.video.WatermarkConfig
- Since:
- 4.6.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe buffer that contains the watermark image data.The unique identifier of the watermark.The URL from which to load the watermark image.The options that define the position and size of the watermark.intThe type of the watermark.static final intSpecifies that the watermark is provided as a buffer.static final intSpecifies that the watermark is an image. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
WATERMARK_TYPE_IMAGE
public static final int WATERMARK_TYPE_IMAGESpecifies that the watermark is an image.- See Also:
-
WATERMARK_TYPE_BUFFER
public static final int WATERMARK_TYPE_BUFFERSpecifies that the watermark is provided as a buffer.- See Also:
-
id
The unique identifier of the watermark. Usually generated using a UUID. -
type
public int typeThe type of the watermark. Can be eitherWATERMARK_TYPE_IMAGEorWATERMARK_TYPE_BUFFER. -
buffer
The buffer that contains the watermark image data. -
imageUrl
The URL from which to load the watermark image. -
options
The options that define the position and size of the watermark.
-
-
Constructor Details
-
WatermarkConfig
public WatermarkConfig()
-
-
Method Details
-
getId
- Returns:
- The unique ID of the watermark.
- Since:
- 4.6.0
-
getType
public int getType()- Returns:
- The type of the watermark. See
WATERMARK_TYPE_IMAGEandWATERMARK_TYPE_BUFFER. - Since:
- 4.6.0
-
getBuffer
- Returns:
- The buffer containing the watermark image data.
- Since:
- 4.6.0
-
getImageUrl
- Returns:
- The URL of the watermark image.
- Since:
- 4.6.0
-
getOptions
- Returns:
- The options for positioning and sizing the watermark.
- Since:
- 4.6.0
-