#include <NGIAgoraCameraCapturer.h>
The ICameraCapturer class, which provides access to a camera capturer.
◆ CAMERA_SOURCE
The camera source.
Enumerator |
---|
CAMERA_BACK | The camera source is the rear camera.
|
CAMERA_FRONT | The camera source is the front camera.
|
◆ CAMERA_STATE
The camera state.
Enumerator |
---|
CAMERA_STARTED | The camera source is started.
|
CAMERA_STOPPED | The camera source is stopped.
|
◆ setDeviceOrientation()
virtual void agora::rtc::ICameraCapturer::setDeviceOrientation |
( |
VIDEO_ORIENTATION |
orientation | ) |
|
|
pure virtual |
Set the device orientation of the capture device
- Parameters
-
VIDEO_ORIENTATION | orientaion of the device 0(by default), 90, 180, 270 |
◆ setCaptureFormat()
virtual void agora::rtc::ICameraCapturer::setCaptureFormat |
( |
const VideoFormat & |
capture_format | ) |
|
|
pure virtual |
Sets the format of the video captured by the camera.
If you do not set the video capturing format, the SDK automatically chooses a proper format according to the video encoder configuration of the video track.
- Parameters
-
capture_format | The reference to the video format: VideoFormat. |
◆ getCaptureFormat()
virtual VideoFormat agora::rtc::ICameraCapturer::getCaptureFormat |
( |
| ) |
|
|
pure virtual |
Gets the format of the video captured by the camera.
- Returns
- VideoFormat.
◆ registerCameraObserver()
Register a camera observer.
- Parameters
-
observer | Instance of the capture observer. |
◆ unregisterCameraObserver()
Unregisters the camera observer.
- Parameters
-
observer | Instance of the capture observer. |