Mac SDK
ZoomSDKVideoContainer.h
1 //
2 // ZoomSDKVideoContainer.h
3 // ZoomSDK
4 //
5 // Created by TOTTI on 25/12/2017.
6 // Copyright © 2017 Zoom Video Communications,Inc. All rights reserved.
7 // [Used for Customized UI]
8 #import <Foundation/Foundation.h>
9 #import "ZoomSDKErrors.h"
10 
15 @interface ZoomSDKVideoElement : NSObject
16 {
17  VideoRenderElementType _elementType;
18  VideoRenderDataType _dataType;
19  unsigned int _userid;
20  NSView* _videoView;
21  NSRect _viewFrame;
22 }
23 
24 @property(nonatomic, assign)unsigned int userid;
25 @property(nonatomic, assign)NSView* videoView;
30 - (id)initWithFrame:(NSRect)rect;
36 - (ZoomSDKError)showVideo:(BOOL)show;
41 - (VideoRenderElementType)getElementType;
46 - (VideoRenderDataType)getDataType;
51 - (NSView*)getVideoView;
57 - (ZoomSDKError)resize:(NSRect)frame;
58 @end
59 
66 -(ZoomSDKError)startPreview:(BOOL)start;
67 @end
68 
69 
76 -(ZoomSDKError)startActiveView:(BOOL)start;
77 @end
78 
85 -(ZoomSDKError)subscribeVideo:(BOOL)subscribe;
86 @end
87 
88 @protocol ZoomSDKVideoContainerDelegate <NSObject>
94 -(void)onRenderUserChanged:(ZoomSDKVideoElement*)element User:(unsigned int)userid;
95 
101 -(void)onRenderDataTypeChanged:(ZoomSDKVideoElement*)element DataType:(VideoRenderDataType)type;
102 
108 -(void)onCustomVideoSubscribeFail:(ZoomSDKVideoElement*)element error:(int)error;
109 @end
110 
111 @interface ZoomSDKVideoContainer : NSObject
112 {
113  id<ZoomSDKVideoContainerDelegate> _delegate;
114  NSMutableArray* _elementArray;
115 }
116 @property(nonatomic,assign) id<ZoomSDKVideoContainerDelegate> delegate;
122 -(ZoomSDKError)createVideoElement:(ZoomSDKVideoElement**)element;
128 -(ZoomSDKError)cleanVideoElement:(ZoomSDKVideoElement*)element;
133 -(NSArray*)getVideoElementList;
134 @end
135 
ZoomSDKPreViewVideoElement
Definition: ZoomSDKVideoContainer.h:61
ZoomSDKVideoElement
Definition: ZoomSDKVideoContainer.h:16
ZoomSDKVideoContainerDelegate-p
Definition: ZoomSDKVideoContainer.h:88
ZoomSDKVideoContainer
Definition: ZoomSDKVideoContainer.h:112
ZoomSDKActiveVideoElement
Definition: ZoomSDKVideoContainer.h:71
ZoomSDKNormalVideoElement
Definition: ZoomSDKVideoContainer.h:80