Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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


mediaStreamSource.addProtectionKey(streamDescriptor, keyIdentifier, 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