PlayReadyStatics.InputTrustAuthorityToCreate 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取 PlayReady 受信任的输入激活字符串。
public:
static property Platform::String ^ InputTrustAuthorityToCreate { Platform::String ^ get(); };
static winrt::hstring InputTrustAuthorityToCreate();
public static string InputTrustAuthorityToCreate { get; }
var string = PlayReadyStatics.inputTrustAuthorityToCreate;
Public Shared ReadOnly Property InputTrustAuthorityToCreate As String
属性值
PlayReady 受信任的输入激活字符串。 媒体保护管理器使用此字符串来告知媒体源 (ITA) 创建哪个输入信任机构。
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.MediaProtectionSystemIdMapping”字符串映射到另一个 PropertySet。 这通常会将字符串“Windows.Media.Protection.PlayReady.PlayReadyStatics.MediaProtectionSystemId”映射到 Windows.Media.Protection.PlayReady.PlayReadyStatics.InputTrustAuthorityToCreate。
MediaProtectionManager protectionManager = new MediaProtectionManager();
protectionManager.Properties.Add(
"Windows.Media.Protection.MediaProtectionContainerGuid",
PlayReadyStatics.ProtectionSystemId.ToString());
Windows.Foundation.Collections.PropertySet cpSystems =
new Windows.Foundation.Collections.PropertySet();
cpSystems.Add(
PlayReadyStatics.MediaProtectionSystemId.ToString(),
PlayReadyStatics.InputTrustAuthorityToCreate);