WMEncoder.EncoderDRMContentAuthor

Windows Media Encoder SDK banner art

The EncoderDRMContentAuthor property retrieves an IWMDRMContentAuthor object that can be used to protect content using digital rights management (DRM).

Syntax

IWMDRMContentAuthor = WMEncoder.EncoderDRMContentAuthor;

Parameters

This property takes no parameters.

Property Value

An IWMDRMContentAuthor object.

Remarks

This property is read-only.

The IWMDRMContentAuthor interface allows you to work with DRM profiles, which contain the settings that you need to protect a stream or file. You can create, import, export, and remove DRM profiles, and specify the DRM profile to use for the current encoding session.

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;

}
catch (Exception e)
{
     // TODO: Handle exceptions.
}

Requirements

Reference: Windows Media Encoder

Namespace: WMEncoderLib

Assembly: Interop.WMEncoderLib.dll

Library: WMEncoderLib.dll

See Also