Meeting SDK for iOS API Reference
Loading...
Searching...
No Matches
MobileRTCCameraControlService.h
Go to the documentation of this file.
6#import <Foundation/Foundation.h>
7
17
29
34@protocol MobileRTCCameraControlDelegate <NSObject>
35@optional
42- (void)onCameraControlRequestResult:(NSUInteger)userId isApproved:(MobileRTCCameraControlRequestResult)isApproved;
43
44@end
45
50@interface MobileRTCCameraControlService : NSObject
51
55@property (weak, nonatomic) id<MobileRTCCameraControlDelegate> _Nullable delegate;
56
61-(NSInteger)getUserId;
62
67- (BOOL)canControlCamera;
68
74
80
86- (MobileRTCSDKError)turnLeft:(NSInteger)range;
87
93- (MobileRTCSDKError)turnRight:(NSInteger)range;
94
100- (MobileRTCSDKError)turnUp:(NSInteger)range;
101
107- (MobileRTCSDKError)turnDown:(NSInteger)range;
108
114- (MobileRTCSDKError)zoomIn:(NSInteger)range;
115
121- (MobileRTCSDKError)zoomOut:(NSInteger)range;
122
123@end
124
MobileRTCCameraControlRequestResult
Enumeration of the results of a camera control request.
@ MobileRTCCameraControlRequestResult_Revoke
@ MobileRTCCameraControlRequestResult_Approve
@ MobileRTCCameraControlRequestResult_Decline
MobileRTCCameraControlRequestType
Enumeration of camera control requests types.
@ MobileRTCWhiteboardStatus_GiveUpControl
@ MobileRTCCameraControlRequestType_RequestControl
MobileRTCSDKError
Enumeration of the SDK error.
Provides APIs to control the remote camera, including pan, tilt, and zoom operations.
NSInteger getUserId()
Gets the current controlled user ID.
MobileRTCSDKError requestControlRemoteCamera()
Requests to control the remote camera.
BOOL canControlCamera()
Determines whether the camera can be controlled or not.
id< MobileRTCCameraControlDelegate > _Nullable delegate
Callback event of receiving camera control.
MobileRTCSDKError giveUpControlRemoteCamera()
Gives up control of the remote camera.