Meeting SDK for iOS API Reference
Loading...
Searching...
No Matches
MobileRTCCameraControlService.h
Go to the documentation of this file.
1//
2// MobileRTCRemoteControlService.h
3// MobileRTC
4//
5// Created by Zoom Communications on 2024/5/28.
6// Copyright © Zoom Communications, Inc. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
20
32
37@protocol MobileRTCCameraControlDelegate <NSObject>
38@optional
45- (void)onCameraControlRequestResult:(NSUInteger)userId isApproved:(MobileRTCCameraControlRequestResult)isApproved;
46
47@end
48
53@interface MobileRTCCameraControlService : NSObject
54
58@property (weak, nonatomic) id<MobileRTCCameraControlDelegate> _Nullable delegate;
59
64-(NSInteger)getUserId;
65
70- (BOOL)canControlCamera;
71
77
83
89- (MobileRTCSDKError)turnLeft:(NSInteger)range;
90
96- (MobileRTCSDKError)turnRight:(NSInteger)range;
97
103- (MobileRTCSDKError)turnUp:(NSInteger)range;
104
110- (MobileRTCSDKError)turnDown:(NSInteger)range;
111
117- (MobileRTCSDKError)zoomIn:(NSInteger)range;
118
124- (MobileRTCSDKError)zoomOut:(NSInteger)range;
125
126@end
127
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 SDK error.
Provides APIs to control the remote camera, including pan, tilt, and zoom operations.
NSInteger getUserId()
The current controlled user id.
MobileRTCSDKError requestControlRemoteCamera()
Request to control remote camera.
BOOL canControlCamera()
Used to determine whether the camera can be controlled or not.
id< MobileRTCCameraControlDelegate > _Nullable delegate
Callback event of receiving camera control.
MobileRTCSDKError giveUpControlRemoteCamera()
Give up control of the remote camera.