Package io.agora.rtc2.video
Class WatermarkConfig
java.lang.Object
io.agora.rtc2.video.WatermarkConfig
- Since:
- 4.6.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionBuffer containing watermark image data.Unique identifier for the watermark, usually generated using UUID.URL address used to load the watermark image.Options defining the position and size of the watermark.intType of the watermark: - `WATERMARK_TYPE_IMAGE`: image type.static final intSpecifies the watermark type as buffer.static final intSpecifies the watermark type as image. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
WATERMARK_TYPE_IMAGE
public static final int WATERMARK_TYPE_IMAGESpecifies the watermark type as image.- See Also:
-
WATERMARK_TYPE_BUFFER
public static final int WATERMARK_TYPE_BUFFERSpecifies the watermark type as buffer.- See Also:
-
id
Unique identifier for the watermark, usually generated using UUID. -
type
public int typeType of the watermark: - `WATERMARK_TYPE_IMAGE`: image type. - `WATERMARK_TYPE_BUFFER`: Buffer type. -
buffer
Buffer containing watermark image data. See `WatermarkBuffer`. -
imageUrl
URL address used to load the watermark image. -
options
Options defining the position and size of the watermark. See `WatermarkOptions`.
-
-
Constructor Details
-
WatermarkConfig
public WatermarkConfig()
-
-
Method Details
-
getId
- Returns:
- When the method call succeeds, it returns the unique ID of the watermark. When it fails, it returns an empty string.
- Since:
- 4.6.0
-
getType
public int getType()- Returns:
- If the method call succeeds, returns the watermark type. - `WATERMARK_TYPE_IMAGE`: Image watermark. - `WATERMARK_TYPE_BUFFER`: Buffer watermark.
- Since:
- 4.6.0
-
getBuffer
- Returns:
- The buffer containing the watermark image data.
- Since:
- 4.6.0
-
getImageUrl
- Returns:
- When the method call succeeds, it returns the URL of the watermark image. When it fails, it returns an empty string.
- Since:
- 4.6.0
-
getOptions
- Returns:
- The `WatermarkOptions` object, if the method call succeeds.
- Since:
- 4.6.0
-