MediaStreamSampleProtectionProperties MediaStreamSampleProtectionProperties MediaStreamSampleProtectionProperties MediaStreamSampleProtectionProperties Class

Definition

Represents a collection properties that are specific to the Digital Rights Management (DRM) protection of the MediaStreamSample.

public sealed class MediaStreamSampleProtectionPropertiespublic sealed class MediaStreamSampleProtectionPropertiesPublic NotInheritable Class MediaStreamSampleProtectionPropertiespublic sealed class MediaStreamSampleProtectionProperties
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

See the MediaStreamSource Sample for an example of using Media Stream Source in a Universal Windows app.

Methods

GetInitializationVector(Byte[]) GetInitializationVector(Byte[]) GetInitializationVector(Byte[]) GetInitializationVector(Byte[])

Gets the Digital Rights Management (DRM) initialization vector from the MediaStreamSample.

public void GetInitializationVector(Byte[] value)public void GetInitializationVector(Byte[] value)Public Function GetInitializationVector(value As Byte[]) As voidpublic void GetInitializationVector(Byte[] value)
Parameters
value
System.Byte[] System.Byte[] System.Byte[] System.Byte[]

The initialization vector.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

GetKeyIdentifier(Byte[]) GetKeyIdentifier(Byte[]) GetKeyIdentifier(Byte[]) GetKeyIdentifier(Byte[])

Gets the Digital Rights Management (DRM) key identifier from the MediaStreamSample.

public void GetKeyIdentifier(Byte[] value)public void GetKeyIdentifier(Byte[] value)Public Function GetKeyIdentifier(value As Byte[]) As voidpublic void GetKeyIdentifier(Byte[] value)
Parameters
value
System.Byte[] System.Byte[] System.Byte[] System.Byte[]

Receives the key identifier used to decrypt the data.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

This method is used with encrypted MediaStreamSample objects that belonging to a protection scheme that uses multiple keys. The key identifier allows the decryptor to know which key to use to decrypt the data.

GetSubSampleMapping(Byte[]) GetSubSampleMapping(Byte[]) GetSubSampleMapping(Byte[]) GetSubSampleMapping(Byte[])

Gets the Digital Rights Management (DRM) sub-sample mapping from the MediaStreamSample.

public void GetSubSampleMapping(Byte[] value)public void GetSubSampleMapping(Byte[] value)Public Function GetSubSampleMapping(value As Byte[]) As voidpublic void GetSubSampleMapping(Byte[] value)
Parameters
value
System.Byte[] System.Byte[] System.Byte[] System.Byte[]

Receives the sub-sample mapping.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The sub-sample mapping is used when only portions of the data contained in the MediaStreamSample is encrypted. The sub-sample mapping specifies which parts are encrypted and which are in the clear. The syntax of the sub-sample mapping data is specific to each individual Digital Rights Management (DRM) protection scheme.

SetInitializationVector(Byte[]) SetInitializationVector(Byte[]) SetInitializationVector(Byte[]) SetInitializationVector(Byte[])

Sets the Digital Rights Management (DRM) initialization vector for the MediaStreamSample.

public void SetInitializationVector(Byte[] value)public void SetInitializationVector(Byte[] value)Public Function SetInitializationVector(value As Byte[]) As voidpublic void SetInitializationVector(Byte[] value)
Parameters
value
System.Byte[] System.Byte[] System.Byte[] System.Byte[]

The value to set the Digital Rights Management (DRM) initialization vector to.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

SetKeyIdentifier(Byte[]) SetKeyIdentifier(Byte[]) SetKeyIdentifier(Byte[]) SetKeyIdentifier(Byte[])

Sets the Digital Rights Management (DRM) key identifier for the MediaStreamSample.

public void SetKeyIdentifier(Byte[] value)public void SetKeyIdentifier(Byte[] value)Public Function SetKeyIdentifier(value As Byte[]) As voidpublic void SetKeyIdentifier(Byte[] value)
Parameters
value
System.Byte[] System.Byte[] System.Byte[] System.Byte[]

The value to set the Digital Rights Management (DRM) key identifier to.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

SetSubSampleMapping(Byte[]) SetSubSampleMapping(Byte[]) SetSubSampleMapping(Byte[]) SetSubSampleMapping(Byte[])

Sets the Digital Rights Management (DRM) sub-sample mapping for the MediaStreamSample.

public void SetSubSampleMapping(Byte[] value)public void SetSubSampleMapping(Byte[] value)Public Function SetSubSampleMapping(value As Byte[]) As voidpublic void SetSubSampleMapping(Byte[] value)
Parameters
value
System.Byte[] System.Byte[] System.Byte[] System.Byte[]

The value to set the Digital Rights Management (DRM) sub-sample mapping to.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)