setGlobalEnv static method

Future<int?> setGlobalEnv(
  1. String envConfig
)

Setting the environment for accessing the LiteAV SDK. Tencent Cloud has deployed environments in various regions around the world, and different access points need to be accessed according to local policies and regulations.

@param envConfig The environment to be accessed. The SDK defaults to the official environment. @return 0: success; others: error @note Customers targeting the Chinese mainland market should not call this interface. If the target market is overseas users, please contact us through technical support to learn about the configuration method of env_config to ensure that the App complies with GDPR standards.

设置 liteav SDK 接入的环境。 腾讯云在全球各地区部署的环境,按照各地区政策法规要求,需要接入不同地区接入点。

@param envConfig 需要接入的环境,SDK 默认接入的环境是:默认正式环境。 @return 0:成功;其他:错误 @note 目标市场为中国大陆的客户请不要调用此接口,如果目标市场为海外用户,请通过技术支持联系我们,了解 env_config 的配置方法,以确保 App 遵守 GDPR 标准。

Implementation

static Future<int?> setGlobalEnv(String envConfig) async {
  IntMsg intMsg = await _playerPluginApi.setGlobalEnv(StringMsg()..value = envConfig);
  return intMsg.value;
}