PlayReadyStatics.ProtectionSystemId 属性

定义

获取 PSSH 框中的 PlayReady 内容保护系统 ID。

public:
 static property Platform::Guid ProtectionSystemId { Platform::Guid get(); };
static winrt::guid ProtectionSystemId();
public static Guid ProtectionSystemId { get; }
var guid = PlayReadyStatics.protectionSystemId;
Public Shared ReadOnly Property ProtectionSystemId As Guid

属性值

Guid

Platform::Guid

winrt::guid

指定 PSSH 框中的 PlayReady 内容保护系统 ID。 此参数对基础平台的结束度敏感。 在你打算支持的所有平台上仔细测试你的应用,以确保在每个平台上使用正确的尾声。

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)

注解

以前版本的 PlayReady API 要求调用方在其代码中硬编码已知字符串和 GUID 。 这些 API 向调用方提供这些值,以便他们可以请求它们,而不是对其进行硬编码。

MediaProtectionManager.Properties 属性 (PropertySet 对象) ,“Windows.Media.Protection.MediaProtectionContainerGuid”字符串映射到 GUID,该 GUID 通常为以下字符串:'''csharp “{” + Windows.Media.Protection.PlayReady.PlayReadyStatics.ProtectionSystemId.ToString () 。ToUpper () + “}”

适用于