AvayaWebRTCConnectSDK
AOVideoDevice.h
Go to the documentation of this file.
1/* Copyright Avaya Inc. */
2
3#import <Foundation/Foundation.h>
4#import <UIKit/UIKit.h>
5
14typedef NS_ENUM(NSInteger, AOCameraType) {
15 AOCameraTypeFront,
16 AOCameraTypeBack
17};
18
22typedef NS_ENUM(NSUInteger, AOVideoResolution) { //Depricated
23 AOVideoResolution_176x144 = 0,
24 AOVideoResolution_320x180, // 180p
25 AOVideoResolution_352x288,
26 AOVideoResolution_480x272,
27 AOVideoResolution_640x360, // 360p
28 AOVideoResolution_640x480,
29 AOVideoResolution_848x480,
30 AOVideoResolution_960x540,
31 AOVideoResolution_1280x720,
32 AOVideoResolution_1920x1080
33};
34
35// Requested Capture Resolutions
36// Max - highest capture resolution supported by device
37// Min - lowest capture resolution supported by device
38// Specific resolution - upper bound for capture resolution. Maybe limited by hardware support
39
40typedef NS_ENUM(NSUInteger, AOVideoCapturePreference) {
41 AOVideoCapturePreference_Max = 0,
42 AOVideoCapturePreference_1080p,
43 AOVideoCapturePreference_720p,
44 AOVideoCapturePreference_540p,
45 AOVideoCapturePreference_360p,
46 AOVideoCapturePreference_270p,
47 AOVideoCapturePreference_Min
48};
49
50// Requested Capture Orientations
51
52typedef NS_ENUM(NSInteger, AOVideoCaptureOrientation)
53{
54 AOVideoCaptureOrientation_LandscapeOnly = 0,
55 AOVideoCaptureOrientation_LandscapeOrPortrait
56};
57
58@interface AOVideoDevice : NSObject
59
63- (void) selectCamera: (AOCameraType) cameraType;
64
68-(void) switchCamera;
69
73-(void) setCameraCaptureResolution: (AOVideoResolution) resolution; // __deprecated_msg("Refer to setVideoCaptureResolutionWithCaptureOrientation:orientationPreference:");
74
78+(NSMutableArray*) getSupportedCameraCaptureResolutions; //Depricated
79
83- (AOVideoResolution)getCameraCaptureResolution; //Depricated
84
88-(void) setRemoteView:(UIView*) remote;
89
93-(void) setLocalView:(UIView*) local;
94
99
103- (void) setVideoCaptureResolutionWithCaptureOrientation : (AOVideoCapturePreference) resolutionPreference orientationPreference : (AOVideoCaptureOrientation) orientationPreference;
104
109-(AOVideoCapturePreference) getVideoCapturePreference;
110
115- (AOVideoCaptureOrientation) getVideoCaptureOrientation;
116
117@end
typedef NS_ENUM(NSInteger, AOCameraType)
Definition: AOVideoDevice.h:14
Definition: AOVideoDevice.h:59
AOVideoCapturePreference getVideoCapturePreference()
NSMutableArray * getSupportedCameraCaptureResolutionPrefes()
AOVideoResolution getCameraCaptureResolution()
NSMutableArray * getSupportedCameraCaptureResolutions()
AOVideoCaptureOrientation getVideoCaptureOrientation()