License Verification

Basic Information

Dynamsoft Camera SDK has been using dynamsoft.dcsEnv.productKey for license verification at runtime.

  1. Every product key is unique
  2. The product key can be bound to a certain domain.
  3. Multiple product keys can be combined by semicolon.

Using the Product Key

Set productKey during initialization in the file dynamsoft.camera.config.js


///
var dynamsoft = dynamsoft || { dcsEnv: {} }; 
///
// please replace ****** with your product key
dynamsoft.dcsEnv.productKey = '5AKDNCIE2832***'; 
///
dynamsoft.dcsEnv.sessionTimeout = 1200; // Specifies the time-out period for the session, in seconds. The default value is 1200. 0 means session will not time out.
/// optional
dynamsoft.dcsEnv.resourcesPath = 'DCSResources'; // the relative path of the DCSResources folder
///

Multiple Product Keys

If you have multiple product keys, you can combine all of them and assign them to the productKey property. You will need to separate the keys by semi-colons (;). For example
dynamsoft.dcsEnv.productKey = '3A0761******;6685BA******';

Common Licensing Errors

The current product key is empty or invalid, please contact the site administrator.

licenseerror

As stated in the error message, the current product key is empty or invalid. When this happens, for the trial version, you are still able to capture images but there will be a watermark on every image. For the purchased version, without a valid key, you won’t be able to play the video stream and grab images.

The current product key has expired on [Date], please contact the site administrator.

As stated in the error message, the product key has expired. When this happens, for the trial version, you are still able to capture images but there will be a watermark on every image.

watermark

In this case, you can email our support team (support@dynamsoft.com) and ask for a trial key extension.

For the purchased version, you won’t be able to play the video stream and grab images if the key has expired. Please contact our sales team (sales@dynamsoft.com) for help.

For more information on how to resolve licensing errors, please refer to:
https://developer.dynamsoft.com/dws/error-messages-about-your-license

Is this page helpful?

Leave a Reply

Your email address will not be published.