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 MediaStreamSampleProtectionProperties : IMediaStreamSampleProtectionPropertiespublic sealed class MediaStreamSampleProtectionProperties : IMediaStreamSampleProtectionPropertiesPublic NotInheritable Class MediaStreamSampleProtectionProperties Implements IMediaStreamSampleProtectionProperties// You can use this class in JavaScript.
- Attributes
| 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 void// You can use this method in JavaScript.
- value
- Byte[] Byte[] Byte[] Byte[]
The initialization vector.
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 void// You can use this method in JavaScript.
- value
- Byte[] Byte[] Byte[] Byte[]
Receives the key identifier used to decrypt the data.
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 void// You can use this method in JavaScript.
- value
- Byte[] Byte[] Byte[] Byte[]
Receives the sub-sample mapping.
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 void// You can use this method in JavaScript.
- value
- Byte[] Byte[] Byte[] Byte[]
The value to set the Digital Rights Management (DRM) initialization vector to.
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 void// You can use this method in JavaScript.
- value
- Byte[] Byte[] Byte[] Byte[]
The value to set the Digital Rights Management (DRM) key identifier to.
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 void// You can use this method in JavaScript.
- value
- Byte[] Byte[] Byte[] Byte[]
The value to set the Digital Rights Management (DRM) sub-sample mapping to.