convertEnumValue static method
原生接口返回值转为对应枚举值
interfaceValue
原生接口返回值
returns
枚举值
Implementation
static AlivcLivePushFPS convertEnumValue(int interfaceValue) {
switch (interfaceValue) {
case 8:
return AlivcLivePushFPS.fps_8;
case 10:
return AlivcLivePushFPS.fps_10;
case 12:
return AlivcLivePushFPS.fps_12;
case 15:
return AlivcLivePushFPS.fps_15;
case 20:
return AlivcLivePushFPS.fps_20;
case 25:
return AlivcLivePushFPS.fps_25;
case 30:
return AlivcLivePushFPS.fps_30;
}
return AlivcLivePushFPS.fps_20;
}