Meeting SDK for macOS API Reference
Loading...
Searching...
No Matches
ZoomSDKVideoContainer.h
Go to the documentation of this file.
1
2// [Used for Customized UI]
3#import <Foundation/Foundation.h>
4#import <ZoomSDK/ZoomSDKErrors.h>
5NS_ASSUME_NONNULL_BEGIN
10@interface ZoomSDKVideoElement : NSObject
11{
14 unsigned int _userid;
15 NSView* _videoView;
16 NSRect _viewFrame;
17}
18
19@property(nonatomic, assign)unsigned int userid;
20@property(nonatomic, retain, nullable)NSView* videoView;
25- (id)initWithFrame:(NSRect)rect;
31- (ZoomSDKError)showVideo:(BOOL)show;
36- (VideoRenderElementType)getElementType;
41- (VideoRenderDataType)getDataType;
46- (NSView*)getVideoView;
52- (ZoomSDKError)resize:(NSRect)frame;
53
59- (ZoomSDKError)setResolution:(ZoomSDKVideoRenderResolution)resolution;
60@end
61
68- (ZoomSDKError)startPreview:(BOOL)start;
69@end
70
71
78- (ZoomSDKError)startActiveView:(BOOL)start;
79@end
80
87- (ZoomSDKError)subscribeVideo:(BOOL)subscribe;
88@end
89
90@protocol ZoomSDKVideoContainerDelegate <NSObject>
96- (void)onRenderUserChanged:(ZoomSDKVideoElement*_Nullable)element User:(unsigned int)userid;
97
103- (void)onRenderDataTypeChanged:(ZoomSDKVideoElement*_Nullable)element DataType:(VideoRenderDataType)type;
104
110- (void)onSubscribeUserFail:(ZoomSDKVideoSubscribeFailReason)error videoElement:(ZoomSDKVideoElement*)element;
111@end
112
113@interface ZoomSDKVideoContainer : NSObject
114{
115 id<ZoomSDKVideoContainerDelegate> _delegate;
116 NSMutableArray* _elementArray;
117}
118@property(nonatomic,assign, nullable) id<ZoomSDKVideoContainerDelegate> delegate;
124- (ZoomSDKError)createVideoElement:(ZoomSDKVideoElement*_Nullable*_Nonnull)element;
130- (ZoomSDKError)cleanVideoElement:(ZoomSDKVideoElement*)element;
135- (NSArray*_Nullable)getVideoElementList;
136@end
137NS_ASSUME_NONNULL_END
VideoRenderDataType
Enumeration of video render data types.
ZoomSDKVideoSubscribeFailReason
Enumeration of the type for video subscribe failed reason.
ZoomSDKError
Enumeration of common errors of SDK.
ZoomSDKVideoRenderResolution
Enumeration of video render resolution.
VideoRenderElementType
Enumeration of video render element types.
id< ZoomSDKVideoContainerDelegate > _delegate
VideoRenderDataType _dataType
VideoRenderElementType _elementType