MediaStreamSource.AddProtectionKey Метод

Определение

Добавляет ключ защиты управления цифровыми правами (DRM), который используется MediaProtectionManager для шифрования и расшифровки указанного потока.

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())

Параметры

streamDescriptor
IMediaStreamDescriptor

Поток, ключ используется для шифрования и расшифровки.

keyIdentifier

Byte[]

byte[]

Ключ, используемый для шифрования и расшифровки потока.

licenseData

Byte[]

byte[]

Лицензия на управление цифровыми правами (DRM) для средств массовой информации.

Применяется к