PlayReadyITADataGenerator.GenerateData(Guid, UInt32, IPropertySet, PlayReadyITADataFormat) PlayReadyITADataGenerator.GenerateData(Guid, UInt32, IPropertySet, PlayReadyITADataFormat) PlayReadyITADataGenerator.GenerateData(Guid, UInt32, IPropertySet, PlayReadyITADataFormat) PlayReadyITADataGenerator.GenerateData(Guid, UInt32, IPropertySet, PlayReadyITADataFormat) PlayReadyITADataGenerator.GenerateData(Guid, UInt32, IPropertySet, PlayReadyITADataFormat) Method

Definition

Returns a serialized blob of the specified IPropertySet data that the PlayReady ITA can consume if wrapped in a content protection instantiation format.

public : byte[] GenerateData(Platform::Guid guidCPSystemId, unsigned int countOfStreams, IPropertySet configuration, PlayReadyITADataFormat format)
byte[] GenerateData(Guid guidCPSystemId, uint32_t countOfStreams, IPropertySet configuration, PlayReadyITADataFormat format) const;
public byte[] GenerateData(Guid guidCPSystemId, UInt32 countOfStreams, IPropertySet configuration, PlayReadyITADataFormat format)
Public Function GenerateData(guidCPSystemId As Guid, countOfStreams As UInt32, configuration As IPropertySet, format As PlayReadyITADataFormat) As byte[]
var byte[] = playReadyITADataGenerator.generateData(guidcpSystemId, countOfStreams, configuration, format);

Parameters

guidCPSystemId
Guid Guid Guid

The content protection system GUID.

countOfStreams
UInt32 UInt32 UInt32

The stream count.

configuration
IPropertySet IPropertySet IPropertySet

The data to be returned as a serialized blob.

format
PlayReadyITADataFormat PlayReadyITADataFormat PlayReadyITADataFormat

The format for the ITA serialized data.

Returns

byte[] byte[] byte[]

The serialized blob. See Remarks.

Remarks

The following schema describes the serialized blob that is returned from this method:

  1. GUID – the content protection system GUID.
  2. DWORD – the stream count.
  3. DWORD – next stream ID.
  4. DWORD – next stream’s binary data size.
  5. BYTE* - next stream’s binary data.
  6. Repeat steps 3, 4, and 5 for each stream.

IPropertySet may contain any of the following values but must contain at least one of them.

  • The property N, where N is replaced by the base-10 stream number being decrypted, set to the PlayReady Object corresponding to that stream.
  • The property set to a PlayReady Object that will be used for any stream number that was not set using N as described above.

For more information about the serialized blob, see PlayReadyITADataFormat.