Skip to main content

licenses

// Create mte encoder or decoder
MteEnc mteEncoder = new MteEnc();

// Initialize the MTE license
if (!mteEncoder.InitLicense(appSettings.LicenseCompanyName, appSettings.LicenseKey)) {

// MTE cannot continue so this should be dealt with appropriately
// Set encoder status to a license error
_encoderStatus = MteStatus.mte_status_license_error;

// License error, Mte cannot continue handle appropriately
// Below is an example
Log.LogError ("MTE license appears to be invalid. MTE cannot be initalized ({0}): {1}. Press any key to end.",
mteEncoder.GetStatusName(_encoderStatus),
mteEncoder.GetStatusDescription(_encoderStatus));
return;
}