Updated on 2023-03-23 GMT+08:00

Setting the Network Mode

setNetworkModeWithNetworkInfo:

API Description

This API is used to set the network mode to enterprise intranet access if the media nodes of Huawei Cloud Meeting are deployed in an enterprise and management nodes are accessed through the proxy of the enterprise.

This API needs to be called only when the app cannot directly access the public network (that is, when the media nodes and management nodes are deployed in the enterprise).

Precautions

  1. This API is optional. If it is not called, the default mode is used.
  2. This API is an asynchronous API. The return value only indicates whether the API is successfully called. The actual service processing result is returned in the corresponding callback function.

Method Definition

1
- (HWMSDKERR)setNetworkModeWithNetworkInfo:(HWMSDKNetWorkModeInfoModel *)networkInfo;

Parameter Description

Table 1 HWMSDKNetWorkModeInfoModel description

Parameter

Mandatory

Type

Description

accessType

Yes

HWMNetworkAccessType

Network type.

Table 2 Enumerated values of HWMNetworkAccessType

Value

Description

HWMSDKAccessTypeAuto

Default value.

HWMSDKAccessTypeInner

Intranet access.

HWMSDKAccessTypeOuter

Extranet access.

Return Values

None

Sample Code

1
2
3
HWMSDKNetWorkModeInfoModel *networkInfo = [[HWMSDKNetWorkModeInfoModel alloc] init];
networkInfo.accessType = HWMSDKAccessTypeAuto;
HWMSDKERR ret = [[HWMSDKNetworkService shareInstance] setNetworkModeWithNetworkInfo:networkInfo];