|
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: |
| Generate 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 * 12880. | |
| (ZoomVideoSDKError) | - setVideoMask:background:mirror: |
| Set 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 |
Generate 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 * 12880.
| maskInfos | The mask informations 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 |
Set the mask to self video.
| maskImage | UIIage generate 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 iamge. |
| isMirrored | Whether the video that is based by the mask generate is mirrored. For ZoomVideoSDKVideoCanvas, the value ZoomVideoSDKVideoHelper::isMyVideoMirrored can be passed in. For ZoomVideoSDKRawDataPipe, the correct value should be passed. |