public class AgoraLocalVideoTrack
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
cptr
Native pointer to the local video track resource.
|
| 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)
Releases the native video track handle.
|
private void |
nativeDestroyStatistics(long cptr,
LocalVideoTrackStats stats)
Releases a statistics object that was created natively.
|
private int |
nativeEnableSimulcastStream(long cptr,
int enabled,
SimulcastStreamConfig config)
Enables or disables simulcast stream natively.
|
private int |
nativeGetState(long cptr)
Retrieves the native state value of the video track.
|
private LocalVideoTrackStats |
nativeGetStatistics(long cptr)
Obtains statistics for the video track from the native layer.
|
private void |
nativeSetEnabled(long cptr,
int enable)
Enables or disables the video track at the native layer.
|
private int |
nativeSetVideoEncoderConfig(long cptr,
VideoEncoderConfig config)
Sets the video encoder configuration natively.
|
(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)
cptr - Native pointer to the video trackprivate void nativeSetEnabled(long cptr,
int enable)
cptr - Native pointer to the video trackenable - 1 to enable, 0 to disableprivate int nativeSetVideoEncoderConfig(long cptr,
VideoEncoderConfig config)
cptr - Native pointer to the video trackconfig - Video encoder configurationprivate int nativeEnableSimulcastStream(long cptr,
int enabled,
SimulcastStreamConfig config)
cptr - Native pointer to the video trackenabled - 1 to enable, 0 to disableconfig - Simulcast stream configurationprivate int nativeGetState(long cptr)
cptr - Native pointer to the video trackprivate LocalVideoTrackStats nativeGetStatistics(long cptr)
cptr - Native pointer to the video trackprivate void nativeDestroyStatistics(long cptr,
LocalVideoTrackStats stats)
cptr - Native pointer to the video trackstats - Statistics object to destroy