Partager via


CocktailContentKey Constructors

Definition

Overloads

CocktailContentKey(Byte[], String)

Initializes a new instance of the CocktailContentKey class. The content key is specified by the caller.

CocktailContentKey(String, String)

Initializes a new instance of the CocktailContentKey class. The content key is auto-generated by the SDK using a key seed.

CocktailContentKey(Byte[], String)

Initializes a new instance of the CocktailContentKey class. The content key is specified by the caller.

public CocktailContentKey (byte[] keyBytes, string keyId);
new Microsoft.Media.Drm.CocktailContentKey : byte[] * string -> Microsoft.Media.Drm.CocktailContentKey
Public Sub New (keyBytes As Byte(), keyId As String)

Parameters

keyBytes
Byte[]

The content key itself.

keyId
String

The key identifier for this content key.

Exceptions

Thrown if keyId is null.

Thrown if keyBytes is not exactly 7 bytes in size.

Applies to

CocktailContentKey(String, String)

Initializes a new instance of the CocktailContentKey class. The content key is auto-generated by the SDK using a key seed.

public CocktailContentKey (string keyId, string keySeed);
new Microsoft.Media.Drm.CocktailContentKey : string * string -> Microsoft.Media.Drm.CocktailContentKey
Public Sub New (keyId As String, keySeed As String)

Parameters

keyId
String

The key identifier for this content key.

keySeed
String

The key seed value used to generate the content key.

Exceptions

Thrown if keySeed is null.

Applies to