Updated on 2022-07-11 GMT+08:00

Setting the Network Mode

setNetworkModeWithAccessType

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 supports only macOS 10.13 and later versions.

Method Definition

/// Set the network mode.
+ (void)setNetworkModeWithAccessType:(HWMAccessType)accessType API_AVAILABLE(macos(10.13));

Parameter Description

Table 1 Parameter description

Parameter

Mandatory

Type

Description

accessType

Yes

HWMAccessType

Network access type.

Table 2 Enumerated values of HWMAccessType

Enumerated Value

Description

HWMAccessTypeAuto

Default value.

HWMAccessTypeInner

Intranet access, which is used when the media and signaling nodes are deployed in the enterprise. The app uses the intranet for access. Signaling and media messages access the Huawei Cloud Meeting server through the proxy server.

HWMAccessTypeOuter

External network access, which is used when the media and signaling nodes are not deployed in the enterprise. The app uses the Internet for access. Signaling and media messages access the Huawei Cloud Meeting server through the proxy server.

Sample Code

/**
* Set the network mode.
*/
[HWMSdk setNetworkModeWithAccessType:HWMAccessTypeInner];