Udostępnij za pośrednictwem


MediaStreamSource.AddProtectionKey Method

Definition

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

public:
 virtual void AddProtectionKey(IMediaStreamDescriptor ^ streamDescriptor, Platform::Array <byte> ^ keyIdentifier, Platform::Array <byte> ^ licenseData) = AddProtectionKey;
void AddProtectionKey(IMediaStreamDescriptor const& streamDescriptor, winrt::array_view <byte> const& keyIdentifier, winrt::array_view <byte> const& licenseData);
public void AddProtectionKey(IMediaStreamDescriptor streamDescriptor, byte[] keyIdentifier, byte[] licenseData);
function addProtectionKey(streamDescriptor, keyIdentifier, licenseData)
Public Sub AddProtectionKey (streamDescriptor As IMediaStreamDescriptor, keyIdentifier As Byte(), licenseData As Byte())

Parameters

streamDescriptor
IMediaStreamDescriptor

The stream the key is used to encrypt and decrypt.

keyIdentifier

Byte[]

byte[]

The key used to encrypt and decrypt the stream.

licenseData

Byte[]

byte[]

The Digital Rights Management (DRM) licence for the media.

Applies to