public class AgoraMediaComponentFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
nativeHandle
The native handle used for internal native operations.
|
| Constructor and Description |
|---|
AgoraMediaComponentFactory(long handle)
Constructs an AgoraMediaComponentFactory instance.
|
| Modifier and Type | Method and Description |
|---|---|
AgoraMediaRtcRecorder |
createMediaRtcRecorder()
Creates a new instance of AgoraMediaRtcRecorder.
|
private long |
nativeCreateMediaRtcRecorder(long handle)
Native method to create a media RTC recorder.
|
private int |
nativeRelease(long handle)
Native method to release the native resources associated with the factory.
|
int |
release()
Releases the native resources associated with the factory.
|
private long nativeHandle
public AgoraMediaComponentFactory(long handle)
handle - The native handle for the factory instancepublic AgoraMediaRtcRecorder createMediaRtcRecorder()
java.lang.RuntimeException - if the native recorder creation failspublic int release()
private long nativeCreateMediaRtcRecorder(long handle)
handle - The native handle used for creating the recorderprivate int nativeRelease(long handle)
handle - The native handle used for releasing resources