IWMDRMContentAuthor Object

Windows Media Encoder SDK banner art

The IWMDRMContentAuthor object allows you to work with digital rights management (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.

Use the IWMDRMAttributes object to work with the attributes from the current DRM profile if you retrieve the interface from IWMDRMProfile, or from the current DRM session if you retrieve the interface from IWMDRMContentAuthor. Use the IWMDRMProfile object to specify and retrieve properties for the current DRM profile.

The IWMDRMContentAuthor object exposes the following properties and methods.

Property Description
Attributes Retrieves an IWMDRMAttributes object so you can work with user-defined DRM attributes for the current DRM session.
ContentID Specifies and retrieves the value for the content ID, which is used to identify the content being protected.
DRMProfileCollection Retrieves a collection of DRM profiles.
Method Description
CreateDRMProfile Creates a DRM profile, which contains the settings needed to protect content.
ExportDRMProfile Exports a DRM profile to a hidden password-protected file.
GenerateContentID Generates a content ID, which is included in the content header to identify the content.
GenerateKeyID Generates a key ID, which is one of the values required to protect content.
GetDRMProfile Retrieves an IWMDRMProfile object for a specified profile ID.
GetSessionDRMProfile Retrieves the key ID of the DRM profile specified in the current encoding session.
ImportDRMProfile Imports a DRM profile from a specified file.
RemoveDRMProfile Removes a DRM profile from the local computer.
SetSessionDRMProfile Specifies which DRM profile to use for the current encoding session.

See Also