|
Video SDK for iOS API Reference
|
The helper to set the video mask. More...
#include <ZoomVideoSDKMaskHelper.h>
Inherits NSObject.
Instance Methods | |
| (UIImage *_Nullable) | - generateMask:width:height: |
| Generates a mask UIImage based on the mask information that is located within the canvas width or the canvas height. The recommended aspect ratio is 1280 * 720 or 720 * 1280. | |
| (ZoomVideoSDKError) | - setVideoMask:background:mirror: |
| Sets the mask to self video. | |
The helper to set the video mask.
Definition at line 58 of file ZoomVideoSDKMaskHelper.h.
| - (UIImage *_Nullable) generateMask: | (NSArray< ZoomVideoSDKMaskInfo * > *_Nullable) | maskInfos | |
| width: | (NSInteger) | canvasWidth | |
| height: | (NSInteger) | canvasHeight |
Generates a mask UIImage based on the mask information that is located within the canvas width or the canvas height. The recommended aspect ratio is 1280 * 720 or 720 * 1280.
| maskInfos | The mask information used to generate mask. |
| canvasWidth | The canvas width used to locate the mask information. |
| canvasHeight | The canvas height used to locate the mask information. |
| - (ZoomVideoSDKError) setVideoMask: | (UIImage *_Nullable) | maskImage | |
| background: | (UIImage *_Nullable) | backgroundImage | |
| mirror: | (BOOL) | isMirrored |
Sets the mask to self video.
| maskImage | UIImage generated by interface generateMask:width:height:. Or you can generate the bitmap by yourself. This mask image should meet the following conditions: The area through which you want to see the video should be set to opaque and the other areas should be set to transparent. |
| backgroundImage | The background image. |
| isMirrored | Whether the video that is based on the mask generated is mirrored. For ZoomVideoSDKVideoCanvas, the value ZoomVideoSDKVideoHelper::isMyVideoMirrored can be passed in. For ZoomVideoSDKRawDataPipe, the correct value should be passed. |