public class AgoraCameraCapturer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
cptr
Native pointer to the capturer instance.
|
| Constructor and Description |
|---|
AgoraCameraCapturer(long cptr)
Creates a camera capturer wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
AgoraDeviceInfo |
createDeviceInfo()
Creates a device info helper bound to this capturer.
|
void |
destroy()
Destroys the capturer and releases native resources.
|
void |
destroyCaptureFormat(VideoFormat stats)
Destroys a capture format previously returned by
getCaptureFormat(). |
VideoFormat |
getCaptureFormat()
Retrieves the current capture format.
|
int |
initWithDeviceId(java.lang.String device_id)
Initializes the capturer with a device id.
|
int |
initWithDeviceName(java.lang.String device_name)
Initializes the capturer with a device name.
|
private void |
ndestroy()
Releases the underlying native capturer.
|
void |
setCaptureFormat(VideoFormat capture_format)
Sets the desired capture format.
|
public AgoraCameraCapturer(long cptr)
cptr - Native pointerprivate void ndestroy()
public void destroy()
public AgoraDeviceInfo createDeviceInfo()
public int initWithDeviceId(java.lang.String device_id)
device_id - Device identifierpublic int initWithDeviceName(java.lang.String device_name)
device_name - Device namepublic void setCaptureFormat(VideoFormat capture_format)
capture_format - Capture formatpublic VideoFormat getCaptureFormat()
public void destroyCaptureFormat(VideoFormat stats)
getCaptureFormat().stats - Capture format to destroy