文档

支持

Vivox Unreal SDK

Vivox Unreal SDK

Update sample app environment and API values

How to update environment and API values in the sample application.
阅读时间1 分钟最后更新于 18 小时前

Before you run the Unreal Shooter Game sample app in the Unreal Editor or you build an app from the sample source code, you must update several environment and API values in VivoxGameInstance.cpp and VivoxToken.cpp. By updating these values, you can package and test Unreal Shooter Game (Source) in the Unreal editor. Find the API endpoint (server), Domain, Issuer, and Secret Key values for your app, in the Unity Cloud Dashboard. Use the values from the VIVOX API INFO section to replace the following default values in VivoxGameInstance.cpp and VivoxToken.cpp.
  1. In VivoxGameInstance.cpp, update the following values:
    • Set VIVOX_VOICE_SERVER to the API Endpoint value.
    • Set VIVOX_VOICE_DOMAIN to the Domain value.
    • Set VIVOX_VOICE_ISSUER to the Issuer value.
  2. In VivoxToken.cpp, set VIVOX_VOICE_KEY to the Secret Key value.