Mac SDK
ZoomSDKMeetingRecordController.h
1 //
2 // ZoomSDKMeetingRecordController.h
3 // ZoomSDK
4 //
5 // Created by TOTTI on 2018/8/6.
6 // Copyright © 2018 Zoom Video Communications,Inc. All rights reserved.
7 //
8 #import "ZoomSDKErrors.h"
9 typedef enum
10 {
11  // For initialization.
12  RecordingLayoutMode_None = 0,
13  // Only record active speaker's video.
14  RecordingLayoutMode_ActiveVideoOnly = 1,
15  // Video wall mode.
16  RecordingLayoutMode_VideoWall = (1<<1),
17  // Record shared content with participants' video.
18  RecordingLayoutMode_VideoShare = (1<<2),
19  // Record only the audio.
20  RecordingLayoutMode_OnlyAudio = (1<<3),
21  // Record only the shared content.
22  RecordingLayoutMode_OnlyShare = (1<<4),
23 }RecordingLayoutMode;
24 
25 @interface CustomizedRecordingLayoutHelper : NSObject
35 - (NSArray*)getValidVideoSource;
40 - (NSArray*)getValidRecivedShareSource;
50 - (BOOL)haveActiveVideoSource;
51 
57 - (ZoomSDKError)selectRecordingLayoutMode:(RecordingLayoutMode)mode;
63 - (ZoomSDKError)addVideoSourceToResArray:(unsigned int)userid;
64 
70 - (ZoomSDKError)selectActiveVideoSource;
71 
77 - (ZoomSDKError)selectShareSource:(unsigned int)userid;
83 - (ZoomSDKError)selectSendShareSource;
84 @end
85 
86 
87 
88 @protocol ZoomSDKMeetingRecordDelegate <NSObject>
89 
96 - (void)onRecord2MP4Done:(BOOL)success Path:(NSString*)recordPath;
97 
103 - (void)onRecord2MP4Progressing:(int)percentage;
104 
110 - (void)onRecordStatus:(ZoomSDKRecordingStatus)status;
111 
117 - (void)onRecordPrivilegeChange:(BOOL)canRec;
118 
124 - (void)onCustomizedRecordingSourceReceived:(CustomizedRecordingLayoutHelper*)helper;
125 
126 @end
127 
128 
129 @interface ZoomSDKMeetingRecordController : NSObject
130 {
131  id<ZoomSDKMeetingRecordDelegate> _delegate;
132 }
133 @property(nonatomic, assign)id<ZoomSDKMeetingRecordDelegate> delegate;
140 - (ZoomSDKError)canStartRecording:(BOOL)isCloud User:(unsigned int)userid NS_DEPRECATED_MAC(4.1, 4.3);
141 - (ZoomSDKError)canStartRecording:(BOOL)isCloud NS_AVAILABLE_MAC(4.3);
146 - (ZoomSDKError)canAllowDisallowRecording;
147 
153 - (ZoomSDKError)startCloudRecording:(BOOL)start;
154 
161 - (ZoomSDKError)startRecording:(time_t*)startTimestamp saveFilePath:(NSString*)filePath;
162 
168 - (ZoomSDKError)stopRecording:(time_t*)stopTimestamp;
169 
175 - (ZoomSDKError)isSupportLocalRecording:(unsigned int)userid;
176 
183 - (ZoomSDKError)allowLocalRecording:(BOOL)allow User:(unsigned int)userid;
184 
190 - (ZoomSDKError)requestCustomizedLocalRecordingNotification:(BOOL)request;
191 
196 -(ZoomSDKError)pauseCloudRecording;
201 -(ZoomSDKError)resumeCloudRecording;
206 -(ZoomSDKError)pauseLocalRecording;
211 -(ZoomSDKError)resumeLocalRecording;
212 @end
-[CustomizedRecordingLayoutHelper selectSendShareSource]
ZoomSDKError selectSendShareSource()
Select shared source of the current user.
-[CustomizedRecordingLayoutHelper getValidRecivedShareSource]
NSArray * getValidRecivedShareSource()
Get available shared source received by users.
-[CustomizedRecordingLayoutHelper isSendingShareSourceAvailable]
BOOL isSendingShareSourceAvailable()
Query if sending shared source is available.
ZoomSDKMeetingRecordDelegate-p
Definition: ZoomSDKMeetingRecordController.h:88
-[CustomizedRecordingLayoutHelper getSupportLayoutMode]
int getSupportLayoutMode()
Get the layout mode supported by the current meeting.
-[CustomizedRecordingLayoutHelper haveActiveVideoSource]
BOOL haveActiveVideoSource()
Determine if there exists the active video source.
ZoomSDKMeetingRecordController
Definition: ZoomSDKMeetingRecordController.h:130
-[CustomizedRecordingLayoutHelper getValidVideoSource]
NSArray * getValidVideoSource()
Get the list of users whose video source is available.
CustomizedRecordingLayoutHelper
Definition: ZoomSDKMeetingRecordController.h:26
-[CustomizedRecordingLayoutHelper selectActiveVideoSource]
ZoomSDKError selectActiveVideoSource()
Add active video source to the array.