PlayReadyLicenseSession Class

Definition

Creates a media session and binds license acquisition to that media session.

public ref class PlayReadyLicenseSession sealed : IPlayReadyLicenseSession
public ref class PlayReadyLicenseSession sealed : IPlayReadyLicenseSession2
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Protection.PlayReady.IPlayReadyLicenseSessionFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
class PlayReadyLicenseSession final : IPlayReadyLicenseSession
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Protection.PlayReady.IPlayReadyLicenseSessionFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class PlayReadyLicenseSession final : IPlayReadyLicenseSession
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Protection.PlayReady.IPlayReadyLicenseSessionFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class PlayReadyLicenseSession final : IPlayReadyLicenseSession2
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Protection.PlayReady.IPlayReadyLicenseSessionFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public sealed class PlayReadyLicenseSession : IPlayReadyLicenseSession
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Protection.PlayReady.IPlayReadyLicenseSessionFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class PlayReadyLicenseSession : IPlayReadyLicenseSession
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Protection.PlayReady.IPlayReadyLicenseSessionFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class PlayReadyLicenseSession : IPlayReadyLicenseSession2
function PlayReadyLicenseSession(configuration)
Public NotInheritable Class PlayReadyLicenseSession
Implements IPlayReadyLicenseSession
Public NotInheritable Class PlayReadyLicenseSession
Implements IPlayReadyLicenseSession2
Inheritance
Object Platform::Object IInspectable PlayReadyLicenseSession
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

You must maintain the PlayReadyLicenseSession instance until playback has completed. If the app fails to do this, the garbage collector may, at its discretion, release the object. This can cause playback to fail.

Version history

Windows version SDK version Value added
1703 15063 CreateLicenseIterable

Constructors

PlayReadyLicenseSession(IPropertySet)

Initializes a new instance of the PlayReadyLicenseSession class.

Methods

ConfigureMediaProtectionManager(MediaProtectionManager)

Updates the media protection manger with the appropriate settings so the media foundation can be used for playback.

CreateLAServiceRequest()

Creates a license acquisition service request whose license will be tied to the media session.

CreateLicenseIterable(PlayReadyContentHeader, Boolean)

Creates a PlayReadyLicense class iterator that supports in-memory-only PlayReady licenses in addition to persisted licenses.

Applies to

See also