Share via


PlayReadyITADataGenerator.GenerateData 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:
 virtual Platform::Array <byte> ^ GenerateData(Platform::Guid guidCPSystemId, unsigned int countOfStreams, IPropertySet ^ configuration, PlayReadyITADataFormat format) = GenerateData;
winrt::array_view <byte> GenerateData(winrt::guid const& guidCPSystemId, uint32_t const& countOfStreams, IPropertySet const& configuration, PlayReadyITADataFormat const& format);
public byte[] GenerateData(Guid guidCPSystemId, uint countOfStreams, IPropertySet configuration, PlayReadyITADataFormat format);
function generateData(guidCPSystemId, countOfStreams, configuration, format)
Public Function GenerateData (guidCPSystemId As Guid, countOfStreams As UInteger, configuration As IPropertySet, format As PlayReadyITADataFormat) As Byte()

Parameters

guidCPSystemId
Guid

Platform::Guid

winrt::guid

The content protection system GUID.

countOfStreams
UInt32

unsigned int

uint32_t

The stream count.

configuration
IPropertySet

The data to be returned as a serialized blob.

format
PlayReadyITADataFormat

The format for the ITA serialized data.

Returns

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.

Applies to