PlayReadyITADataGenerator.GenerateData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
- GUID – the content protection system GUID.
- DWORD – the stream count.
- DWORD – next stream ID.
- DWORD – next stream’s binary data size.
- BYTE* - next stream’s binary data.
- 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.