Inherits RefCountInterface.
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.
|
◆ ~ICameraCapturer()
◆ setDeviceOrientation()
Set the device orientation of the capture device
- Parameters
-
VIDEO_ORIENTATION | orientaion of the device 0(by default), 90, 180, 270 |
◆ setCaptureFormat()
virtual void 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()
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. |
◆ AddRef()
virtual void AddRef |
( |
| ) |
const |
|
pure virtualinherited |
◆ Release()
◆ HasOneRef()
virtual bool HasOneRef |
( |
| ) |
const |
|
pure virtualinherited |