MediaStreamSource.AddProtectionKey | addProtectionKey method

Applies to Windows and Windows Phone

Adds a Digital Rights Management (DRM) protection key which is used by the MediaProtectionManager to encrypt and decrypt the specified stream.

Syntax


public void AddProtectionKey(
  IMediaStreamDescriptor streamDescriptor, 
  byte[] keyIdentifier, 
  byte[] licenseData
)

Parameters

streamDescriptor

Type: IMediaStreamDescriptor

The stream the key is used to encrypt and decrypt.

keyIdentifier

Type: array of Number [JavaScript] | System.Byte[] [.NET] | Platform::Array<uint8> [C++]

The key used to encrypt and decrypt the stream.

licenseData

Type: array of Number [JavaScript] | System.Byte[] [.NET] | Platform::Array<uint8> [C++]

The DRM licence for the media.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Media.Core
Windows::Media::Core [C++]

Metadata

Windows.winmd

See also

MediaStreamSource

 

 

Show:
© 2014 Microsoft