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