Agora Java API Reference for Android
|
Static Public Member Functions | |
static int | getValue (AbrFallbackLayer type) |
static AbrFallbackLayer | fromInt (int v) |
Public Attributes | |
DISABLED =(0) | |
LOW =(1) | |
AUDIO_ONLY =(2) | |
LAYER1 =(3) | |
LAYER2 =(4) | |
LAYER3 =(5) | |
LAYER4 =(6) | |
LAYER5 =(7) | |
LAYER6 =(8) | |
ABR fallback layer. This enumeration can be used to set the value of the abr_fallback_layer query parameter in the rte URL. It can also be used in the PlayerConfig.setAbrFallbackLayer setting interface.
io.agora.rte.Constants.AbrFallbackLayer.DISABLED =(0) |
0: When the network quality is poor, it will not revert to a lower resolution stream. It may still revert to scalable video coding but will maintain the high-quality video resolution.
io.agora.rte.Constants.AbrFallbackLayer.LOW =(1) |
1: (Default) In a poor network environment, the receiver's SDK will receive the AbrSubscriptionLayer.LOW layer video stream.
io.agora.rte.Constants.AbrFallbackLayer.AUDIO_ONLY =(2) |
2: In a poor network environment, the SDK may first receive the AbrSubscriptionLayer.LOW layer, and if the relevant layer exists, it will revert to AbrSubscriptionLayer.LAYER1 to AbrSubscriptionLayer.LAYER6. If the network environment is too poor to play video, the SDK will only receive audio.
io.agora.rte.Constants.AbrFallbackLayer.LAYER1 =(3) |
3~8: If the receiving end sets the fallback option, the SDK will receive one of the layers from kRteAbrSubscriptionLayer1 to kRteAbrSubscriptionLayer6. The lower boundary of the fallback video stream is determined by the configured fallback option.