提交工单
咨询集成、功能及报价等问题
Before integrating the ZegoEffects SDK, make sure your development environment meets the following requirements:
Skip this step if a project already exists.
For more details, see Electron - Quick start.
To import the SDK, you will need to download the SDK package first. To download it, run the npm command npm install zego-express-engine-electron
.
npm install
to install the SDK, you can switch it to the domestic image.Import the SDK in your project script file.
const zgEngine = window.require('zego-express-engine-electron/ZegoExpressEngine');
const zgDefines = window.require('zego-express-engine-electron/ZegoExpressDefines');
console.log(zgEngine.getVersion())
If the correct SDK version number is printed out in the console when you run the project, the SDK import is successful.