Share via


PlayReadyStatics.InputTrustAuthorityToCreate Property

Definition

Gets the PlayReady Trusted Input activation string.

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

Property Value

String

Platform::String

winrt::hstring

The PlayReady Trusted Input activation string. This string is used by the Media Protection Manager to tell the media source which Input Trust Authority (ITA) to create.

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Remarks

Previous releases of the PlayReady API required callers to hard-code a well-known string and GUID in their code. These APIs provide those values to the caller so they can request them rather than hard-coding them.

In the MediaProtectionManager.Properties property (a PropertySet object), the "Windows.Media.Protection.MediaProtectionSystemIdMapping" string maps to another PropertySet. This in turn will typically have the string "Windows.Media.Protection.PlayReady.PlayReadyStatics.MediaProtectionSystemId" map to 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);

Applies to