ZegoCanvas
ZegoCanvas
View object.
Details
Configure view object, view Mode, background color
Declared in ZegoExpressDefines.h
Properties
view
nonatomic, strong ZGView * viewView object
viewMode
backgroundColor
nonatomic, assign int backgroundColorBackground color, the format is 0xRRGGBB, default is black, which is 0x000000
alphaBlend
nonatomic, assign BOOL alphaBlendIf enable alpha blend render, default is false.
rotation
nonatomic, assign int rotationRotate the angle counterclockwise, the default is 0. The media player canvas is not supported.
mirror
nonatomic, assign BOOL mirrorIf enable the view mirror, default is false. Only play stream canvas is supported, for publish stream please use [setVideoMirrorMode] interface, for media player please use [enableViewMirror] interface.
viewContext
nonatomic, copy NSString * viewContextContext of view, default is empty string. A utf8 string with a maximum length of 63 bytes or less. Generally no attention is required, it can be used for slitting rendering of mixed stream, to understand the specific use, you need to contact ZEGO technical support.
Methods
canvasWithView
+ (instancetype)canvasWithView:(ZGView *)view;ZegoExpressDefines.hZegoCanvas instance
initWithView
- (instancetype)initWithView:(ZGView *)view;ZegoExpressDefines.hZegoCanvas instance
