|
Agora Java API Reference for Android
|
Represents the configuration options for setting a watermark on the video stream. More...
Classes | |
| class | Rectangle |
| Defines the position and size of the watermark image. More... | |
Public Member Functions | |
| int[] | getPositionInLandscapeMode () |
| Gets the position of the watermark in landscape mode. More... | |
| int[] | getPositionInPortraitMode () |
| Gets the position of the watermark in portrait mode. More... | |
| boolean | isVisibleInPreview () |
| Checks whether the watermark is visible in the local video preview. More... | |
| int | getzOrder () |
| Gets the z-order of the watermark image. More... | |
Public Attributes | |
| boolean | visibleInPreview = true |
| Rectangle | positionInLandscapeMode = new Rectangle() |
| Rectangle | positionInPortraitMode = new Rectangle() |
| int | zOrder = 0 |
| The z-order of the watermark image. More... | |
Represents the configuration options for setting a watermark on the video stream.
You can use this class to configure the watermark image, including its position, size, and visibility.
| int [] io.agora.rtc2.video.WatermarkOptions.getPositionInLandscapeMode | ( | ) |
Gets the position of the watermark in landscape mode.
| int [] io.agora.rtc2.video.WatermarkOptions.getPositionInPortraitMode | ( | ) |
Gets the position of the watermark in portrait mode.
| boolean io.agora.rtc2.video.WatermarkOptions.isVisibleInPreview | ( | ) |
Checks whether the watermark is visible in the local video preview.
| int io.agora.rtc2.video.WatermarkOptions.getzOrder | ( | ) |
Gets the z-order of the watermark image.
| boolean io.agora.rtc2.video.WatermarkOptions.visibleInPreview = true |
Sets whether or not the watermark image is visible in the local video preview:
The watermark position in the landscape mode. See Rectangle. See details for the landscape mode in the advanced guide Rotate the Video.
The watermark position in the portrait mode. See Rectangle. See details for the portrait mode in the advanced guide Rotate the Video.
| int io.agora.rtc2.video.WatermarkOptions.zOrder = 0 |
The z-order of the watermark image.
The z-order specifies the stacking order of the watermark image relative to other overlays on the video.
1.8.18