public class AgoraLocalVideoTrack
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
cptr |
| Constructor and Description |
|---|
AgoraLocalVideoTrack(long cptr)
Constructor for AgoraLocalVideoTrack.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys the local video track.
|
void |
destroyStatistics(LocalVideoTrackStats stats)
Destroys the provided LocalVideoTrackStats object.
|
int |
enableSimulcastStream(int enabled,
SimulcastStreamConfig config)
Enables or disables the simulcast stream.
|
long |
getNativeHandle()
Gets the native handle of the local video track.
|
int |
getState()
Gets the current state of the local video track.
|
LocalVideoTrackStats |
getStatistics()
Retrieves the statistics of the local video track.
|
private void |
nativeDestroy(long cptr) |
private void |
nativeDestroyStatistics(long cptr,
LocalVideoTrackStats stats) |
private int |
nativeEnableSimulcastStream(long cptr,
int enabled,
SimulcastStreamConfig config) |
private int |
nativeGetState(long cptr) |
private LocalVideoTrackStats |
nativeGetStatistics(long cptr) |
private void |
nativeSetEnabled(long cptr,
int enable) |
private int |
nativeSetVideoEncoderConfig(long cptr,
VideoEncoderConfig config) |
void |
setEnabled(int enable)
Enables or disables the local video track.
|
int |
setVideoEncoderConfig(VideoEncoderConfig config)
Sets the video encoder configuration.
|
public AgoraLocalVideoTrack(long cptr)
cptr - Pointer to the native video track object.public long getNativeHandle()
public void destroy()
public void setEnabled(int enable)
enable - 1 to enable, 0 to disable.public int setVideoEncoderConfig(VideoEncoderConfig config)
config - The video encoder configuration to set.public int enableSimulcastStream(int enabled,
SimulcastStreamConfig config)
enabled - 1 to enable, 0 to disable.config - The simulcast stream configuration.public int getState()
public LocalVideoTrackStats getStatistics()
public void destroyStatistics(LocalVideoTrackStats stats)
stats - The LocalVideoTrackStats object to be destroyed.private void nativeDestroy(long cptr)
private void nativeSetEnabled(long cptr,
int enable)
private int nativeSetVideoEncoderConfig(long cptr,
VideoEncoderConfig config)
private int nativeEnableSimulcastStream(long cptr,
int enabled,
SimulcastStreamConfig config)
private int nativeGetState(long cptr)
private LocalVideoTrackStats nativeGetStatistics(long cptr)
private void nativeDestroyStatistics(long cptr,
LocalVideoTrackStats stats)