Share via


PlayReadyHeader Class

Definition

Represents a PlayReady header. A PlayReady Header is typically inserted into a PlayReady media file during the process of encryption.

public class PlayReadyHeader : Microsoft.Media.Drm.PlayReadyRecord
type PlayReadyHeader = class
    inherit PlayReadyRecord
Public Class PlayReadyHeader
Inherits PlayReadyRecord
Inheritance
PlayReadyHeader

Remarks

When requesting a license, the client extracts this header and includes it as part of the challenge. The service may use the data present in this header to issue appropriate license(s), but the service is also welcome to ignore the header.

Constructors

PlayReadyHeader()
Obsolete.

Obsolete. Use PlayReadyHeader(PlayReadyHeaderType) instead. Initializes a new instance of the PlayReadyHeader class with Regular.

PlayReadyHeader(PlayReadyHeaderType)

Initializes a new instance of the PlayReadyHeader class.

PlayReadyHeader(String)

Initializes a new instance of the PlayReadyHeader class.

Properties

AttributeCount

Gets the number of attributes added to the header.

ContentEncryptionKey
Obsolete.

Obsolete. Refer to EncryptionKeyInfos and AddEncryptionKeyInfo(IEncryptionKeyInfo).

DecryptorSetting

Gets or sets the DecryptorSetup of the header.

EncryptionKeyInfos

Gets a read-only list of the IEncryptionKeyInfo included in this PlayReadyHeader.

EncryptionType
Obsolete.

Obsolete. Refer to EncryptionKeyInfos and EncryptionType.

HeaderType

Gets the type of the header.

KeyId
Obsolete.

Obsolete. Refer to EncryptionKeyInfos and KeyId.

KeyIdAsString
Obsolete.

Obsolete. Refer to EncryptionKeyInfos and KeyIdAsString.

LicenseAcquisitionUrl

Gets or sets the Uri for the license acquisition web service.

LicenseRequested

Gets whether the PlayReady header indicates that a license was requested.

LicenseUserInterfaceUrl

Gets or sets the Uri for Non-silent license acquisition web page.

ServiceId

Gets or sets the service identifier for the domain service.

SupportsPerStreamKeys

Gets whether or not the header supports per-stream keys.

Version

Gets the version of the header, e.g. "4.2.0.0".

Methods

AddAttribute(PlayReadyHeaderAttribute)

Adds an attribute containing a name value pair to the header.

AddEncryptionKeyInfo(IEncryptionKeyInfo)

Adds an IEncryptionKeyInfo to the header.

ClearEncryptionKeyInfos()

Removes all IEncryptionKeyInfo from the PlayReadyHeader object to support reheadering scenarios.

FromString(String)

Parses the XML string representation of a header into a PlayReadyHeader.

FromXmlNode(IXPathNavigable)

Constructs a PlayReadyHeader from its IXPathNavigable representation.

GetAttribute(Int32)

Gets the attribute at the specified index.

GetAttribute(String)

Gets the attribute with the specified name.

RemoveAttribute(PlayReadyHeaderAttribute)

Removes an attribute from the PlayReady header.

ToString()

Converts this header to its XML string representation.

Applies to