from static method

PlayerState from(
  1. int val
)

Returns player state which matches specified int value

Implementation

static PlayerState from(int val) {
  switch (val) {
    case SiprixVoipSdk.kPlayerStateStarted: return PlayerState.started;
    case SiprixVoipSdk.kPlayerStateStopped: return PlayerState.stoppped;
    default:  return PlayerState.failed;
  }
}