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 |
|---|---|
(package private) void |
destroy()
Destroys the local video track.
|
(package private) void |
destroyStatistics(LocalVideoTrackStats stats)
Destroys the provided LocalVideoTrackStats object.
|
(package private) int |
enableSimulcastStream(int enabled,
SimulcastStreamConfig config)
Enables or disables the simulcast stream.
|
(package private) long |
getNativeHandle()
Gets the native handle of the local video track.
|
(package private) int |
getState()
Gets the current state of the local video track.
|
(package private) 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) |
(package private) void |
setEnabled(int enable)
Enables or disables the local video track.
|
(package private) int |
setVideoEncoderConfig(VideoEncoderConfig config)
Sets the video encoder configuration.
|
AgoraLocalVideoTrack(long cptr)
cptr - Pointer to the native video track object.long getNativeHandle()
void destroy()
void setEnabled(int enable)
enable - 1 to enable, 0 to disable.int setVideoEncoderConfig(VideoEncoderConfig config)
config - The video encoder configuration to set.int enableSimulcastStream(int enabled,
SimulcastStreamConfig config)
enabled - 1 to enable, 0 to disable.config - The simulcast stream configuration.int getState()
LocalVideoTrackStats getStatistics()
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)