convertEnumValue static method

AlivcLivePlayerError convertEnumValue(
  1. int interfaceValue
)

原生接口返回值转为对应枚举值

interfaceValue 原生接口返回值

returns 枚举值

Implementation

static AlivcLivePlayerError convertEnumValue(int interfaceValue) {
  switch (interfaceValue) {
    case 1:
      return AlivcLivePlayerError.streamNotFound;
    case 2:
      return AlivcLivePlayerError.streamStopped;
  }
  return AlivcLivePlayerError.streamNotFound;
}