PlayReadyITADataGenerator
PlayReadyITADataGenerator
PlayReadyITADataGenerator
PlayReadyITADataGenerator
Class
Definition
Creates the PlayReady ITA-specific serialized initialization data.
public : sealed class PlayReadyITADataGenerator : IPlayReadyITADataGeneratorpublic sealed class PlayReadyITADataGenerator : IPlayReadyITADataGeneratorPublic NotInheritable Class PlayReadyITADataGenerator Implements IPlayReadyITADataGenerator// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Constructors
PlayReadyITADataGenerator() PlayReadyITADataGenerator() PlayReadyITADataGenerator() PlayReadyITADataGenerator()
Initializes a new instance of the PlayReadyITADataGenerator class.
public : PlayReadyITADataGenerator()public PlayReadyITADataGenerator()Public Sub New()// You can use this method in JavaScript.
Methods
GenerateData(Guid, UInt32, IPropertySet, PlayReadyITADataFormat) GenerateData(Guid, UInt32, IPropertySet, PlayReadyITADataFormat) GenerateData(Guid, UInt32, IPropertySet, PlayReadyITADataFormat) GenerateData(Guid, UInt32, IPropertySet, PlayReadyITADataFormat)
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)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[]// You can use this method in JavaScript.
Parameters
- guidCPSystemId
- PlatForm::Guid Guid Guid Guid
The content protection system GUID.
- countOfStreams
- unsigned int UInt32 UInt32 UInt32
The stream count.
- configuration
- IPropertySet IPropertySet IPropertySet IPropertySet
The data to be returned as a serialized blob.
The format for the ITA serialized data.
Returns
byte[]
byte[]
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.