Setting License Info
This topic describes how you can use a DVDBuilder license file.
DVDBuilder License File
The DVDBuilder license file is sent to you via email when you purchase a license. The license file is an XML document that looks similar to this one:
<!--
This file contains PrimoSoftware license(s).
Line breaks and indentation between elements can be edited,
but any other reformatting may invalidate the license(s).
-->
<primoSoftware>
<license version='1.0'>
<token>abcd1234efghi5678</token>
<revision>2</revision>
<issueDate>2015-01-02</issueDate>
<expireDate>2017-01-03</expireDate>
<updateTime>2015-12-09 04:50:15</updateTime>
<item id='avb-win'>
<product>avb</product>
<feature id='aac-dec' />
<feature id='ac3-dec' />
<feature id='mpa-dec' />
<feature id='mpa-enc' />
<feature id='vorbis-dec' />
<feature id='wma-dec' />
<feature id='h261-dec' />
<feature id='h263-dec' />
<feature id='h264-dec' />
<feature id='mjpeg-dec' />
<feature id='mpeg2-dec' />
<feature id='mpeg2-enc' />
<feature id='mpeg4-dec' />
<feature id='vc1-dec' />
<feature id='vp8-dec' />
<feature id='wmv-dec' />
<feature id='pcm' />
</item>
<item id='dvdb-win'>
<product>dvdb</product>
</item>
<signature>very_very_long_signature_string_here</signature>
</license>
</primoSoftware>
C#
You have to pass the XML as a string to Library.SetLicense. In C#, it is possible to use a string literal, e.g. @"xml goes here"
:
using System;
using System.Diagnostics;
using PrimoSoftware.DVDBuilder;
namespace SetLicense
{
class Program
{
private const string licenseXml =
@"
<!--
This file contains PrimoSoftware license(s).
Line breaks and indentation between elements can be edited,
but any other reformatting may invalidate the license(s).
-->
<primoSoftware>
<license version='1.0'>
<token>abcd1234efghi5678</token>
<revision>2</revision>
<issueDate>2015-01-02</issueDate>
<expireDate>2017-01-03</expireDate>
<updateTime>2015-12-09 04:50:15</updateTime>
<item id='avb-win'>
<product>avb</product>
<feature id='aac-dec' />
<feature id='ac3-dec' />
<feature id='mpa-dec' />
<feature id='mpa-enc' />
<feature id='vorbis-dec' />
<feature id='wma-dec' />
<feature id='h261-dec' />
<feature id='h263-dec' />
<feature id='h264-dec' />
<feature id='mjpeg-dec' />
<feature id='mpeg2-dec' />
<feature id='mpeg2-enc' />
<feature id='mpeg4-dec' />
<feature id='vc1-dec' />
<feature id='vp8-dec' />
<feature id='wmv-dec' />
<feature id='pcm' />
</item>
<item id='dvdb-win'>
<product>dvdb</product>
</item>
<signature>very_very_long_signature_string_here</signature>
</license>
</primoSoftware>
";
static void Main(string[] args)
{
Library.Initialize();
Library.SetLicense(licenseXml);
Debug.Assert(LicenseStatusFlags.Ready == Library.LicenseStatus);
Library.Shutdown();
}
}
}
Last updated on January 8th, 2017 12:00:00 AM