code_to_ios static method

Implementation

static $p_i.ByteRTCMixedStreamTaskErrorCode code_to_ios(
    MixedStreamTaskErrorCode value) {
  var $m = {
    MixedStreamTaskErrorCode.ok: $p_i
        .ByteRTCMixedStreamTaskErrorCode.ByteRTCMixedStreamTaskErrorCodeOK,
    MixedStreamTaskErrorCode.base: $p_i
        .ByteRTCMixedStreamTaskErrorCode.ByteRTCMixedStreamTaskErrorCodeBase,
    MixedStreamTaskErrorCode.timeout: $p_i.ByteRTCMixedStreamTaskErrorCode
        .ByteRTCMixedStreamTaskErrorCodeTimeOut,
    MixedStreamTaskErrorCode.invalid_param_by_server: $p_i
        .ByteRTCMixedStreamTaskErrorCode
        .ByteRTCMixedStreamTaskErrorCodeInvalidParamByServer,
    MixedStreamTaskErrorCode.sub_timeout_by_server: $p_i
        .ByteRTCMixedStreamTaskErrorCode
        .ByteRTCMixedStreamTaskErrorCodeSubTimeoutByServer,
    MixedStreamTaskErrorCode.invalid_state_by_server: $p_i
        .ByteRTCMixedStreamTaskErrorCode
        .ByteRTCMixedStreamTaskErrorCodeInvalidStateByServer,
    MixedStreamTaskErrorCode.authentication_by_cdn: $p_i
        .ByteRTCMixedStreamTaskErrorCode
        .ByteRTCMixedStreamTaskErrorCodeAuthenticationByCDN,
    MixedStreamTaskErrorCode.unknown_by_server: $p_i
        .ByteRTCMixedStreamTaskErrorCode
        .ByteRTCMixedStreamTaskErrorCodeUnKnownErrorByServer,
    MixedStreamTaskErrorCode.signal_request_timeout: $p_i
        .ByteRTCMixedStreamTaskErrorCode
        .ByteRTCMixedStreamTaskErrorCodeSignalRequestTimeout,
    MixedStreamTaskErrorCode.mix_image_fail: $p_i
        .ByteRTCMixedStreamTaskErrorCode
        .ByteRTCMixedStreamTaskErrorCodeMixImageFailed,
    MixedStreamTaskErrorCode.stream_sync_worse: $p_i
        .ByteRTCMixedStreamTaskErrorCode
        .ByteRTCMixedStreamTaskErrorCodeStreamSyncWorse,
    MixedStreamTaskErrorCode.push_wtn_failed: $p_i
        .ByteRTCMixedStreamTaskErrorCode
        .ByteRTCMixedStreamTaskErrorCodePushWTNFailed,
    MixedStreamTaskErrorCode.max: $p_i
        .ByteRTCMixedStreamTaskErrorCode.ByteRTCMixedStreamTaskErrorCodeMax,
  };
  if (!($m.containsKey(value))) {
    throw Exception("ios not support:" + value.toString());
  }
  // @ts-ignore
  return $m[value] as $p_i.ByteRTCMixedStreamTaskErrorCode;
}