public class TcrSessionConfig
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TcrSessionConfig.Builder |
static class |
TcrSessionConfig.VideoCodecType
Enumeration of supported video codec types.
|
Modifier and Type | Field and Description |
---|---|
boolean |
enableCustomAudioCapture
Indicates whether custom audio capture is enabled (true) or disabled (false).
|
boolean |
enableLowLegacyRendering
Turn on low-latency rendering.
Rendering delay will be reduced when turned on. When the network condition is good, the delay is significantly reduced after opening. |
long |
idleThreshold
The idle detection threshold, that is, the duration of user inactivity.
|
int |
inputSampleRate
The sample rate (in Hz) of the input audio, e.g., 44100 or 48000.
|
int |
lowFpsThresholdCount
The frame rate threshold.
|
int |
lowFpsThresholdDuration
The frame rate duration threshold.
|
TcrSession.Observer |
observer
The observer of TcrSession
|
java.util.ArrayList<TcrSessionConfig.VideoCodecType> |
preferredCodecList
The preferred codec list.
|
java.lang.String |
remoteDesktopResolution
The resolution of Cloud Desktop.
|
boolean |
useStereoInput
Indicates whether stereo input (true) or mono input (false) is used.
|
VideoFrameBufferCallback |
videoFrameBufferCallback
The callback of video frame buffer
|
Modifier and Type | Method and Description |
---|---|
static TcrSessionConfig.Builder |
builder()
return the builder for TcrSessionConfig
|
java.lang.String |
toString() |
public final long idleThreshold
TcrSession.Event.CLIENT_IDLE
will be triggered.public final int lowFpsThresholdCount
fps
and the duration exceeds duration
second, the
event TcrSession.Event.CLIENT_LOW_FPS
will be triggered.public final int lowFpsThresholdDuration
fps
and the duration exceeds duration
second, the
event TcrSession.Event.CLIENT_LOW_FPS
will be triggered.public final java.util.ArrayList<TcrSessionConfig.VideoCodecType> preferredCodecList
Indicate preferred codecs, where the order of the elements in the list represents priority, such as index 0 being the highest priority preferred codec. If the set codecs cannot be selected for various reasons, other available codecs will be chosen.
public final boolean enableCustomAudioCapture
TcrSessionConfig.Builder.enableCustomAudioCapture(boolean, int, boolean)
TcrSession.sendCustomAudioData(ByteBuffer, long)
public final int inputSampleRate
TcrSessionConfig.Builder.enableCustomAudioCapture(boolean, int, boolean)
TcrSession.sendCustomAudioData(ByteBuffer, long)
public final boolean useStereoInput
TcrSessionConfig.Builder.enableCustomAudioCapture(boolean, int, boolean)
TcrSession.sendCustomAudioData(ByteBuffer, long)
public final TcrSession.Observer observer
public final VideoFrameBufferCallback videoFrameBufferCallback
public final boolean enableLowLegacyRendering
public final java.lang.String remoteDesktopResolution
remoteDesktopResolution
public java.lang.String toString()
toString
in class java.lang.Object
public static TcrSessionConfig.Builder builder()