For providing better and more standardized services, starting from 2021-11-16, ZEGO no longer classifies environments into production environments and testing environments.
If you create your project in ZEGO Admin Console on/before 2021-11-16, refer to this document to upgrade the SDK and adjust related codes.
The following table helps you to quickly locate the specific instructions based on the product and platform:
Item | Product | Platform/Framework |
---|---|---|
Cloud Communications Products |
||
Supporting Services |
||
- |
||
Server API |
- |
Products/platforms/frameworks not included in this table are not currently involved in the testing environment deprecation.
To adjust your codes, refer to the Sample code of the corresponding product.
The platform/framework-specific instructions are as follows:
Integrate the latest version of SDK. For details, refer to the Real-Time Audio and Video - SDK downloads.
When initializing the SDK, you can directly call the createEngineWithProfile
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile *profile = [ZegoEngineProfile new];
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenarioGeneral;
[ZegoExpressEngine createEngineWithProfile:profile eventHandler:self];
Integrate the latest version of SDK. For details, refer to the Real-Time Audio and Video - SDK downloads.
When initializing the SDK, you can directly call the createEngine
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile profile = new ZegoEngineProfile();
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenario.GENERAL;
profile.application = getApplication();
ZegoExpressEngine.createEngine(profile, null);
If you are using Objective-C:
Integrate the latest version of SDK. For details, refer to the Real-Time Audio and Video - SDK downloads.
When initializing the SDK, you can directly call the createEngineWithProfile
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile *profile = [ZegoEngineProfile new];
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenarioGeneral;
[ZegoExpressEngine createEngineWithProfile:profile eventHandler:self];
If you are using C++:
Integrate the latest version of SDK. For details, refer to the Real-Time Audio and Video - SDK downloads.
When initializing the SDK, you can directly call the createEngine
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile profile;
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenario::ZEGO_SCENARIO_GENERAL;
ZegoExpressSDK::createEngine(profile, nullptr);
Integrate the latest version of SDK. For details, refer to the Real-Time Audio and Video - SDK downloads.
When initializing the SDK, you can directly call the createEngine
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile profile;
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenario::ZEGO_SCENARIO_GENERAL;
ZegoExpressSDK::createEngine(profile, nullptr);
If you create your project in ZEGO Admin Console on/before 2021-11-16:
If you create your project in ZEGO Admin Console after 2021-11-16: The Web platform features are not enabled by default. To use these features, contact ZEGO Technical Support to activate them first.
Integrate the latest version of SDK. For details, refer to the Real-Time Audio and Video - SDK downloads.
When initializing the SDK, you can directly call the createEngineWithProfile
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile profile = ZegoEngineProfile(
appID,
appSign,
ZegoScenario.General,
true);
ZegoExpressEngine.createEngineWithProfile(profile);
Integrate the latest version of SDK. For details, refer to the Real-Time Audio and Video - SDK downloads.
When initializing the SDK, you can directly call the initWithProfile
method. The sample code is shown below:
const profile = {
appID : xxx,
appSign : "xxx",
scenario : zgDefines.ZegoScenario.General
};
zgEngine.initWithProfile(profile)
.then(() => {
console.log("init succeed")
}).catch((e) => {
console.log("init failed", e)
});
Integrate the latest version of SDK. For details, refer to the Real-Time Audio and Video - SDK downloads.
When initializing the SDK, you can directly call the CreateEngine
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile profile = new ZegoEngineProfile();
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenario.General;
ZegoExpressEngine.CreateEngine(profile);
Integrate the latest version of SDK. For details, refer to the Real-Time Audio and Video - SDK downloads.
When initializing the SDK, you can directly call the createEngineWithProfile method. The sample code is shown below:
const profile = {
appID : xxx,
appSign : "xxx",
scenario : 0
};
ZegoExpressEngine.createEngineWithProfile(profile)
The platform/framework-specific instructions are as follows:
Integrate the latest version of SDK. For details, refer to the Real-Time Audio - SDK downloads.
When initializing the SDK, you can directly call the createEngineWithProfile
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile *profile = [ZegoEngineProfile new];
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenarioGeneral;
[ZegoExpressEngine createEngineWithProfile:profile eventHandler:self];
Integrate the latest version of SDK. For details, refer to the Real-Time Audio - SDK downloads.
When initializing the SDK, you can directly call the createEngine
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile profile = new ZegoEngineProfile();
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenario.GENERAL;
profile.application = getApplication();
ZegoExpressEngine.createEngine(profile, null);
Integrate the latest version of SDK. For details, refer to the Real-Time Audio - SDK downloads.
When initializing the SDK, you can directly call the createEngineWithProfile
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile *profile = [ZegoEngineProfile new];
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenarioGeneral;
[ZegoExpressEngine createEngineWithProfile:profile eventHandler:self];
Integrate the latest version of SDK. For details, refer to the Real-Time Audio - SDK downloads.
When initializing the SDK, you can directly call the createEngine
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile profile;
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenario::ZEGO_SCENARIO_GENERAL;
ZegoExpressSDK::createEngine(profile, nullptr);
If you create your project in ZEGO Admin Console on/before 2021-11-16:
If you create your project in ZEGO Admin Console after 2021-11-16: The Web platform features are not enabled by default. To use these features, contact ZEGO Technical Support to activate them first.
Integrate the latest version of SDK. For details, refer to the Real-Time Audio - SDK downloads.
When initializing the SDK, you can directly call the createEngineWithProfile
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile profile = ZegoEngineProfile(
appID,
appSign,
ZegoScenario.General,
true);
ZegoExpressEngine.createEngineWithProfile(profile);
Integrate the latest version of SDK. For details, refer to the Real-Time Audio - SDK downloads.
When initializing the SDK, you can directly call the initWithProfile
method. The sample code is shown below:
const profile = {
appID : xxx,
appSign : "xxx",
scenario : zgDefines.ZegoScenario.General
};
zgEngine.initWithProfile(profile)
.then(() => {
console.log("init succeed")
}).catch((e) => {
console.log("init failed", e)
});
Integrate the latest version of SDK. For details, refer to the Real-Time Audio - SDK downloads.
When initializing the SDK, you can directly call the CreateEngine
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile profile = new ZegoEngineProfile();
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenario.General;
ZegoExpressEngine.CreateEngine(profile);
Integrate the latest version of SDK. For details, refer to the Real-Time Audio - SDK downloads.
When initializing the SDK, you can directly call the createEngineWithProfile method. The sample code is shown below:
const profile = {
appID : xxx,
appSign : "xxx",
scenario : 0
};
ZegoExpressEngine.createEngineWithProfile(profile)
The platform/framework-specific instructions are as follows:
Integrate the latest version of SDK. For details, refer to the Low-Latency Live Streaming - SDK downloads.
When initializing the SDK, you can directly call the createEngineWithProfile
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile *profile = [ZegoEngineProfile new];
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenarioGeneral;
[ZegoExpressEngine createEngineWithProfile:profile eventHandler:self];
Integrate the latest version of SDK. For details, refer to the Low-Latency Live Streaming - SDK downloads.
When initializing the SDK, you can directly call the createEngine
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile profile = new ZegoEngineProfile();
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenario.GENERAL;
profile.application = getApplication();
ZegoExpressEngine.createEngine(profile, null);
Integrate the latest version of SDK. For details, refer to the Low-Latency Live Streaming - SDK downloads.
When initializing the SDK, you can directly call the createEngineWithProfile
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile *profile = [ZegoEngineProfile new];
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenarioGeneral;
[ZegoExpressEngine createEngineWithProfile:profile eventHandler:self];
Integrate the latest version of SDK. For details, refer to the Low-Latency Live Streaming - SDK downloads.
When initializing the SDK, you can directly call the createEngine
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile profile;
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenario::ZEGO_SCENARIO_GENERAL;
ZegoExpressSDK::createEngine(profile, nullptr);
If you create your project in ZEGO Admin Console on/before 2021-11-16:
If you create your project in ZEGO Admin Console after 2021-11-16: The Web platform features are not enabled by default. To use these features, contact ZEGO Technical Support to activate them first.
The platform/framework-specific instructions are as follows:
Integrate the latest version of SDK. For details, refer to the Collaborative Whiteboard - SDK downloads.
When initializing the SDK, you can directly call the createEngineWithProfile
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile *profile = [ZegoEngineProfile new];
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenarioGeneral;
[ZegoExpressEngine createEngineWithProfile:profile eventHandler:self];
Integrate the latest version of SDK. For details, refer to the Collaborative Whiteboard - SDK downloads.
When initializing the SDK, you can directly call the createEngine
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile profile = new ZegoEngineProfile();
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenario.GENERAL;
profile.application = getApplication();
ZegoExpressEngine.createEngine(profile, null);
Integrate the latest version of SDK. For details, refer to the Collaborative Whiteboard - SDK downloads.
When initializing the SDK, you can directly call the createEngineWithProfile
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile *profile = [ZegoEngineProfile new];
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenarioGeneral;
[ZegoExpressEngine createEngineWithProfile:profile eventHandler:self];
Integrate the latest version of SDK. For details, refer to the Collaborative Whiteboard - SDK downloads.
When initializing the SDK, you can directly call the createEngine
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoEngineProfile profile;
profile.appID = appID;
profile.appSign = appSign;
profile.scenario = ZegoScenario::ZEGO_SCENARIO_GENERAL;
ZegoExpressSDK::createEngine(profile, nullptr);
If you create your project in ZEGO Admin Console on/before 2021-11-16:
If you create your project in ZEGO Admin Console after 2021-11-16: The Web platform features are not enabled by default. To use these features, contact ZEGO Technical Support to activate them first.
Integrate the latest version of SDK. For details, refer to the Collaborative Whiteboard - SDK downloads.
When initializing the SDK, you can directly call the initWithProfile
method. The sample code is shown below:
zegoExpressEngine.initWithProfile({ appID: zegoauth.appID, appSign: zegoauth.appSign, scenario: 0 });
If you create your project in ZEGO Admin Console on/before 2021-11-16:
If you create your project in ZEGO Admin Console after 2021-11-16: The product features are not enabled by default. To use these features, contact ZEGO Technical Support to activate them first.
The platform/framework-specific instructions are as follows:
Integrate the latest version of SDK. For details, refer to the File Sharing - SDK downloads.
When initializing the SDK, you can directly call the initWithConfig
method and no longer need to set the isTestEnv
property. The sample code is shown below:
ZegoDocsViewConfig *config = [ZegoDocsViewConfig new];
config.appSign = appSign;
config.appID = appID;
config.dataFolder = [[NSHomeDirectory() stringByAppendingPathComponent:@"Documents/ZegoDocs"] stringByAppendingString:@"data"];
config.cacheFolder = [[NSHomeDirectory() stringByAppendingPathComponent:@"Documents/ZegoDocs"] stringByAppendingString:@"doc"];
config.logFolder = [[NSHomeDirectory() stringByAppendingPathComponent:@"Documents/ZegoDocs"] stringByAppendingString:@"log"];
[[ZegoDocsViewManager sharedInstance] initWithConfig:config completionBlock:^(ZegoDocsViewError errorCode) {
if (errorCode == ZegoDocsViewSuccess) {
NSLog(@"SDK initialized successfully.");
} else {
NSLog(@"Failed to initialize the SDK. %ld",errorCode);
}
}];
Integrate the latest version of SDK. For details, refer to the File Sharing - SDK downloads.
When initializing the SDK, you can directly call the init
method and no longer need to set the setTestEnv
property. The sample code is shown below:
ZegoDocsViewConfig config = new ZegoDocsViewConfig();
config.setAppID(appID);
config.setAppSign(appSign);
ZegoDocsViewManager.getInstance().init(application,config, new IZegoDocsViewInitListener() {
@Override
public void onInit(int errorCode) {
if (errorCode == 0) {
/** Initialization successful.*/
} else {
/** Initialization failed. */
}
}
});
Integrate the latest version of SDK. For details, refer to the File Sharing - SDK downloads.
When initializing the SDK, you will no longer need to set the isTestEnv
property. The sample code is shown below:
const zegoExpressDocs = new window.ZegoExpressDocs({appID, token, userID});
Integrate the latest version of SDK. For details, refer to the File Sharing - SDK downloads.
When initializing the SDK, you will no longer need to set the isTestEnv
property. The sample code is shown below:
const zegoExpressDocs = new ZegoExpressDocs({
appID,
appSign,
dataFolder,
cacheFolder,
logFolder
});
The method SetUseTestEnv
will be deprecated soon. We recommend you delete the codes related to this method.
To classify the testing environments and production environments, you can also refer to the FAQ - How to isolate the data of different projects? in the following session.
By default, the public request parameter isTest
for all APIs is set to false
, indicating the production environments.
You can create two different projects in ZEGO Admin Console, one for testing environment and one for production environment.
To make it easier for you to distinguish your projects, ZEGO Admin Console also provides the "stage of project" tags, such as "testing", "online", etc. You can tag your projects accordingly.