Help Center/ Meeting/ Client SDK Reference/ macOS SDK/ APIs/ Basic Settings/ Setting Guaranteed IP Addresses for Meeting Control
Updated on 2024-07-30 GMT+08:00

Setting Guaranteed IP Addresses for Meeting Control

setGuaranteedIpAddresses

API Description

This API is used to set the guaranteed IP addresses for meeting control.

Precautions

1. This API is optional. If it is not called, the default IP address is used.

2. Up to four IP addresses are supported. They are separated by semicolons (;).

Method Definition

1
- (HWMSDKERR)setGuaranteedIpAddresses:(NSString *)pAddresses;

Parameter Description

Table 1 Parameter description

Parameter

Mandatory

Type

Description

pAddresses

Yes

NSString *

Guaranteed IP addresses.

Return Values

Whether the API is successfully called.

Sample Code

1
2
3
4
5
6
7
8
// Set guaranteed IP addresses.
HWMSDKERR result = [[HWMBizSdk getBizOpenApi] setGuaranteedIpAddresses:self.guarantIpAddrsInputView.textField.stringValue];
NSString *tip = @"Set";
if (result != HWMSDKSdkerrSuccess) {
// Display a message if the setting fails.
   tip = [NSString stringWithFormat:@"Set failed[%ld]",result];
}
[HWMConsoleManager shareInstance].console = tip;