convertEnumValue static method

AlivcLivePushVideoFormat convertEnumValue(
  1. int interfaceValue
)

Implementation

static AlivcLivePushVideoFormat convertEnumValue(int interfaceValue) {
  int index = 0;
  if (interfaceValue >= -1 && interfaceValue <= 12) {
    index = interfaceValue + 1;
  }
  return AlivcLivePushVideoFormat.values[index];
}