IWMDRMProfile.V1LicenseAcquisitionURL
The V1LicenseAcquisitionURL property specifies and retrieves the URL for acquiring version 1 licenses.
Syntax
string = IWMDRMProfile.V1LicenseAcquisitionURL;
IWMDRMProfile.V1LicenseAcquisitionURL = string;
Parameters
This property takes no parameters.
Property Value
A String containing the URL for acquiring version 1 licenses.
Remarks
Players that support only Windows Media Rights Manager 1 require version 1 licenses, so you need to specify a license acquisition URL where version 1 licenses are issued. If your license provider does not issue version 1 licenses, you can supply a URL that points to a page where users can upgrade to a player that supports Windows Media Rights Manager 7 or later. For example, use https://go.microsoft.com/fwlink/?LinkId=10141 for the V1LicenseAcquisitionURL property.
Example Code
using WMEncoderLib;
try
{
// Create a WMEncoder object.
WMEncoder Encoder;
Encoder = new WMEncoder();
// Create an IWMDRMContentAuthor object.
IWMDRMContentAuthor DRM;
DRM = Encoder.EncoderDRMContentAuthor;
// Retrieve the collection of DRM profiles.
IWMDRMProfileCollection DRMProColl;
DRMProColl = DRM.DRMProfileCollection;
// Create an IWMDRMProfile object and retrieve a profile.
IWMDRMProfile DRMPro;
DRMPro = DRMProColl.Item(1);
// Set the rest of the properties for the DRM profile.
DRMPro.Description = "Replace with a description of this DRM profile";
DRMPro.ProviderURL = "Replace with the license provider's URL";
DRMPro.LicenseAcquisitionURL = "Replace with v7 license acquisition URL";
DRMPro.Name = "Replace with a name for the DRM profile";
DRMPro.V1LicenseAcquisitionURL = "Replace with v1 license acquisition URL";
// Add the individualization version as an attribute.
// This attribute should be saved in the DRM profile.
IWMDRMAttributes ProAttr = DRMPro.Attributes;
ProAttr.Add("SECURITYVERSION", "2.2");
}
catch (Exception e)
{
// TODO: Handle exceptions.
}
Requirements
Reference: Windows Media Encoder
Namespace: WMEncoderLib
Assembly: Interop.WMEncoderLib.dll
Library: WMEncoderLib.dll
See Also