Agora Java API Reference for Android
|
Public Member Functions | |
int | getValue () |
Public Attributes | |
PREFER_COMPRESSION_AUTO =(-1) | |
PREFER_LOW_LATENCY =(0) | |
PREFER_QUALITY =(1) | |
Video COMPRESSION PREFERENCE.
io.agora.rtc2.video.VideoEncoderConfiguration.COMPRESSION_PREFERENCE.PREFER_COMPRESSION_AUTO =(-1) |
(Default) SDK uses compression preference according to setVideoScenario API settings, real-time network state and other relevant data information. If API setVideoScenario set video scenario to APPLICATION_SCENARIO_LIVESHOW, then PREFER_QUALITY is used. If not, then PREFER_LOW_LATENCY is used. Also if network state is changed, SDK may change this parameter between PREFER_QUALITY and PREFER_LOW_LATENCY automatically to get the best QOE. We recommend using this option.
io.agora.rtc2.video.VideoEncoderConfiguration.COMPRESSION_PREFERENCE.PREFER_LOW_LATENCY =(0) |
Prefer low latency, normally used in real-time communication
io.agora.rtc2.video.VideoEncoderConfiguration.COMPRESSION_PREFERENCE.PREFER_QUALITY =(1) |
Prefer quality in sacrifice of a degree of latency, usually around 30ms ~ 150ms, depends target fps